vendor: update all dependencies to latest versions
This commit is contained in:
+1330
-702
File diff suppressed because it is too large
Load Diff
+10
-62
@@ -3,13 +3,13 @@
|
||||
// Package ses provides the client and types for making API
|
||||
// requests to Amazon Simple Email Service.
|
||||
//
|
||||
// This is the API Reference for Amazon Simple Email Service (Amazon SES). This
|
||||
// documentation is intended to be used in conjunction with the Amazon SES Developer
|
||||
// Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/Welcome.html).
|
||||
// This is the API Reference for Amazon Simple Email Service (https://aws.amazon.com/ses/)
|
||||
// (Amazon SES). This documentation is intended to be used in conjunction with
|
||||
// the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/Welcome.html).
|
||||
//
|
||||
// For a list of Amazon SES endpoints to use in service requests, see Regions
|
||||
// and Amazon SES (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/regions.html)
|
||||
// in the Amazon SES Developer Guide.
|
||||
// in the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/Welcome.html).
|
||||
//
|
||||
// See https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01 for more information on this service.
|
||||
//
|
||||
@@ -18,69 +18,17 @@
|
||||
//
|
||||
// Using the Client
|
||||
//
|
||||
// To use the client for Amazon Simple Email Service you will first need
|
||||
// to create a new instance of it.
|
||||
// To Amazon Simple Email Service 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.
|
||||
//
|
||||
// When creating a client for an AWS service you'll first need to have a Session
|
||||
// already created. The Session provides configuration that can be shared
|
||||
// between multiple service clients. Additional configuration can be applied to
|
||||
// the Session and service's client when they are constructed. The aws package's
|
||||
// Config type contains several fields such as Region for the AWS Region the
|
||||
// client should make API requests too. The optional Config value can be provided
|
||||
// as the variadic argument for Sessions and client creation.
|
||||
//
|
||||
// Once the service's client is created you can use it to make API requests the
|
||||
// AWS service. These clients are safe to use concurrently.
|
||||
//
|
||||
// // Create a session to share configuration, and load external configuration.
|
||||
// sess := session.Must(session.NewSession())
|
||||
//
|
||||
// // Create the service's client with the session.
|
||||
// svc := ses.New(sess)
|
||||
//
|
||||
// See the SDK's documentation for more information on how to use service clients.
|
||||
// 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 package's Config type for more information on configuration options.
|
||||
// See aws.Config documentation for more information on configuring SDK clients.
|
||||
// https://docs.aws.amazon.com/sdk-for-go/api/aws/#Config
|
||||
//
|
||||
// See the Amazon Simple Email Service client SES for more
|
||||
// information on creating the service's client.
|
||||
// information on creating client for this service.
|
||||
// https://docs.aws.amazon.com/sdk-for-go/api/service/ses/#New
|
||||
//
|
||||
// Once the client is created you can make an API request to the service.
|
||||
// Each API method takes a input parameter, and returns the service response
|
||||
// and an error.
|
||||
//
|
||||
// The API method will document which error codes the service can be returned
|
||||
// by the operation if the service models the API operation's errors. These
|
||||
// errors will also be available as const strings prefixed with "ErrCode".
|
||||
//
|
||||
// result, err := svc.CloneReceiptRuleSet(params)
|
||||
// if err != nil {
|
||||
// // Cast err to awserr.Error to handle specific error codes.
|
||||
// aerr, ok := err.(awserr.Error)
|
||||
// if ok && aerr.Code() == <error code to check for> {
|
||||
// // Specific error code handling
|
||||
// }
|
||||
// return err
|
||||
// }
|
||||
//
|
||||
// fmt.Println("CloneReceiptRuleSet result:")
|
||||
// fmt.Println(result)
|
||||
//
|
||||
// Using the Client with Context
|
||||
//
|
||||
// The service's client also provides methods to make API requests with a Context
|
||||
// value. This allows you to control the timeout, and cancellation of pending
|
||||
// requests. These methods also take request Option as variadic parameter to apply
|
||||
// additional configuration to the API request.
|
||||
//
|
||||
// ctx := context.Background()
|
||||
//
|
||||
// result, err := svc.CloneReceiptRuleSetWithContext(ctx, params)
|
||||
//
|
||||
// See the request package documentation for more information on using Context pattern
|
||||
// with the SDK.
|
||||
// https://docs.aws.amazon.com/sdk-for-go/api/aws/request/
|
||||
package ses
|
||||
|
||||
+31
@@ -88,6 +88,13 @@ const (
|
||||
// Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email-permissions.html).
|
||||
ErrCodeInvalidS3ConfigurationException = "InvalidS3Configuration"
|
||||
|
||||
// ErrCodeInvalidSNSDestinationException for service response error code
|
||||
// "InvalidSNSDestination".
|
||||
//
|
||||
// Indicates that the Amazon Simple Notification Service (Amazon SNS) destination
|
||||
// is invalid. See the error message for details.
|
||||
ErrCodeInvalidSNSDestinationException = "InvalidSNSDestination"
|
||||
|
||||
// ErrCodeInvalidSnsTopicException for service response error code
|
||||
// "InvalidSnsTopic".
|
||||
//
|
||||
@@ -96,6 +103,17 @@ const (
|
||||
// about giving permissions, see the Amazon SES Developer Guide (http://docs.aws.amazon.com/ses/latest/DeveloperGuide/receiving-email-permissions.html).
|
||||
ErrCodeInvalidSnsTopicException = "InvalidSnsTopic"
|
||||
|
||||
// ErrCodeInvalidTrackingOptionsException for service response error code
|
||||
// "InvalidTrackingOptions".
|
||||
//
|
||||
// Indicates that the custom domain to be used for open and click tracking redirects
|
||||
// is invalid. This error appears most often in the following situations:
|
||||
//
|
||||
// * When the tracking domain you specified is not verified in Amazon SES.
|
||||
//
|
||||
// * When the tracking domain you specified is not a valid domain or subdomain.
|
||||
ErrCodeInvalidTrackingOptionsException = "InvalidTrackingOptions"
|
||||
|
||||
// ErrCodeLimitExceededException for service response error code
|
||||
// "LimitExceeded".
|
||||
//
|
||||
@@ -130,4 +148,17 @@ const (
|
||||
//
|
||||
// Indicates that the provided receipt rule set does not exist.
|
||||
ErrCodeRuleSetDoesNotExistException = "RuleSetDoesNotExist"
|
||||
|
||||
// ErrCodeTrackingOptionsAlreadyExistsException for service response error code
|
||||
// "TrackingOptionsAlreadyExistsException".
|
||||
//
|
||||
// Indicates that the configuration set you specified already contains a TrackingOptions
|
||||
// object.
|
||||
ErrCodeTrackingOptionsAlreadyExistsException = "TrackingOptionsAlreadyExistsException"
|
||||
|
||||
// ErrCodeTrackingOptionsDoesNotExistException for service response error code
|
||||
// "TrackingOptionsDoesNotExistException".
|
||||
//
|
||||
// Indicates that the TrackingOptions object you specified does not exist.
|
||||
ErrCodeTrackingOptionsDoesNotExistException = "TrackingOptionsDoesNotExistException"
|
||||
)
|
||||
|
||||
+13
-1
@@ -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
|
||||
// // Amazon Simple Email Service.
|
||||
@@ -72,6 +72,10 @@ type SESAPI interface {
|
||||
CreateConfigurationSetEventDestinationWithContext(aws.Context, *ses.CreateConfigurationSetEventDestinationInput, ...request.Option) (*ses.CreateConfigurationSetEventDestinationOutput, error)
|
||||
CreateConfigurationSetEventDestinationRequest(*ses.CreateConfigurationSetEventDestinationInput) (*request.Request, *ses.CreateConfigurationSetEventDestinationOutput)
|
||||
|
||||
CreateConfigurationSetTrackingOptions(*ses.CreateConfigurationSetTrackingOptionsInput) (*ses.CreateConfigurationSetTrackingOptionsOutput, error)
|
||||
CreateConfigurationSetTrackingOptionsWithContext(aws.Context, *ses.CreateConfigurationSetTrackingOptionsInput, ...request.Option) (*ses.CreateConfigurationSetTrackingOptionsOutput, error)
|
||||
CreateConfigurationSetTrackingOptionsRequest(*ses.CreateConfigurationSetTrackingOptionsInput) (*request.Request, *ses.CreateConfigurationSetTrackingOptionsOutput)
|
||||
|
||||
CreateReceiptFilter(*ses.CreateReceiptFilterInput) (*ses.CreateReceiptFilterOutput, error)
|
||||
CreateReceiptFilterWithContext(aws.Context, *ses.CreateReceiptFilterInput, ...request.Option) (*ses.CreateReceiptFilterOutput, error)
|
||||
CreateReceiptFilterRequest(*ses.CreateReceiptFilterInput) (*request.Request, *ses.CreateReceiptFilterOutput)
|
||||
@@ -92,6 +96,10 @@ type SESAPI interface {
|
||||
DeleteConfigurationSetEventDestinationWithContext(aws.Context, *ses.DeleteConfigurationSetEventDestinationInput, ...request.Option) (*ses.DeleteConfigurationSetEventDestinationOutput, error)
|
||||
DeleteConfigurationSetEventDestinationRequest(*ses.DeleteConfigurationSetEventDestinationInput) (*request.Request, *ses.DeleteConfigurationSetEventDestinationOutput)
|
||||
|
||||
DeleteConfigurationSetTrackingOptions(*ses.DeleteConfigurationSetTrackingOptionsInput) (*ses.DeleteConfigurationSetTrackingOptionsOutput, error)
|
||||
DeleteConfigurationSetTrackingOptionsWithContext(aws.Context, *ses.DeleteConfigurationSetTrackingOptionsInput, ...request.Option) (*ses.DeleteConfigurationSetTrackingOptionsOutput, error)
|
||||
DeleteConfigurationSetTrackingOptionsRequest(*ses.DeleteConfigurationSetTrackingOptionsInput) (*request.Request, *ses.DeleteConfigurationSetTrackingOptionsOutput)
|
||||
|
||||
DeleteIdentity(*ses.DeleteIdentityInput) (*ses.DeleteIdentityOutput, error)
|
||||
DeleteIdentityWithContext(aws.Context, *ses.DeleteIdentityInput, ...request.Option) (*ses.DeleteIdentityOutput, error)
|
||||
DeleteIdentityRequest(*ses.DeleteIdentityInput) (*request.Request, *ses.DeleteIdentityOutput)
|
||||
@@ -239,6 +247,10 @@ type SESAPI interface {
|
||||
UpdateConfigurationSetEventDestinationWithContext(aws.Context, *ses.UpdateConfigurationSetEventDestinationInput, ...request.Option) (*ses.UpdateConfigurationSetEventDestinationOutput, error)
|
||||
UpdateConfigurationSetEventDestinationRequest(*ses.UpdateConfigurationSetEventDestinationInput) (*request.Request, *ses.UpdateConfigurationSetEventDestinationOutput)
|
||||
|
||||
UpdateConfigurationSetTrackingOptions(*ses.UpdateConfigurationSetTrackingOptionsInput) (*ses.UpdateConfigurationSetTrackingOptionsOutput, error)
|
||||
UpdateConfigurationSetTrackingOptionsWithContext(aws.Context, *ses.UpdateConfigurationSetTrackingOptionsInput, ...request.Option) (*ses.UpdateConfigurationSetTrackingOptionsOutput, error)
|
||||
UpdateConfigurationSetTrackingOptionsRequest(*ses.UpdateConfigurationSetTrackingOptionsInput) (*request.Request, *ses.UpdateConfigurationSetTrackingOptionsOutput)
|
||||
|
||||
UpdateReceiptRule(*ses.UpdateReceiptRuleInput) (*ses.UpdateReceiptRuleOutput, error)
|
||||
UpdateReceiptRuleWithContext(aws.Context, *ses.UpdateReceiptRuleInput, ...request.Option) (*ses.UpdateReceiptRuleOutput, error)
|
||||
UpdateReceiptRuleRequest(*ses.UpdateReceiptRuleInput) (*request.Request, *ses.UpdateReceiptRuleOutput)
|
||||
|
||||
+1
-1
@@ -11,7 +11,7 @@ import (
|
||||
|
||||
// WaitUntilIdentityExists uses the Amazon SES API operation
|
||||
// GetIdentityVerificationAttributes to wait for a condition to be met before returning.
|
||||
// If the condition is not meet within the max attempt window an error will
|
||||
// If the condition is not met within the max attempt window, an error will
|
||||
// be returned.
|
||||
func (c *SES) WaitUntilIdentityExists(input *GetIdentityVerificationAttributesInput) error {
|
||||
return c.WaitUntilIdentityExistsWithContext(aws.BackgroundContext(), input)
|
||||
|
||||
Reference in New Issue
Block a user