mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-05-29 04:16:07 +00:00
Upgrade AWS SDK to the latest version
This commit is contained in:
+139
-146
@@ -1,6 +1,5 @@
|
||||
// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
|
||||
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
|
||||
|
||||
// Package support provides a client for AWS Support.
|
||||
package support
|
||||
|
||||
import (
|
||||
@@ -13,19 +12,18 @@ const opAddAttachmentsToSet = "AddAttachmentsToSet"
|
||||
|
||||
// AddAttachmentsToSetRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the AddAttachmentsToSet operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
// value will be populated with the request's response once the request complets
|
||||
// successfuly.
|
||||
//
|
||||
// See AddAttachmentsToSet for usage and error information.
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
// the "output" return value is not valid until after Send returns without error.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the AddAttachmentsToSet method directly
|
||||
// instead.
|
||||
// See AddAttachmentsToSet for more information on using the AddAttachmentsToSet
|
||||
// API call, and error handling.
|
||||
//
|
||||
// This method is useful when you want to inject custom logic or configuration
|
||||
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the AddAttachmentsToSetRequest method.
|
||||
// req, resp := client.AddAttachmentsToSetRequest(params)
|
||||
@@ -117,19 +115,18 @@ const opAddCommunicationToCase = "AddCommunicationToCase"
|
||||
|
||||
// AddCommunicationToCaseRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the AddCommunicationToCase operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
// value will be populated with the request's response once the request complets
|
||||
// successfuly.
|
||||
//
|
||||
// See AddCommunicationToCase for usage and error information.
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
// the "output" return value is not valid until after Send returns without error.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the AddCommunicationToCase method directly
|
||||
// instead.
|
||||
// See AddCommunicationToCase for more information on using the AddCommunicationToCase
|
||||
// API call, and error handling.
|
||||
//
|
||||
// This method is useful when you want to inject custom logic or configuration
|
||||
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the AddCommunicationToCaseRequest method.
|
||||
// req, resp := client.AddCommunicationToCaseRequest(params)
|
||||
@@ -214,19 +211,18 @@ const opCreateCase = "CreateCase"
|
||||
|
||||
// CreateCaseRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the CreateCase operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
// value will be populated with the request's response once the request complets
|
||||
// successfuly.
|
||||
//
|
||||
// See CreateCase for usage and error information.
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
// the "output" return value is not valid until after Send returns without error.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the CreateCase method directly
|
||||
// instead.
|
||||
// See CreateCase for more information on using the CreateCase
|
||||
// API call, and error handling.
|
||||
//
|
||||
// This method is useful when you want to inject custom logic or configuration
|
||||
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the CreateCaseRequest method.
|
||||
// req, resp := client.CreateCaseRequest(params)
|
||||
@@ -347,19 +343,18 @@ const opDescribeAttachment = "DescribeAttachment"
|
||||
|
||||
// DescribeAttachmentRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the DescribeAttachment operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
// value will be populated with the request's response once the request complets
|
||||
// successfuly.
|
||||
//
|
||||
// See DescribeAttachment for usage and error information.
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
// the "output" return value is not valid until after Send returns without error.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the DescribeAttachment method directly
|
||||
// instead.
|
||||
// See DescribeAttachment for more information on using the DescribeAttachment
|
||||
// API call, and error handling.
|
||||
//
|
||||
// This method is useful when you want to inject custom logic or configuration
|
||||
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the DescribeAttachmentRequest method.
|
||||
// req, resp := client.DescribeAttachmentRequest(params)
|
||||
@@ -437,19 +432,18 @@ const opDescribeCases = "DescribeCases"
|
||||
|
||||
// DescribeCasesRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the DescribeCases operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
// value will be populated with the request's response once the request complets
|
||||
// successfuly.
|
||||
//
|
||||
// See DescribeCases for usage and error information.
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
// the "output" return value is not valid until after Send returns without error.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the DescribeCases method directly
|
||||
// instead.
|
||||
// See DescribeCases for more information on using the DescribeCases
|
||||
// API call, and error handling.
|
||||
//
|
||||
// This method is useful when you want to inject custom logic or configuration
|
||||
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the DescribeCasesRequest method.
|
||||
// req, resp := client.DescribeCasesRequest(params)
|
||||
@@ -567,8 +561,12 @@ func (c *Support) DescribeCasesPages(input *DescribeCasesInput, fn func(*Describ
|
||||
func (c *Support) DescribeCasesPagesWithContext(ctx aws.Context, input *DescribeCasesInput, fn func(*DescribeCasesOutput, bool) bool, opts ...request.Option) error {
|
||||
p := request.Pagination{
|
||||
NewRequest: func() (*request.Request, error) {
|
||||
inCpy := *input
|
||||
req, _ := c.DescribeCasesRequest(&inCpy)
|
||||
var inCpy *DescribeCasesInput
|
||||
if input != nil {
|
||||
tmp := *input
|
||||
inCpy = &tmp
|
||||
}
|
||||
req, _ := c.DescribeCasesRequest(inCpy)
|
||||
req.SetContext(ctx)
|
||||
req.ApplyOptions(opts...)
|
||||
return req, nil
|
||||
@@ -586,19 +584,18 @@ const opDescribeCommunications = "DescribeCommunications"
|
||||
|
||||
// DescribeCommunicationsRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the DescribeCommunications operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
// value will be populated with the request's response once the request complets
|
||||
// successfuly.
|
||||
//
|
||||
// See DescribeCommunications for usage and error information.
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
// the "output" return value is not valid until after Send returns without error.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the DescribeCommunications method directly
|
||||
// instead.
|
||||
// See DescribeCommunications for more information on using the DescribeCommunications
|
||||
// API call, and error handling.
|
||||
//
|
||||
// This method is useful when you want to inject custom logic or configuration
|
||||
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the DescribeCommunicationsRequest method.
|
||||
// req, resp := client.DescribeCommunicationsRequest(params)
|
||||
@@ -711,8 +708,12 @@ func (c *Support) DescribeCommunicationsPages(input *DescribeCommunicationsInput
|
||||
func (c *Support) DescribeCommunicationsPagesWithContext(ctx aws.Context, input *DescribeCommunicationsInput, fn func(*DescribeCommunicationsOutput, bool) bool, opts ...request.Option) error {
|
||||
p := request.Pagination{
|
||||
NewRequest: func() (*request.Request, error) {
|
||||
inCpy := *input
|
||||
req, _ := c.DescribeCommunicationsRequest(&inCpy)
|
||||
var inCpy *DescribeCommunicationsInput
|
||||
if input != nil {
|
||||
tmp := *input
|
||||
inCpy = &tmp
|
||||
}
|
||||
req, _ := c.DescribeCommunicationsRequest(inCpy)
|
||||
req.SetContext(ctx)
|
||||
req.ApplyOptions(opts...)
|
||||
return req, nil
|
||||
@@ -730,19 +731,18 @@ const opDescribeServices = "DescribeServices"
|
||||
|
||||
// DescribeServicesRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the DescribeServices operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
// value will be populated with the request's response once the request complets
|
||||
// successfuly.
|
||||
//
|
||||
// See DescribeServices for usage and error information.
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
// the "output" return value is not valid until after Send returns without error.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the DescribeServices method directly
|
||||
// instead.
|
||||
// See DescribeServices for more information on using the DescribeServices
|
||||
// API call, and error handling.
|
||||
//
|
||||
// This method is useful when you want to inject custom logic or configuration
|
||||
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the DescribeServicesRequest method.
|
||||
// req, resp := client.DescribeServicesRequest(params)
|
||||
@@ -820,19 +820,18 @@ const opDescribeSeverityLevels = "DescribeSeverityLevels"
|
||||
|
||||
// DescribeSeverityLevelsRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the DescribeSeverityLevels operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
// value will be populated with the request's response once the request complets
|
||||
// successfuly.
|
||||
//
|
||||
// See DescribeSeverityLevels for usage and error information.
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
// the "output" return value is not valid until after Send returns without error.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the DescribeSeverityLevels method directly
|
||||
// instead.
|
||||
// See DescribeSeverityLevels for more information on using the DescribeSeverityLevels
|
||||
// API call, and error handling.
|
||||
//
|
||||
// This method is useful when you want to inject custom logic or configuration
|
||||
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the DescribeSeverityLevelsRequest method.
|
||||
// req, resp := client.DescribeSeverityLevelsRequest(params)
|
||||
@@ -902,19 +901,18 @@ const opDescribeTrustedAdvisorCheckRefreshStatuses = "DescribeTrustedAdvisorChec
|
||||
|
||||
// DescribeTrustedAdvisorCheckRefreshStatusesRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the DescribeTrustedAdvisorCheckRefreshStatuses operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
// value will be populated with the request's response once the request complets
|
||||
// successfuly.
|
||||
//
|
||||
// See DescribeTrustedAdvisorCheckRefreshStatuses for usage and error information.
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
// the "output" return value is not valid until after Send returns without error.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the DescribeTrustedAdvisorCheckRefreshStatuses method directly
|
||||
// instead.
|
||||
// See DescribeTrustedAdvisorCheckRefreshStatuses for more information on using the DescribeTrustedAdvisorCheckRefreshStatuses
|
||||
// API call, and error handling.
|
||||
//
|
||||
// This method is useful when you want to inject custom logic or configuration
|
||||
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the DescribeTrustedAdvisorCheckRefreshStatusesRequest method.
|
||||
// req, resp := client.DescribeTrustedAdvisorCheckRefreshStatusesRequest(params)
|
||||
@@ -987,19 +985,18 @@ const opDescribeTrustedAdvisorCheckResult = "DescribeTrustedAdvisorCheckResult"
|
||||
|
||||
// DescribeTrustedAdvisorCheckResultRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the DescribeTrustedAdvisorCheckResult operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
// value will be populated with the request's response once the request complets
|
||||
// successfuly.
|
||||
//
|
||||
// See DescribeTrustedAdvisorCheckResult for usage and error information.
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
// the "output" return value is not valid until after Send returns without error.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the DescribeTrustedAdvisorCheckResult method directly
|
||||
// instead.
|
||||
// See DescribeTrustedAdvisorCheckResult for more information on using the DescribeTrustedAdvisorCheckResult
|
||||
// API call, and error handling.
|
||||
//
|
||||
// This method is useful when you want to inject custom logic or configuration
|
||||
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the DescribeTrustedAdvisorCheckResultRequest method.
|
||||
// req, resp := client.DescribeTrustedAdvisorCheckResultRequest(params)
|
||||
@@ -1086,19 +1083,18 @@ const opDescribeTrustedAdvisorCheckSummaries = "DescribeTrustedAdvisorCheckSumma
|
||||
|
||||
// DescribeTrustedAdvisorCheckSummariesRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the DescribeTrustedAdvisorCheckSummaries operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
// value will be populated with the request's response once the request complets
|
||||
// successfuly.
|
||||
//
|
||||
// See DescribeTrustedAdvisorCheckSummaries for usage and error information.
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
// the "output" return value is not valid until after Send returns without error.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the DescribeTrustedAdvisorCheckSummaries method directly
|
||||
// instead.
|
||||
// See DescribeTrustedAdvisorCheckSummaries for more information on using the DescribeTrustedAdvisorCheckSummaries
|
||||
// API call, and error handling.
|
||||
//
|
||||
// This method is useful when you want to inject custom logic or configuration
|
||||
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the DescribeTrustedAdvisorCheckSummariesRequest method.
|
||||
// req, resp := client.DescribeTrustedAdvisorCheckSummariesRequest(params)
|
||||
@@ -1169,19 +1165,18 @@ const opDescribeTrustedAdvisorChecks = "DescribeTrustedAdvisorChecks"
|
||||
|
||||
// DescribeTrustedAdvisorChecksRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the DescribeTrustedAdvisorChecks operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
// value will be populated with the request's response once the request complets
|
||||
// successfuly.
|
||||
//
|
||||
// See DescribeTrustedAdvisorChecks for usage and error information.
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
// the "output" return value is not valid until after Send returns without error.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the DescribeTrustedAdvisorChecks method directly
|
||||
// instead.
|
||||
// See DescribeTrustedAdvisorChecks for more information on using the DescribeTrustedAdvisorChecks
|
||||
// API call, and error handling.
|
||||
//
|
||||
// This method is useful when you want to inject custom logic or configuration
|
||||
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the DescribeTrustedAdvisorChecksRequest method.
|
||||
// req, resp := client.DescribeTrustedAdvisorChecksRequest(params)
|
||||
@@ -1252,19 +1247,18 @@ const opRefreshTrustedAdvisorCheck = "RefreshTrustedAdvisorCheck"
|
||||
|
||||
// RefreshTrustedAdvisorCheckRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the RefreshTrustedAdvisorCheck operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
// value will be populated with the request's response once the request complets
|
||||
// successfuly.
|
||||
//
|
||||
// See RefreshTrustedAdvisorCheck for usage and error information.
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
// the "output" return value is not valid until after Send returns without error.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the RefreshTrustedAdvisorCheck method directly
|
||||
// instead.
|
||||
// See RefreshTrustedAdvisorCheck for more information on using the RefreshTrustedAdvisorCheck
|
||||
// API call, and error handling.
|
||||
//
|
||||
// This method is useful when you want to inject custom logic or configuration
|
||||
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the RefreshTrustedAdvisorCheckRequest method.
|
||||
// req, resp := client.RefreshTrustedAdvisorCheckRequest(params)
|
||||
@@ -1348,19 +1342,18 @@ const opResolveCase = "ResolveCase"
|
||||
|
||||
// ResolveCaseRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the ResolveCase operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
// value will be populated with the request's response once the request complets
|
||||
// successfuly.
|
||||
//
|
||||
// See ResolveCase for usage and error information.
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
// the "output" return value is not valid until after Send returns without error.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the ResolveCase method directly
|
||||
// instead.
|
||||
// See ResolveCase for more information on using the ResolveCase
|
||||
// API call, and error handling.
|
||||
//
|
||||
// This method is useful when you want to inject custom logic or configuration
|
||||
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the ResolveCaseRequest method.
|
||||
// req, resp := client.ResolveCaseRequest(params)
|
||||
|
||||
+77
@@ -0,0 +1,77 @@
|
||||
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
|
||||
|
||||
// Package support provides the client and types for making API
|
||||
// requests to AWS Support.
|
||||
//
|
||||
// The AWS Support API reference is intended for programmers who need detailed
|
||||
// information about the AWS Support operations and data types. This service
|
||||
// enables you to manage your AWS Support cases programmatically. It uses HTTP
|
||||
// methods that return results in JSON format.
|
||||
//
|
||||
// The AWS Support service also exposes a set of Trusted Advisor (http://aws.amazon.com/premiumsupport/trustedadvisor/)
|
||||
// features. You can retrieve a list of checks and their descriptions, get check
|
||||
// results, specify checks to refresh, and get the refresh status of checks.
|
||||
//
|
||||
// The following list describes the AWS Support case management operations:
|
||||
//
|
||||
// * Service names, issue categories, and available severity levels. The
|
||||
// DescribeServices and DescribeSeverityLevels operations return AWS service
|
||||
// names, service codes, service categories, and problem severity levels.
|
||||
// You use these values when you call the CreateCase operation.
|
||||
//
|
||||
// * Case creation, case details, and case resolution. The CreateCase, DescribeCases,
|
||||
// DescribeAttachment, and ResolveCase operations create AWS Support cases,
|
||||
// retrieve information about cases, and resolve cases.
|
||||
//
|
||||
// * Case communication. The DescribeCommunications, AddCommunicationToCase,
|
||||
// and AddAttachmentsToSet operations retrieve and add communications and
|
||||
// attachments to AWS Support cases.
|
||||
//
|
||||
// The following list describes the operations available from the AWS Support
|
||||
// service for Trusted Advisor:
|
||||
//
|
||||
// * DescribeTrustedAdvisorChecks returns the list of checks that run against
|
||||
// your AWS resources.
|
||||
//
|
||||
// * Using the checkId for a specific check returned by DescribeTrustedAdvisorChecks,
|
||||
// you can call DescribeTrustedAdvisorCheckResult to obtain the results for
|
||||
// the check you specified.
|
||||
//
|
||||
// * DescribeTrustedAdvisorCheckSummaries returns summarized results for
|
||||
// one or more Trusted Advisor checks.
|
||||
//
|
||||
// * RefreshTrustedAdvisorCheck requests that Trusted Advisor rerun a specified
|
||||
// check.
|
||||
//
|
||||
// * DescribeTrustedAdvisorCheckRefreshStatuses reports the refresh status
|
||||
// of one or more checks.
|
||||
//
|
||||
// For authentication of requests, AWS Support uses Signature Version 4 Signing
|
||||
// Process (http://docs.aws.amazon.com/general/latest/gr/signature-version-4.html).
|
||||
//
|
||||
// See About the AWS Support API (http://docs.aws.amazon.com/awssupport/latest/user/Welcome.html)
|
||||
// in the AWS Support User Guide for information about how to use this service
|
||||
// to create and manage your support cases, and how to call Trusted Advisor
|
||||
// for results of checks on your resources.
|
||||
//
|
||||
// See https://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15 for more information on this service.
|
||||
//
|
||||
// See support package documentation for more information.
|
||||
// https://docs.aws.amazon.com/sdk-for-go/api/service/support/
|
||||
//
|
||||
// Using the Client
|
||||
//
|
||||
// To AWS Support with the SDK use the New function to create
|
||||
// a new service client. With that client you can make API requests to the service.
|
||||
// These clients are safe to use concurrently.
|
||||
//
|
||||
// See the SDK's documentation for more information on how to use the SDK.
|
||||
// https://docs.aws.amazon.com/sdk-for-go/api/
|
||||
//
|
||||
// See aws.Config documentation for more information on configuring SDK clients.
|
||||
// https://docs.aws.amazon.com/sdk-for-go/api/aws/#Config
|
||||
//
|
||||
// See the AWS Support client Support for more
|
||||
// information on creating client for this service.
|
||||
// https://docs.aws.amazon.com/sdk-for-go/api/service/support/#New
|
||||
package support
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
|
||||
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
|
||||
|
||||
package support
|
||||
|
||||
|
||||
-360
@@ -1,360 +0,0 @@
|
||||
// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
|
||||
|
||||
package support_test
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
"fmt"
|
||||
"time"
|
||||
|
||||
"github.com/aws/aws-sdk-go/aws"
|
||||
"github.com/aws/aws-sdk-go/aws/session"
|
||||
"github.com/aws/aws-sdk-go/service/support"
|
||||
)
|
||||
|
||||
var _ time.Duration
|
||||
var _ bytes.Buffer
|
||||
|
||||
func ExampleSupport_AddAttachmentsToSet() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := support.New(sess)
|
||||
|
||||
params := &support.AddAttachmentsToSetInput{
|
||||
Attachments: []*support.Attachment{ // Required
|
||||
{ // Required
|
||||
Data: []byte("PAYLOAD"),
|
||||
FileName: aws.String("FileName"),
|
||||
},
|
||||
// More values...
|
||||
},
|
||||
AttachmentSetId: aws.String("AttachmentSetId"),
|
||||
}
|
||||
resp, err := svc.AddAttachmentsToSet(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleSupport_AddCommunicationToCase() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := support.New(sess)
|
||||
|
||||
params := &support.AddCommunicationToCaseInput{
|
||||
CommunicationBody: aws.String("CommunicationBody"), // Required
|
||||
AttachmentSetId: aws.String("AttachmentSetId"),
|
||||
CaseId: aws.String("CaseId"),
|
||||
CcEmailAddresses: []*string{
|
||||
aws.String("CcEmailAddress"), // Required
|
||||
// More values...
|
||||
},
|
||||
}
|
||||
resp, err := svc.AddCommunicationToCase(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleSupport_CreateCase() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := support.New(sess)
|
||||
|
||||
params := &support.CreateCaseInput{
|
||||
CommunicationBody: aws.String("CommunicationBody"), // Required
|
||||
Subject: aws.String("Subject"), // Required
|
||||
AttachmentSetId: aws.String("AttachmentSetId"),
|
||||
CategoryCode: aws.String("CategoryCode"),
|
||||
CcEmailAddresses: []*string{
|
||||
aws.String("CcEmailAddress"), // Required
|
||||
// More values...
|
||||
},
|
||||
IssueType: aws.String("IssueType"),
|
||||
Language: aws.String("Language"),
|
||||
ServiceCode: aws.String("ServiceCode"),
|
||||
SeverityCode: aws.String("SeverityCode"),
|
||||
}
|
||||
resp, err := svc.CreateCase(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleSupport_DescribeAttachment() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := support.New(sess)
|
||||
|
||||
params := &support.DescribeAttachmentInput{
|
||||
AttachmentId: aws.String("AttachmentId"), // Required
|
||||
}
|
||||
resp, err := svc.DescribeAttachment(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleSupport_DescribeCases() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := support.New(sess)
|
||||
|
||||
params := &support.DescribeCasesInput{
|
||||
AfterTime: aws.String("AfterTime"),
|
||||
BeforeTime: aws.String("BeforeTime"),
|
||||
CaseIdList: []*string{
|
||||
aws.String("CaseId"), // Required
|
||||
// More values...
|
||||
},
|
||||
DisplayId: aws.String("DisplayId"),
|
||||
IncludeCommunications: aws.Bool(true),
|
||||
IncludeResolvedCases: aws.Bool(true),
|
||||
Language: aws.String("Language"),
|
||||
MaxResults: aws.Int64(1),
|
||||
NextToken: aws.String("NextToken"),
|
||||
}
|
||||
resp, err := svc.DescribeCases(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleSupport_DescribeCommunications() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := support.New(sess)
|
||||
|
||||
params := &support.DescribeCommunicationsInput{
|
||||
CaseId: aws.String("CaseId"), // Required
|
||||
AfterTime: aws.String("AfterTime"),
|
||||
BeforeTime: aws.String("BeforeTime"),
|
||||
MaxResults: aws.Int64(1),
|
||||
NextToken: aws.String("NextToken"),
|
||||
}
|
||||
resp, err := svc.DescribeCommunications(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleSupport_DescribeServices() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := support.New(sess)
|
||||
|
||||
params := &support.DescribeServicesInput{
|
||||
Language: aws.String("Language"),
|
||||
ServiceCodeList: []*string{
|
||||
aws.String("ServiceCode"), // Required
|
||||
// More values...
|
||||
},
|
||||
}
|
||||
resp, err := svc.DescribeServices(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleSupport_DescribeSeverityLevels() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := support.New(sess)
|
||||
|
||||
params := &support.DescribeSeverityLevelsInput{
|
||||
Language: aws.String("Language"),
|
||||
}
|
||||
resp, err := svc.DescribeSeverityLevels(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleSupport_DescribeTrustedAdvisorCheckRefreshStatuses() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := support.New(sess)
|
||||
|
||||
params := &support.DescribeTrustedAdvisorCheckRefreshStatusesInput{
|
||||
CheckIds: []*string{ // Required
|
||||
aws.String("String"), // Required
|
||||
// More values...
|
||||
},
|
||||
}
|
||||
resp, err := svc.DescribeTrustedAdvisorCheckRefreshStatuses(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleSupport_DescribeTrustedAdvisorCheckResult() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := support.New(sess)
|
||||
|
||||
params := &support.DescribeTrustedAdvisorCheckResultInput{
|
||||
CheckId: aws.String("String"), // Required
|
||||
Language: aws.String("String"),
|
||||
}
|
||||
resp, err := svc.DescribeTrustedAdvisorCheckResult(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleSupport_DescribeTrustedAdvisorCheckSummaries() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := support.New(sess)
|
||||
|
||||
params := &support.DescribeTrustedAdvisorCheckSummariesInput{
|
||||
CheckIds: []*string{ // Required
|
||||
aws.String("String"), // Required
|
||||
// More values...
|
||||
},
|
||||
}
|
||||
resp, err := svc.DescribeTrustedAdvisorCheckSummaries(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleSupport_DescribeTrustedAdvisorChecks() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := support.New(sess)
|
||||
|
||||
params := &support.DescribeTrustedAdvisorChecksInput{
|
||||
Language: aws.String("String"), // Required
|
||||
}
|
||||
resp, err := svc.DescribeTrustedAdvisorChecks(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleSupport_RefreshTrustedAdvisorCheck() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := support.New(sess)
|
||||
|
||||
params := &support.RefreshTrustedAdvisorCheckInput{
|
||||
CheckId: aws.String("String"), // Required
|
||||
}
|
||||
resp, err := svc.RefreshTrustedAdvisorCheck(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleSupport_ResolveCase() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := support.New(sess)
|
||||
|
||||
params := &support.ResolveCaseInput{
|
||||
CaseId: aws.String("CaseId"),
|
||||
}
|
||||
resp, err := svc.ResolveCase(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
+6
-53
@@ -1,4 +1,4 @@
|
||||
// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
|
||||
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
|
||||
|
||||
package support
|
||||
|
||||
@@ -11,59 +11,12 @@ import (
|
||||
"github.com/aws/aws-sdk-go/private/protocol/jsonrpc"
|
||||
)
|
||||
|
||||
// The AWS Support API reference is intended for programmers who need detailed
|
||||
// information about the AWS Support operations and data types. This service
|
||||
// enables you to manage your AWS Support cases programmatically. It uses HTTP
|
||||
// methods that return results in JSON format.
|
||||
// Support provides the API operation methods for making requests to
|
||||
// AWS Support. See this package's package overview docs
|
||||
// for details on the service.
|
||||
//
|
||||
// The AWS Support service also exposes a set of Trusted Advisor (http://aws.amazon.com/premiumsupport/trustedadvisor/)
|
||||
// features. You can retrieve a list of checks and their descriptions, get check
|
||||
// results, specify checks to refresh, and get the refresh status of checks.
|
||||
//
|
||||
// The following list describes the AWS Support case management operations:
|
||||
//
|
||||
// * Service names, issue categories, and available severity levels. The
|
||||
// DescribeServices and DescribeSeverityLevels operations return AWS service
|
||||
// names, service codes, service categories, and problem severity levels.
|
||||
// You use these values when you call the CreateCase operation.
|
||||
//
|
||||
// * Case creation, case details, and case resolution. The CreateCase, DescribeCases,
|
||||
// DescribeAttachment, and ResolveCase operations create AWS Support cases,
|
||||
// retrieve information about cases, and resolve cases.
|
||||
//
|
||||
// * Case communication. The DescribeCommunications, AddCommunicationToCase,
|
||||
// and AddAttachmentsToSet operations retrieve and add communications and
|
||||
// attachments to AWS Support cases.
|
||||
//
|
||||
// The following list describes the operations available from the AWS Support
|
||||
// service for Trusted Advisor:
|
||||
//
|
||||
// * DescribeTrustedAdvisorChecks returns the list of checks that run against
|
||||
// your AWS resources.
|
||||
//
|
||||
// * Using the checkId for a specific check returned by DescribeTrustedAdvisorChecks,
|
||||
// you can call DescribeTrustedAdvisorCheckResult to obtain the results for
|
||||
// the check you specified.
|
||||
//
|
||||
// * DescribeTrustedAdvisorCheckSummaries returns summarized results for
|
||||
// one or more Trusted Advisor checks.
|
||||
//
|
||||
// * RefreshTrustedAdvisorCheck requests that Trusted Advisor rerun a specified
|
||||
// check.
|
||||
//
|
||||
// * DescribeTrustedAdvisorCheckRefreshStatuses reports the refresh status
|
||||
// of one or more checks.
|
||||
//
|
||||
// For authentication of requests, AWS Support uses Signature Version 4 Signing
|
||||
// Process (http://docs.aws.amazon.com/general/latest/gr/signature-version-4.html).
|
||||
//
|
||||
// See About the AWS Support API (http://docs.aws.amazon.com/awssupport/latest/user/Welcome.html)
|
||||
// in the AWS Support User Guide for information about how to use this service
|
||||
// to create and manage your support cases, and how to call Trusted Advisor
|
||||
// for results of checks on your resources.
|
||||
// The service client's operations are safe to be used concurrently.
|
||||
// It is not safe to mutate any of the client's properties though.
|
||||
// Please also see https://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15
|
||||
// Support methods are safe to use concurrently. It is not safe to
|
||||
// modify mutate any of the struct's properties though.
|
||||
type Support struct {
|
||||
*client.Client
|
||||
}
|
||||
|
||||
+2
-2
@@ -1,4 +1,4 @@
|
||||
// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
|
||||
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
|
||||
|
||||
// Package supportiface provides an interface to enable mocking the AWS Support service client
|
||||
// for testing your code.
|
||||
@@ -21,7 +21,7 @@ import (
|
||||
//
|
||||
// The best way to use this interface is so the SDK's service client's calls
|
||||
// can be stubbed out for unit testing your code with the SDK without needing
|
||||
// to inject custom request handlers into the the SDK's request pipeline.
|
||||
// to inject custom request handlers into the SDK's request pipeline.
|
||||
//
|
||||
// // myFunc uses an SDK service client to make a request to
|
||||
// // AWS Support.
|
||||
|
||||
Reference in New Issue
Block a user