vendor: update all dependencies to latest versions

This commit is contained in:
Nick Craig-Wood 2018-01-16 13:20:59 +00:00
parent 8e83fb6fb9
commit 7d3a17725d
4878 changed files with 1974229 additions and 201215 deletions

View file

@ -435,6 +435,32 @@ func ExampleSES_DescribeReceiptRuleSet_shared00() {
fmt.Println(result)
}
// GetAccountSendingEnabled
//
// The following example returns if sending status for an account is enabled. (true
// / false):
func ExampleSES_GetAccountSendingEnabled_shared00() {
svc := ses.New(session.New())
input := &ses.GetAccountSendingEnabledInput{}
result, err := svc.GetAccountSendingEnabled(input)
if err != nil {
if aerr, ok := err.(awserr.Error); ok {
switch aerr.Code() {
default:
fmt.Println(aerr.Error())
}
} else {
// Print the error, cast err to awserr.Error to get the Code and
// Message from an error.
fmt.Println(err.Error())
}
return
}
fmt.Println(result)
}
// GetIdentityDkimAttributes
//
// The following example retrieves the Amazon SES Easy DKIM attributes for a list of
@ -884,6 +910,10 @@ func ExampleSES_SendEmail_shared00() {
fmt.Println(ses.ErrCodeMailFromDomainNotVerifiedException, aerr.Error())
case ses.ErrCodeConfigurationSetDoesNotExistException:
fmt.Println(ses.ErrCodeConfigurationSetDoesNotExistException, aerr.Error())
case ses.ErrCodeConfigurationSetSendingPausedException:
fmt.Println(ses.ErrCodeConfigurationSetSendingPausedException, aerr.Error())
case ses.ErrCodeAccountSendingPausedException:
fmt.Println(ses.ErrCodeAccountSendingPausedException, aerr.Error())
default:
fmt.Println(aerr.Error())
}
@ -923,6 +953,10 @@ func ExampleSES_SendRawEmail_shared00() {
fmt.Println(ses.ErrCodeMailFromDomainNotVerifiedException, aerr.Error())
case ses.ErrCodeConfigurationSetDoesNotExistException:
fmt.Println(ses.ErrCodeConfigurationSetDoesNotExistException, aerr.Error())
case ses.ErrCodeConfigurationSetSendingPausedException:
fmt.Println(ses.ErrCodeConfigurationSetSendingPausedException, aerr.Error())
case ses.ErrCodeAccountSendingPausedException:
fmt.Println(ses.ErrCodeAccountSendingPausedException, aerr.Error())
default:
fmt.Println(aerr.Error())
}
@ -1148,6 +1182,93 @@ func ExampleSES_SetReceiptRulePosition_shared00() {
fmt.Println(result)
}
// UpdateAccountSendingEnabled
//
// The following example updated the sending status for this account.
func ExampleSES_UpdateAccountSendingEnabled_shared00() {
svc := ses.New(session.New())
input := &ses.UpdateAccountSendingEnabledInput{
Enabled: aws.Bool(true),
}
result, err := svc.UpdateAccountSendingEnabled(input)
if err != nil {
if aerr, ok := err.(awserr.Error); ok {
switch aerr.Code() {
default:
fmt.Println(aerr.Error())
}
} else {
// Print the error, cast err to awserr.Error to get the Code and
// Message from an error.
fmt.Println(err.Error())
}
return
}
fmt.Println(result)
}
// UpdateConfigurationSetReputationMetricsEnabled
//
// Set the reputationMetricsEnabled flag for a specific configuration set.
func ExampleSES_UpdateConfigurationSetReputationMetricsEnabled_shared00() {
svc := ses.New(session.New())
input := &ses.UpdateConfigurationSetReputationMetricsEnabledInput{
ConfigurationSetName: aws.String("foo"),
Enabled: aws.Bool(true),
}
result, err := svc.UpdateConfigurationSetReputationMetricsEnabled(input)
if err != nil {
if aerr, ok := err.(awserr.Error); ok {
switch aerr.Code() {
case ses.ErrCodeConfigurationSetDoesNotExistException:
fmt.Println(ses.ErrCodeConfigurationSetDoesNotExistException, aerr.Error())
default:
fmt.Println(aerr.Error())
}
} else {
// Print the error, cast err to awserr.Error to get the Code and
// Message from an error.
fmt.Println(err.Error())
}
return
}
fmt.Println(result)
}
// UpdateConfigurationSetReputationMetricsEnabled
//
// Set the sending enabled flag for a specific configuration set.
func ExampleSES_UpdateConfigurationSetSendingEnabled_shared00() {
svc := ses.New(session.New())
input := &ses.UpdateConfigurationSetSendingEnabledInput{
ConfigurationSetName: aws.String("foo"),
Enabled: aws.Bool(true),
}
result, err := svc.UpdateConfigurationSetSendingEnabled(input)
if err != nil {
if aerr, ok := err.(awserr.Error); ok {
switch aerr.Code() {
case ses.ErrCodeConfigurationSetDoesNotExistException:
fmt.Println(ses.ErrCodeConfigurationSetDoesNotExistException, aerr.Error())
default:
fmt.Println(aerr.Error())
}
} else {
// Print the error, cast err to awserr.Error to get the Code and
// Message from an error.
fmt.Println(err.Error())
}
return
}
fmt.Println(result)
}
// UpdateReceiptRule
//
// The following example updates a receipt rule to use an Amazon S3 action: