Merge pull request #12290 from rifelpet/imds-ipv6

Enable IMDS IPv6 endpoint
This commit is contained in:
Kubernetes Prow Robot 2021-09-09 06:04:11 -07:00 committed by GitHub
commit 39eb930646
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
64 changed files with 4972 additions and 3450 deletions

View File

@ -205,6 +205,7 @@ func responseLaunchTemplateData(req *ec2.RequestLaunchTemplateData) *ec2.Respons
resp.MetadataOptions = &ec2.LaunchTemplateInstanceMetadataOptions{
HttpTokens: req.MetadataOptions.HttpTokens,
HttpPutResponseHopLimit: req.MetadataOptions.HttpPutResponseHopLimit,
HttpProtocolIpv6: req.MetadataOptions.HttpProtocolIpv6,
}
}
if req.Monitoring != nil {

2
go.mod
View File

@ -46,7 +46,7 @@ require (
github.com/aliyun/alibaba-cloud-sdk-go v1.61.1059
github.com/apparentlymart/go-cidr v1.1.0
github.com/aws/amazon-ec2-instance-selector/v2 v2.0.2
github.com/aws/aws-sdk-go v1.40.10
github.com/aws/aws-sdk-go v1.40.38
github.com/blang/semver/v4 v4.0.0
github.com/denverdino/aliyungo v0.0.0-20210425065611-55bee4942cba
github.com/digitalocean/godo v1.60.0

4
go.sum
View File

@ -161,8 +161,8 @@ github.com/aws/aws-sdk-go v1.27.0/go.mod h1:KmX6BPdI08NWTb3/sm4ZGu5ShLoqVDhKgpiN
github.com/aws/aws-sdk-go v1.31.12/go.mod h1:5zCpMtNQVjRREroY7sYe8lOMRSxkhG6MZveU8YkpAk0=
github.com/aws/aws-sdk-go v1.34.30/go.mod h1:H7NKnBqNVzoTJpGfLrQkkD+ytBA93eiDYi/+8rV9s48=
github.com/aws/aws-sdk-go v1.38.49/go.mod h1:hcU610XS61/+aQV88ixoOzUoG7v3b31pl2zKMmprdro=
github.com/aws/aws-sdk-go v1.40.10 h1:h+xUINuuH/9CwxE7O8mAuW7Aj9E5agfE9jQ3DrJsnA8=
github.com/aws/aws-sdk-go v1.40.10/go.mod h1:585smgzpB/KqRA+K3y/NL/oYRqQvpNJYvLm+LY1U59Q=
github.com/aws/aws-sdk-go v1.40.38 h1:kl3iIW0h/JEBFjSBcAxDsiRbKMPz4aI5FJIHMCAQ+J0=
github.com/aws/aws-sdk-go v1.40.38/go.mod h1:585smgzpB/KqRA+K3y/NL/oYRqQvpNJYvLm+LY1U59Q=
github.com/aws/aws-sdk-go-v2 v0.18.0/go.mod h1:JWVYvqSMppoMJC0x5wdwiImzgXTI9FuZwxzkQq9wy+g=
github.com/benbjohnson/clock v1.0.3/go.mod h1:bGMdMPoPVvcYyt1gHDf4J2KE153Yf9BuiUKYMaxlTDM=
github.com/benbjohnson/clock v1.1.0/go.mod h1:J11/hYXuz8f4ySSvYwY0FKfm+ezbsZBKZxNJlLklBHA=

View File

@ -179,6 +179,7 @@ func (b *AutoscalingGroupModelBuilder) buildLaunchTemplateTask(c *fi.ModelBuilde
CPUCredits: fi.String(fi.StringValue(ig.Spec.CPUCredits)),
HTTPPutResponseHopLimit: fi.Int64(1),
HTTPTokens: fi.String(ec2.LaunchTemplateHttpTokensStateOptional),
HTTPProtocolIPv6: fi.String(ec2.LaunchTemplateInstanceMetadataProtocolIpv6Disabled),
IAMInstanceProfile: link,
ImageID: fi.String(ig.Spec.Image),
InstanceInterruptionBehavior: ig.Spec.InstanceInterruptionBehavior,
@ -222,6 +223,7 @@ func (b *AutoscalingGroupModelBuilder) buildLaunchTemplateTask(c *fi.ModelBuilde
}
if clusterSubnet.IPv6CIDR != "" {
lt.IPv6AddressCount = fi.Int64(1)
lt.HTTPProtocolIPv6 = fi.String(ec2.LaunchTemplateInstanceMetadataProtocolIpv6Enabled)
}
}
}

View File

@ -235,8 +235,8 @@ github.com/aws/aws-sdk-go v1.31.6/go.mod h1:5zCpMtNQVjRREroY7sYe8lOMRSxkhG6MZveU
github.com/aws/aws-sdk-go v1.31.12/go.mod h1:5zCpMtNQVjRREroY7sYe8lOMRSxkhG6MZveU8YkpAk0=
github.com/aws/aws-sdk-go v1.34.30/go.mod h1:H7NKnBqNVzoTJpGfLrQkkD+ytBA93eiDYi/+8rV9s48=
github.com/aws/aws-sdk-go v1.35.24/go.mod h1:tlPOdRjfxPBpNIwqDj61rmsnA85v9jc0Ps9+muhnW+k=
github.com/aws/aws-sdk-go v1.40.10 h1:h+xUINuuH/9CwxE7O8mAuW7Aj9E5agfE9jQ3DrJsnA8=
github.com/aws/aws-sdk-go v1.40.10/go.mod h1:585smgzpB/KqRA+K3y/NL/oYRqQvpNJYvLm+LY1U59Q=
github.com/aws/aws-sdk-go v1.40.38 h1:kl3iIW0h/JEBFjSBcAxDsiRbKMPz4aI5FJIHMCAQ+J0=
github.com/aws/aws-sdk-go v1.40.38/go.mod h1:585smgzpB/KqRA+K3y/NL/oYRqQvpNJYvLm+LY1U59Q=
github.com/aws/aws-sdk-go-v2 v0.18.0/go.mod h1:JWVYvqSMppoMJC0x5wdwiImzgXTI9FuZwxzkQq9wy+g=
github.com/bazelbuild/buildtools v0.0.0-20190917191645-69366ca98f89/go.mod h1:5JP0TXzWDHXv8qvxRC4InIazwdyDseBDbzESUMKk1yU=
github.com/bazelbuild/rules_go v0.22.1/go.mod h1:MC23Dc/wkXEyk3Wpq6lCqz0ZAYOZDw2DR5y3N1q2i7M=

View File

@ -45,6 +45,8 @@ type LaunchTemplate struct {
HTTPPutResponseHopLimit *int64
// HTTPTokens is the state of token usage for your instance metadata requests.
HTTPTokens *string
// HTTPProtocolIPv6 enables the IPv6 instance metadata endpoint
HTTPProtocolIPv6 *string
// IAMInstanceProfile is the IAM profile to assign to the nodes
IAMInstanceProfile *IAMInstanceProfile
// ImageID is the AMI to use for the instances

View File

@ -45,6 +45,7 @@ func (t *LaunchTemplate) RenderAWS(c *awsup.AWSAPITarget, a, e, changes *LaunchT
MetadataOptions: &ec2.LaunchTemplateInstanceMetadataOptionsRequest{
HttpPutResponseHopLimit: t.HTTPPutResponseHopLimit,
HttpTokens: t.HTTPTokens,
HttpProtocolIpv6: t.HTTPProtocolIPv6,
},
NetworkInterfaces: []*ec2.LaunchTemplateInstanceNetworkInterfaceSpecificationRequest{
{
@ -301,9 +302,10 @@ func (t *LaunchTemplate) Find(c *fi.Context) (*LaunchTemplate, error) {
}
// @step: add instance metadata options
if lt.LaunchTemplateData.MetadataOptions != nil {
actual.HTTPPutResponseHopLimit = lt.LaunchTemplateData.MetadataOptions.HttpPutResponseHopLimit
actual.HTTPTokens = lt.LaunchTemplateData.MetadataOptions.HttpTokens
if options := lt.LaunchTemplateData.MetadataOptions; options != nil {
actual.HTTPPutResponseHopLimit = options.HttpPutResponseHopLimit
actual.HTTPTokens = options.HttpTokens
actual.HTTPProtocolIPv6 = options.HttpProtocolIpv6
}
// @step: to avoid spurious changes on ImageId

View File

@ -50,9 +50,19 @@ func prettify(v reflect.Value, indent int, buf *bytes.Buffer) {
for i, n := range names {
val := v.FieldByName(n)
ft, ok := v.Type().FieldByName(n)
if !ok {
panic(fmt.Sprintf("expected to find field %v on type %v, but was not found", n, v.Type()))
}
buf.WriteString(strings.Repeat(" ", indent+2))
buf.WriteString(n + ": ")
prettify(val, indent+2, buf)
if tag := ft.Tag.Get("sensitive"); tag == "true" {
buf.WriteString("<sensitive>")
} else {
prettify(val, indent+2, buf)
}
if i < len(names)-1 {
buf.WriteString(",\n")

View File

@ -8,6 +8,8 @@ import (
)
// StringValue returns the string representation of a value.
//
// Deprecated: Use Prettify instead.
func StringValue(i interface{}) string {
var buf bytes.Buffer
stringValue(reflect.ValueOf(i), 0, &buf)

View File

@ -1,3 +1,4 @@
//go:build !go1.9
// +build !go1.9
package aws

View File

@ -1,3 +1,4 @@
//go:build go1.9
// +build go1.9
package aws

View File

@ -1,3 +1,4 @@
//go:build !go1.7
// +build !go1.7
package aws

View File

@ -1,3 +1,4 @@
//go:build go1.7
// +build go1.7
package aws

View File

@ -1,3 +1,4 @@
//go:build !go1.7
// +build !go1.7
package credentials

View File

@ -1,3 +1,4 @@
//go:build go1.7
// +build go1.7
package credentials

View File

@ -1,3 +1,4 @@
//go:build !go1.9
// +build !go1.9
package credentials

View File

@ -1,3 +1,4 @@
//go:build go1.9
// +build go1.9
package credentials

View File

@ -1,3 +1,4 @@
//go:build !windows
// +build !windows
package ssocreds

View File

@ -355,16 +355,46 @@ var awsPartition = partition{
Endpoints: endpoints{
"ap-northeast-1": endpoint{},
"ap-northeast-2": endpoint{},
"ap-south-1": endpoint{},
"ap-southeast-1": endpoint{},
"ap-southeast-2": endpoint{},
"ca-central-1": endpoint{},
"eu-central-1": endpoint{},
"eu-north-1": endpoint{},
"eu-west-1": endpoint{},
"eu-west-2": endpoint{},
"eu-west-3": endpoint{},
"sa-east-1": endpoint{},
"us-east-1": endpoint{},
"us-east-2": endpoint{},
"us-west-2": endpoint{},
},
},
"amplify": service{
Endpoints: endpoints{
"ap-east-1": endpoint{},
"ap-northeast-1": endpoint{},
"ap-northeast-2": endpoint{},
"ap-south-1": endpoint{},
"ap-southeast-1": endpoint{},
"ap-southeast-2": endpoint{},
"ca-central-1": endpoint{},
"eu-central-1": endpoint{},
"eu-north-1": endpoint{},
"eu-south-1": endpoint{},
"eu-west-1": endpoint{},
"eu-west-2": endpoint{},
"eu-west-3": endpoint{},
"me-south-1": endpoint{},
"sa-east-1": endpoint{},
"us-east-1": endpoint{},
"us-east-2": endpoint{},
"us-west-1": endpoint{},
"us-west-2": endpoint{},
},
},
"amplifybackend": service{
Endpoints: endpoints{
@ -707,6 +737,7 @@ var awsPartition = partition{
"ap-east-1": endpoint{},
"ap-northeast-1": endpoint{},
"ap-northeast-2": endpoint{},
"ap-northeast-3": endpoint{},
"ap-south-1": endpoint{},
"ap-southeast-1": endpoint{},
"ap-southeast-2": endpoint{},
@ -923,6 +954,18 @@ var awsPartition = partition{
"us-west-2": endpoint{},
},
},
"aps": service{
Defaults: endpoint{
Protocols: []string{"https"},
},
Endpoints: endpoints{
"eu-central-1": endpoint{},
"eu-west-1": endpoint{},
"us-east-1": endpoint{},
"us-east-2": endpoint{},
"us-west-2": endpoint{},
},
},
"athena": service{
Endpoints: endpoints{
@ -930,6 +973,7 @@ var awsPartition = partition{
"ap-east-1": endpoint{},
"ap-northeast-1": endpoint{},
"ap-northeast-2": endpoint{},
"ap-northeast-3": endpoint{},
"ap-south-1": endpoint{},
"ap-southeast-1": endpoint{},
"ap-southeast-2": endpoint{},
@ -1104,6 +1148,14 @@ var awsPartition = partition{
"us-west-2": endpoint{},
},
},
"braket": service{
Endpoints: endpoints{
"us-east-1": endpoint{},
"us-west-1": endpoint{},
"us-west-2": endpoint{},
},
},
"budgets": service{
PartitionEndpoint: "aws-global",
IsRegionalized: boxedFalse,
@ -1149,9 +1201,11 @@ var awsPartition = partition{
"cloud9": service{
Endpoints: endpoints{
"af-south-1": endpoint{},
"ap-east-1": endpoint{},
"ap-northeast-1": endpoint{},
"ap-northeast-2": endpoint{},
"ap-northeast-3": endpoint{},
"ap-south-1": endpoint{},
"ap-southeast-1": endpoint{},
"ap-southeast-2": endpoint{},
@ -1862,6 +1916,59 @@ var awsPartition = partition{
"us-east-1": endpoint{},
},
},
"data.jobs.iot": service{
Endpoints: endpoints{
"ap-east-1": endpoint{},
"ap-northeast-1": endpoint{},
"ap-northeast-2": endpoint{},
"ap-south-1": endpoint{},
"ap-southeast-1": endpoint{},
"ap-southeast-2": endpoint{},
"ca-central-1": endpoint{},
"eu-central-1": endpoint{},
"eu-north-1": endpoint{},
"eu-west-1": endpoint{},
"eu-west-2": endpoint{},
"eu-west-3": endpoint{},
"fips-ca-central-1": endpoint{
Hostname: "data.jobs.iot-fips.ca-central-1.amazonaws.com",
CredentialScope: credentialScope{
Region: "ca-central-1",
},
},
"fips-us-east-1": endpoint{
Hostname: "data.jobs.iot-fips.us-east-1.amazonaws.com",
CredentialScope: credentialScope{
Region: "us-east-1",
},
},
"fips-us-east-2": endpoint{
Hostname: "data.jobs.iot-fips.us-east-2.amazonaws.com",
CredentialScope: credentialScope{
Region: "us-east-2",
},
},
"fips-us-west-1": endpoint{
Hostname: "data.jobs.iot-fips.us-west-1.amazonaws.com",
CredentialScope: credentialScope{
Region: "us-west-1",
},
},
"fips-us-west-2": endpoint{
Hostname: "data.jobs.iot-fips.us-west-2.amazonaws.com",
CredentialScope: credentialScope{
Region: "us-west-2",
},
},
"me-south-1": endpoint{},
"sa-east-1": endpoint{},
"us-east-1": endpoint{},
"us-east-2": endpoint{},
"us-west-1": endpoint{},
"us-west-2": endpoint{},
},
},
"data.mediastore": service{
Endpoints: endpoints{
@ -1909,6 +2016,7 @@ var awsPartition = partition{
"ap-east-1": endpoint{},
"ap-northeast-1": endpoint{},
"ap-northeast-2": endpoint{},
"ap-northeast-3": endpoint{},
"ap-south-1": endpoint{},
"ap-southeast-1": endpoint{},
"ap-southeast-2": endpoint{},
@ -3295,6 +3403,17 @@ var awsPartition = partition{
"us-west-2": endpoint{},
},
},
"frauddetector": service{
Endpoints: endpoints{
"ap-southeast-1": endpoint{},
"ap-southeast-2": endpoint{},
"eu-west-1": endpoint{},
"us-east-1": endpoint{},
"us-east-2": endpoint{},
"us-west-2": endpoint{},
},
},
"fsx": service{
Endpoints: endpoints{
@ -3302,6 +3421,7 @@ var awsPartition = partition{
"ap-east-1": endpoint{},
"ap-northeast-1": endpoint{},
"ap-northeast-2": endpoint{},
"ap-northeast-3": endpoint{},
"ap-south-1": endpoint{},
"ap-southeast-1": endpoint{},
"ap-southeast-2": endpoint{},
@ -3634,6 +3754,18 @@ var awsPartition = partition{
},
},
},
"identity-chime": service{
Endpoints: endpoints{
"us-east-1": endpoint{},
"us-east-1-fips": endpoint{
Hostname: "identity-chime-fips.us-east-1.amazonaws.com",
CredentialScope: credentialScope{
Region: "us-east-1",
},
},
},
},
"identitystore": service{
Endpoints: endpoints{
@ -3727,18 +3859,49 @@ var awsPartition = partition{
"eu-west-1": endpoint{},
"eu-west-2": endpoint{},
"eu-west-3": endpoint{},
"me-south-1": endpoint{},
"sa-east-1": endpoint{},
"us-east-1": endpoint{},
"us-east-2": endpoint{},
"us-west-1": endpoint{},
"us-west-2": endpoint{},
"fips-ca-central-1": endpoint{
Hostname: "iot-fips.ca-central-1.amazonaws.com",
CredentialScope: credentialScope{
Service: "execute-api",
},
},
"fips-us-east-1": endpoint{
Hostname: "iot-fips.us-east-1.amazonaws.com",
CredentialScope: credentialScope{
Service: "execute-api",
},
},
"fips-us-east-2": endpoint{
Hostname: "iot-fips.us-east-2.amazonaws.com",
CredentialScope: credentialScope{
Service: "execute-api",
},
},
"fips-us-west-1": endpoint{
Hostname: "iot-fips.us-west-1.amazonaws.com",
CredentialScope: credentialScope{
Service: "execute-api",
},
},
"fips-us-west-2": endpoint{
Hostname: "iot-fips.us-west-2.amazonaws.com",
CredentialScope: credentialScope{
Service: "execute-api",
},
},
"me-south-1": endpoint{},
"sa-east-1": endpoint{},
"us-east-1": endpoint{},
"us-east-2": endpoint{},
"us-west-1": endpoint{},
"us-west-2": endpoint{},
},
},
"iotanalytics": service{
Endpoints: endpoints{
"ap-northeast-1": endpoint{},
"ap-south-1": endpoint{},
"ap-southeast-2": endpoint{},
"eu-central-1": endpoint{},
"eu-west-1": endpoint{},
@ -3842,12 +4005,42 @@ var awsPartition = partition{
"eu-west-1": endpoint{},
"eu-west-2": endpoint{},
"eu-west-3": endpoint{},
"me-south-1": endpoint{},
"sa-east-1": endpoint{},
"us-east-1": endpoint{},
"us-east-2": endpoint{},
"us-west-1": endpoint{},
"us-west-2": endpoint{},
"fips-ca-central-1": endpoint{
Hostname: "api.tunneling.iot-fips.ca-central-1.amazonaws.com",
CredentialScope: credentialScope{
Region: "ca-central-1",
},
},
"fips-us-east-1": endpoint{
Hostname: "api.tunneling.iot-fips.us-east-1.amazonaws.com",
CredentialScope: credentialScope{
Region: "us-east-1",
},
},
"fips-us-east-2": endpoint{
Hostname: "api.tunneling.iot-fips.us-east-2.amazonaws.com",
CredentialScope: credentialScope{
Region: "us-east-2",
},
},
"fips-us-west-1": endpoint{
Hostname: "api.tunneling.iot-fips.us-west-1.amazonaws.com",
CredentialScope: credentialScope{
Region: "us-west-1",
},
},
"fips-us-west-2": endpoint{
Hostname: "api.tunneling.iot-fips.us-west-2.amazonaws.com",
CredentialScope: credentialScope{
Region: "us-west-2",
},
},
"me-south-1": endpoint{},
"sa-east-1": endpoint{},
"us-east-1": endpoint{},
"us-east-2": endpoint{},
"us-west-1": endpoint{},
"us-west-2": endpoint{},
},
},
"iotthingsgraph": service{
@ -3900,6 +4093,14 @@ var awsPartition = partition{
},
},
},
"ivs": service{
Endpoints: endpoints{
"eu-west-1": endpoint{},
"us-east-1": endpoint{},
"us-west-2": endpoint{},
},
},
"kafka": service{
Endpoints: endpoints{
@ -4518,6 +4719,18 @@ var awsPartition = partition{
"us-west-2": endpoint{},
},
},
"messaging-chime": service{
Endpoints: endpoints{
"us-east-1": endpoint{},
"us-east-1-fips": endpoint{
Hostname: "messaging-chime-fips.us-east-1.amazonaws.com",
CredentialScope: credentialScope{
Region: "us-east-1",
},
},
},
},
"metering.marketplace": service{
Defaults: endpoint{
CredentialScope: credentialScope{
@ -5078,6 +5291,7 @@ var awsPartition = partition{
"polly": service{
Endpoints: endpoints{
"af-south-1": endpoint{},
"ap-east-1": endpoint{},
"ap-northeast-1": endpoint{},
"ap-northeast-2": endpoint{},
@ -5538,6 +5752,17 @@ var awsPartition = partition{
},
},
},
"route53-recovery-control-config": service{
Endpoints: endpoints{
"aws-global": endpoint{
Hostname: "route53-recovery-control-config.us-west-2.amazonaws.com",
CredentialScope: credentialScope{
Region: "us-west-2",
},
},
},
},
"route53domains": service{
Endpoints: endpoints{
@ -5608,6 +5833,7 @@ var awsPartition = partition{
"ap-east-1": endpoint{},
"ap-northeast-1": endpoint{},
"ap-northeast-2": endpoint{},
"ap-northeast-3": endpoint{},
"ap-south-1": endpoint{},
"ap-southeast-1": endpoint{},
"ap-southeast-2": endpoint{},
@ -6757,6 +6983,20 @@ var awsPartition = partition{
"us-west-2": endpoint{},
},
},
"ssm-incidents": service{
Endpoints: endpoints{
"ap-northeast-1": endpoint{},
"ap-southeast-1": endpoint{},
"ap-southeast-2": endpoint{},
"eu-central-1": endpoint{},
"eu-north-1": endpoint{},
"eu-west-1": endpoint{},
"us-east-1": endpoint{},
"us-east-2": endpoint{},
"us-west-2": endpoint{},
},
},
"states": service{
Endpoints: endpoints{
@ -7822,9 +8062,17 @@ var awscnPartition = partition{
"cn-northwest-1": endpoint{},
},
},
"data.jobs.iot": service{
Endpoints: endpoints{
"cn-north-1": endpoint{},
"cn-northwest-1": endpoint{},
},
},
"dax": service{
Endpoints: endpoints{
"cn-north-1": endpoint{},
"cn-northwest-1": endpoint{},
},
},
@ -7952,6 +8200,13 @@ var awscnPartition = partition{
"cn-northwest-1": endpoint{},
},
},
"emr-containers": service{
Endpoints: endpoints{
"cn-north-1": endpoint{},
"cn-northwest-1": endpoint{},
},
},
"es": service{
Endpoints: endpoints{
@ -7973,6 +8228,15 @@ var awscnPartition = partition{
"cn-northwest-1": endpoint{},
},
},
"fms": service{
Defaults: endpoint{
Protocols: []string{"https"},
},
Endpoints: endpoints{
"cn-north-1": endpoint{},
"cn-northwest-1": endpoint{},
},
},
"fsx": service{
Endpoints: endpoints{
@ -7983,7 +8247,8 @@ var awscnPartition = partition{
"gamelift": service{
Endpoints: endpoints{
"cn-north-1": endpoint{},
"cn-north-1": endpoint{},
"cn-northwest-1": endpoint{},
},
},
"glacier": service{
@ -9009,6 +9274,25 @@ var awsusgovPartition = partition{
"us-gov-west-1": endpoint{},
},
},
"data.jobs.iot": service{
Endpoints: endpoints{
"fips-us-gov-east-1": endpoint{
Hostname: "data.jobs.iot-fips.us-gov-east-1.amazonaws.com",
CredentialScope: credentialScope{
Region: "us-gov-east-1",
},
},
"fips-us-gov-west-1": endpoint{
Hostname: "data.jobs.iot-fips.us-gov-west-1.amazonaws.com",
CredentialScope: credentialScope{
Region: "us-gov-west-1",
},
},
"us-gov-east-1": endpoint{},
"us-gov-west-1": endpoint{},
},
},
"datasync": service{
Endpoints: endpoints{
@ -9516,6 +9800,18 @@ var awsusgovPartition = partition{
},
},
Endpoints: endpoints{
"fips-us-gov-east-1": endpoint{
Hostname: "iot-fips.us-gov-east-1.amazonaws.com",
CredentialScope: credentialScope{
Service: "execute-api",
},
},
"fips-us-gov-west-1": endpoint{
Hostname: "iot-fips.us-gov-west-1.amazonaws.com",
CredentialScope: credentialScope{
Service: "execute-api",
},
},
"us-gov-east-1": endpoint{},
"us-gov-west-1": endpoint{},
},
@ -9523,6 +9819,18 @@ var awsusgovPartition = partition{
"iotsecuredtunneling": service{
Endpoints: endpoints{
"fips-us-gov-east-1": endpoint{
Hostname: "api.tunneling.iot-fips.us-gov-east-1.amazonaws.com",
CredentialScope: credentialScope{
Region: "us-gov-east-1",
},
},
"fips-us-gov-west-1": endpoint{
Hostname: "api.tunneling.iot-fips.us-gov-west-1.amazonaws.com",
CredentialScope: credentialScope{
Region: "us-gov-west-1",
},
},
"us-gov-east-1": endpoint{},
"us-gov-west-1": endpoint{},
},
@ -10712,6 +11020,12 @@ var awsisoPartition = partition{
"us-iso-east-1": endpoint{},
},
},
"license-manager": service{
Endpoints: endpoints{
"us-iso-east-1": endpoint{},
},
},
"logs": service{
Endpoints: endpoints{
@ -10773,6 +11087,12 @@ var awsisoPartition = partition{
},
},
},
"route53resolver": service{
Endpoints: endpoints{
"us-iso-east-1": endpoint{},
},
},
"runtime.sagemaker": service{
Endpoints: endpoints{
@ -11220,6 +11540,12 @@ var awsisobPartition = partition{
},
"swf": service{
Endpoints: endpoints{
"us-isob-east-1": endpoint{},
},
},
"tagging": service{
Endpoints: endpoints{
"us-isob-east-1": endpoint{},
},

View File

@ -1,3 +1,4 @@
//go:build codegen
// +build codegen
package endpoints

View File

@ -1,3 +1,4 @@
//go:build !go1.8
// +build !go1.8
package request

View File

@ -1,3 +1,4 @@
//go:build go1.8
// +build go1.8
package request

View File

@ -1,3 +1,4 @@
//go:build go1.7
// +build go1.7
package request

View File

@ -1,3 +1,4 @@
//go:build !go1.7
// +build !go1.7
package request

View File

@ -1,3 +1,4 @@
//go:build go1.13
// +build go1.13
package session

View File

@ -1,3 +1,4 @@
//go:build !go1.13 && go1.7
// +build !go1.13,go1.7
package session

View File

@ -1,3 +1,4 @@
//go:build !go1.6 && go1.5
// +build !go1.6,go1.5
package session

View File

@ -1,3 +1,4 @@
//go:build !go1.7 && go1.6
// +build !go1.7,go1.6
package session

View File

@ -1,3 +1,4 @@
//go:build !go1.7
// +build !go1.7
package v4

View File

@ -1,3 +1,4 @@
//go:build go1.7
// +build go1.7
package v4

View File

@ -1,3 +1,4 @@
//go:build go1.5
// +build go1.5
package v4

View File

@ -1,3 +1,4 @@
//go:build go1.8
// +build go1.8
package aws

View File

@ -1,3 +1,4 @@
//go:build !go1.8
// +build !go1.8
package aws

View File

@ -5,4 +5,4 @@ package aws
const SDKName = "aws-sdk-go"
// SDKVersion is the version of this SDK
const SDKVersion = "1.40.10"
const SDKVersion = "1.40.38"

View File

@ -1,3 +1,4 @@
//go:build !go1.7
// +build !go1.7
package context

View File

@ -1,3 +1,4 @@
//go:build gofuzz
// +build gofuzz
package ini

View File

@ -1,3 +1,4 @@
//go:build !go1.7
// +build !go1.7
package sdkio

View File

@ -1,3 +1,4 @@
//go:build go1.7
// +build go1.7
package sdkio

View File

@ -1,3 +1,4 @@
//go:build go1.10
// +build go1.10
package sdkmath

View File

@ -1,3 +1,4 @@
//go:build !go1.10
// +build !go1.10
package sdkmath

View File

@ -1,3 +1,4 @@
//go:build go1.6
// +build go1.6
package sdkrand

View File

@ -1,3 +1,4 @@
//go:build !go1.6
// +build !go1.6
package sdkrand

View File

@ -29,7 +29,8 @@ const (
RFC822OutputTimeFormat = "Mon, 02 Jan 2006 15:04:05 GMT"
// RFC3339 a subset of the ISO8601 timestamp format. e.g 2014-04-29T18:30:38Z
ISO8601TimeFormat = "2006-01-02T15:04:05.999999999Z"
ISO8601TimeFormat = "2006-01-02T15:04:05.999999999Z"
iso8601TimeFormatNoZ = "2006-01-02T15:04:05.999999999"
// This format is used for output time with fractional second precision up to milliseconds
ISO8601OutputTimeFormat = "2006-01-02T15:04:05.999999999Z"
@ -82,6 +83,7 @@ func ParseTime(formatName, value string) (time.Time, error) {
case ISO8601TimeFormatName: // Smithy DateTime format
return tryParse(value,
ISO8601TimeFormat,
iso8601TimeFormatNoZ,
time.RFC3339Nano,
time.RFC3339,
)

View File

@ -5779,13 +5779,17 @@ func (c *AutoScaling) StartInstanceRefreshRequest(input *StartInstanceRefreshInp
// StartInstanceRefresh API operation for Auto Scaling.
//
// Starts a new instance refresh operation, which triggers a rolling replacement
// of previously launched instances in the Auto Scaling group with a new group
// of instances.
// Starts a new instance refresh operation. An instance refresh performs a rolling
// replacement of all or some instances in an Auto Scaling group. Each instance
// is terminated first and then replaced, which temporarily reduces the capacity
// available within your Auto Scaling group.
//
// This operation is part of the instance refresh feature (https://docs.aws.amazon.com/autoscaling/ec2/userguide/asg-instance-refresh.html)
// in Amazon EC2 Auto Scaling, which helps you update instances in your Auto
// Scaling group after you make configuration changes.
// Scaling group. This feature is helpful, for example, when you have a new
// AMI or a new user data script. You just need to create a new launch template
// that specifies the new AMI or user data script. Then start an instance refresh
// to immediately begin the process of updating instances in the group.
//
// If the call succeeds, it creates a new instance refresh request with a unique
// ID that you can use to track its progress. To query its status, call the
@ -10087,6 +10091,70 @@ func (s *DescribeWarmPoolOutput) SetWarmPoolConfiguration(v *WarmPoolConfigurati
return s
}
// Describes the desired configuration for an instance refresh.
//
// If you specify a desired configuration, you must specify either a LaunchTemplate
// or a MixedInstancesPolicy.
type DesiredConfiguration struct {
_ struct{} `type:"structure"`
// Describes the launch template and the version of the launch template that
// Amazon EC2 Auto Scaling uses to launch Amazon EC2 instances. For more information
// about launch templates, see Launch templates (https://docs.aws.amazon.com/autoscaling/ec2/userguide/LaunchTemplates.html)
// in the Amazon EC2 Auto Scaling User Guide.
LaunchTemplate *LaunchTemplateSpecification `type:"structure"`
// Describes a mixed instances policy. A mixed instances policy contains the
// instance types Amazon EC2 Auto Scaling can launch, and other information
// Amazon EC2 Auto Scaling can use to launch instances to help you optimize
// your costs. For more information, see Auto Scaling groups with multiple instance
// types and purchase options (https://docs.aws.amazon.com/autoscaling/ec2/userguide/asg-purchase-options.html)
// in the Amazon EC2 Auto Scaling User Guide.
MixedInstancesPolicy *MixedInstancesPolicy `type:"structure"`
}
// String returns the string representation
func (s DesiredConfiguration) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DesiredConfiguration) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *DesiredConfiguration) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "DesiredConfiguration"}
if s.LaunchTemplate != nil {
if err := s.LaunchTemplate.Validate(); err != nil {
invalidParams.AddNested("LaunchTemplate", err.(request.ErrInvalidParams))
}
}
if s.MixedInstancesPolicy != nil {
if err := s.MixedInstancesPolicy.Validate(); err != nil {
invalidParams.AddNested("MixedInstancesPolicy", err.(request.ErrInvalidParams))
}
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetLaunchTemplate sets the LaunchTemplate field's value.
func (s *DesiredConfiguration) SetLaunchTemplate(v *LaunchTemplateSpecification) *DesiredConfiguration {
s.LaunchTemplate = v
return s
}
// SetMixedInstancesPolicy sets the MixedInstancesPolicy field's value.
func (s *DesiredConfiguration) SetMixedInstancesPolicy(v *MixedInstancesPolicy) *DesiredConfiguration {
s.MixedInstancesPolicy = v
return s
}
type DetachInstancesInput struct {
_ struct{} `type:"structure"`
@ -11951,6 +12019,9 @@ type InstanceRefresh struct {
// The name of the Auto Scaling group.
AutoScalingGroupName *string `min:"1" type:"string"`
// Describes the specific update you want to deploy.
DesiredConfiguration *DesiredConfiguration `type:"structure"`
// The date and time at which the instance refresh ended.
EndTime *time.Time `type:"timestamp"`
@ -11968,6 +12039,9 @@ type InstanceRefresh struct {
// is added to the percentage complete.
PercentageComplete *int64 `type:"integer"`
// Describes the preferences for an instance refresh.
Preferences *RefreshPreferences `type:"structure"`
// Additional progress details for an Auto Scaling group that has a warm pool.
ProgressDetails *InstanceRefreshProgressDetails `type:"structure"`
@ -12012,6 +12086,12 @@ func (s *InstanceRefresh) SetAutoScalingGroupName(v string) *InstanceRefresh {
return s
}
// SetDesiredConfiguration sets the DesiredConfiguration field's value.
func (s *InstanceRefresh) SetDesiredConfiguration(v *DesiredConfiguration) *InstanceRefresh {
s.DesiredConfiguration = v
return s
}
// SetEndTime sets the EndTime field's value.
func (s *InstanceRefresh) SetEndTime(v time.Time) *InstanceRefresh {
s.EndTime = &v
@ -12036,6 +12116,12 @@ func (s *InstanceRefresh) SetPercentageComplete(v int64) *InstanceRefresh {
return s
}
// SetPreferences sets the Preferences field's value.
func (s *InstanceRefresh) SetPreferences(v *RefreshPreferences) *InstanceRefresh {
s.Preferences = v
return s
}
// SetProgressDetails sets the ProgressDetails field's value.
func (s *InstanceRefresh) SetProgressDetails(v *InstanceRefreshProgressDetails) *InstanceRefresh {
s.ProgressDetails = v
@ -12180,13 +12266,14 @@ func (s *InstanceRefreshWarmPoolProgress) SetPercentageComplete(v int64) *Instan
// the Auto Scaling group allocates instance types to fulfill On-Demand and
// Spot capacities.
//
// When you update SpotAllocationStrategy, SpotInstancePools, or SpotMaxPrice,
// this update action does not deploy any changes across the running Amazon
// EC2 instances in the group. Your existing Spot Instances continue to run
// as long as the maximum price for those instances is higher than the current
// Spot price. When scale out occurs, Amazon EC2 Auto Scaling launches instances
// based on the new settings. When scale in occurs, Amazon EC2 Auto Scaling
// terminates instances according to the group's termination policies.
// When you modify SpotAllocationStrategy, SpotInstancePools, or SpotMaxPrice
// in the UpdateAutoScalingGroup API call, this update action does not deploy
// any changes across the running Amazon EC2 instances in the group. Your existing
// Spot Instances continue to run as long as the maximum price for those instances
// is higher than the current Spot price. When scale out occurs, Amazon EC2
// Auto Scaling launches instances based on the new settings. When scale in
// occurs, Amazon EC2 Auto Scaling terminates instances according to the group's
// termination policies.
type InstancesDistribution struct {
_ struct{} `type:"structure"`
@ -12551,10 +12638,11 @@ func (s *LaunchConfiguration) SetUserData(v string) *LaunchConfiguration {
//
// You specify these properties as part of a mixed instances policy.
//
// When you update the launch template or overrides, existing Amazon EC2 instances
// continue to run. When scale out occurs, Amazon EC2 Auto Scaling launches
// instances to match the new settings. When scale in occurs, Amazon EC2 Auto
// Scaling terminates instances according to the group's termination policies.
// When you update the launch template or overrides in the UpdateAutoScalingGroup
// API call, existing Amazon EC2 instances continue to run. When scale out occurs,
// Amazon EC2 Auto Scaling launches instances to match the new settings. When
// scale in occurs, Amazon EC2 Auto Scaling terminates instances according to
// the group's termination policies.
type LaunchTemplate struct {
_ struct{} `type:"structure"`
@ -12701,12 +12789,9 @@ func (s *LaunchTemplateOverrides) SetWeightedCapacity(v string) *LaunchTemplateO
return s
}
// Describes the Amazon EC2 launch template and the launch template version
// that can be used by an Auto Scaling group to configure Amazon EC2 instances.
//
// The launch template that is specified must be configured for use with an
// Auto Scaling group. For more information, see Creating a launch template
// for an Auto Scaling group (https://docs.aws.amazon.com/autoscaling/ec2/userguide/create-launch-template.html)
// Describes the launch template and the version of the launch template that
// Amazon EC2 Auto Scaling uses to launch Amazon EC2 instances. For more information
// about launch templates, see Launch templates (https://docs.aws.amazon.com/autoscaling/ec2/userguide/LaunchTemplates.html)
// in the Amazon EC2 Auto Scaling User Guide.
type LaunchTemplateSpecification struct {
_ struct{} `type:"structure"`
@ -13337,17 +13422,12 @@ func (s *MetricGranularityType) SetGranularity(v string) *MetricGranularityType
return s
}
// Describes a mixed instances policy for an Auto Scaling group. With mixed
// instances, your Auto Scaling group can provision a combination of On-Demand
// Instances and Spot Instances across multiple instance types. For more information,
// see Auto Scaling groups with multiple instance types and purchase options
// (https://docs.aws.amazon.com/autoscaling/ec2/userguide/asg-purchase-options.html)
// Describes a mixed instances policy. A mixed instances policy contains the
// instance types Amazon EC2 Auto Scaling can launch, and other information
// Amazon EC2 Auto Scaling can use to launch instances to help you optimize
// your costs. For more information, see Auto Scaling groups with multiple instance
// types and purchase options (https://docs.aws.amazon.com/autoscaling/ec2/userguide/asg-purchase-options.html)
// in the Amazon EC2 Auto Scaling User Guide.
//
// You can create a mixed instances policy for a new Auto Scaling group, or
// you can create it for an existing group by updating the group to specify
// MixedInstancesPolicy as the top-level property instead of a launch configuration
// or launch template.
type MixedInstancesPolicy struct {
_ struct{} `type:"structure"`
@ -13355,8 +13435,8 @@ type MixedInstancesPolicy struct {
// property in InstancesDistribution uses a default value.
InstancesDistribution *InstancesDistribution `type:"structure"`
// Specifies the launch template to use and optionally the instance types (overrides)
// that are used to provision EC2 instances to fulfill On-Demand and Spot capacities.
// Specifies the launch template to use and the instance types (overrides) that
// are used to provision EC2 instances to fulfill On-Demand and Spot capacities.
// Required when creating a mixed instances policy.
LaunchTemplate *LaunchTemplate `type:"structure"`
}
@ -15002,10 +15082,7 @@ func (s RecordLifecycleActionHeartbeatOutput) GoString() string {
return s.String()
}
// Describes information used to start an instance refresh.
//
// All properties are optional. However, if you specify a value for CheckpointDelay,
// you must also provide a value for CheckpointPercentages.
// Describes the preferences for an instance refresh.
type RefreshPreferences struct {
_ struct{} `type:"structure"`
@ -15030,10 +15107,21 @@ type RefreshPreferences struct {
InstanceWarmup *int64 `type:"integer"`
// The amount of capacity in the Auto Scaling group that must remain healthy
// during an instance refresh to allow the operation to continue, as a percentage
// of the desired capacity of the Auto Scaling group (rounded up to the nearest
// integer). The default is 90.
// during an instance refresh to allow the operation to continue. The value
// is expressed as a percentage of the desired capacity of the Auto Scaling
// group (rounded up to the nearest integer). The default is 90.
//
// Setting the minimum healthy percentage to 100 percent limits the rate of
// replacement to one instance at a time. In contrast, setting it to 0 percent
// has the effect of replacing all instances at the same time.
MinHealthyPercentage *int64 `type:"integer"`
// A boolean value that indicates whether skip matching is enabled. If true,
// then Amazon EC2 Auto Scaling skips replacing instances that match the desired
// configuration. If no desired configuration is specified, then it skips replacing
// instances that have the same configuration that is already set on the group.
// The default is false.
SkipMatching *bool `type:"boolean"`
}
// String returns the string representation
@ -15070,6 +15158,12 @@ func (s *RefreshPreferences) SetMinHealthyPercentage(v int64) *RefreshPreference
return s
}
// SetSkipMatching sets the SkipMatching field's value.
func (s *RefreshPreferences) SetSkipMatching(v bool) *RefreshPreferences {
s.SkipMatching = &v
return s
}
type ResumeProcessesOutput struct {
_ struct{} `type:"structure"`
}
@ -15850,23 +15944,30 @@ type StartInstanceRefreshInput struct {
// AutoScalingGroupName is a required field
AutoScalingGroupName *string `min:"1" type:"string" required:"true"`
// Set of preferences associated with the instance refresh request.
// The desired configuration. For example, the desired configuration can specify
// a new launch template or a new version of the current launch template.
//
// If not provided, the default values are used. For MinHealthyPercentage, the
// default value is 90. For InstanceWarmup, the default is to use the value
// specified for the health check grace period for the Auto Scaling group.
// Once the instance refresh succeeds, Amazon EC2 Auto Scaling updates the settings
// of the Auto Scaling group to reflect the new desired configuration.
//
// For more information, see RefreshPreferences (https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API_RefreshPreferences.html)
// in the Amazon EC2 Auto Scaling API Reference.
// When you specify a new launch template or a new version of the current launch
// template for your desired configuration, consider enabling the SkipMatching
// property in preferences. If it's enabled, Amazon EC2 Auto Scaling skips replacing
// instances that already use the specified launch template and version. This
// can help you reduce the number of replacements that are required to apply
// updates.
DesiredConfiguration *DesiredConfiguration `type:"structure"`
// Set of preferences associated with the instance refresh request. If not provided,
// the default values are used.
Preferences *RefreshPreferences `type:"structure"`
// The strategy to use for the instance refresh. The only valid value is Rolling.
//
// A rolling update is an update that is applied to all instances in an Auto
// Scaling group until all instances have been updated. A rolling update can
// fail due to failed health checks or if instances are on standby or are protected
// from scale in. If the rolling update process fails, any instances that were
// already replaced are not rolled back to their previous configuration.
// A rolling update helps you update your instances gradually. A rolling update
// can fail due to failed health checks or if instances are on standby or are
// protected from scale in. If the rolling update process fails, any instances
// that are replaced are not rolled back to their previous configuration.
Strategy *string `type:"string" enum:"RefreshStrategy"`
}
@ -15889,6 +15990,11 @@ func (s *StartInstanceRefreshInput) Validate() error {
if s.AutoScalingGroupName != nil && len(*s.AutoScalingGroupName) < 1 {
invalidParams.Add(request.NewErrParamMinLen("AutoScalingGroupName", 1))
}
if s.DesiredConfiguration != nil {
if err := s.DesiredConfiguration.Validate(); err != nil {
invalidParams.AddNested("DesiredConfiguration", err.(request.ErrInvalidParams))
}
}
if invalidParams.Len() > 0 {
return invalidParams
@ -15902,6 +16008,12 @@ func (s *StartInstanceRefreshInput) SetAutoScalingGroupName(v string) *StartInst
return s
}
// SetDesiredConfiguration sets the DesiredConfiguration field's value.
func (s *StartInstanceRefreshInput) SetDesiredConfiguration(v *DesiredConfiguration) *StartInstanceRefreshInput {
s.DesiredConfiguration = v
return s
}
// SetPreferences sets the Preferences field's value.
func (s *StartInstanceRefreshInput) SetPreferences(v *RefreshPreferences) *StartInstanceRefreshInput {
s.Preferences = v

View File

@ -1879,7 +1879,7 @@ func (c *CloudFormation) DescribeStackInstanceRequest(input *DescribeStackInstan
// DescribeStackInstance API operation for AWS CloudFormation.
//
// Returns the stack instance that's associated with the specified stack set,
// account, and Region.
// Amazon Web Services account, and Region.
//
// For a list of stack instances that are associated with a specific stack set,
// use ListStackInstances.
@ -4006,7 +4006,8 @@ func (c *CloudFormation) ListStackInstancesRequest(input *ListStackInstancesInpu
//
// Returns summary information about stack instances that are associated with
// the specified stack set. You can filter for stack instances that are associated
// with a specific account name or Region, or that have a specific status.
// with a specific Amazon Web Services account name or Region, or that have
// a specific status.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
@ -4559,8 +4560,8 @@ func (c *CloudFormation) ListStackSetsRequest(input *ListStackSetsInput) (req *r
// user.
//
// * [Self-managed permissions] If you set the CallAs parameter to SELF while
// signed in to your account, ListStackSets returns all self-managed stack
// sets in your account.
// signed in to your Amazon Web Services account, ListStackSets returns all
// self-managed stack sets in your Amazon Web Services account.
//
// * [Service-managed permissions] If you set the CallAs parameter to SELF
// while signed in to the organization's management account, ListStackSets
@ -5421,7 +5422,7 @@ func (c *CloudFormation) RegisterPublisherRequest(input *RegisterPublisherInput)
//
// Registers your account as a publisher of public extensions in the CloudFormation
// registry. Public extensions are available for use by all CloudFormation users.
// This publisher ID applies to your account in all Regions.
// This publisher ID applies to your account in all Amazon Web Services Regions.
//
// For information on requirements for registering as a public extension publisher,
// see Registering your account to publish CloudFormation extensions (https://docs.aws.amazon.com/cloudformation-cli/latest/userguide/publish-extension.html#publish-extension-prereqs)
@ -5505,8 +5506,8 @@ func (c *CloudFormation) RegisterTypeRequest(input *RegisterTypeInput) (req *req
// RegisterType API operation for AWS CloudFormation.
//
// Registers an extension with the CloudFormation service. Registering an extension
// makes it available for use in CloudFormation templates in your account, and
// includes:
// makes it available for use in CloudFormation templates in your Amazon Web
// Services account, and includes:
//
// * Validating the extension schema
//
@ -5565,6 +5566,104 @@ func (c *CloudFormation) RegisterTypeWithContext(ctx aws.Context, input *Registe
return out, req.Send()
}
const opRollbackStack = "RollbackStack"
// RollbackStackRequest generates a "aws/request.Request" representing the
// client's request for the RollbackStack operation. The "output" return
// value will be populated with the request's response once the request completes
// successfully.
//
// 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.
//
// See RollbackStack for more information on using the RollbackStack
// 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.
//
//
// // Example sending a request using the RollbackStackRequest method.
// req, resp := client.RollbackStackRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/RollbackStack
func (c *CloudFormation) RollbackStackRequest(input *RollbackStackInput) (req *request.Request, output *RollbackStackOutput) {
op := &request.Operation{
Name: opRollbackStack,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &RollbackStackInput{}
}
output = &RollbackStackOutput{}
req = c.newRequest(op, input, output)
return
}
// RollbackStack API operation for AWS CloudFormation.
//
// When specifying RollbackStack, you preserve the state of previously provisioned
// resources when an operation fails. You can check the status of the stack
// through the DescribeStacks API.
//
// Rolls back the specified stack to the last known stable state from CREATE_FAILED
// or UPDATE_FAILED stack statuses.
//
// This operation will delete a stack if it doesn't contain a last known stable
// state. A last known stable state includes any status in a *_COMPLETE. This
// includes the following stack statuses.
//
// * CREATE_COMPLETE
//
// * UPDATE_COMPLETE
//
// * UPDATE_ROLLBACK_COMPLETE
//
// * IMPORT_COMPLETE
//
// * IMPORT_ROLLBACK_COMPLETE
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for AWS CloudFormation's
// API operation RollbackStack for usage and error information.
//
// Returned Error Codes:
// * ErrCodeTokenAlreadyExistsException "TokenAlreadyExistsException"
// A client request token already exists.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/RollbackStack
func (c *CloudFormation) RollbackStack(input *RollbackStackInput) (*RollbackStackOutput, error) {
req, out := c.RollbackStackRequest(input)
return out, req.Send()
}
// RollbackStackWithContext is the same as RollbackStack with the addition of
// the ability to pass a context and additional request options.
//
// See RollbackStack for details on how to use this API operation.
//
// The context must be non-nil and will be used for request cancellation. If
// the context is nil a panic will occur. In the future the SDK may create
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
// for more information on using Contexts.
func (c *CloudFormation) RollbackStackWithContext(ctx aws.Context, input *RollbackStackInput, opts ...request.Option) (*RollbackStackOutput, error) {
req, out := c.RollbackStackRequest(input)
req.SetContext(ctx)
req.ApplyOptions(opts...)
return out, req.Send()
}
const opSetStackPolicy = "SetStackPolicy"
// SetStackPolicyRequest generates a "aws/request.Request" representing the
@ -7420,14 +7519,14 @@ type CreateChangeSetInput struct {
// certain capabilities in order for CloudFormation to create the stack.
//
// * CAPABILITY_IAM and CAPABILITY_NAMED_IAM Some stack templates might include
// resources that can affect permissions in your account; for example, by
// creating new Identity and Access Management (IAM) users. For those stacks,
// you must explicitly acknowledge this by specifying one of these capabilities.
// The following IAM resources require you to specify either the CAPABILITY_IAM
// or CAPABILITY_NAMED_IAM capability. If you have IAM resources, you can
// specify either capability. If you have IAM resources with custom names,
// you must specify CAPABILITY_NAMED_IAM. If you don't specify either of
// these capabilities, CloudFormation returns an InsufficientCapabilities
// resources that can affect permissions in your Amazon Web Services account;
// for example, by creating new Identity and Access Management (IAM) users.
// For those stacks, you must explicitly acknowledge this by specifying one
// of these capabilities. The following IAM resources require you to specify
// either the CAPABILITY_IAM or CAPABILITY_NAMED_IAM capability. If you have
// IAM resources, you can specify either capability. If you have IAM resources
// with custom names, you must specify CAPABILITY_NAMED_IAM. If you don't
// specify either of these capabilities, CloudFormation returns an InsufficientCapabilities
// error. If your stack template contains these resources, we recommend that
// you review all permissions associated with them and edit their permissions
// if necessary. AWS::IAM::AccessKey (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-accesskey.html)
@ -7787,14 +7886,14 @@ type CreateStackInput struct {
// certain capabilities in order for CloudFormation to create the stack.
//
// * CAPABILITY_IAM and CAPABILITY_NAMED_IAM Some stack templates might include
// resources that can affect permissions in your account; for example, by
// creating new Identity and Access Management (IAM) users. For those stacks,
// you must explicitly acknowledge this by specifying one of these capabilities.
// The following IAM resources require you to specify either the CAPABILITY_IAM
// or CAPABILITY_NAMED_IAM capability. If you have IAM resources, you can
// specify either capability. If you have IAM resources with custom names,
// you must specify CAPABILITY_NAMED_IAM. If you don't specify either of
// these capabilities, CloudFormation returns an InsufficientCapabilities
// resources that can affect permissions in your Amazon Web Services account;
// for example, by creating new Identity and Access Management (IAM) users.
// For those stacks, you must explicitly acknowledge this by specifying one
// of these capabilities. The following IAM resources require you to specify
// either the CAPABILITY_IAM or CAPABILITY_NAMED_IAM capability. If you have
// IAM resources, you can specify either capability. If you have IAM resources
// with custom names, you must specify CAPABILITY_NAMED_IAM. If you don't
// specify either of these capabilities, CloudFormation returns an InsufficientCapabilities
// error. If your stack template contains these resources, we recommend that
// you review all permissions associated with them and edit their permissions
// if necessary. AWS::IAM::AccessKey (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-accesskey.html)
@ -7916,7 +8015,7 @@ type CreateStackInput struct {
// Region in which you are creating the stack.
//
// A stack name can contain only alphanumeric characters (case sensitive) and
// hyphens. It must start with an alphabetic character and cannot be longer
// hyphens. It must start with an alphabetical character and cannot be longer
// than 128 characters.
//
// StackName is a required field
@ -8127,8 +8226,8 @@ func (s *CreateStackInput) SetTimeoutInMinutes(v int64) *CreateStackInput {
type CreateStackInstancesInput struct {
_ struct{} `type:"structure"`
// [Self-managed permissions] The names of one or more accounts that you want
// to create stack instances in the specified Region(s) for.
// [Self-managed permissions] The names of one or more Amazon Web Services accounts
// that you want to create stack instances in the specified Region(s) for.
//
// You can specify Accounts or DeploymentTargets, but not both.
Accounts []*string `type:"list"`
@ -8143,9 +8242,9 @@ type CreateStackInstancesInput struct {
// * If you are signed in to the management account, specify SELF.
//
// * If you are signed in to a delegated administrator account, specify DELEGATED_ADMIN.
// Your account must be registered as a delegated administrator in the management
// account. For more information, see Register a delegated administrator
// (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-orgs-delegated-admin.html)
// Your Amazon Web Services account must be registered as a delegated administrator
// in the management account. For more information, see Register a delegated
// administrator (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-orgs-delegated-admin.html)
// in the CloudFormation User Guide.
CallAs *string `type:"string" enum:"CallAs"`
@ -8202,7 +8301,7 @@ type CreateStackInstancesInput struct {
ParameterOverrides []*Parameter `type:"list"`
// The names of one or more Regions where you want to create stack instances
// using the specified accounts.
// using the specified Amazon Web Services accounts.
//
// Regions is a required field
Regions []*string `type:"list" required:"true"`
@ -8378,8 +8477,9 @@ type CreateStackSetInput struct {
//
// * To create a stack set with service-managed permissions while signed
// in to a delegated administrator account, specify DELEGATED_ADMIN. Your
// account must be registered as a delegated admin in the management account.
// For more information, see Register a delegated administrator (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-orgs-delegated-admin.html)
// Amazon Web Services account must be registered as a delegated admin in
// the management account. For more information, see Register a delegated
// administrator (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-orgs-delegated-admin.html)
// in the CloudFormation User Guide.
//
// Stack sets with service-managed permissions are created in the management
@ -8391,17 +8491,17 @@ type CreateStackSetInput struct {
// set and related stack instances.
//
// * CAPABILITY_IAM and CAPABILITY_NAMED_IAM Some stack templates might include
// resources that can affect permissions in your account; for example, by
// creating new Identity and Access Management (IAM) users. For those stack
// sets, you must explicitly acknowledge this by specifying one of these
// capabilities. The following IAM resources require you to specify either
// the CAPABILITY_IAM or CAPABILITY_NAMED_IAM capability. If you have IAM
// resources, you can specify either capability. If you have IAM resources
// with custom names, you must specify CAPABILITY_NAMED_IAM. If you don't
// specify either of these capabilities, CloudFormation returns an InsufficientCapabilities
// error. If your stack template contains these resources, we recommend that
// you review all permissions associated with them and edit their permissions
// if necessary. AWS::IAM::AccessKey (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-accesskey.html)
// resources that can affect permissions in your Amazon Web Services account;
// for example, by creating new Identity and Access Management (IAM) users.
// For those stack sets, you must explicitly acknowledge this by specifying
// one of these capabilities. The following IAM resources require you to
// specify either the CAPABILITY_IAM or CAPABILITY_NAMED_IAM capability.
// If you have IAM resources, you can specify either capability. If you have
// IAM resources with custom names, you must specify CAPABILITY_NAMED_IAM.
// If you don't specify either of these capabilities, CloudFormation returns
// an InsufficientCapabilities error. If your stack template contains these
// resources, we recommend that you review all permissions associated with
// them and edit their permissions if necessary. AWS::IAM::AccessKey (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-accesskey.html)
// AWS::IAM::Group (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-group.html)
// AWS::IAM::InstanceProfile (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-instanceprofile.html)
// AWS::IAM::Policy (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-policy.html)
@ -8908,8 +9008,8 @@ func (s *DeleteStackInput) SetStackName(v string) *DeleteStackInput {
type DeleteStackInstancesInput struct {
_ struct{} `type:"structure"`
// [Self-managed permissions] The names of the accounts that you want to delete
// stack instances for.
// [Self-managed permissions] The names of the Amazon Web Services accounts
// that you want to delete stack instances for.
//
// You can specify Accounts or DeploymentTargets, but not both.
Accounts []*string `type:"list"`
@ -8924,9 +9024,9 @@ type DeleteStackInstancesInput struct {
// * If you are signed in to the management account, specify SELF.
//
// * If you are signed in to a delegated administrator account, specify DELEGATED_ADMIN.
// Your account must be registered as a delegated administrator in the management
// account. For more information, see Register a delegated administrator
// (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-orgs-delegated-admin.html)
// Your Amazon Web Services account must be registered as a delegated administrator
// in the management account. For more information, see Register a delegated
// administrator (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-orgs-delegated-admin.html)
// in the CloudFormation User Guide.
CallAs *string `type:"string" enum:"CallAs"`
@ -9113,9 +9213,9 @@ type DeleteStackSetInput struct {
// * If you are signed in to the management account, specify SELF.
//
// * If you are signed in to a delegated administrator account, specify DELEGATED_ADMIN.
// Your account must be registered as a delegated administrator in the management
// account. For more information, see Register a delegated administrator
// (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-orgs-delegated-admin.html)
// Your Amazon Web Services account must be registered as a delegated administrator
// in the management account. For more information, see Register a delegated
// administrator (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-orgs-delegated-admin.html)
// in the CloudFormation User Guide.
CallAs *string `type:"string" enum:"CallAs"`
@ -9185,8 +9285,8 @@ func (s DeleteStackSetOutput) GoString() string {
type DeploymentTargets struct {
_ struct{} `type:"structure"`
// The names of one or more accounts for which you want to deploy stack set
// updates.
// The names of one or more Amazon Web Services accounts for which you want
// to deploy stack set updates.
Accounts []*string `type:"list"`
// Returns the value of the AccountsUrl property.
@ -10025,13 +10125,14 @@ type DescribeStackInstanceInput struct {
// * If you are signed in to the management account, specify SELF.
//
// * If you are signed in to a delegated administrator account, specify DELEGATED_ADMIN.
// Your account must be registered as a delegated administrator in the management
// account. For more information, see Register a delegated administrator
// (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-orgs-delegated-admin.html)
// Your Amazon Web Services account must be registered as a delegated administrator
// in the management account. For more information, see Register a delegated
// administrator (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-orgs-delegated-admin.html)
// in the CloudFormation User Guide.
CallAs *string `type:"string" enum:"CallAs"`
// The ID of an account that's associated with this stack instance.
// The ID of an Amazon Web Services account that's associated with this stack
// instance.
//
// StackInstanceAccount is a required field
StackInstanceAccount *string `type:"string" required:"true"`
@ -10452,9 +10553,9 @@ type DescribeStackSetInput struct {
// * If you are signed in to the management account, specify SELF.
//
// * If you are signed in to a delegated administrator account, specify DELEGATED_ADMIN.
// Your account must be registered as a delegated administrator in the management
// account. For more information, see Register a delegated administrator
// (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-orgs-delegated-admin.html)
// Your Amazon Web Services account must be registered as a delegated administrator
// in the management account. For more information, see Register a delegated
// administrator (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-orgs-delegated-admin.html)
// in the CloudFormation User Guide.
CallAs *string `type:"string" enum:"CallAs"`
@ -10512,9 +10613,9 @@ type DescribeStackSetOperationInput struct {
// * If you are signed in to the management account, specify SELF.
//
// * If you are signed in to a delegated administrator account, specify DELEGATED_ADMIN.
// Your account must be registered as a delegated administrator in the management
// account. For more information, see Register a delegated administrator
// (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-orgs-delegated-admin.html)
// Your Amazon Web Services account must be registered as a delegated administrator
// in the management account. For more information, see Register a delegated
// administrator (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-orgs-delegated-admin.html)
// in the CloudFormation User Guide.
CallAs *string `type:"string" enum:"CallAs"`
@ -11475,9 +11576,9 @@ type DetectStackSetDriftInput struct {
// * If you are signed in to the management account, specify SELF.
//
// * If you are signed in to a delegated administrator account, specify DELEGATED_ADMIN.
// Your account must be registered as a delegated administrator in the management
// account. For more information, see Register a delegated administrator
// (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-orgs-delegated-admin.html)
// Your Amazon Web Services account must be registered as a delegated administrator
// in the management account. For more information, see Register a delegated
// administrator (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-orgs-delegated-admin.html)
// in the CloudFormation User Guide.
CallAs *string `type:"string" enum:"CallAs"`
@ -11690,6 +11791,12 @@ type ExecuteChangeSetInput struct {
// received them.
ClientRequestToken *string `min:"1" type:"string"`
// Preserves the state of previously provisioned resources when an operation
// fails.
//
// Default: True
DisableRollback *bool `type:"boolean"`
// If you specified the name of a change set, specify the stack name or ID (ARN)
// that is associated with the change set you want to execute.
StackName *string `min:"1" type:"string"`
@ -11739,6 +11846,12 @@ func (s *ExecuteChangeSetInput) SetClientRequestToken(v string) *ExecuteChangeSe
return s
}
// SetDisableRollback sets the DisableRollback field's value.
func (s *ExecuteChangeSetInput) SetDisableRollback(v bool) *ExecuteChangeSetInput {
s.DisableRollback = &v
return s
}
// SetStackName sets the StackName field's value.
func (s *ExecuteChangeSetInput) SetStackName(v string) *ExecuteChangeSetInput {
s.StackName = &v
@ -11996,9 +12109,9 @@ type GetTemplateSummaryInput struct {
// * If you are signed in to the management account, specify SELF.
//
// * If you are signed in to a delegated administrator account, specify DELEGATED_ADMIN.
// Your account must be registered as a delegated administrator in the management
// account. For more information, see Register a delegated administrator
// (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-orgs-delegated-admin.html)
// Your Amazon Web Services account must be registered as a delegated administrator
// in the management account. For more information, see Register a delegated
// administrator (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-orgs-delegated-admin.html)
// in the CloudFormation User Guide.
CallAs *string `type:"string" enum:"CallAs"`
@ -12586,9 +12699,9 @@ type ListStackInstancesInput struct {
// * If you are signed in to the management account, specify SELF.
//
// * If you are signed in to a delegated administrator account, specify DELEGATED_ADMIN.
// Your account must be registered as a delegated administrator in the management
// account. For more information, see Register a delegated administrator
// (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-orgs-delegated-admin.html)
// Your Amazon Web Services account must be registered as a delegated administrator
// in the management account. For more information, see Register a delegated
// administrator (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-orgs-delegated-admin.html)
// in the CloudFormation User Guide.
CallAs *string `type:"string" enum:"CallAs"`
@ -12608,7 +12721,8 @@ type ListStackInstancesInput struct {
// response object's NextToken parameter is set to null.
NextToken *string `min:"1" type:"string"`
// The name of the account that you want to list stack instances for.
// The name of the Amazon Web Services account that you want to list stack instances
// for.
StackInstanceAccount *string `type:"string"`
// The name of the Region where you want to list stack instances.
@ -12845,9 +12959,9 @@ type ListStackSetOperationResultsInput struct {
// * If you are signed in to the management account, specify SELF.
//
// * If you are signed in to a delegated administrator account, specify DELEGATED_ADMIN.
// Your account must be registered as a delegated administrator in the management
// account. For more information, see Register a delegated administrator
// (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-orgs-delegated-admin.html)
// Your Amazon Web Services account must be registered as a delegated administrator
// in the management account. For more information, see Register a delegated
// administrator (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-orgs-delegated-admin.html)
// in the CloudFormation User Guide.
CallAs *string `type:"string" enum:"CallAs"`
@ -12991,9 +13105,9 @@ type ListStackSetOperationsInput struct {
// * If you are signed in to the management account, specify SELF.
//
// * If you are signed in to a delegated administrator account, specify DELEGATED_ADMIN.
// Your account must be registered as a delegated administrator in the management
// account. For more information, see Register a delegated administrator
// (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-orgs-delegated-admin.html)
// Your Amazon Web Services account must be registered as a delegated administrator
// in the management account. For more information, see Register a delegated
// administrator (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-orgs-delegated-admin.html)
// in the CloudFormation User Guide.
CallAs *string `type:"string" enum:"CallAs"`
@ -13119,9 +13233,9 @@ type ListStackSetsInput struct {
// * If you are signed in to the management account, specify SELF.
//
// * If you are signed in to a delegated administrator account, specify DELEGATED_ADMIN.
// Your account must be registered as a delegated administrator in the management
// account. For more information, see Register a delegated administrator
// (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-orgs-delegated-admin.html)
// Your Amazon Web Services account must be registered as a delegated administrator
// in the management account. For more information, see Register a delegated
// administrator (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-orgs-delegated-admin.html)
// in the CloudFormation User Guide.
CallAs *string `type:"string" enum:"CallAs"`
@ -14057,7 +14171,7 @@ type ParameterDeclaration struct {
Description *string `min:"1" type:"string"`
// Flag that indicates whether the parameter value is shown as plain text in
// logs and in the Management Console.
// logs and in the Amazon Web Services Management Console.
NoEcho *bool `type:"boolean"`
// The criteria that CloudFormation uses to validate parameter values.
@ -15262,6 +15376,95 @@ func (s *RollbackConfiguration) SetRollbackTriggers(v []*RollbackTrigger) *Rollb
return s
}
type RollbackStackInput struct {
_ struct{} `type:"structure"`
// A unique identifier for this RollbackStack request.
ClientRequestToken *string `min:"1" type:"string"`
// The Amazon Resource Name (ARN) of an Identity and Access Management role
// that CloudFormation assumes to rollback the stack.
RoleARN *string `min:"20" type:"string"`
// The name that is associated with the stack.
//
// StackName is a required field
StackName *string `min:"1" type:"string" required:"true"`
}
// String returns the string representation
func (s RollbackStackInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s RollbackStackInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *RollbackStackInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "RollbackStackInput"}
if s.ClientRequestToken != nil && len(*s.ClientRequestToken) < 1 {
invalidParams.Add(request.NewErrParamMinLen("ClientRequestToken", 1))
}
if s.RoleARN != nil && len(*s.RoleARN) < 20 {
invalidParams.Add(request.NewErrParamMinLen("RoleARN", 20))
}
if s.StackName == nil {
invalidParams.Add(request.NewErrParamRequired("StackName"))
}
if s.StackName != nil && len(*s.StackName) < 1 {
invalidParams.Add(request.NewErrParamMinLen("StackName", 1))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetClientRequestToken sets the ClientRequestToken field's value.
func (s *RollbackStackInput) SetClientRequestToken(v string) *RollbackStackInput {
s.ClientRequestToken = &v
return s
}
// SetRoleARN sets the RoleARN field's value.
func (s *RollbackStackInput) SetRoleARN(v string) *RollbackStackInput {
s.RoleARN = &v
return s
}
// SetStackName sets the StackName field's value.
func (s *RollbackStackInput) SetStackName(v string) *RollbackStackInput {
s.StackName = &v
return s
}
type RollbackStackOutput struct {
_ struct{} `type:"structure"`
// Unique identifier of the stack.
StackId *string `type:"string"`
}
// String returns the string representation
func (s RollbackStackOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s RollbackStackOutput) GoString() string {
return s.String()
}
// SetStackId sets the StackId field's value.
func (s *RollbackStackOutput) SetStackId(v string) *RollbackStackOutput {
s.StackId = &v
return s
}
// A rollback trigger CloudFormation monitors during creation and updating of
// stacks. If any of the alarms you specify goes to ALARM state during the stack
// operation or within the specified monitoring period afterwards, CloudFormation
@ -16229,8 +16432,8 @@ func (s *StackEvent) SetTimestamp(v time.Time) *StackEvent {
type StackInstance struct {
_ struct{} `type:"structure"`
// [Self-managed permissions] The name of the account that the stack instance
// is associated with.
// [Self-managed permissions] The name of the Amazon Web Services account that
// the stack instance is associated with.
Account *string `type:"string"`
// Status of the stack instance's actual configuration compared to the expected
@ -16263,7 +16466,8 @@ type StackInstance struct {
// in this stack instance.
ParameterOverrides []*Parameter `type:"list"`
// The name of the Region that the stack instance is associated with.
// The name of the Amazon Web Services Region that the stack instance is associated
// with.
Region *string `type:"string"`
// The ID of the stack instance.
@ -16469,8 +16673,8 @@ func (s *StackInstanceFilter) SetValues(v string) *StackInstanceFilter {
type StackInstanceSummary struct {
_ struct{} `type:"structure"`
// [Self-managed permissions] The name of the account that the stack instance
// is associated with.
// [Self-managed permissions] The name of the Amazon Web Services account that
// the stack instance is associated with.
Account *string `type:"string"`
// Status of the stack instance's actual configuration compared to the expected
@ -16499,7 +16703,8 @@ type StackInstanceSummary struct {
// unit (OU) IDs that you specified for DeploymentTargets (https://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/API_DeploymentTargets.html).
OrganizationalUnitId *string `type:"string"`
// The name of the Region that the stack instance is associated with.
// The name of the Amazon Web Services Region that the stack instance is associated
// with.
Region *string `type:"string"`
// The ID of the stack instance.
@ -17241,9 +17446,10 @@ func (s *StackResourceSummary) SetResourceType(v string) *StackResourceSummary {
}
// A structure that contains information about a stack set. A stack set enables
// you to provision stacks into accounts and across Regions by using a single
// CloudFormation template. In the stack set, you specify the template to use,
// as well as any parameters and capabilities that the template requires.
// you to provision stacks into Amazon Web Services accounts and across Regions
// by using a single CloudFormation template. In the stack set, you specify
// the template to use, as well as any parameters and capabilities that the
// template requires.
type StackSet struct {
_ struct{} `type:"structure"`
@ -17262,10 +17468,10 @@ type StackSet struct {
AutoDeployment *AutoDeployment `type:"structure"`
// The capabilities that are allowed in the stack set. Some stack set templates
// might include resources that can affect permissions in your account—for
// example, by creating new Identity and Access Management (IAM) users. For
// more information, see Acknowledging IAM Resources in CloudFormation Templates.
// (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-iam-template.html#capabilities)
// might include resources that can affect permissions in your Amazon Web Services
// account—for example, by creating new Identity and Access Management (IAM)
// users. For more information, see Acknowledging IAM Resources in CloudFormation
// Templates. (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-iam-template.html#capabilities)
Capabilities []*string `type:"list"`
// A description of the stack set that you specify when the stack set is created
@ -17878,7 +18084,8 @@ func (s *StackSetOperationPreferences) SetRegionOrder(v []*string) *StackSetOper
type StackSetOperationResultSummary struct {
_ struct{} `type:"structure"`
// [Self-managed permissions] The name of the account for this operation result.
// [Self-managed permissions] The name of the Amazon Web Services account for
// this operation result.
Account *string `type:"string"`
// The results of the account gate function CloudFormation invokes, if present,
@ -17889,7 +18096,7 @@ type StackSetOperationResultSummary struct {
// unit (OU) IDs that you specified for DeploymentTargets (https://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/API_DeploymentTargets.html).
OrganizationalUnitId *string `type:"string"`
// The name of the Region for this operation result.
// The name of the Amazon Web Services Region for this operation result.
Region *string `type:"string"`
// The result status of the stack set operation for the given account in the
@ -18316,9 +18523,9 @@ type StopStackSetOperationInput struct {
// * If you are signed in to the management account, specify SELF.
//
// * If you are signed in to a delegated administrator account, specify DELEGATED_ADMIN.
// Your account must be registered as a delegated administrator in the management
// account. For more information, see Register a delegated administrator
// (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-orgs-delegated-admin.html)
// Your Amazon Web Services account must be registered as a delegated administrator
// in the management account. For more information, see Register a delegated
// administrator (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-orgs-delegated-admin.html)
// in the CloudFormation User Guide.
CallAs *string `type:"string" enum:"CallAs"`
@ -19187,14 +19394,14 @@ type UpdateStackInput struct {
// certain capabilities in order for CloudFormation to update the stack.
//
// * CAPABILITY_IAM and CAPABILITY_NAMED_IAM Some stack templates might include
// resources that can affect permissions in your account; for example, by
// creating new Identity and Access Management (IAM) users. For those stacks,
// you must explicitly acknowledge this by specifying one of these capabilities.
// The following IAM resources require you to specify either the CAPABILITY_IAM
// or CAPABILITY_NAMED_IAM capability. If you have IAM resources, you can
// specify either capability. If you have IAM resources with custom names,
// you must specify CAPABILITY_NAMED_IAM. If you don't specify either of
// these capabilities, CloudFormation returns an InsufficientCapabilities
// resources that can affect permissions in your Amazon Web Services account;
// for example, by creating new Identity and Access Management (IAM) users.
// For those stacks, you must explicitly acknowledge this by specifying one
// of these capabilities. The following IAM resources require you to specify
// either the CAPABILITY_IAM or CAPABILITY_NAMED_IAM capability. If you have
// IAM resources, you can specify either capability. If you have IAM resources
// with custom names, you must specify CAPABILITY_NAMED_IAM. If you don't
// specify either of these capabilities, CloudFormation returns an InsufficientCapabilities
// error. If your stack template contains these resources, we recommend that
// you review all permissions associated with them and edit their permissions
// if necessary. AWS::IAM::AccessKey (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-accesskey.html)
@ -19245,6 +19452,12 @@ type UpdateStackInput struct {
// stack event would be assigned the same token in the following format: Console-CreateStack-7f59c3cf-00d2-40c7-b2ff-e75db0987002.
ClientRequestToken *string `min:"1" type:"string"`
// Preserve the state of previously provisioned resources when an operation
// fails.
//
// Default: False
DisableRollback *bool `type:"boolean"`
// Amazon Simple Notification Service topic Amazon Resource Names (ARNs) that
// CloudFormation associates with the stack. Specify an empty list to remove
// all notification topics.
@ -19433,6 +19646,12 @@ func (s *UpdateStackInput) SetClientRequestToken(v string) *UpdateStackInput {
return s
}
// SetDisableRollback sets the DisableRollback field's value.
func (s *UpdateStackInput) SetDisableRollback(v bool) *UpdateStackInput {
s.DisableRollback = &v
return s
}
// SetNotificationARNs sets the NotificationARNs field's value.
func (s *UpdateStackInput) SetNotificationARNs(v []*string) *UpdateStackInput {
s.NotificationARNs = v
@ -19520,10 +19739,10 @@ func (s *UpdateStackInput) SetUsePreviousTemplate(v bool) *UpdateStackInput {
type UpdateStackInstancesInput struct {
_ struct{} `type:"structure"`
// [Self-managed permissions] The names of one or more accounts for which you
// want to update parameter values for stack instances. The overridden parameter
// values will be applied to all stack instances in the specified accounts and
// Regions.
// [Self-managed permissions] The names of one or more Amazon Web Services accounts
// for which you want to update parameter values for stack instances. The overridden
// parameter values will be applied to all stack instances in the specified
// accounts and Regions.
//
// You can specify Accounts or DeploymentTargets, but not both.
Accounts []*string `type:"list"`
@ -19538,9 +19757,9 @@ type UpdateStackInstancesInput struct {
// * If you are signed in to the management account, specify SELF.
//
// * If you are signed in to a delegated administrator account, specify DELEGATED_ADMIN.
// Your account must be registered as a delegated administrator in the management
// account. For more information, see Register a delegated administrator
// (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-orgs-delegated-admin.html)
// Your Amazon Web Services account must be registered as a delegated administrator
// in the management account. For more information, see Register a delegated
// administrator (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-orgs-delegated-admin.html)
// in the CloudFormation User Guide.
CallAs *string `type:"string" enum:"CallAs"`
@ -19799,9 +20018,9 @@ type UpdateStackSetInput struct {
// * If you are signed in to the management account, specify SELF.
//
// * If you are signed in to a delegated administrator account, specify DELEGATED_ADMIN.
// Your account must be registered as a delegated administrator in the management
// account. For more information, see Register a delegated administrator
// (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-orgs-delegated-admin.html)
// Your Amazon Web Services account must be registered as a delegated administrator
// in the management account. For more information, see Register a delegated
// administrator (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-orgs-delegated-admin.html)
// in the CloudFormation User Guide.
CallAs *string `type:"string" enum:"CallAs"`
@ -19810,17 +20029,17 @@ type UpdateStackSetInput struct {
// and its associated stack instances.
//
// * CAPABILITY_IAM and CAPABILITY_NAMED_IAM Some stack templates might include
// resources that can affect permissions in your account; for example, by
// creating new Identity and Access Management (IAM) users. For those stacks
// sets, you must explicitly acknowledge this by specifying one of these
// capabilities. The following IAM resources require you to specify either
// the CAPABILITY_IAM or CAPABILITY_NAMED_IAM capability. If you have IAM
// resources, you can specify either capability. If you have IAM resources
// with custom names, you must specify CAPABILITY_NAMED_IAM. If you don't
// specify either of these capabilities, CloudFormation returns an InsufficientCapabilities
// error. If your stack template contains these resources, we recommend that
// you review all permissions associated with them and edit their permissions
// if necessary. AWS::IAM::AccessKey (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-accesskey.html)
// resources that can affect permissions in your Amazon Web Services account;
// for example, by creating new Identity and Access Management (IAM) users.
// For those stacks sets, you must explicitly acknowledge this by specifying
// one of these capabilities. The following IAM resources require you to
// specify either the CAPABILITY_IAM or CAPABILITY_NAMED_IAM capability.
// If you have IAM resources, you can specify either capability. If you have
// IAM resources with custom names, you must specify CAPABILITY_NAMED_IAM.
// If you don't specify either of these capabilities, CloudFormation returns
// an InsufficientCapabilities error. If your stack template contains these
// resources, we recommend that you review all permissions associated with
// them and edit their permissions if necessary. AWS::IAM::AccessKey (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-accesskey.html)
// AWS::IAM::Group (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-group.html)
// AWS::IAM::InstanceProfile (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-instanceprofile.html)
// AWS::IAM::Policy (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iam-policy.html)
@ -21048,6 +21267,24 @@ const (
// ResourceStatusImportRollbackComplete is a ResourceStatus enum value
ResourceStatusImportRollbackComplete = "IMPORT_ROLLBACK_COMPLETE"
// ResourceStatusUpdateRollbackInProgress is a ResourceStatus enum value
ResourceStatusUpdateRollbackInProgress = "UPDATE_ROLLBACK_IN_PROGRESS"
// ResourceStatusUpdateRollbackComplete is a ResourceStatus enum value
ResourceStatusUpdateRollbackComplete = "UPDATE_ROLLBACK_COMPLETE"
// ResourceStatusUpdateRollbackFailed is a ResourceStatus enum value
ResourceStatusUpdateRollbackFailed = "UPDATE_ROLLBACK_FAILED"
// ResourceStatusRollbackInProgress is a ResourceStatus enum value
ResourceStatusRollbackInProgress = "ROLLBACK_IN_PROGRESS"
// ResourceStatusRollbackComplete is a ResourceStatus enum value
ResourceStatusRollbackComplete = "ROLLBACK_COMPLETE"
// ResourceStatusRollbackFailed is a ResourceStatus enum value
ResourceStatusRollbackFailed = "ROLLBACK_FAILED"
)
// ResourceStatus_Values returns all elements of the ResourceStatus enum
@ -21069,6 +21306,12 @@ func ResourceStatus_Values() []string {
ResourceStatusImportRollbackInProgress,
ResourceStatusImportRollbackFailed,
ResourceStatusImportRollbackComplete,
ResourceStatusUpdateRollbackInProgress,
ResourceStatusUpdateRollbackComplete,
ResourceStatusUpdateRollbackFailed,
ResourceStatusRollbackInProgress,
ResourceStatusRollbackComplete,
ResourceStatusRollbackFailed,
}
}
@ -21389,6 +21632,9 @@ const (
// StackStatusUpdateComplete is a StackStatus enum value
StackStatusUpdateComplete = "UPDATE_COMPLETE"
// StackStatusUpdateFailed is a StackStatus enum value
StackStatusUpdateFailed = "UPDATE_FAILED"
// StackStatusUpdateRollbackInProgress is a StackStatus enum value
StackStatusUpdateRollbackInProgress = "UPDATE_ROLLBACK_IN_PROGRESS"
@ -21435,6 +21681,7 @@ func StackStatus_Values() []string {
StackStatusUpdateInProgress,
StackStatusUpdateCompleteCleanupInProgress,
StackStatusUpdateComplete,
StackStatusUpdateFailed,
StackStatusUpdateRollbackInProgress,
StackStatusUpdateRollbackFailed,
StackStatusUpdateRollbackCompleteCleanupInProgress,

File diff suppressed because it is too large Load Diff

View File

@ -1406,6 +1406,9 @@ type EC2API interface {
DescribeTrunkInterfaceAssociationsWithContext(aws.Context, *ec2.DescribeTrunkInterfaceAssociationsInput, ...request.Option) (*ec2.DescribeTrunkInterfaceAssociationsOutput, error)
DescribeTrunkInterfaceAssociationsRequest(*ec2.DescribeTrunkInterfaceAssociationsInput) (*request.Request, *ec2.DescribeTrunkInterfaceAssociationsOutput)
DescribeTrunkInterfaceAssociationsPages(*ec2.DescribeTrunkInterfaceAssociationsInput, func(*ec2.DescribeTrunkInterfaceAssociationsOutput, bool) bool) error
DescribeTrunkInterfaceAssociationsPagesWithContext(aws.Context, *ec2.DescribeTrunkInterfaceAssociationsInput, func(*ec2.DescribeTrunkInterfaceAssociationsOutput, bool) bool, ...request.Option) error
DescribeVolumeAttribute(*ec2.DescribeVolumeAttributeInput) (*ec2.DescribeVolumeAttributeOutput, error)
DescribeVolumeAttributeWithContext(aws.Context, *ec2.DescribeVolumeAttributeInput, ...request.Option) (*ec2.DescribeVolumeAttributeOutput, error)
DescribeVolumeAttributeRequest(*ec2.DescribeVolumeAttributeInput) (*request.Request, *ec2.DescribeVolumeAttributeOutput)

View File

@ -6771,20 +6771,27 @@ type LoadBalancerAttribute struct {
// are in OpenSSL format. The possible values for the attribute are true
// and false. The default is false.
//
// * routing.http2.enabled - Indicates whether HTTP/2 is enabled. The value
// is true or false. The default is true. Elastic Load Balancing requires
// that message header names contain only alphanumeric characters and hyphens.
// * routing.http.xff_client_port.enabled - Indicates whether the X-Forwarded-For
// header should preserve the source port that the client used to connect
// to the load balancer. The possible values are true and false. The default
// is false.
//
// * routing.http2.enabled - Indicates whether HTTP/2 is enabled. The possible
// values are true and false. The default is true. Elastic Load Balancing
// requires that message header names contain only alphanumeric characters
// and hyphens.
//
// * waf.fail_open.enabled - Indicates whether to allow a WAF-enabled load
// balancer to route requests to targets if it is unable to forward the request
// to Amazon Web Services WAF. The value is true or false. The default is
// false.
// to Amazon Web Services WAF. The possible values are true and false. The
// default is false.
//
// The following attribute is supported by Network Load Balancers and Gateway
// Load Balancers:
//
// * load_balancing.cross_zone.enabled - Indicates whether cross-zone load
// balancing is enabled. The value is true or false. The default is false.
// balancing is enabled. The possible values are true and false. The default
// is false.
Key *string `type:"string"`
// The value of the attribute.

File diff suppressed because it is too large Load Diff

View File

@ -3,19 +3,18 @@
// Package eventbridge provides the client and types for making API
// requests to Amazon EventBridge.
//
// Amazon EventBridge helps you to respond to state changes in your AWS resources.
// When your resources change state, they automatically send events into an
// event stream. You can create rules that match selected events in the stream
// and route them to targets to take action. You can also use rules to take
// action on a predetermined schedule. For example, you can configure rules
// to:
// Amazon EventBridge helps you to respond to state changes in your Amazon Web
// Services resources. When your resources change state, they automatically
// send events to an event stream. You can create rules that match selected
// events in the stream and route them to targets to take action. You can also
// use rules to take action on a predetermined schedule. For example, you can
// configure rules to:
//
// * Automatically invoke an AWS Lambda function to update DNS entries when
// an event notifies you that Amazon EC2 instance enters the running state.
// * Automatically invoke an Lambda function to update DNS entries when an
// event notifies you that Amazon EC2 instance enters the running state.
//
// * Direct specific API records from AWS CloudTrail to an Amazon Kinesis
// data stream for detailed analysis of potential security or availability
// risks.
// * Direct specific API records from CloudTrail to an Amazon Kinesis data
// stream for detailed analysis of potential security or availability risks.
//
// * Periodically invoke a built-in target to create a snapshot of an Amazon
// EBS volume.

View File

@ -49,12 +49,12 @@ const (
// ErrCodeManagedRuleException for service response error code
// "ManagedRuleException".
//
// This rule was created by an AWS service on behalf of your account. It is
// managed by that service. If you see this error in response to DeleteRule
// or RemoveTargets, you can use the Force parameter in those calls to delete
// the rule or remove targets from the rule. You cannot modify these managed
// rules by using DisableRule, EnableRule, PutTargets, PutRule, TagResource,
// or UntagResource.
// This rule was created by an Amazon Web Services service on behalf of your
// account. It is managed by that service. If you see this error in response
// to DeleteRule or RemoveTargets, you can use the Force parameter in those
// calls to delete the rule or remove targets from the rule. You cannot modify
// these managed rules by using DisableRule, EnableRule, PutTargets, PutRule,
// TagResource, or UntagResource.
ErrCodeManagedRuleException = "ManagedRuleException"
// ErrCodeOperationDisabledException for service response error code

File diff suppressed because it is too large Load Diff

View File

@ -3,21 +3,26 @@
// Package kms provides the client and types for making API
// requests to AWS Key Management Service.
//
// AWS Key Management Service (AWS KMS) is an encryption and key management
// web service. This guide describes the AWS KMS operations that you can call
// programmatically. For general information about AWS KMS, see the AWS Key
// Management Service Developer Guide (https://docs.aws.amazon.com/kms/latest/developerguide/).
// Key Management Service (KMS) is an encryption and key management web service.
// This guide describes the KMS operations that you can call programmatically.
// For general information about KMS, see the Key Management Service Developer
// Guide (https://docs.aws.amazon.com/kms/latest/developerguide/).
//
// AWS provides SDKs that consist of libraries and sample code for various programming
// languages and platforms (Java, Ruby, .Net, macOS, Android, etc.). The SDKs
// provide a convenient way to create programmatic access to AWS KMS and other
// AWS services. For example, the SDKs take care of tasks such as signing requests
// (see below), managing errors, and retrying requests automatically. For more
// information about the AWS SDKs, including how to download and install them,
// see Tools for Amazon Web Services (http://aws.amazon.com/tools/).
// KMS is replacing the term customer master key (CMK) with KMS key and KMS
// key. The concept has not changed. To prevent breaking changes, KMS is keeping
// some variations of this term.
//
// We recommend that you use the AWS SDKs to make programmatic API calls to
// AWS KMS.
// Amazon Web Services provides SDKs that consist of libraries and sample code
// for various programming languages and platforms (Java, Ruby, .Net, macOS,
// Android, etc.). The SDKs provide a convenient way to create programmatic
// access to KMS and other Amazon Web Services services. For example, the SDKs
// take care of tasks such as signing requests (see below), managing errors,
// and retrying requests automatically. For more information about the Amazon
// Web Services SDKs, including how to download and install them, see Tools
// for Amazon Web Services (http://aws.amazon.com/tools/).
//
// We recommend that you use the Amazon Web Services SDKs to make programmatic
// API calls to KMS.
//
// Clients must support TLS (Transport Layer Security) 1.0. We recommend TLS
// 1.2. Clients must also support cipher suites with Perfect Forward Secrecy
@ -28,30 +33,31 @@
// Signing Requests
//
// Requests must be signed by using an access key ID and a secret access key.
// We strongly recommend that you do not use your AWS account (root) access
// key ID and secret key for everyday work with AWS KMS. Instead, use the access
// key ID and secret access key for an IAM user. You can also use the AWS Security
// Token Service to generate temporary security credentials that you can use
// to sign requests.
// We strongly recommend that you do not use your Amazon Web Services account
// (root) access key ID and secret key for everyday work with KMS. Instead,
// use the access key ID and secret access key for an IAM user. You can also
// use the Amazon Web Services Security Token Service to generate temporary
// security credentials that you can use to sign requests.
//
// All AWS KMS operations require Signature Version 4 (https://docs.aws.amazon.com/general/latest/gr/signature-version-4.html).
// All KMS operations require Signature Version 4 (https://docs.aws.amazon.com/general/latest/gr/signature-version-4.html).
//
// Logging API Requests
//
// AWS KMS supports AWS CloudTrail, a service that logs AWS API calls and related
// events for your AWS account and delivers them to an Amazon S3 bucket that
// you specify. By using the information collected by CloudTrail, you can determine
// what requests were made to AWS KMS, who made the request, when it was made,
// and so on. To learn more about CloudTrail, including how to turn it on and
// find your log files, see the AWS CloudTrail User Guide (https://docs.aws.amazon.com/awscloudtrail/latest/userguide/).
// KMS supports CloudTrail, a service that logs Amazon Web Services API calls
// and related events for your Amazon Web Services account and delivers them
// to an Amazon S3 bucket that you specify. By using the information collected
// by CloudTrail, you can determine what requests were made to KMS, who made
// the request, when it was made, and so on. To learn more about CloudTrail,
// including how to turn it on and find your log files, see the CloudTrail User
// Guide (https://docs.aws.amazon.com/awscloudtrail/latest/userguide/).
//
// Additional Resources
//
// For more information about credentials and request signing, see the following:
//
// * AWS Security Credentials (https://docs.aws.amazon.com/general/latest/gr/aws-security-credentials.html)
// * Amazon Web Services Security Credentials (https://docs.aws.amazon.com/general/latest/gr/aws-security-credentials.html)
// - This topic provides general information about the types of credentials
// used for accessing AWS.
// used to access Amazon Web Services.
//
// * Temporary Security Credentials (https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp.html)
// - This section of the IAM User Guide describes how to create and use temporary

View File

@ -18,10 +18,10 @@ const (
// ErrCodeCloudHsmClusterInUseException for service response error code
// "CloudHsmClusterInUseException".
//
// The request was rejected because the specified AWS CloudHSM cluster is already
// The request was rejected because the specified CloudHSM cluster is already
// associated with a custom key store or it shares a backup history with a cluster
// that is associated with a custom key store. Each custom key store must be
// associated with a different AWS CloudHSM cluster.
// associated with a different CloudHSM cluster.
//
// Clusters that share a backup history have the same cluster certificate. To
// view the cluster certificate of a cluster, use the DescribeClusters (https://docs.aws.amazon.com/cloudhsm/latest/APIReference/API_DescribeClusters.html)
@ -31,8 +31,8 @@ const (
// ErrCodeCloudHsmClusterInvalidConfigurationException for service response error code
// "CloudHsmClusterInvalidConfigurationException".
//
// The request was rejected because the associated AWS CloudHSM cluster did
// not meet the configuration requirements for a custom key store.
// The request was rejected because the associated CloudHSM cluster did not
// meet the configuration requirements for a custom key store.
//
// * The cluster must be configured with private subnets in at least two
// different Availability Zones in the Region.
@ -47,46 +47,44 @@ const (
// operation.
//
// * The cluster must contain at least as many HSMs as the operation requires.
// To add HSMs, use the AWS CloudHSM CreateHsm (https://docs.aws.amazon.com/cloudhsm/latest/APIReference/API_CreateHsm.html)
// To add HSMs, use the CloudHSM CreateHsm (https://docs.aws.amazon.com/cloudhsm/latest/APIReference/API_CreateHsm.html)
// operation. For the CreateCustomKeyStore, UpdateCustomKeyStore, and CreateKey
// operations, the AWS CloudHSM cluster must have at least two active HSMs,
// each in a different Availability Zone. For the ConnectCustomKeyStore operation,
// the AWS CloudHSM must contain at least one active HSM.
// operations, the CloudHSM cluster must have at least two active HSMs, each
// in a different Availability Zone. For the ConnectCustomKeyStore operation,
// the CloudHSM must contain at least one active HSM.
//
// For information about the requirements for an AWS CloudHSM cluster that is
// associated with a custom key store, see Assemble the Prerequisites (https://docs.aws.amazon.com/kms/latest/developerguide/create-keystore.html#before-keystore)
// in the AWS Key Management Service Developer Guide. For information about
// creating a private subnet for an AWS CloudHSM cluster, see Create a Private
// Subnet (https://docs.aws.amazon.com/cloudhsm/latest/userguide/create-subnets.html)
// in the AWS CloudHSM User Guide. For information about cluster security groups,
// For information about the requirements for an CloudHSM cluster that is associated
// with a custom key store, see Assemble the Prerequisites (https://docs.aws.amazon.com/kms/latest/developerguide/create-keystore.html#before-keystore)
// in the Key Management Service Developer Guide. For information about creating
// a private subnet for an CloudHSM cluster, see Create a Private Subnet (https://docs.aws.amazon.com/cloudhsm/latest/userguide/create-subnets.html)
// in the CloudHSM User Guide. For information about cluster security groups,
// see Configure a Default Security Group (https://docs.aws.amazon.com/cloudhsm/latest/userguide/configure-sg.html)
// in the AWS CloudHSM User Guide .
// in the CloudHSM User Guide .
ErrCodeCloudHsmClusterInvalidConfigurationException = "CloudHsmClusterInvalidConfigurationException"
// ErrCodeCloudHsmClusterNotActiveException for service response error code
// "CloudHsmClusterNotActiveException".
//
// The request was rejected because the AWS CloudHSM cluster that is associated
// The request was rejected because the CloudHSM cluster that is associated
// with the custom key store is not active. Initialize and activate the cluster
// and try the command again. For detailed instructions, see Getting Started
// (https://docs.aws.amazon.com/cloudhsm/latest/userguide/getting-started.html)
// in the AWS CloudHSM User Guide.
// in the CloudHSM User Guide.
ErrCodeCloudHsmClusterNotActiveException = "CloudHsmClusterNotActiveException"
// ErrCodeCloudHsmClusterNotFoundException for service response error code
// "CloudHsmClusterNotFoundException".
//
// The request was rejected because AWS KMS cannot find the AWS CloudHSM cluster
// with the specified cluster ID. Retry the request with a different cluster
// ID.
// The request was rejected because KMS cannot find the CloudHSM cluster with
// the specified cluster ID. Retry the request with a different cluster ID.
ErrCodeCloudHsmClusterNotFoundException = "CloudHsmClusterNotFoundException"
// ErrCodeCloudHsmClusterNotRelatedException for service response error code
// "CloudHsmClusterNotRelatedException".
//
// The request was rejected because the specified AWS CloudHSM cluster has a
// different cluster certificate than the original cluster. You cannot use the
// operation to specify an unrelated cluster.
// The request was rejected because the specified CloudHSM cluster has a different
// cluster certificate than the original cluster. You cannot use the operation
// to specify an unrelated cluster.
//
// Specify a cluster that shares a backup history with the original cluster.
// This includes clusters that were created from a backup of the current cluster,
@ -101,10 +99,10 @@ const (
// ErrCodeCustomKeyStoreHasCMKsException for service response error code
// "CustomKeyStoreHasCMKsException".
//
// The request was rejected because the custom key store contains AWS KMS customer
// master keys (CMKs). After verifying that you do not need to use the CMKs,
// use the ScheduleKeyDeletion operation to delete the CMKs. After they are
// deleted, you can delete the custom key store.
// The request was rejected because the custom key store contains KMS keys.
// After verifying that you do not need to use the KMS keys, use the ScheduleKeyDeletion
// operation to delete the KMS keys. After they are deleted, you can delete
// the custom key store.
ErrCodeCustomKeyStoreHasCMKsException = "CustomKeyStoreHasCMKsException"
// ErrCodeCustomKeyStoreInvalidStateException for service response error code
@ -140,7 +138,7 @@ const (
// ErrCodeCustomKeyStoreNotFoundException for service response error code
// "CustomKeyStoreNotFoundException".
//
// The request was rejected because AWS KMS cannot find a custom key store with
// The request was rejected because KMS cannot find a custom key store with
// the specified key store name or ID.
ErrCodeCustomKeyStoreNotFoundException = "CustomKeyStoreNotFoundException"
@ -154,7 +152,7 @@ const (
// ErrCodeDisabledException for service response error code
// "DisabledException".
//
// The request was rejected because the specified CMK is not enabled.
// The request was rejected because the specified KMS key is not enabled.
ErrCodeDisabledException = "DisabledException"
// ErrCodeExpiredImportTokenException for service response error code
@ -168,9 +166,9 @@ const (
// ErrCodeIncorrectKeyException for service response error code
// "IncorrectKeyException".
//
// The request was rejected because the specified CMK cannot decrypt the data.
// The KeyId in a Decrypt request and the SourceKeyId in a ReEncrypt request
// must identify the same CMK that was used to encrypt the ciphertext.
// The request was rejected because the specified KMS key cannot decrypt the
// data. The KeyId in a Decrypt request and the SourceKeyId in a ReEncrypt request
// must identify the same KMS key that was used to encrypt the ciphertext.
ErrCodeIncorrectKeyException = "IncorrectKeyException"
// ErrCodeIncorrectKeyMaterialException for service response error code
@ -178,14 +176,14 @@ const (
//
// The request was rejected because the key material in the request is, expired,
// invalid, or is not the same key material that was previously imported into
// this customer master key (CMK).
// this KMS key.
ErrCodeIncorrectKeyMaterialException = "IncorrectKeyMaterialException"
// ErrCodeIncorrectTrustAnchorException for service response error code
// "IncorrectTrustAnchorException".
//
// The request was rejected because the trust anchor certificate in the request
// is not the trust anchor certificate for the specified AWS CloudHSM cluster.
// is not the trust anchor certificate for the specified CloudHSM cluster.
//
// When you initialize the cluster (https://docs.aws.amazon.com/cloudhsm/latest/userguide/initialize-cluster.html#sign-csr),
// you create the trust anchor certificate and save it in the customerCA.crt
@ -220,8 +218,8 @@ const (
// the ciphertext, such as the encryption context, is corrupted, missing, or
// otherwise invalid.
//
// From the ImportKeyMaterial operation, the request was rejected because AWS
// KMS could not decrypt the encrypted (wrapped) key material.
// From the ImportKeyMaterial operation, the request was rejected because KMS
// could not decrypt the encrypted (wrapped) key material.
ErrCodeInvalidCiphertextException = "InvalidCiphertextException"
// ErrCodeInvalidGrantIdException for service response error code
@ -240,7 +238,7 @@ const (
// "InvalidImportTokenException".
//
// The request was rejected because the provided import token is invalid or
// is associated with a different customer master key (CMK).
// is associated with a different KMS key.
ErrCodeInvalidImportTokenException = "InvalidImportTokenException"
// ErrCodeInvalidKeyUsageException for service response error code
@ -248,17 +246,18 @@ const (
//
// The request was rejected for one of the following reasons:
//
// * The KeyUsage value of the CMK is incompatible with the API operation.
// * The KeyUsage value of the KMS key is incompatible with the API operation.
//
// * The encryption algorithm or signing algorithm specified for the operation
// is incompatible with the type of key material in the CMK (CustomerMasterKeySpec).
// is incompatible with the type of key material in the KMS key (KeySpec).
//
// For encrypting, decrypting, re-encrypting, and generating data keys, the
// KeyUsage must be ENCRYPT_DECRYPT. For signing and verifying, the KeyUsage
// must be SIGN_VERIFY. To find the KeyUsage of a CMK, use the DescribeKey operation.
// must be SIGN_VERIFY. To find the KeyUsage of a KMS key, use the DescribeKey
// operation.
//
// To find the encryption or signing algorithms supported for a particular CMK,
// use the DescribeKey operation.
// To find the encryption or signing algorithms supported for a particular KMS
// key, use the DescribeKey operation.
ErrCodeInvalidKeyUsageException = "InvalidKeyUsageException"
// ErrCodeInvalidMarkerException for service response error code
@ -274,9 +273,9 @@ const (
// The request was rejected because the state of the specified resource is not
// valid for this request.
//
// For more information about how key state affects the use of a CMK, see How
// Key State Affects Use of a Customer Master Key (https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html)
// in the AWS Key Management Service Developer Guide .
// For more information about how key state affects the use of a KMS key, see
// Key state: Effect on your KMS key (https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html)
// in the Key Management Service Developer Guide .
ErrCodeInvalidStateException = "KMSInvalidStateException"
// ErrCodeKMSInvalidSignatureException for service response error code
@ -284,14 +283,14 @@ const (
//
// The request was rejected because the signature verification failed. Signature
// verification fails when it cannot confirm that signature was produced by
// signing the specified message with the specified CMK and signing algorithm.
// signing the specified message with the specified KMS key and signing algorithm.
ErrCodeKMSInvalidSignatureException = "KMSInvalidSignatureException"
// ErrCodeKeyUnavailableException for service response error code
// "KeyUnavailableException".
//
// The request was rejected because the specified CMK was not available. You
// can retry the request.
// The request was rejected because the specified KMS key was not available.
// You can retry the request.
ErrCodeKeyUnavailableException = "KeyUnavailableException"
// ErrCodeLimitExceededException for service response error code
@ -299,7 +298,7 @@ const (
//
// The request was rejected because a quota was exceeded. For more information,
// see Quotas (https://docs.aws.amazon.com/kms/latest/developerguide/limits.html)
// in the AWS Key Management Service Developer Guide.
// in the Key Management Service Developer Guide.
ErrCodeLimitExceededException = "LimitExceededException"
// ErrCodeMalformedPolicyDocumentException for service response error code

View File

@ -161,10 +161,11 @@ func (c *Route53) AssociateVPCWithHostedZoneRequest(input *AssociateVPCWithHoste
// To perform the association, the VPC and the private hosted zone must already
// exist. You can't convert a public hosted zone into a private hosted zone.
//
// If you want to associate a VPC that was created by using one account with
// a private hosted zone that was created by using a different account, the
// account that created the private hosted zone must first submit a CreateVPCAssociationAuthorization
// request. Then the account that created the VPC must submit an AssociateVPCWithHostedZone
// If you want to associate a VPC that was created by using one Amazon Web Services
// account with a private hosted zone that was created by using a different
// account, the Amazon Web Services account that created the private hosted
// zone must first submit a CreateVPCAssociationAuthorization request. Then
// the account that created the VPC must submit an AssociateVPCWithHostedZone
// request.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
@ -626,8 +627,8 @@ func (c *Route53) CreateHealthCheckRequest(input *CreateHealthCheckInput) (req *
// To request a higher limit, create a case (http://aws.amazon.com/route53-request)
// with the Amazon Web Services Support Center.
//
// You have reached the maximum number of active health checks for an account.
// To request a higher limit, create a case (http://aws.amazon.com/route53-request)
// You have reached the maximum number of active health checks for an Amazon
// Web Services account. To request a higher limit, create a case (http://aws.amazon.com/route53-request)
// with the Amazon Web Services Support Center.
//
// * ErrCodeHealthCheckAlreadyExists "HealthCheckAlreadyExists"
@ -1030,8 +1031,8 @@ func (c *Route53) CreateQueryLoggingConfigRequest(input *CreateQueryLoggingConfi
//
// * You must create the log group in the us-east-1 region.
//
// * You must use the same account to create the log group and the hosted
// zone that you want to configure query logging for.
// * You must use the same Amazon Web Services account to create the log
// group and the hosted zone that you want to configure query logging for.
//
// * When you create log groups for query logging, we recommend that you
// use a consistent prefix, for example: /aws/route53/hosted zone name In
@ -1217,7 +1218,8 @@ func (c *Route53) CreateReusableDelegationSetRequest(input *CreateReusableDelega
// CreateReusableDelegationSet API operation for Amazon Route 53.
//
// Creates a delegation set (a group of four name servers) that can be reused
// by multiple hosted zones that were created by the same account.
// by multiple hosted zones that were created by the same Amazon Web Services
// account.
//
// You can also create a reusable delegation set that uses the four name servers
// that are associated with an existing hosted zone. Specify the hosted zone
@ -1685,12 +1687,12 @@ func (c *Route53) CreateVPCAssociationAuthorizationRequest(input *CreateVPCAssoc
// CreateVPCAssociationAuthorization API operation for Amazon Route 53.
//
// Authorizes the account that created a specified VPC to submit an AssociateVPCWithHostedZone
// request to associate the VPC with a specified hosted zone that was created
// by a different account. To submit a CreateVPCAssociationAuthorization request,
// you must use the account that created the hosted zone. After you authorize
// the association, use the account that created the VPC to submit an AssociateVPCWithHostedZone
// request.
// Authorizes the Amazon Web Services account that created a specified VPC to
// submit an AssociateVPCWithHostedZone request to associate the VPC with a
// specified hosted zone that was created by a different account. To submit
// a CreateVPCAssociationAuthorization request, you must use the account that
// created the hosted zone. After you authorize the association, use the account
// that created the VPC to submit an AssociateVPCWithHostedZone request.
//
// If you want to associate multiple VPCs that you created by using one account
// with a hosted zone that you created by using a different account, you must
@ -2039,7 +2041,7 @@ func (c *Route53) DeleteHostedZoneRequest(input *DeleteHostedZoneInput) (req *re
// zone.
//
// * Use the ListHostedZones action to get a list of the hosted zones associated
// with the current account.
// with the current Amazon Web Services account.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
@ -2626,9 +2628,9 @@ func (c *Route53) DeleteVPCAssociationAuthorizationRequest(input *DeleteVPCAssoc
// account. You must use the account that created the hosted zone to submit
// a DeleteVPCAssociationAuthorization request.
//
// Sending this request only prevents the account that created the VPC from
// associating the VPC with the Amazon Route 53 hosted zone in the future. If
// the VPC is already associated with the hosted zone, DeleteVPCAssociationAuthorization
// Sending this request only prevents the Amazon Web Services account that created
// the VPC from associating the VPC with the Amazon Route 53 hosted zone in
// the future. If the VPC is already associated with the hosted zone, DeleteVPCAssociationAuthorization
// won't disassociate the VPC from the hosted zone. If you want to delete an
// existing association, use DisassociateVPCFromHostedZone.
//
@ -3055,8 +3057,8 @@ func (c *Route53) GetAccountLimitRequest(input *GetAccountLimitInput) (req *requ
// case (https://console.aws.amazon.com/support/home#/case/create?issueType=service-limit-increase&limitType=service-code-route53).
//
// You can also view account limits in Amazon Web Services Trusted Advisor.
// Sign in to the Management Console and open the Trusted Advisor console at
// https://console.aws.amazon.com/trustedadvisor/ (https://console.aws.amazon.com/trustedadvisor).
// Sign in to the Amazon Web Services Management Console and open the Trusted
// Advisor console at https://console.aws.amazon.com/trustedadvisor/ (https://console.aws.amazon.com/trustedadvisor).
// Then choose Service limits in the navigation pane.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
@ -3583,7 +3585,7 @@ func (c *Route53) GetHealthCheckCountRequest(input *GetHealthCheckCountInput) (r
// GetHealthCheckCount API operation for Amazon Route 53.
//
// Retrieves the number of health checks that are associated with the current
// account.
// Amazon Web Services account.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
@ -3909,7 +3911,7 @@ func (c *Route53) GetHostedZoneCountRequest(input *GetHostedZoneCountInput) (req
// GetHostedZoneCount API operation for Amazon Route 53.
//
// Retrieves the number of hosted zones that are associated with the current
// account.
// Amazon Web Services account.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
@ -4511,7 +4513,7 @@ func (c *Route53) GetTrafficPolicyInstanceCountRequest(input *GetTrafficPolicyIn
// GetTrafficPolicyInstanceCount API operation for Amazon Route 53.
//
// Gets the number of traffic policy instances that are associated with the
// current account.
// current Amazon Web Services account.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
@ -4682,7 +4684,7 @@ func (c *Route53) ListHealthChecksRequest(input *ListHealthChecksInput) (req *re
// ListHealthChecks API operation for Amazon Route 53.
//
// Retrieve a list of the health checks that are associated with the current
// account.
// Amazon Web Services account.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
@ -4824,8 +4826,8 @@ func (c *Route53) ListHostedZonesRequest(input *ListHostedZonesInput) (req *requ
// ListHostedZones API operation for Amazon Route 53.
//
// Retrieves a list of the public and private hosted zones that are associated
// with the current account. The response includes a HostedZones child element
// for each hosted zone.
// with the current Amazon Web Services account. The response includes a HostedZones
// child element for each hosted zone.
//
// Amazon Route 53 returns a maximum of 100 items in each response. If you have
// a lot of hosted zones, you can use the maxitems parameter to list them in
@ -4968,7 +4970,7 @@ func (c *Route53) ListHostedZonesByNameRequest(input *ListHostedZonesByNameInput
//
// Retrieves a list of your hosted zones in lexicographic order. The response
// includes a HostedZones child element for each hosted zone created by the
// current account.
// current Amazon Web Services account.
//
// ListHostedZonesByName sorts hosted zones by name with the labels reversed.
// For example:
@ -5004,16 +5006,17 @@ func (c *Route53) ListHostedZonesByNameRequest(input *ListHostedZonesByNameInput
// the current response.
//
// * If the value of IsTruncated in the response is true, there are more
// hosted zones associated with the current account. If IsTruncated is false,
// this response includes the last hosted zone that is associated with the
// current account. The NextDNSName element and NextHostedZoneId elements
// are omitted from the response.
// hosted zones associated with the current Amazon Web Services account.
// If IsTruncated is false, this response includes the last hosted zone that
// is associated with the current account. The NextDNSName element and NextHostedZoneId
// elements are omitted from the response.
//
// * The NextDNSName and NextHostedZoneId elements in the response contain
// the domain name and the hosted zone ID of the next hosted zone that is
// associated with the current account. If you want to list more hosted zones,
// make another call to ListHostedZonesByName, and specify the value of NextDNSName
// and NextHostedZoneId in the dnsname and hostedzoneid parameters, respectively.
// associated with the current Amazon Web Services account. If you want to
// list more hosted zones, make another call to ListHostedZonesByName, and
// specify the value of NextDNSName and NextHostedZoneId in the dnsname and
// hostedzoneid parameters, respectively.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
@ -5096,13 +5099,14 @@ func (c *Route53) ListHostedZonesByVPCRequest(input *ListHostedZonesByVPCInput)
// ListHostedZonesByVPC API operation for Amazon Route 53.
//
// Lists all the private hosted zones that a specified VPC is associated with,
// regardless of which account or Amazon Web Services service owns the hosted
// zones. The HostedZoneOwner structure in the response contains one of the
// following values:
// regardless of which Amazon Web Services account or Amazon Web Services service
// owns the hosted zones. The HostedZoneOwner structure in the response contains
// one of the following values:
//
// * An OwningAccount element, which contains the account number of either
// the current account or another account. Some services, such as Cloud Map,
// create hosted zones using the current account.
// the current Amazon Web Services account or another Amazon Web Services
// account. Some services, such as Cloud Map, create hosted zones using the
// current account.
//
// * An OwningService element, which identifies the Amazon Web Services service
// that created and owns the hosted zone. For example, if a hosted zone was
@ -5197,8 +5201,8 @@ func (c *Route53) ListQueryLoggingConfigsRequest(input *ListQueryLoggingConfigsI
// ListQueryLoggingConfigs API operation for Amazon Route 53.
//
// Lists the configurations for DNS query logging that are associated with the
// current account or the configuration that is associated with a specified
// hosted zone.
// current Amazon Web Services account or the configuration that is associated
// with a specified hosted zone.
//
// For more information about DNS query logs, see CreateQueryLoggingConfig (https://docs.aws.amazon.com/Route53/latest/APIReference/API_CreateQueryLoggingConfig.html).
// Additional information, including the format of DNS query logs, appears in
@ -5546,7 +5550,7 @@ func (c *Route53) ListReusableDelegationSetsRequest(input *ListReusableDelegatio
// ListReusableDelegationSets API operation for Amazon Route 53.
//
// Retrieves a list of the reusable delegation sets that are associated with
// the current account.
// the current Amazon Web Services account.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
@ -5824,8 +5828,8 @@ func (c *Route53) ListTrafficPoliciesRequest(input *ListTrafficPoliciesInput) (r
// ListTrafficPolicies API operation for Amazon Route 53.
//
// Gets information about the latest version for every traffic policy that is
// associated with the current account. Policies are listed in the order that
// they were created in.
// associated with the current Amazon Web Services account. Policies are listed
// in the order that they were created in.
//
// For information about how of deleting a traffic policy affects the response
// from ListTrafficPolicies, see DeleteTrafficPolicy (https://docs.aws.amazon.com/Route53/latest/APIReference/API_DeleteTrafficPolicy.html).
@ -5908,7 +5912,7 @@ func (c *Route53) ListTrafficPolicyInstancesRequest(input *ListTrafficPolicyInst
// ListTrafficPolicyInstances API operation for Amazon Route 53.
//
// Gets information about the traffic policy instances that you created by using
// the current account.
// the current Amazon Web Services account.
//
// After you submit an UpdateTrafficPolicyInstance request, there's a brief
// delay while Amazon Route 53 creates the resource record sets that are specified
@ -7073,8 +7077,9 @@ type AliasTarget struct {
// the CNAME attribute for the environment. You can use the following methods
// to get the value of the CNAME attribute:
//
// * Management Console: For information about how to get the value by using
// the console, see Using Custom Domains with Elastic Beanstalk (https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/customdomains.html)
// * Amazon Web Services Management Console: For information about how to
// get the value by using the console, see Using Custom Domains with Elastic
// Beanstalk (https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/customdomains.html)
// in the Elastic Beanstalk Developer Guide.
//
// * Elastic Beanstalk API: Use the DescribeEnvironments action to get the
@ -7089,13 +7094,14 @@ type AliasTarget struct {
// ELB load balancer
//
// Specify the DNS name that is associated with the load balancer. Get the DNS
// name by using the Management Console, the ELB API, or the CLI.
// name by using the Amazon Web Services Management Console, the ELB API, or
// the CLI.
//
// * Management Console: Go to the EC2 page, choose Load Balancers in the
// navigation pane, choose the load balancer, choose the Description tab,
// and get the value of the DNS name field. If you're routing traffic to
// a Classic Load Balancer, get the value that begins with dualstack. If
// you're routing traffic to another type of load balancer, get the value
// * Amazon Web Services Management Console: Go to the EC2 page, choose Load
// Balancers in the navigation pane, choose the load balancer, choose the
// Description tab, and get the value of the DNS name field. If you're routing
// traffic to a Classic Load Balancer, get the value that begins with dualstack.
// If you're routing traffic to another type of load balancer, get the value
// that applies to the record type, A or AAAA.
//
// * Elastic Load Balancing API: Use DescribeLoadBalancers to get the value
@ -7257,9 +7263,9 @@ type AliasTarget struct {
// that there are separate columns for Application and Classic Load Balancers
// and for Network Load Balancers.
//
// * Management Console: Go to the Amazon EC2 page, choose Load Balancers
// in the navigation pane, select the load balancer, and get the value of
// the Hosted zone field on the Description tab.
// * Amazon Web Services Management Console: Go to the Amazon EC2 page, choose
// Load Balancers in the navigation pane, select the load balancer, and get
// the value of the Hosted zone field on the Description tab.
//
// * Elastic Load Balancing API: Use DescribeLoadBalancers to get the applicable
// value. For more information, see the applicable guide: Classic Load Balancers:
@ -9746,21 +9752,22 @@ func (s DeleteTrafficPolicyOutput) GoString() string {
}
// A complex type that contains information about the request to remove authorization
// to associate a VPC that was created by one account with a hosted zone that
// was created with a different account.
// to associate a VPC that was created by one Amazon Web Services account with
// a hosted zone that was created with a different Amazon Web Services account.
type DeleteVPCAssociationAuthorizationInput struct {
_ struct{} `locationName:"DeleteVPCAssociationAuthorizationRequest" type:"structure" xmlURI:"https://route53.amazonaws.com/doc/2013-04-01/"`
// When removing authorization to associate a VPC that was created by one account
// with a hosted zone that was created with a different account, the ID of the
// hosted zone.
// When removing authorization to associate a VPC that was created by one Amazon
// Web Services account with a hosted zone that was created with a different
// Amazon Web Services account, the ID of the hosted zone.
//
// HostedZoneId is a required field
HostedZoneId *string `location:"uri" locationName:"Id" type:"string" required:"true"`
// When removing authorization to associate a VPC that was created by one account
// with a hosted zone that was created with a different account, a complex type
// that includes the ID and region of the VPC.
// When removing authorization to associate a VPC that was created by one Amazon
// Web Services account with a hosted zone that was created with a different
// Amazon Web Services account, a complex type that includes the ID and region
// of the VPC.
//
// VPC is a required field
VPC *VPC `type:"structure" required:"true"`
@ -10670,7 +10677,7 @@ func (s *GetGeoLocationOutput) SetGeoLocationDetails(v *GeoLocationDetails) *Get
}
// A request for the number of health checks that are associated with the current
// account.
// Amazon Web Services account.
type GetHealthCheckCountInput struct {
_ struct{} `locationName:"GetHealthCheckCountRequest" type:"structure"`
}
@ -10689,7 +10696,8 @@ func (s GetHealthCheckCountInput) GoString() string {
type GetHealthCheckCountOutput struct {
_ struct{} `type:"structure"`
// The number of health checks associated with the current account.
// The number of health checks associated with the current Amazon Web Services
// account.
//
// HealthCheckCount is a required field
HealthCheckCount *int64 `type:"long" required:"true"`
@ -10837,7 +10845,7 @@ type GetHealthCheckOutput struct {
_ struct{} `type:"structure"`
// A complex type that contains information about one health check that is associated
// with the current account.
// with the current Amazon Web Services account.
//
// HealthCheck is a required field
HealthCheck *HealthCheck `type:"structure" required:"true"`
@ -10935,7 +10943,7 @@ func (s *GetHealthCheckStatusOutput) SetHealthCheckObservations(v []*HealthCheck
}
// A request to retrieve a count of all the hosted zones that are associated
// with the current account.
// with the current Amazon Web Services account.
type GetHostedZoneCountInput struct {
_ struct{} `locationName:"GetHostedZoneCountRequest" type:"structure"`
}
@ -10955,7 +10963,7 @@ type GetHostedZoneCountOutput struct {
_ struct{} `type:"structure"`
// The total number of public and private hosted zones that are associated with
// the current account.
// the current Amazon Web Services account.
//
// HostedZoneCount is a required field
HostedZoneCount *int64 `type:"long" required:"true"`
@ -11476,7 +11484,7 @@ func (s *GetTrafficPolicyInput) SetVersion(v int64) *GetTrafficPolicyInput {
}
// Request to get the number of traffic policy instances that are associated
// with the current account.
// with the current Amazon Web Services account.
type GetTrafficPolicyInstanceCountInput struct {
_ struct{} `locationName:"GetTrafficPolicyInstanceCountRequest" type:"structure"`
}
@ -11497,7 +11505,7 @@ type GetTrafficPolicyInstanceCountOutput struct {
_ struct{} `type:"structure"`
// The number of traffic policy instances that are associated with the current
// account.
// Amazon Web Services account.
//
// TrafficPolicyInstanceCount is a required field
TrafficPolicyInstanceCount *int64 `type:"integer" required:"true"`
@ -11795,7 +11803,7 @@ type HealthCheckConfig struct {
// If you don't specify a value for FullyQualifiedDomainName, Route 53 substitutes
// the value of IPAddress in the Host header in each of the preceding cases.
//
// If you don't specify a value for IPAddress :
// If you don't specify a value for IPAddress:
//
// Route 53 sends a DNS request to the domain that you specify for FullyQualifiedDomainName
// at the interval that you specify for RequestInterval. Using an IPv4 address
@ -11941,8 +11949,11 @@ type HealthCheckConfig struct {
// parameters, for example, /welcome.html?language=jp&login=y.
ResourcePath *string `type:"string"`
// The Amazon Resource Name (ARN) for Route53 Application Recovery Controller
// The Amazon Resource Name (ARN) for the Route 53 Application Recovery Controller
// routing control.
//
// For more information about Route 53 Application Recovery Controller, see
// Route 53 Application Recovery Controller Developer Guide. (https://docs.aws.amazon.com/r53recovery/latest/dg/what-is-route-53-recovery.html).
RoutingControlArn *string `min:"1" type:"string"`
// If the value of Type is HTTP_STR_MATCH or HTTPS_STR_MATCH, the string that
@ -12372,11 +12383,11 @@ func (s *HostedZoneLimit) SetValue(v int64) *HostedZoneLimit {
type HostedZoneOwner struct {
_ struct{} `type:"structure"`
// If the hosted zone was created by an account, or was created by an Amazon
// Web Services service that creates hosted zones using the current account,
// OwningAccount contains the account ID of that account. For example, when
// you use Cloud Map to create a hosted zone, Cloud Map creates the hosted zone
// using the current account.
// If the hosted zone was created by an Amazon Web Services account, or was
// created by an Amazon Web Services service that creates hosted zones using
// the current account, OwningAccount contains the account ID of that account.
// For example, when you use Cloud Map to create a hosted zone, Cloud Map creates
// the hosted zone using the current Amazon Web Services account.
OwningAccount *string `type:"string"`
// If an Amazon Web Services service uses its own account to create a hosted
@ -12429,7 +12440,8 @@ type HostedZoneSummary struct {
Name *string `type:"string" required:"true"`
// The owner of a private hosted zone that the specified VPC is associated with.
// The owner can be either an account or an Amazon Web Services service.
// The owner can be either an Amazon Web Services account or an Amazon Web Services
// service.
//
// Owner is a required field
Owner *HostedZoneOwner `type:"structure" required:"true"`
@ -12922,7 +12934,7 @@ func (s *ListGeoLocationsOutput) SetNextSubdivisionCode(v string) *ListGeoLocati
}
// A request to retrieve a list of the health checks that are associated with
// the current account.
// the current Amazon Web Services account.
type ListHealthChecksInput struct {
_ struct{} `locationName:"ListHealthChecksRequest" type:"structure"`
@ -12971,7 +12983,7 @@ type ListHealthChecksOutput struct {
_ struct{} `type:"structure"`
// A complex type that contains one HealthCheck element for each health check
// that is associated with the current account.
// that is associated with the current Amazon Web Services account.
//
// HealthChecks is a required field
HealthChecks []*HealthCheck `locationNameList:"HealthCheck" type:"list" required:"true"`
@ -13043,17 +13055,17 @@ func (s *ListHealthChecksOutput) SetNextMarker(v string) *ListHealthChecksOutput
}
// Retrieves a list of the public and private hosted zones that are associated
// with the current account in ASCII order by domain name.
// with the current Amazon Web Services account in ASCII order by domain name.
type ListHostedZonesByNameInput struct {
_ struct{} `locationName:"ListHostedZonesByNameRequest" type:"structure"`
// (Optional) For your first request to ListHostedZonesByName, include the dnsname
// parameter only if you want to specify the name of the first hosted zone in
// the response. If you don't include the dnsname parameter, Amazon Route 53
// returns all of the hosted zones that were created by the current account,
// in ASCII order. For subsequent requests, include both dnsname and hostedzoneid
// parameters. For dnsname, specify the value of NextDNSName from the previous
// response.
// returns all of the hosted zones that were created by the current Amazon Web
// Services account, in ASCII order. For subsequent requests, include both dnsname
// and hostedzoneid parameters. For dnsname, specify the value of NextDNSName
// from the previous response.
DNSName *string `location:"querystring" locationName:"dnsname" type:"string"`
// (Optional) For your first request to ListHostedZonesByName, do not include
@ -13205,7 +13217,7 @@ func (s *ListHostedZonesByNameOutput) SetNextHostedZoneId(v string) *ListHostedZ
}
// Lists all the private hosted zones that a specified VPC is associated with,
// regardless of which account created the hosted zones.
// regardless of which Amazon Web Services account created the hosted zones.
type ListHostedZonesByVPCInput struct {
_ struct{} `locationName:"ListHostedZonesByVPCRequest" type:"structure"`
@ -13343,7 +13355,7 @@ func (s *ListHostedZonesByVPCOutput) SetNextToken(v string) *ListHostedZonesByVP
}
// A request to retrieve a list of the public and private hosted zones that
// are associated with the current account.
// are associated with the current Amazon Web Services account.
type ListHostedZonesInput struct {
_ struct{} `locationName:"ListHostedZonesRequest" type:"structure"`
@ -13483,20 +13495,22 @@ type ListQueryLoggingConfigsInput struct {
// with a hosted zone, specify the ID in HostedZoneId.
//
// If you don't specify a hosted zone ID, ListQueryLoggingConfigs returns all
// of the configurations that are associated with the current account.
// of the configurations that are associated with the current Amazon Web Services
// account.
HostedZoneId *string `location:"querystring" locationName:"hostedzoneid" type:"string"`
// (Optional) The maximum number of query logging configurations that you want
// Amazon Route 53 to return in response to the current request. If the current
// account has more than MaxResults configurations, use the value of NextToken
// (https://docs.aws.amazon.com/Route53/latest/APIReference/API_ListQueryLoggingConfigs.html#API_ListQueryLoggingConfigs_RequestSyntax)
// Amazon Web Services account has more than MaxResults configurations, use
// the value of NextToken (https://docs.aws.amazon.com/Route53/latest/APIReference/API_ListQueryLoggingConfigs.html#API_ListQueryLoggingConfigs_RequestSyntax)
// in the response to get the next page of results.
//
// If you don't specify a value for MaxResults, Route 53 returns up to 100 configurations.
MaxResults *string `location:"querystring" locationName:"maxresults" type:"string"`
// (Optional) If the current account has more than MaxResults query logging
// configurations, use NextToken to get the second and subsequent pages of results.
// (Optional) If the current Amazon Web Services account has more than MaxResults
// query logging configurations, use NextToken to get the second and subsequent
// pages of results.
//
// For the first ListQueryLoggingConfigs request, omit this value.
//
@ -13537,8 +13551,8 @@ type ListQueryLoggingConfigsOutput struct {
_ struct{} `type:"structure"`
// If a response includes the last of the query logging configurations that
// are associated with the current account, NextToken doesn't appear in the
// response.
// are associated with the current Amazon Web Services account, NextToken doesn't
// appear in the response.
//
// If a response doesn't include the last of the configurations, you can get
// more configurations by submitting another ListQueryLoggingConfigs (https://docs.aws.amazon.com/Route53/latest/APIReference/API_ListQueryLoggingConfigs.html)
@ -13548,7 +13562,7 @@ type ListQueryLoggingConfigsOutput struct {
// An array that contains one QueryLoggingConfig (https://docs.aws.amazon.com/Route53/latest/APIReference/API_QueryLoggingConfig.html)
// element for each configuration for DNS query logging that is associated with
// the current account.
// the current Amazon Web Services account.
//
// QueryLoggingConfigs is a required field
QueryLoggingConfigs []*QueryLoggingConfig `locationNameList:"QueryLoggingConfig" type:"list" required:"true"`
@ -13783,7 +13797,7 @@ func (s *ListResourceRecordSetsOutput) SetResourceRecordSets(v []*ResourceRecord
}
// A request to get a list of the reusable delegation sets that are associated
// with the current account.
// with the current Amazon Web Services account.
type ListReusableDelegationSetsInput struct {
_ struct{} `locationName:"ListReusableDelegationSetsRequest" type:"structure"`
@ -13828,12 +13842,12 @@ func (s *ListReusableDelegationSetsInput) SetMaxItems(v string) *ListReusableDel
}
// A complex type that contains information about the reusable delegation sets
// that are associated with the current account.
// that are associated with the current Amazon Web Services account.
type ListReusableDelegationSetsOutput struct {
_ struct{} `type:"structure"`
// A complex type that contains one DelegationSet element for each reusable
// delegation set that was created by the current account.
// delegation set that was created by the current Amazon Web Services account.
//
// DelegationSets is a required field
DelegationSets []*DelegationSet `locationNameList:"DelegationSet" type:"list" required:"true"`
@ -14086,7 +14100,8 @@ func (s *ListTagsForResourcesOutput) SetResourceTagSets(v []*ResourceTagSet) *Li
}
// A complex type that contains the information about the request to list the
// traffic policies that are associated with the current account.
// traffic policies that are associated with the current Amazon Web Services
// account.
type ListTrafficPoliciesInput struct {
_ struct{} `locationName:"ListTrafficPoliciesRequest" type:"structure"`
@ -14168,7 +14183,7 @@ type ListTrafficPoliciesOutput struct {
TrafficPolicyIdMarker *string `min:"1" type:"string" required:"true"`
// A list that contains one TrafficPolicySummary element for each traffic policy
// that was created by the current account.
// that was created by the current Amazon Web Services account.
//
// TrafficPolicySummaries is a required field
TrafficPolicySummaries []*TrafficPolicySummary `locationNameList:"TrafficPolicySummary" type:"list" required:"true"`
@ -14590,7 +14605,7 @@ func (s *ListTrafficPolicyInstancesByPolicyOutput) SetTrafficPolicyInstances(v [
}
// A request to get information about the traffic policy instances that you
// created by using the current account.
// created by using the current Amazon Web Services account.
type ListTrafficPolicyInstancesInput struct {
_ struct{} `locationName:"ListTrafficPolicyInstancesRequest" type:"structure"`
@ -16286,7 +16301,7 @@ func (s *TrafficPolicyInstance) SetTrafficPolicyVersion(v int64) *TrafficPolicyI
}
// A complex type that contains information about the latest version of one
// traffic policy that is associated with the current account.
// traffic policy that is associated with the current Amazon Web Services account.
type TrafficPolicySummary struct {
_ struct{} `type:"structure"`
@ -16306,7 +16321,8 @@ type TrafficPolicySummary struct {
// Name is a required field
Name *string `type:"string" required:"true"`
// The number of traffic policies that are associated with the current account.
// The number of traffic policies that are associated with the current Amazon
// Web Services account.
//
// TrafficPolicyCount is a required field
TrafficPolicyCount *int64 `min:"1" type:"integer" required:"true"`

View File

@ -403,8 +403,8 @@ const (
// To request a higher limit, create a case (http://aws.amazon.com/route53-request)
// with the Amazon Web Services Support Center.
//
// You have reached the maximum number of active health checks for an account.
// To request a higher limit, create a case (http://aws.amazon.com/route53-request)
// You have reached the maximum number of active health checks for an Amazon
// Web Services account. To request a higher limit, create a case (http://aws.amazon.com/route53-request)
// with the Amazon Web Services Support Center.
ErrCodeTooManyHealthChecks = "TooManyHealthChecks"

File diff suppressed because it is too large Load Diff

View File

@ -40,7 +40,7 @@ func defaultInitRequestFn(r *request.Request) {
// Auto-populate LocationConstraint with current region
r.Handlers.Validate.PushFront(populateLocationConstraint)
case opCopyObject, opUploadPartCopy, opCompleteMultipartUpload:
r.Handlers.Unmarshal.PushFront(copyMultipartStatusOKUnmarhsalError)
r.Handlers.Unmarshal.PushFront(copyMultipartStatusOKUnmarshalError)
r.Handlers.Unmarshal.PushBackNamed(s3err.RequestFailureWrapperHandler())
case opPutObject, opUploadPart:
r.Handlers.Build.PushBack(computeBodyHashes)

View File

@ -15,10 +15,10 @@ const (
// "BucketAlreadyOwnedByYou".
//
// The bucket you tried to create already exists, and you own it. Amazon S3
// returns this error in all AWS Regions except in the North Virginia Region.
// For legacy compatibility, if you re-create an existing bucket that you already
// own in the North Virginia Region, Amazon S3 returns 200 OK and resets the
// bucket access control lists (ACLs).
// returns this error in all Amazon Web Services Regions except in the North
// Virginia Region. For legacy compatibility, if you re-create an existing bucket
// that you already own in the North Virginia Region, Amazon S3 returns 200
// OK and resets the bucket access control lists (ACLs).
ErrCodeBucketAlreadyOwnedByYou = "BucketAlreadyOwnedByYou"
// ErrCodeInvalidObjectState for service response error code

View File

@ -1,3 +1,4 @@
//go:build !go1.6
// +build !go1.6
package s3

View File

@ -1,3 +1,4 @@
//go:build go1.6
// +build go1.6
package s3

View File

@ -11,16 +11,21 @@ import (
"github.com/aws/aws-sdk-go/internal/sdkio"
)
func copyMultipartStatusOKUnmarhsalError(r *request.Request) {
func copyMultipartStatusOKUnmarshalError(r *request.Request) {
b, err := ioutil.ReadAll(r.HTTPResponse.Body)
r.HTTPResponse.Body.Close()
if err != nil {
r.Error = awserr.NewRequestFailure(
awserr.New(request.ErrCodeSerialization, "unable to read response body", err),
r.HTTPResponse.StatusCode,
r.RequestID,
)
// Note, some middleware later in the stack like restxml.Unmarshal expect a valid, non-closed Body
// even in case of an error, so we replace it with an empty Reader.
r.HTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(nil))
return
}
body := bytes.NewReader(b)
r.HTTPResponse.Body = ioutil.NopCloser(body)
defer body.Seek(0, sdkio.SeekStart)

View File

@ -2615,26 +2615,43 @@ type CreateQueueInput struct {
// which a ReceiveMessage action waits for a message to arrive. Valid values:
// An integer from 0 to 20 (seconds). Default: 0.
//
// * RedrivePolicy The string that includes the parameters for the dead-letter
// queue functionality of the source queue as a JSON object. For more information
// about the redrive policy and dead-letter queues, see Using Amazon SQS
// Dead-Letter Queues (https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-dead-letter-queues.html)
// in the Amazon SQS Developer Guide. deadLetterTargetArn The Amazon
// Resource Name (ARN) of the dead-letter queue to which Amazon SQS moves
// messages after the value of maxReceiveCount is exceeded. maxReceiveCount
// The number of times a message is delivered to the source queue before
// being moved to the dead-letter queue. When the ReceiveCount for a message
// exceeds the maxReceiveCount for a queue, Amazon SQS moves the message
// to the dead-letter-queue. The dead-letter queue of a FIFO queue must also
// be a FIFO queue. Similarly, the dead-letter queue of a standard queue
// must also be a standard queue.
//
// * VisibilityTimeout The visibility timeout for the queue, in seconds.
// Valid values: An integer from 0 to 43,200 (12 hours). Default: 30. For
// more information about the visibility timeout, see Visibility Timeout
// (https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-visibility-timeout.html)
// in the Amazon SQS Developer Guide.
//
// The following attributes apply only to dead-letter queues: (https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-dead-letter-queues.html)
//
// * RedrivePolicy The string that includes the parameters for the dead-letter
// queue functionality of the source queue as a JSON object. The parameters
// are as follows: deadLetterTargetArn The Amazon Resource Name (ARN)
// of the dead-letter queue to which Amazon SQS moves messages after the
// value of maxReceiveCount is exceeded. maxReceiveCount The number of
// times a message is delivered to the source queue before being moved to
// the dead-letter queue. When the ReceiveCount for a message exceeds the
// maxReceiveCount for a queue, Amazon SQS moves the message to the dead-letter-queue.
//
// * RedriveAllowPolicy The string that includes the parameters for the
// permissions for the dead-letter queue redrive permission and which source
// queues can specify dead-letter queues as a JSON object. The parameters
// are as follows: redrivePermission The permission type that defines
// which source queues can specify the current queue as the dead-letter queue.
// Valid values are: allowAll (Default) Any source queues in this Amazon
// Web Services account in the same Region can specify this queue as the
// dead-letter queue. denyAll No source queues can specify this queue
// as the dead-letter queue. byQueue Only queues specified by the sourceQueueArns
// parameter can specify this queue as the dead-letter queue. sourceQueueArns
// The Amazon Resource Names (ARN)s of the source queues that can specify
// this queue as the dead-letter queue and redrive messages. You can specify
// this parameter only when the redrivePermission parameter is set to byQueue.
// You can specify up to 10 source queue ARNs. To allow more than 10 source
// queues to specify dead-letter queues, set the redrivePermission parameter
// to allowAll.
//
// The dead-letter queue of a FIFO queue must also be a FIFO queue. Similarly,
// the dead-letter queue of a standard queue must also be a standard queue.
//
// The following attributes apply only to server-side-encryption (https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-server-side-encryption.html):
//
// * KmsMasterKeyId The ID of an Amazon Web Services managed customer
@ -3180,23 +3197,42 @@ type GetQueueAttributesInput struct {
// * ReceiveMessageWaitTimeSeconds Returns the length of time, in seconds,
// for which the ReceiveMessage action waits for a message to arrive.
//
// * RedrivePolicy The string that includes the parameters for the dead-letter
// queue functionality of the source queue as a JSON object. For more information
// about the redrive policy and dead-letter queues, see Using Amazon SQS
// Dead-Letter Queues (https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-dead-letter-queues.html)
// in the Amazon SQS Developer Guide. deadLetterTargetArn The Amazon
// Resource Name (ARN) of the dead-letter queue to which Amazon SQS moves
// messages after the value of maxReceiveCount is exceeded. maxReceiveCount
// The number of times a message is delivered to the source queue before
// being moved to the dead-letter queue. When the ReceiveCount for a message
// exceeds the maxReceiveCount for a queue, Amazon SQS moves the message
// to the dead-letter-queue.
//
// * VisibilityTimeout Returns the visibility timeout for the queue.
// For more information about the visibility timeout, see Visibility Timeout
// (https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-visibility-timeout.html)
// in the Amazon SQS Developer Guide.
//
// The following attributes apply only to dead-letter queues: (https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-dead-letter-queues.html)
//
// * RedrivePolicy The string that includes the parameters for the dead-letter
// queue functionality of the source queue as a JSON object. The parameters
// are as follows: deadLetterTargetArn The Amazon Resource Name (ARN)
// of the dead-letter queue to which Amazon SQS moves messages after the
// value of maxReceiveCount is exceeded. maxReceiveCount The number of
// times a message is delivered to the source queue before being moved to
// the dead-letter queue. When the ReceiveCount for a message exceeds the
// maxReceiveCount for a queue, Amazon SQS moves the message to the dead-letter-queue.
//
// * RedriveAllowPolicy The string that includes the parameters for the
// permissions for the dead-letter queue redrive permission and which source
// queues can specify dead-letter queues as a JSON object. The parameters
// are as follows: redrivePermission The permission type that defines
// which source queues can specify the current queue as the dead-letter queue.
// Valid values are: allowAll (Default) Any source queues in this Amazon
// Web Services account in the same Region can specify this queue as the
// dead-letter queue. denyAll No source queues can specify this queue
// as the dead-letter queue. byQueue Only queues specified by the sourceQueueArns
// parameter can specify this queue as the dead-letter queue. sourceQueueArns
// The Amazon Resource Names (ARN)s of the source queues that can specify
// this queue as the dead-letter queue and redrive messages. You can specify
// this parameter only when the redrivePermission parameter is set to byQueue.
// You can specify up to 10 source queue ARNs. To allow more than 10 source
// queues to specify dead-letter queues, set the redrivePermission parameter
// to allowAll.
//
// The dead-letter queue of a FIFO queue must also be a FIFO queue. Similarly,
// the dead-letter queue of a standard queue must also be a standard queue.
//
// The following attributes apply only to server-side-encryption (https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-server-side-encryption.html):
//
// * KmsMasterKeyId Returns the ID of an Amazon Web Services managed
@ -4971,26 +5007,43 @@ type SetQueueAttributesInput struct {
// which a ReceiveMessage action waits for a message to arrive. Valid values:
// An integer from 0 to 20 (seconds). Default: 0.
//
// * RedrivePolicy The string that includes the parameters for the dead-letter
// queue functionality of the source queue as a JSON object. For more information
// about the redrive policy and dead-letter queues, see Using Amazon SQS
// Dead-Letter Queues (https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-dead-letter-queues.html)
// in the Amazon SQS Developer Guide. deadLetterTargetArn The Amazon
// Resource Name (ARN) of the dead-letter queue to which Amazon SQS moves
// messages after the value of maxReceiveCount is exceeded. maxReceiveCount
// The number of times a message is delivered to the source queue before
// being moved to the dead-letter queue. When the ReceiveCount for a message
// exceeds the maxReceiveCount for a queue, Amazon SQS moves the message
// to the dead-letter-queue. The dead-letter queue of a FIFO queue must also
// be a FIFO queue. Similarly, the dead-letter queue of a standard queue
// must also be a standard queue.
//
// * VisibilityTimeout The visibility timeout for the queue, in seconds.
// Valid values: An integer from 0 to 43,200 (12 hours). Default: 30. For
// more information about the visibility timeout, see Visibility Timeout
// (https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-visibility-timeout.html)
// in the Amazon SQS Developer Guide.
//
// The following attributes apply only to dead-letter queues: (https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-dead-letter-queues.html)
//
// * RedrivePolicy The string that includes the parameters for the dead-letter
// queue functionality of the source queue as a JSON object. The parameters
// are as follows: deadLetterTargetArn The Amazon Resource Name (ARN)
// of the dead-letter queue to which Amazon SQS moves messages after the
// value of maxReceiveCount is exceeded. maxReceiveCount The number of
// times a message is delivered to the source queue before being moved to
// the dead-letter queue. When the ReceiveCount for a message exceeds the
// maxReceiveCount for a queue, Amazon SQS moves the message to the dead-letter-queue.
//
// * RedriveAllowPolicy The string that includes the parameters for the
// permissions for the dead-letter queue redrive permission and which source
// queues can specify dead-letter queues as a JSON object. The parameters
// are as follows: redrivePermission The permission type that defines
// which source queues can specify the current queue as the dead-letter queue.
// Valid values are: allowAll (Default) Any source queues in this Amazon
// Web Services account in the same Region can specify this queue as the
// dead-letter queue. denyAll No source queues can specify this queue
// as the dead-letter queue. byQueue Only queues specified by the sourceQueueArns
// parameter can specify this queue as the dead-letter queue. sourceQueueArns
// The Amazon Resource Names (ARN)s of the source queues that can specify
// this queue as the dead-letter queue and redrive messages. You can specify
// this parameter only when the redrivePermission parameter is set to byQueue.
// You can specify up to 10 source queue ARNs. To allow more than 10 source
// queues to specify dead-letter queues, set the redrivePermission parameter
// to allowAll.
//
// The dead-letter queue of a FIFO queue must also be a FIFO queue. Similarly,
// the dead-letter queue of a standard queue must also be a standard queue.
//
// The following attributes apply only to server-side-encryption (https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-server-side-encryption.html):
//
// * KmsMasterKeyId The ID of an Amazon Web Services managed customer
@ -5362,6 +5415,9 @@ const (
// QueueAttributeNameFifoThroughputLimit is a QueueAttributeName enum value
QueueAttributeNameFifoThroughputLimit = "FifoThroughputLimit"
// QueueAttributeNameRedriveAllowPolicy is a QueueAttributeName enum value
QueueAttributeNameRedriveAllowPolicy = "RedriveAllowPolicy"
)
// QueueAttributeName_Values returns all elements of the QueueAttributeName enum
@ -5387,5 +5443,6 @@ func QueueAttributeName_Values() []string {
QueueAttributeNameKmsDataKeyReusePeriodSeconds,
QueueAttributeNameDeduplicationScope,
QueueAttributeNameFifoThroughputLimit,
QueueAttributeNameRedriveAllowPolicy,
}
}

2
vendor/modules.txt generated vendored
View File

@ -116,7 +116,7 @@ github.com/aws/amazon-ec2-instance-selector/v2/pkg/bytequantity
github.com/aws/amazon-ec2-instance-selector/v2/pkg/cli
github.com/aws/amazon-ec2-instance-selector/v2/pkg/selector
github.com/aws/amazon-ec2-instance-selector/v2/pkg/selector/outputs
# github.com/aws/aws-sdk-go v1.40.10
# github.com/aws/aws-sdk-go v1.40.38
## explicit
github.com/aws/aws-sdk-go/aws
github.com/aws/aws-sdk-go/aws/arn