diff --git a/.changelog/9a85c150aa8d4227a05d0d1d6929179d.json b/.changelog/9a85c150aa8d4227a05d0d1d6929179d.json new file mode 100644 index 00000000000..cc4c2e62d14 --- /dev/null +++ b/.changelog/9a85c150aa8d4227a05d0d1d6929179d.json @@ -0,0 +1,8 @@ +{ + "id": "9a85c150-aa8d-4227-a05d-0d1d6929179d", + "type": "feature", + "description": "AWS Shield Advanced now supports filtering for ListProtections and ListProtectionGroups.", + "modules": [ + "service/shield" + ] +} \ No newline at end of file diff --git a/.changelog/a2345791754c49d0b074a537da1a16f9.json b/.changelog/a2345791754c49d0b074a537da1a16f9.json new file mode 100644 index 00000000000..11c4011ec43 --- /dev/null +++ b/.changelog/a2345791754c49d0b074a537da1a16f9.json @@ -0,0 +1,8 @@ +{ + "id": "a2345791-754c-49d0-b074-a537da1a16f9", + "type": "documentation", + "description": "Documentation updates for Amazon FSx", + "modules": [ + "service/fsx" + ] +} \ No newline at end of file diff --git a/.changelog/dd6a1a776d864899a3e1111330877ab6.json b/.changelog/dd6a1a776d864899a3e1111330877ab6.json new file mode 100644 index 00000000000..ff27bbd4597 --- /dev/null +++ b/.changelog/dd6a1a776d864899a3e1111330877ab6.json @@ -0,0 +1,8 @@ +{ + "id": "dd6a1a77-6d86-4899-a3e1-111330877ab6", + "type": "feature", + "description": "Documentation updates for Amazon EC2.", + "modules": [ + "service/ec2" + ] +} \ No newline at end of file diff --git a/service/ec2/api_op_AllocateAddress.go b/service/ec2/api_op_AllocateAddress.go index 1a260695ff0..6e446088840 100644 --- a/service/ec2/api_op_AllocateAddress.go +++ b/service/ec2/api_op_AllocateAddress.go @@ -34,7 +34,11 @@ import ( // in the Amazon Elastic Compute Cloud User Guide. You can allocate a carrier IP // address which is a public IP address from a telecommunication carrier, to a // network interface which resides in a subnet in a Wavelength Zone (for example an -// EC2 instance). +// EC2 instance). We are retiring EC2-Classic on August 15, 2022. We recommend that +// you migrate from EC2-Classic to a VPC. For more information, see Migrate from +// EC2-Classic to a VPC +// (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/vpc-migrate.html) in the +// Amazon Elastic Compute Cloud User Guide. func (c *Client) AllocateAddress(ctx context.Context, params *AllocateAddressInput, optFns ...func(*Options)) (*AllocateAddressOutput, error) { if params == nil { params = &AllocateAddressInput{} diff --git a/service/ec2/api_op_AssociateAddress.go b/service/ec2/api_op_AssociateAddress.go index 2d054657bef..2e9c0c1417e 100644 --- a/service/ec2/api_op_AssociateAddress.go +++ b/service/ec2/api_op_AssociateAddress.go @@ -34,7 +34,11 @@ import ( // once, Amazon EC2 doesn't return an error, and you may be charged for each time // the Elastic IP address is remapped to the same instance. For more information, // see the Elastic IP Addresses section of Amazon EC2 Pricing -// (http://aws.amazon.com/ec2/pricing/). +// (http://aws.amazon.com/ec2/pricing/). We are retiring EC2-Classic on August 15, +// 2022. We recommend that you migrate from EC2-Classic to a VPC. For more +// information, see Migrate from EC2-Classic to a VPC +// (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/vpc-migrate.html) in the +// Amazon Elastic Compute Cloud User Guide. func (c *Client) AssociateAddress(ctx context.Context, params *AssociateAddressInput, optFns ...func(*Options)) (*AssociateAddressOutput, error) { if params == nil { params = &AssociateAddressInput{} diff --git a/service/ec2/api_op_AttachClassicLinkVpc.go b/service/ec2/api_op_AttachClassicLinkVpc.go index 6cf442bf046..c3045857db3 100644 --- a/service/ec2/api_op_AttachClassicLinkVpc.go +++ b/service/ec2/api_op_AttachClassicLinkVpc.go @@ -10,15 +10,18 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Links an EC2-Classic instance to a ClassicLink-enabled VPC through one or more -// of the VPC's security groups. You cannot link an EC2-Classic instance to more -// than one VPC at a time. You can only link an instance that's in the running -// state. An instance is automatically unlinked from a VPC when it's stopped - you -// can link it to the VPC again when you restart it. After you've linked an -// instance, you cannot change the VPC security groups that are associated with it. -// To change the security groups, you must first unlink the instance, and then link -// it again. Linking your instance to a VPC is sometimes referred to as attaching -// your instance. +// We are retiring EC2-Classic on August 15, 2022. We recommend that you migrate +// from EC2-Classic to a VPC. For more information, see Migrate from EC2-Classic to +// a VPC (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/vpc-migrate.html) in +// the Amazon Elastic Compute Cloud User Guide. Links an EC2-Classic instance to a +// ClassicLink-enabled VPC through one or more of the VPC's security groups. You +// cannot link an EC2-Classic instance to more than one VPC at a time. You can only +// link an instance that's in the running state. An instance is automatically +// unlinked from a VPC when it's stopped - you can link it to the VPC again when +// you restart it. After you've linked an instance, you cannot change the VPC +// security groups that are associated with it. To change the security groups, you +// must first unlink the instance, and then link it again. Linking your instance to +// a VPC is sometimes referred to as attaching your instance. func (c *Client) AttachClassicLinkVpc(ctx context.Context, params *AttachClassicLinkVpcInput, optFns ...func(*Options)) (*AttachClassicLinkVpcOutput, error) { if params == nil { params = &AttachClassicLinkVpcInput{} diff --git a/service/ec2/api_op_CreateDefaultVpc.go b/service/ec2/api_op_CreateDefaultVpc.go index f73b31d19d9..e0274d07700 100644 --- a/service/ec2/api_op_CreateDefaultVpc.go +++ b/service/ec2/api_op_CreateDefaultVpc.go @@ -22,7 +22,11 @@ import ( // default VPC in a Region that supports EC2-Classic. If you want a default VPC in // a Region that supports EC2-Classic, see "I really want a default VPC for my // existing EC2 account. Is that possible?" in the Default VPCs FAQ -// (http://aws.amazon.com/vpc/faqs/#Default_VPCs). +// (http://aws.amazon.com/vpc/faqs/#Default_VPCs). We are retiring EC2-Classic on +// August 15, 2022. We recommend that you migrate from EC2-Classic to a VPC. For +// more information, see Migrate from EC2-Classic to a VPC +// (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/vpc-migrate.html) in the +// Amazon Elastic Compute Cloud User Guide. func (c *Client) CreateDefaultVpc(ctx context.Context, params *CreateDefaultVpcInput, optFns ...func(*Options)) (*CreateDefaultVpcOutput, error) { if params == nil { params = &CreateDefaultVpcInput{} diff --git a/service/ec2/api_op_DescribeAddresses.go b/service/ec2/api_op_DescribeAddresses.go index 9b39fe99b51..1a69813b4f1 100644 --- a/service/ec2/api_op_DescribeAddresses.go +++ b/service/ec2/api_op_DescribeAddresses.go @@ -15,7 +15,11 @@ import ( // addresses. An Elastic IP address is for use in either the EC2-Classic platform // or in a VPC. For more information, see Elastic IP Addresses // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/elastic-ip-addresses-eip.html) -// in the Amazon Elastic Compute Cloud User Guide. +// in the Amazon Elastic Compute Cloud User Guide. We are retiring EC2-Classic on +// August 15, 2022. We recommend that you migrate from EC2-Classic to a VPC. For +// more information, see Migrate from EC2-Classic to a VPC +// (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/vpc-migrate.html) in the +// Amazon Elastic Compute Cloud User Guide. func (c *Client) DescribeAddresses(ctx context.Context, params *DescribeAddressesInput, optFns ...func(*Options)) (*DescribeAddressesOutput, error) { if params == nil { params = &DescribeAddressesInput{} diff --git a/service/ec2/api_op_DescribeClassicLinkInstances.go b/service/ec2/api_op_DescribeClassicLinkInstances.go index 8c0f237e545..a81655c9f37 100644 --- a/service/ec2/api_op_DescribeClassicLinkInstances.go +++ b/service/ec2/api_op_DescribeClassicLinkInstances.go @@ -15,7 +15,11 @@ import ( // Describes one or more of your linked EC2-Classic instances. This request only // returns information about EC2-Classic instances linked to a VPC through // ClassicLink. You cannot use this request to return information about other -// instances. +// instances. We are retiring EC2-Classic on August 15, 2022. We recommend that you +// migrate from EC2-Classic to a VPC. For more information, see Migrate from +// EC2-Classic to a VPC +// (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/vpc-migrate.html) in the +// Amazon Elastic Compute Cloud User Guide. func (c *Client) DescribeClassicLinkInstances(ctx context.Context, params *DescribeClassicLinkInstancesInput, optFns ...func(*Options)) (*DescribeClassicLinkInstancesOutput, error) { if params == nil { params = &DescribeClassicLinkInstancesInput{} diff --git a/service/ec2/api_op_DescribeInstances.go b/service/ec2/api_op_DescribeInstances.go index 7858516d936..d8315cac468 100644 --- a/service/ec2/api_op_DescribeInstances.go +++ b/service/ec2/api_op_DescribeInstances.go @@ -32,7 +32,11 @@ import ( // rare case where an Availability Zone is experiencing a service disruption and // you specify instance IDs that are in the affected zone, or do not specify any // instance IDs at all, the call fails. If you describe instances and specify only -// instance IDs that are in an unaffected zone, the call works normally. +// instance IDs that are in an unaffected zone, the call works normally. We are +// retiring EC2-Classic on August 15, 2022. We recommend that you migrate from +// EC2-Classic to a VPC. For more information, see Migrate from EC2-Classic to a +// VPC (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/vpc-migrate.html) in +// the Amazon EC2 User Guide. func (c *Client) DescribeInstances(ctx context.Context, params *DescribeInstancesInput, optFns ...func(*Options)) (*DescribeInstancesOutput, error) { if params == nil { params = &DescribeInstancesInput{} diff --git a/service/ec2/api_op_DescribeReservedInstances.go b/service/ec2/api_op_DescribeReservedInstances.go index 3506743c25e..eae249e5c6f 100644 --- a/service/ec2/api_op_DescribeReservedInstances.go +++ b/service/ec2/api_op_DescribeReservedInstances.go @@ -14,7 +14,11 @@ import ( // Describes one or more of the Reserved Instances that you purchased. For more // information about Reserved Instances, see Reserved Instances // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/concepts-on-demand-reserved-instances.html) -// in the Amazon EC2 User Guide. +// in the Amazon EC2 User Guide. We are retiring EC2-Classic on August 15, 2022. We +// recommend that you migrate from EC2-Classic to a VPC. For more information, see +// Migrate from EC2-Classic to a VPC +// (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/vpc-migrate.html) in the +// Amazon Elastic Compute Cloud User Guide. func (c *Client) DescribeReservedInstances(ctx context.Context, params *DescribeReservedInstancesInput, optFns ...func(*Options)) (*DescribeReservedInstancesOutput, error) { if params == nil { params = &DescribeReservedInstancesInput{} diff --git a/service/ec2/api_op_DescribeReservedInstancesModifications.go b/service/ec2/api_op_DescribeReservedInstancesModifications.go index e7ca28048e6..81737b49c55 100644 --- a/service/ec2/api_op_DescribeReservedInstancesModifications.go +++ b/service/ec2/api_op_DescribeReservedInstancesModifications.go @@ -18,7 +18,11 @@ import ( // specific modification is returned. For more information, see Modifying Reserved // Instances // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ri-modifying.html) in the -// Amazon EC2 User Guide. +// Amazon EC2 User Guide. We are retiring EC2-Classic on August 15, 2022. We +// recommend that you migrate from EC2-Classic to a VPC. For more information, see +// Migrate from EC2-Classic to a VPC +// (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/vpc-migrate.html) in the +// Amazon Elastic Compute Cloud User Guide. func (c *Client) DescribeReservedInstancesModifications(ctx context.Context, params *DescribeReservedInstancesModificationsInput, optFns ...func(*Options)) (*DescribeReservedInstancesModificationsOutput, error) { if params == nil { params = &DescribeReservedInstancesModificationsInput{} diff --git a/service/ec2/api_op_DescribeReservedInstancesOfferings.go b/service/ec2/api_op_DescribeReservedInstancesOfferings.go index e52eabdaff0..24ec995d6fd 100644 --- a/service/ec2/api_op_DescribeReservedInstancesOfferings.go +++ b/service/ec2/api_op_DescribeReservedInstancesOfferings.go @@ -21,7 +21,11 @@ import ( // This is to ensure that you do not purchase your own Reserved Instances. For more // information, see Reserved Instance Marketplace // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ri-market-general.html) in -// the Amazon EC2 User Guide. +// the Amazon EC2 User Guide. We are retiring EC2-Classic on August 15, 2022. We +// recommend that you migrate from EC2-Classic to a VPC. For more information, see +// Migrate from EC2-Classic to a VPC +// (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/vpc-migrate.html) in the +// Amazon Elastic Compute Cloud User Guide. func (c *Client) DescribeReservedInstancesOfferings(ctx context.Context, params *DescribeReservedInstancesOfferingsInput, optFns ...func(*Options)) (*DescribeReservedInstancesOfferingsOutput, error) { if params == nil { params = &DescribeReservedInstancesOfferingsInput{} diff --git a/service/ec2/api_op_DescribeScheduledInstanceAvailability.go b/service/ec2/api_op_DescribeScheduledInstanceAvailability.go index 0c13269735a..b0ea1132a1f 100644 --- a/service/ec2/api_op_DescribeScheduledInstanceAvailability.go +++ b/service/ec2/api_op_DescribeScheduledInstanceAvailability.go @@ -18,7 +18,11 @@ import ( // daily schedule is 4 hours, the minimum weekly schedule is 24 hours, and the // minimum monthly schedule is 100 hours. After you find a schedule that meets your // needs, call PurchaseScheduledInstances to purchase Scheduled Instances with that -// schedule. +// schedule. We are retiring EC2-Classic on August 15, 2022. We recommend that you +// migrate from EC2-Classic to a VPC. For more information, see Migrate from +// EC2-Classic to a VPC +// (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/vpc-migrate.html) in the +// Amazon Elastic Compute Cloud User Guide. func (c *Client) DescribeScheduledInstanceAvailability(ctx context.Context, params *DescribeScheduledInstanceAvailabilityInput, optFns ...func(*Options)) (*DescribeScheduledInstanceAvailabilityOutput, error) { if params == nil { params = &DescribeScheduledInstanceAvailabilityInput{} diff --git a/service/ec2/api_op_DescribeScheduledInstances.go b/service/ec2/api_op_DescribeScheduledInstances.go index e51c8c09015..cb701615c02 100644 --- a/service/ec2/api_op_DescribeScheduledInstances.go +++ b/service/ec2/api_op_DescribeScheduledInstances.go @@ -12,7 +12,11 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Describes the specified Scheduled Instances or all your Scheduled Instances. +// Describes the specified Scheduled Instances or all your Scheduled Instances. We +// are retiring EC2-Classic on August 15, 2022. We recommend that you migrate from +// EC2-Classic to a VPC. For more information, see Migrate from EC2-Classic to a +// VPC (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/vpc-migrate.html) in +// the Amazon Elastic Compute Cloud User Guide. func (c *Client) DescribeScheduledInstances(ctx context.Context, params *DescribeScheduledInstancesInput, optFns ...func(*Options)) (*DescribeScheduledInstancesOutput, error) { if params == nil { params = &DescribeScheduledInstancesInput{} diff --git a/service/ec2/api_op_DescribeVpcClassicLink.go b/service/ec2/api_op_DescribeVpcClassicLink.go index aca7bbda60f..bdb53791b15 100644 --- a/service/ec2/api_op_DescribeVpcClassicLink.go +++ b/service/ec2/api_op_DescribeVpcClassicLink.go @@ -11,7 +11,11 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Describes the ClassicLink status of one or more VPCs. +// Describes the ClassicLink status of one or more VPCs. We are retiring +// EC2-Classic on August 15, 2022. We recommend that you migrate from EC2-Classic +// to a VPC. For more information, see Migrate from EC2-Classic to a VPC +// (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/vpc-migrate.html) in the +// Amazon Elastic Compute Cloud User Guide. func (c *Client) DescribeVpcClassicLink(ctx context.Context, params *DescribeVpcClassicLinkInput, optFns ...func(*Options)) (*DescribeVpcClassicLinkOutput, error) { if params == nil { params = &DescribeVpcClassicLinkInput{} diff --git a/service/ec2/api_op_DescribeVpcClassicLinkDnsSupport.go b/service/ec2/api_op_DescribeVpcClassicLinkDnsSupport.go index 9e2dbd94975..defd1e7aaa2 100644 --- a/service/ec2/api_op_DescribeVpcClassicLinkDnsSupport.go +++ b/service/ec2/api_op_DescribeVpcClassicLinkDnsSupport.go @@ -12,12 +12,15 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Describes the ClassicLink DNS support status of one or more VPCs. If enabled, -// the DNS hostname of a linked EC2-Classic instance resolves to its private IP -// address when addressed from an instance in the VPC to which it's linked. -// Similarly, the DNS hostname of an instance in a VPC resolves to its private IP -// address when addressed from a linked EC2-Classic instance. For more information, -// see ClassicLink +// We are retiring EC2-Classic on August 15, 2022. We recommend that you migrate +// from EC2-Classic to a VPC. For more information, see Migrate from EC2-Classic to +// a VPC (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/vpc-migrate.html) in +// the Amazon Elastic Compute Cloud User Guide. Describes the ClassicLink DNS +// support status of one or more VPCs. If enabled, the DNS hostname of a linked +// EC2-Classic instance resolves to its private IP address when addressed from an +// instance in the VPC to which it's linked. Similarly, the DNS hostname of an +// instance in a VPC resolves to its private IP address when addressed from a +// linked EC2-Classic instance. For more information, see ClassicLink // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/vpc-classiclink.html) in // the Amazon Elastic Compute Cloud User Guide. func (c *Client) DescribeVpcClassicLinkDnsSupport(ctx context.Context, params *DescribeVpcClassicLinkDnsSupportInput, optFns ...func(*Options)) (*DescribeVpcClassicLinkDnsSupportOutput, error) { diff --git a/service/ec2/api_op_DetachClassicLinkVpc.go b/service/ec2/api_op_DetachClassicLinkVpc.go index 5dcdbd99189..dd3dab3b885 100644 --- a/service/ec2/api_op_DetachClassicLinkVpc.go +++ b/service/ec2/api_op_DetachClassicLinkVpc.go @@ -10,9 +10,13 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Unlinks (detaches) a linked EC2-Classic instance from a VPC. After the instance -// has been unlinked, the VPC security groups are no longer associated with it. An -// instance is automatically unlinked from a VPC when it's stopped. +// We are retiring EC2-Classic on August 15, 2022. We recommend that you migrate +// from EC2-Classic to a VPC. For more information, see Migrate from EC2-Classic to +// a VPC (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/vpc-migrate.html) in +// the Amazon Elastic Compute Cloud User Guide. Unlinks (detaches) a linked +// EC2-Classic instance from a VPC. After the instance has been unlinked, the VPC +// security groups are no longer associated with it. An instance is automatically +// unlinked from a VPC when it's stopped. func (c *Client) DetachClassicLinkVpc(ctx context.Context, params *DetachClassicLinkVpcInput, optFns ...func(*Options)) (*DetachClassicLinkVpcOutput, error) { if params == nil { params = &DetachClassicLinkVpcInput{} diff --git a/service/ec2/api_op_DisableVpcClassicLink.go b/service/ec2/api_op_DisableVpcClassicLink.go index ff13f9d3a01..663b7d0edd2 100644 --- a/service/ec2/api_op_DisableVpcClassicLink.go +++ b/service/ec2/api_op_DisableVpcClassicLink.go @@ -11,7 +11,11 @@ import ( ) // Disables ClassicLink for a VPC. You cannot disable ClassicLink for a VPC that -// has EC2-Classic instances linked to it. +// has EC2-Classic instances linked to it. We are retiring EC2-Classic on August +// 15, 2022. We recommend that you migrate from EC2-Classic to a VPC. For more +// information, see Migrate from EC2-Classic to a VPC +// (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/vpc-migrate.html) in the +// Amazon Elastic Compute Cloud User Guide. func (c *Client) DisableVpcClassicLink(ctx context.Context, params *DisableVpcClassicLinkInput, optFns ...func(*Options)) (*DisableVpcClassicLinkOutput, error) { if params == nil { params = &DisableVpcClassicLinkInput{} diff --git a/service/ec2/api_op_DisableVpcClassicLinkDnsSupport.go b/service/ec2/api_op_DisableVpcClassicLinkDnsSupport.go index 74fe7c570c7..0b88f4595b4 100644 --- a/service/ec2/api_op_DisableVpcClassicLinkDnsSupport.go +++ b/service/ec2/api_op_DisableVpcClassicLinkDnsSupport.go @@ -15,7 +15,11 @@ import ( // instances in the VPC to which it's linked. For more information, see ClassicLink // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/vpc-classiclink.html) in // the Amazon Elastic Compute Cloud User Guide. You must specify a VPC ID in the -// request. +// request. We are retiring EC2-Classic on August 15, 2022. We recommend that you +// migrate from EC2-Classic to a VPC. For more information, see Migrate from +// EC2-Classic to a VPC +// (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/vpc-migrate.html) in the +// Amazon Elastic Compute Cloud User Guide. func (c *Client) DisableVpcClassicLinkDnsSupport(ctx context.Context, params *DisableVpcClassicLinkDnsSupportInput, optFns ...func(*Options)) (*DisableVpcClassicLinkDnsSupportOutput, error) { if params == nil { params = &DisableVpcClassicLinkDnsSupportInput{} diff --git a/service/ec2/api_op_DisassociateAddress.go b/service/ec2/api_op_DisassociateAddress.go index b089d89b9de..b119b99c6ab 100644 --- a/service/ec2/api_op_DisassociateAddress.go +++ b/service/ec2/api_op_DisassociateAddress.go @@ -14,8 +14,12 @@ import ( // associated with. An Elastic IP address is for use in either the EC2-Classic // platform or in a VPC. For more information, see Elastic IP Addresses // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/elastic-ip-addresses-eip.html) -// in the Amazon Elastic Compute Cloud User Guide. This is an idempotent operation. -// If you perform the operation more than once, Amazon EC2 doesn't return an error. +// in the Amazon Elastic Compute Cloud User Guide. We are retiring EC2-Classic on +// August 15, 2022. We recommend that you migrate from EC2-Classic to a VPC. For +// more information, see Migrate from EC2-Classic to a VPC +// (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/vpc-migrate.html) in the +// Amazon Elastic Compute Cloud User Guide. This is an idempotent operation. If you +// perform the operation more than once, Amazon EC2 doesn't return an error. func (c *Client) DisassociateAddress(ctx context.Context, params *DisassociateAddressInput, optFns ...func(*Options)) (*DisassociateAddressOutput, error) { if params == nil { params = &DisassociateAddressInput{} diff --git a/service/ec2/api_op_EnableVpcClassicLink.go b/service/ec2/api_op_EnableVpcClassicLink.go index 1b07ac40ac7..fa678b936e6 100644 --- a/service/ec2/api_op_EnableVpcClassicLink.go +++ b/service/ec2/api_op_EnableVpcClassicLink.go @@ -10,12 +10,16 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Enables a VPC for ClassicLink. You can then link EC2-Classic instances to your -// ClassicLink-enabled VPC to allow communication over private IP addresses. You -// cannot enable your VPC for ClassicLink if any of your VPC route tables have -// existing routes for address ranges within the 10.0.0.0/8 IP address range, -// excluding local routes for VPCs in the 10.0.0.0/16 and 10.1.0.0/16 IP address -// ranges. For more information, see ClassicLink +// We are retiring EC2-Classic on August 15, 2022. We recommend that you migrate +// from EC2-Classic to a VPC. For more information, see Migrate from EC2-Classic to +// a VPC (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/vpc-migrate.html) in +// the Amazon Elastic Compute Cloud User Guide. Enables a VPC for ClassicLink. You +// can then link EC2-Classic instances to your ClassicLink-enabled VPC to allow +// communication over private IP addresses. You cannot enable your VPC for +// ClassicLink if any of your VPC route tables have existing routes for address +// ranges within the 10.0.0.0/8 IP address range, excluding local routes for VPCs +// in the 10.0.0.0/16 and 10.1.0.0/16 IP address ranges. For more information, see +// ClassicLink // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/vpc-classiclink.html) in // the Amazon Elastic Compute Cloud User Guide. func (c *Client) EnableVpcClassicLink(ctx context.Context, params *EnableVpcClassicLinkInput, optFns ...func(*Options)) (*EnableVpcClassicLinkOutput, error) { diff --git a/service/ec2/api_op_EnableVpcClassicLinkDnsSupport.go b/service/ec2/api_op_EnableVpcClassicLinkDnsSupport.go index 922caf3fe4d..067c1dbb6ef 100644 --- a/service/ec2/api_op_EnableVpcClassicLinkDnsSupport.go +++ b/service/ec2/api_op_EnableVpcClassicLinkDnsSupport.go @@ -10,12 +10,15 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Enables a VPC to support DNS hostname resolution for ClassicLink. If enabled, -// the DNS hostname of a linked EC2-Classic instance resolves to its private IP -// address when addressed from an instance in the VPC to which it's linked. -// Similarly, the DNS hostname of an instance in a VPC resolves to its private IP -// address when addressed from a linked EC2-Classic instance. For more information, -// see ClassicLink +// We are retiring EC2-Classic on August 15, 2022. We recommend that you migrate +// from EC2-Classic to a VPC. For more information, see Migrate from EC2-Classic to +// a VPC (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/vpc-migrate.html) in +// the Amazon Elastic Compute Cloud User Guide. Enables a VPC to support DNS +// hostname resolution for ClassicLink. If enabled, the DNS hostname of a linked +// EC2-Classic instance resolves to its private IP address when addressed from an +// instance in the VPC to which it's linked. Similarly, the DNS hostname of an +// instance in a VPC resolves to its private IP address when addressed from a +// linked EC2-Classic instance. For more information, see ClassicLink // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/vpc-classiclink.html) in // the Amazon Elastic Compute Cloud User Guide. You must specify a VPC ID in the // request. diff --git a/service/ec2/api_op_ModifyReservedInstances.go b/service/ec2/api_op_ModifyReservedInstances.go index b8f4e95c2bb..28d74ccb2b7 100644 --- a/service/ec2/api_op_ModifyReservedInstances.go +++ b/service/ec2/api_op_ModifyReservedInstances.go @@ -17,7 +17,11 @@ import ( // network platform, and instance type. For more information, see Modifying // Reserved Instances // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ri-modifying.html) in the -// Amazon EC2 User Guide. +// Amazon EC2 User Guide. We are retiring EC2-Classic on August 15, 2022. We +// recommend that you migrate from EC2-Classic to a VPC. For more information, see +// Migrate from EC2-Classic to a VPC +// (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/vpc-migrate.html) in the +// Amazon Elastic Compute Cloud User Guide. func (c *Client) ModifyReservedInstances(ctx context.Context, params *ModifyReservedInstancesInput, optFns ...func(*Options)) (*ModifyReservedInstancesOutput, error) { if params == nil { params = &ModifyReservedInstancesInput{} diff --git a/service/ec2/api_op_ModifyVpcPeeringConnectionOptions.go b/service/ec2/api_op_ModifyVpcPeeringConnectionOptions.go index 65977efb6a6..ef49007b09b 100644 --- a/service/ec2/api_op_ModifyVpcPeeringConnectionOptions.go +++ b/service/ec2/api_op_ModifyVpcPeeringConnectionOptions.go @@ -11,33 +11,36 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Modifies the VPC peering connection options on one side of a VPC peering -// connection. You can do the following: +// We are retiring EC2-Classic on August 15, 2022. We recommend that you migrate +// from EC2-Classic to a VPC. For more information, see Migrate from EC2-Classic to +// a VPC (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/vpc-migrate.html) in +// the Amazon Elastic Compute Cloud User Guide. Modifies the VPC peering connection +// options on one side of a VPC peering connection. You can do the following: // -// * Enable/disable communication over the -// peering connection between an EC2-Classic instance that's linked to your VPC -// (using ClassicLink) and instances in the peer VPC. +// * +// Enable/disable communication over the peering connection between an EC2-Classic +// instance that's linked to your VPC (using ClassicLink) and instances in the peer +// VPC. // -// * Enable/disable -// communication over the peering connection between instances in your VPC and an -// EC2-Classic instance that's linked to the peer VPC. +// * Enable/disable communication over the peering connection between +// instances in your VPC and an EC2-Classic instance that's linked to the peer +// VPC. // -// * Enable/disable the -// ability to resolve public DNS hostnames to private IP addresses when queried -// from instances in the peer VPC. +// * Enable/disable the ability to resolve public DNS hostnames to private IP +// addresses when queried from instances in the peer VPC. // -// If the peered VPCs are in the same Amazon Web -// Services account, you can enable DNS resolution for queries from the local VPC. -// This ensures that queries from the local VPC resolve to private IP addresses in -// the peer VPC. This option is not available if the peered VPCs are in different -// different Amazon Web Services accounts or different Regions. For peered VPCs in -// different Amazon Web Services accounts, each Amazon Web Services account owner -// must initiate a separate request to modify the peering connection options. For -// inter-region peering connections, you must use the Region for the requester VPC -// to modify the requester VPC peering options and the Region for the accepter VPC -// to modify the accepter VPC peering options. To verify which VPCs are the -// accepter and the requester for a VPC peering connection, use the -// DescribeVpcPeeringConnections command. +// If the peered VPCs are +// in the same Amazon Web Services account, you can enable DNS resolution for +// queries from the local VPC. This ensures that queries from the local VPC resolve +// to private IP addresses in the peer VPC. This option is not available if the +// peered VPCs are in different different Amazon Web Services accounts or different +// Regions. For peered VPCs in different Amazon Web Services accounts, each Amazon +// Web Services account owner must initiate a separate request to modify the +// peering connection options. For inter-region peering connections, you must use +// the Region for the requester VPC to modify the requester VPC peering options and +// the Region for the accepter VPC to modify the accepter VPC peering options. To +// verify which VPCs are the accepter and the requester for a VPC peering +// connection, use the DescribeVpcPeeringConnections command. func (c *Client) ModifyVpcPeeringConnectionOptions(ctx context.Context, params *ModifyVpcPeeringConnectionOptionsInput, optFns ...func(*Options)) (*ModifyVpcPeeringConnectionOptionsOutput, error) { if params == nil { params = &ModifyVpcPeeringConnectionOptionsInput{} diff --git a/service/ec2/api_op_MoveAddressToVpc.go b/service/ec2/api_op_MoveAddressToVpc.go index 99bdd06c5a9..adf1d69df93 100644 --- a/service/ec2/api_op_MoveAddressToVpc.go +++ b/service/ec2/api_op_MoveAddressToVpc.go @@ -17,7 +17,11 @@ import ( // address is moved, it is no longer available for use in the EC2-Classic platform, // unless you move it back using the RestoreAddressToClassic request. You cannot // move an Elastic IP address that was originally allocated for use in the EC2-VPC -// platform to the EC2-Classic platform. +// platform to the EC2-Classic platform. We are retiring EC2-Classic on August 15, +// 2022. We recommend that you migrate from EC2-Classic to a VPC. For more +// information, see Migrate from EC2-Classic to a VPC +// (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/vpc-migrate.html) in the +// Amazon Elastic Compute Cloud User Guide. func (c *Client) MoveAddressToVpc(ctx context.Context, params *MoveAddressToVpcInput, optFns ...func(*Options)) (*MoveAddressToVpcOutput, error) { if params == nil { params = &MoveAddressToVpcInput{} diff --git a/service/ec2/api_op_ReleaseAddress.go b/service/ec2/api_op_ReleaseAddress.go index f88d03b8181..8a0379ea59c 100644 --- a/service/ec2/api_op_ReleaseAddress.go +++ b/service/ec2/api_op_ReleaseAddress.go @@ -13,16 +13,20 @@ import ( // Releases the specified Elastic IP address. [EC2-Classic, default VPC] Releasing // an Elastic IP address automatically disassociates it from any instance that it's // associated with. To disassociate an Elastic IP address without releasing it, use -// DisassociateAddress. [Nondefault VPC] You must use DisassociateAddress to -// disassociate the Elastic IP address before you can release it. Otherwise, Amazon -// EC2 returns an error (InvalidIPAddress.InUse). After releasing an Elastic IP -// address, it is released to the IP address pool. Be sure to update your DNS -// records and any servers or devices that communicate with the address. If you -// attempt to release an Elastic IP address that you already released, you'll get -// an AuthFailure error if the address is already allocated to another Amazon Web -// Services account. [EC2-VPC] After you release an Elastic IP address for use in a -// VPC, you might be able to recover it. For more information, see AllocateAddress. -// For more information, see Elastic IP Addresses +// DisassociateAddress. We are retiring EC2-Classic on August 15, 2022. We +// recommend that you migrate from EC2-Classic to a VPC. For more information, see +// Migrate from EC2-Classic to a VPC +// (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/vpc-migrate.html) in the +// Amazon Elastic Compute Cloud User Guide. [Nondefault VPC] You must use +// DisassociateAddress to disassociate the Elastic IP address before you can +// release it. Otherwise, Amazon EC2 returns an error (InvalidIPAddress.InUse). +// After releasing an Elastic IP address, it is released to the IP address pool. Be +// sure to update your DNS records and any servers or devices that communicate with +// the address. If you attempt to release an Elastic IP address that you already +// released, you'll get an AuthFailure error if the address is already allocated to +// another Amazon Web Services account. [EC2-VPC] After you release an Elastic IP +// address for use in a VPC, you might be able to recover it. For more information, +// see AllocateAddress. For more information, see Elastic IP Addresses // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/elastic-ip-addresses-eip.html) // in the Amazon Elastic Compute Cloud User Guide. func (c *Client) ReleaseAddress(ctx context.Context, params *ReleaseAddressInput, optFns ...func(*Options)) (*ReleaseAddressOutput, error) { diff --git a/service/ec2/api_op_RequestSpotInstances.go b/service/ec2/api_op_RequestSpotInstances.go index a70d5a977b4..1d945dc0ce3 100644 --- a/service/ec2/api_op_RequestSpotInstances.go +++ b/service/ec2/api_op_RequestSpotInstances.go @@ -20,7 +20,11 @@ import ( // For options for requesting Spot Instances, see Which is the best Spot request // method to use? // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-best-practices.html#which-spot-request-method-to-use) -// in the Amazon EC2 User Guide for Linux Instances. +// in the Amazon EC2 User Guide for Linux Instances. We are retiring EC2-Classic on +// August 15, 2022. We recommend that you migrate from EC2-Classic to a VPC. For +// more information, see Migrate from EC2-Classic to a VPC +// (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/vpc-migrate.html) in the +// Amazon EC2 User Guide for Linux Instances. func (c *Client) RequestSpotInstances(ctx context.Context, params *RequestSpotInstancesInput, optFns ...func(*Options)) (*RequestSpotInstancesOutput, error) { if params == nil { params = &RequestSpotInstancesInput{} diff --git a/service/ec2/api_op_RestoreAddressToClassic.go b/service/ec2/api_op_RestoreAddressToClassic.go index 4b7b8937c7d..aab100755da 100644 --- a/service/ec2/api_op_RestoreAddressToClassic.go +++ b/service/ec2/api_op_RestoreAddressToClassic.go @@ -14,7 +14,11 @@ import ( // Restores an Elastic IP address that was previously moved to the EC2-VPC platform // back to the EC2-Classic platform. You cannot move an Elastic IP address that was // originally allocated for use in EC2-VPC. The Elastic IP address must not be -// associated with an instance or network interface. +// associated with an instance or network interface. We are retiring EC2-Classic on +// August 15, 2022. We recommend that you migrate from EC2-Classic to a VPC. For +// more information, see Migrate from EC2-Classic to a VPC +// (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/vpc-migrate.html) in the +// Amazon Elastic Compute Cloud User Guide. func (c *Client) RestoreAddressToClassic(ctx context.Context, params *RestoreAddressToClassicInput, optFns ...func(*Options)) (*RestoreAddressToClassicOutput, error) { if params == nil { params = &RestoreAddressToClassicInput{} diff --git a/service/ec2/api_op_RunInstances.go b/service/ec2/api_op_RunInstances.go index f707248d97f..4ea2de78ef6 100644 --- a/service/ec2/api_op_RunInstances.go +++ b/service/ec2/api_op_RunInstances.go @@ -68,6 +68,10 @@ import ( // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Using_InstanceStraightToTerminated.html), // and Troubleshooting connecting to your instance // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/TroubleshootingInstancesConnecting.html). +// We are retiring EC2-Classic on August 15, 2022. We recommend that you migrate +// from EC2-Classic to a VPC. For more information, see Migrate from EC2-Classic to +// a VPC (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/vpc-migrate.html) in +// the Amazon EC2 User Guide. func (c *Client) RunInstances(ctx context.Context, params *RunInstancesInput, optFns ...func(*Options)) (*RunInstancesOutput, error) { if params == nil { params = &RunInstancesInput{} @@ -356,7 +360,11 @@ type RunInstancesInput struct { // Describes a launch request for one or more instances, and includes owner, // requester, and security group information that applies to all instances in the -// launch request. +// launch request. We are retiring EC2-Classic on August 15, 2022. We recommend +// that you migrate from EC2-Classic to a VPC. For more information, see Migrate +// from EC2-Classic to a VPC +// (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/vpc-migrate.html) in the +// Amazon EC2 User Guide. type RunInstancesOutput struct { // [EC2-Classic only] The security groups. diff --git a/service/ec2/types/enums.go b/service/ec2/types/enums.go index e812210329a..7e69f9a1017 100644 --- a/service/ec2/types/enums.go +++ b/service/ec2/types/enums.go @@ -5324,6 +5324,9 @@ const ( ResourceTypeVpnConnection ResourceType = "vpn-connection" ResourceTypeVpnGateway ResourceType = "vpn-gateway" ResourceTypeVpcFlowLog ResourceType = "vpc-flow-log" + ResourceTypeCapacityReservationFleet ResourceType = "capacity-reservation-fleet" + ResourceTypeTrafficMirrorFilterRule ResourceType = "traffic-mirror-filter-rule" + ResourceTypeVpcEndpointConnectionDeviceType ResourceType = "vpc-endpoint-connection-device-type" ) // Values returns all known values for ResourceType. Note that this can be expanded @@ -5401,6 +5404,9 @@ func (ResourceType) Values() []ResourceType { "vpn-connection", "vpn-gateway", "vpc-flow-log", + "capacity-reservation-fleet", + "traffic-mirror-filter-rule", + "vpc-endpoint-connection-device-type", } } diff --git a/service/ec2/types/types.go b/service/ec2/types/types.go index aea000d4a60..a68f0f72eae 100644 --- a/service/ec2/types/types.go +++ b/service/ec2/types/types.go @@ -1320,7 +1320,11 @@ type ClassicLinkDnsSupport struct { noSmithyDocumentSerde } -// Describes a linked EC2-Classic instance. +// We are retiring EC2-Classic on August 15, 2022. We recommend that you migrate +// from EC2-Classic to a VPC. For more information, see Migrate from EC2-Classic to +// a VPC (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/vpc-migrate.html) in +// the Amazon Elastic Compute Cloud User Guide. Describes a linked EC2-Classic +// instance. type ClassicLinkInstance struct { // A list of security groups. @@ -7382,7 +7386,11 @@ type LaunchPermissionModifications struct { noSmithyDocumentSerde } -// Describes the launch specification for an instance. +// Describes the launch specification for an instance. We are retiring EC2-Classic +// on August 15, 2022. We recommend that you migrate from EC2-Classic to a VPC. For +// more information, see Migrate from EC2-Classic to a VPC +// (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/vpc-migrate.html) in the +// Amazon EC2 User Guide for Linux Instances. type LaunchSpecification struct { // Deprecated. @@ -8286,8 +8294,10 @@ type LaunchTemplateSpecification struct { // LaunchTemplateId, but not both. LaunchTemplateName *string - // The version number of the launch template. Default: The default version for the - // launch template. + // The launch template version number, $Latest, or $Default. If the value is + // $Latest, Amazon EC2 uses the latest version of the launch template. If the value + // is $Default, Amazon EC2 uses the default version of the launch template. + // Default: The default version of the launch template. Version *string noSmithyDocumentSerde @@ -8964,7 +8974,11 @@ type Monitoring struct { noSmithyDocumentSerde } -// Describes the status of a moving Elastic IP address. +// Describes the status of a moving Elastic IP address. We are retiring EC2-Classic +// on August 15, 2022. We recommend that you migrate from EC2-Classic to a VPC. For +// more information, see Migrate from EC2-Classic to a VPC +// (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/vpc-migrate.html) in the +// Amazon Elastic Compute Cloud User Guide. type MovingAddressStatus struct { // The status of the Elastic IP address that's being moved to the EC2-VPC platform, @@ -9878,7 +9892,11 @@ type PeeringAttachmentStatus struct { noSmithyDocumentSerde } -// Describes the VPC peering connection options. +// We are retiring EC2-Classic on August 15, 2022. We recommend that you migrate +// from EC2-Classic to a VPC. For more information, see Migrate from EC2-Classic to +// a VPC (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/vpc-migrate.html) in +// the Amazon Elastic Compute Cloud User Guide. Describes the VPC peering +// connection options. type PeeringConnectionOptions struct { // If true, the public DNS hostnames of instances in the specified VPC resolve to @@ -9896,7 +9914,10 @@ type PeeringConnectionOptions struct { noSmithyDocumentSerde } -// The VPC peering connection options. +// We are retiring EC2-Classic on August 15, 2022. We recommend that you migrate +// from EC2-Classic to a VPC. For more information, see Migrate from EC2-Classic to +// a VPC (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/vpc-migrate.html) in +// the Amazon Elastic Compute Cloud User Guide. The VPC peering connection options. type PeeringConnectionOptionsRequest struct { // If true, enables a local VPC to resolve public DNS hostnames to private IP @@ -10970,7 +10991,11 @@ type RequestSpotLaunchSpecification struct { // Describes a launch request for one or more instances, and includes owner, // requester, and security group information that applies to all instances in the -// launch request. +// launch request. We are retiring EC2-Classic on August 15, 2022. We recommend +// that you migrate from EC2-Classic to a VPC. For more information, see Migrate +// from EC2-Classic to a VPC +// (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/vpc-migrate.html) in the +// Amazon EC2 User Guide. type Reservation struct { // [EC2-Classic only] The security groups. @@ -11144,7 +11169,11 @@ type ReservedInstances struct { noSmithyDocumentSerde } -// Describes the configuration settings for the modified Reserved Instances. +// Describes the configuration settings for the modified Reserved Instances. We are +// retiring EC2-Classic on August 15, 2022. We recommend that you migrate from +// EC2-Classic to a VPC. For more information, see Migrate from EC2-Classic to a +// VPC (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/vpc-migrate.html) in +// the Amazon Elastic Compute Cloud User Guide. type ReservedInstancesConfiguration struct { // The Availability Zone for the modified Reserved Instances. @@ -11664,7 +11693,11 @@ type S3Storage struct { noSmithyDocumentSerde } -// Describes a Scheduled Instance. +// Describes a Scheduled Instance. We are retiring EC2-Classic on August 15, 2022. +// We recommend that you migrate from EC2-Classic to a VPC. For more information, +// see Migrate from EC2-Classic to a VPC +// (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/vpc-migrate.html) in the +// Amazon Elastic Compute Cloud User Guide. type ScheduledInstance struct { // The Availability Zone. @@ -11715,7 +11748,11 @@ type ScheduledInstance struct { noSmithyDocumentSerde } -// Describes a schedule that is available for your Scheduled Instances. +// Describes a schedule that is available for your Scheduled Instances. We are +// retiring EC2-Classic on August 15, 2022. We recommend that you migrate from +// EC2-Classic to a VPC. For more information, see Migrate from EC2-Classic to a +// VPC (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/vpc-migrate.html) in +// the Amazon Elastic Compute Cloud User Guide. type ScheduledInstanceAvailability struct { // The Availability Zone. @@ -12707,6 +12744,10 @@ type SpotDatafeedSubscription struct { // network device, you can't use SpotFleetLaunchSpecification; you must use // LaunchTemplateConfig // (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_LaunchTemplateConfig.html). +// We are retiring EC2-Classic on August 15, 2022. We recommend that you migrate +// from EC2-Classic to a VPC. For more information, see Migrate from EC2-Classic to +// a VPC (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/vpc-migrate.html) in +// the Amazon EC2 User Guide for Linux Instances. type SpotFleetLaunchSpecification struct { // Deprecated. @@ -15743,7 +15784,11 @@ type VpcCidrBlockState struct { noSmithyDocumentSerde } -// Describes whether a VPC is enabled for ClassicLink. +// We are retiring EC2-Classic on August 15, 2022. We recommend that you migrate +// from EC2-Classic to a VPC. For more information, see Migrate from EC2-Classic to +// a VPC (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/vpc-migrate.html) in +// the Amazon Elastic Compute Cloud User Guide. Describes whether a VPC is enabled +// for ClassicLink. type VpcClassicLink struct { // Indicates whether the VPC is enabled for ClassicLink. @@ -15905,7 +15950,11 @@ type VpcPeeringConnection struct { noSmithyDocumentSerde } -// Describes the VPC peering connection options. +// We are retiring EC2-Classic on August 15, 2022. We recommend that you migrate +// from EC2-Classic to a VPC. For more information, see Migrate from EC2-Classic to +// a VPC (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/vpc-migrate.html) in +// the Amazon Elastic Compute Cloud User Guide. Describes the VPC peering +// connection options. type VpcPeeringConnectionOptionsDescription struct { // Indicates whether a local VPC can resolve public DNS hostnames to private IP diff --git a/service/fsx/api_op_CreateDataRepositoryTask.go b/service/fsx/api_op_CreateDataRepositoryTask.go index fec20d0803c..37caab4fa99 100644 --- a/service/fsx/api_op_CreateDataRepositoryTask.go +++ b/service/fsx/api_op_CreateDataRepositoryTask.go @@ -65,12 +65,21 @@ type CreateDataRepositoryTaskInput struct { // the Command Line Interface (CLI) or an Amazon Web Services SDK. ClientRequestToken *string - // (Optional) The path or paths on the Amazon FSx file system to use when the data - // repository task is processed. The default path is the file system root + // A list of paths for the data repository task to use when the task is processed. + // If a path that you provide isn't valid, the task fails. + // + // * For export tasks, the + // list contains paths on the Amazon FSx file system from which the files are + // exported to the Amazon S3 bucket. The default path is the file system root // directory. The paths you provide need to be relative to the mount point of the // file system. If the mount point is /mnt/fsx and /mnt/fsx/path1 is a directory or - // file on the file system you want to export, then the path to provide is path1. - // If a path that you provide isn't valid, the task fails. + // file on the file system you want to export, then the path to provide is + // path1. + // + // * For import tasks, the list contains paths in the Amazon S3 bucket from + // which POSIX metadata changes are imported to the Amazon FSx file system. The + // path can be an S3 bucket or prefix in the format s3://myBucket/myPrefix (where + // myPrefix is optional). Paths []string // A list of Tag values, with a maximum of 50 elements. diff --git a/service/fsx/api_op_ListTagsForResource.go b/service/fsx/api_op_ListTagsForResource.go index ef262459bf9..cb049b19c7f 100644 --- a/service/fsx/api_op_ListTagsForResource.go +++ b/service/fsx/api_op_ListTagsForResource.go @@ -12,24 +12,23 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Lists tags for an Amazon FSx file systems and backups in the case of Amazon FSx -// for Windows File Server. When retrieving all tags, you can optionally specify -// the MaxResults parameter to limit the number of tags in a response. If more tags -// remain, Amazon FSx returns a NextToken value in the response. In this case, send -// a later request with the NextToken request parameter set to the value of -// NextToken from the last response. This action is used in an iterative process to -// retrieve a list of your tags. ListTagsForResource is called first without a -// NextTokenvalue. Then the action continues to be called with the NextToken -// parameter set to the value of the last NextToken value until a response has no -// NextToken. When using this action, keep the following in mind: +// Lists tags for Amazon FSx resources. When retrieving all tags, you can +// optionally specify the MaxResults parameter to limit the number of tags in a +// response. If more tags remain, Amazon FSx returns a NextToken value in the +// response. In this case, send a later request with the NextToken request +// parameter set to the value of NextToken from the last response. This action is +// used in an iterative process to retrieve a list of your tags. +// ListTagsForResource is called first without a NextTokenvalue. Then the action +// continues to be called with the NextToken parameter set to the value of the last +// NextToken value until a response has no NextToken. When using this action, keep +// the following in mind: // -// * The -// implementation might return fewer than MaxResults file system descriptions while -// still including a NextToken value. +// * The implementation might return fewer than MaxResults +// file system descriptions while still including a NextToken value. // -// * The order of tags returned in the response -// of one ListTagsForResource call and the order of tags returned across the -// responses of a multi-call iteration is unspecified. +// * The order +// of tags returned in the response of one ListTagsForResource call and the order +// of tags returned across the responses of a multi-call iteration is unspecified. func (c *Client) ListTagsForResource(ctx context.Context, params *ListTagsForResourceInput, optFns ...func(*Options)) (*ListTagsForResourceOutput, error) { if params == nil { params = &ListTagsForResourceInput{} diff --git a/service/fsx/types/types.go b/service/fsx/types/types.go index a15e419bc7f..143aec76a90 100644 --- a/service/fsx/types/types.go +++ b/service/fsx/types/types.go @@ -689,12 +689,12 @@ type CreateFileSystemOpenZFSConfiguration struct { // system, regardless of this value. CopyTagsToBackups *bool - // A Boolean value indicating whether tags for the volume should be copied to - // snapshots. This value defaults to false. If it's set to true, all tags for the - // volume are copied to snapshots where the user doesn't specify tags. If this + // A Boolean value indicating whether tags for the file system should be copied to + // volumes. This value defaults to false. If it's set to true, all tags for the + // file system are copied to volumes where the user doesn't specify tags. If this // value is true, and you specify one or more tags, only the specified tags are - // copied to snapshots. If you specify one or more tags when creating the snapshot, - // no tags are copied from the volume, regardless of this value. + // copied to volumes. If you specify one or more tags when creating the volume, no + // tags are copied from the file system, regardless of this value. CopyTagsToVolumes *bool // A recurring daily time, in the format HH:MM. HH is the zero-padded hour of the diff --git a/service/outposts/internal/endpoints/endpoints.go b/service/outposts/internal/endpoints/endpoints.go index 0f71a5abef6..bb7f5dfdda1 100644 --- a/service/outposts/internal/endpoints/endpoints.go +++ b/service/outposts/internal/endpoints/endpoints.go @@ -159,6 +159,9 @@ var defaultPartitions = endpoints.Partitions{ endpoints.EndpointKey{ Region: "ap-southeast-2", }: endpoints.Endpoint{}, + endpoints.EndpointKey{ + Region: "ap-southeast-3", + }: endpoints.Endpoint{}, endpoints.EndpointKey{ Region: "ca-central-1", }: endpoints.Endpoint{}, diff --git a/service/servicediscovery/internal/endpoints/endpoints.go b/service/servicediscovery/internal/endpoints/endpoints.go index 6e19b848bee..3599d9197d3 100644 --- a/service/servicediscovery/internal/endpoints/endpoints.go +++ b/service/servicediscovery/internal/endpoints/endpoints.go @@ -147,6 +147,9 @@ var defaultPartitions = endpoints.Partitions{ endpoints.EndpointKey{ Region: "ap-northeast-2", }: endpoints.Endpoint{}, + endpoints.EndpointKey{ + Region: "ap-northeast-3", + }: endpoints.Endpoint{}, endpoints.EndpointKey{ Region: "ap-south-1", }: endpoints.Endpoint{}, @@ -156,6 +159,9 @@ var defaultPartitions = endpoints.Partitions{ endpoints.EndpointKey{ Region: "ap-southeast-2", }: endpoints.Endpoint{}, + endpoints.EndpointKey{ + Region: "ap-southeast-3", + }: endpoints.Endpoint{}, endpoints.EndpointKey{ Region: "ca-central-1", }: endpoints.Endpoint{}, diff --git a/service/shield/api_op_AssociateDRTLogBucket.go b/service/shield/api_op_AssociateDRTLogBucket.go index e569deab387..ee4ce221623 100644 --- a/service/shield/api_op_AssociateDRTLogBucket.go +++ b/service/shield/api_op_AssociateDRTLogBucket.go @@ -15,9 +15,9 @@ import ( // CloudFront logs, or logs from third party sources. You can associate up to 10 // Amazon S3 buckets with your subscription. To use the services of the SRT and // make an AssociateDRTLogBucket request, you must be subscribed to the Business -// Support plan (https://docs.aws.amazon.com/premiumsupport/business-support/) or -// the Enterprise Support plan -// (https://docs.aws.amazon.com/premiumsupport/enterprise-support/). +// Support plan (http://aws.amazon.com/premiumsupport/business-support/) or the +// Enterprise Support plan +// (http://aws.amazon.com/premiumsupport/enterprise-support/). func (c *Client) AssociateDRTLogBucket(ctx context.Context, params *AssociateDRTLogBucketInput, optFns ...func(*Options)) (*AssociateDRTLogBucketOutput, error) { if params == nil { params = &AssociateDRTLogBucketInput{} diff --git a/service/shield/api_op_AssociateDRTRole.go b/service/shield/api_op_AssociateDRTRole.go index 6842849dcd5..14b46ea6838 100644 --- a/service/shield/api_op_AssociateDRTRole.go +++ b/service/shield/api_op_AssociateDRTRole.go @@ -35,8 +35,8 @@ import ( // (https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_use_passrole.html). // To use the services of the SRT and make an AssociateDRTRole request, you must be // subscribed to the Business Support plan -// (https://docs.aws.amazon.com/premiumsupport/business-support/) or the Enterprise -// Support plan (https://docs.aws.amazon.com/premiumsupport/enterprise-support/). +// (http://aws.amazon.com/premiumsupport/business-support/) or the Enterprise +// Support plan (http://aws.amazon.com/premiumsupport/enterprise-support/). func (c *Client) AssociateDRTRole(ctx context.Context, params *AssociateDRTRoleInput, optFns ...func(*Options)) (*AssociateDRTRoleOutput, error) { if params == nil { params = &AssociateDRTRoleInput{} diff --git a/service/shield/api_op_CreateProtection.go b/service/shield/api_op_CreateProtection.go index 3470b62386e..8b7d6a9a7a4 100644 --- a/service/shield/api_op_CreateProtection.go +++ b/service/shield/api_op_CreateProtection.go @@ -12,9 +12,11 @@ import ( ) // Enables Shield Advanced for a specific Amazon Web Services resource. The -// resource can be an Amazon CloudFront distribution, Elastic Load Balancing load -// balancer, Global Accelerator accelerator, Elastic IP Address, or an Amazon Route -// 53 hosted zone. You can add protection to only a single resource with each +// resource can be an Amazon CloudFront distribution, Amazon Route 53 hosted zone, +// Global Accelerator standard accelerator, Elastic IP Address, Application Load +// Balancer, or a Classic Load Balancer. You can protect Amazon EC2 instances and +// Network Load Balancers by association with protected Amazon EC2 Elastic IP +// addresses. You can add protection to only a single resource with each // CreateProtection request. You can add protection to multiple resources at once // through the Shield Advanced console at // https://console.aws.amazon.com/wafv2/shieldv2#/ @@ -60,7 +62,7 @@ type CreateProtectionInput struct { // arn:aws:cloudfront::account-id:distribution/distribution-id // // * For an Global - // Accelerator accelerator: + // Accelerator standard accelerator: // arn:aws:globalaccelerator::account-id:accelerator/accelerator-id // // * For Amazon diff --git a/service/shield/api_op_CreateSubscription.go b/service/shield/api_op_CreateSubscription.go index 052a2702aea..37529176ee8 100644 --- a/service/shield/api_op_CreateSubscription.go +++ b/service/shield/api_op_CreateSubscription.go @@ -10,10 +10,12 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Activates Shield Advanced for an account. When you initally create a -// subscription, your subscription is set to be automatically renewed at the end of -// the existing subscription period. You can change this by submitting an -// UpdateSubscription request. +// Activates Shield Advanced for an account. For accounts that are members of an +// Organizations organization, Shield Advanced subscriptions are billed against the +// organization's payer account, regardless of whether the payer account itself is +// subscribed. When you initially create a subscription, your subscription is set +// to be automatically renewed at the end of the existing subscription period. You +// can change this by submitting an UpdateSubscription request. func (c *Client) CreateSubscription(ctx context.Context, params *CreateSubscriptionInput, optFns ...func(*Options)) (*CreateSubscriptionOutput, error) { if params == nil { params = &CreateSubscriptionInput{} diff --git a/service/shield/api_op_DescribeAttack.go b/service/shield/api_op_DescribeAttack.go index c9d954210f3..a93042b5739 100644 --- a/service/shield/api_op_DescribeAttack.go +++ b/service/shield/api_op_DescribeAttack.go @@ -39,7 +39,7 @@ type DescribeAttackInput struct { type DescribeAttackOutput struct { - // The attack that is described. + // The attack that you requested. Attack *types.AttackDetail // Metadata pertaining to the operation's result. diff --git a/service/shield/api_op_DescribeAttackStatistics.go b/service/shield/api_op_DescribeAttackStatistics.go index a2457a1d0bb..6c67e347ad4 100644 --- a/service/shield/api_op_DescribeAttackStatistics.go +++ b/service/shield/api_op_DescribeAttackStatistics.go @@ -46,7 +46,7 @@ type DescribeAttackStatisticsOutput struct { // This member is required. DataItems []types.AttackStatisticsDataItem - // The time range. + // The time range of the attack. // // This member is required. TimeRange *types.TimeRange diff --git a/service/shield/api_op_DescribeProtection.go b/service/shield/api_op_DescribeProtection.go index e3b483c15b6..a3ea3dd1c09 100644 --- a/service/shield/api_op_DescribeProtection.go +++ b/service/shield/api_op_DescribeProtection.go @@ -29,15 +29,14 @@ func (c *Client) DescribeProtection(ctx context.Context, params *DescribeProtect type DescribeProtectionInput struct { - // The unique identifier (ID) for the Protection object that is described. When - // submitting the DescribeProtection request you must provide either the - // ResourceArn or the ProtectionID, but not both. + // The unique identifier (ID) for the Protection object to describe. You must + // provide either the ResourceArn of the protected resource or the ProtectionID of + // the protection, but not both. ProtectionId *string - // The ARN (Amazon Resource Name) of the Amazon Web Services resource for the - // Protection object that is described. When submitting the DescribeProtection - // request you must provide either the ResourceArn or the ProtectionID, but not - // both. + // The ARN (Amazon Resource Name) of the protected Amazon Web Services resource. + // You must provide either the ResourceArn of the protected resource or the + // ProtectionID of the protection, but not both. ResourceArn *string noSmithyDocumentSerde @@ -45,7 +44,7 @@ type DescribeProtectionInput struct { type DescribeProtectionOutput struct { - // The Protection object that is described. + // The Protection that you requested. Protection *types.Protection // Metadata pertaining to the operation's result. diff --git a/service/shield/api_op_DisableApplicationLayerAutomaticResponse.go b/service/shield/api_op_DisableApplicationLayerAutomaticResponse.go index 57bfd128d5a..5b9ab02c8db 100644 --- a/service/shield/api_op_DisableApplicationLayerAutomaticResponse.go +++ b/service/shield/api_op_DisableApplicationLayerAutomaticResponse.go @@ -11,8 +11,8 @@ import ( ) // Disable the Shield Advanced automatic application layer DDoS mitigation feature -// for the resource. This stops Shield Advanced from creating, verifying, and -// applying WAF rules for attacks that it detects for the resource. +// for the protected resource. This stops Shield Advanced from creating, verifying, +// and applying WAF rules for attacks that it detects for the resource. func (c *Client) DisableApplicationLayerAutomaticResponse(ctx context.Context, params *DisableApplicationLayerAutomaticResponseInput, optFns ...func(*Options)) (*DisableApplicationLayerAutomaticResponseOutput, error) { if params == nil { params = &DisableApplicationLayerAutomaticResponseInput{} @@ -30,7 +30,7 @@ func (c *Client) DisableApplicationLayerAutomaticResponse(ctx context.Context, p type DisableApplicationLayerAutomaticResponseInput struct { - // The ARN (Amazon Resource Name) of the resource. + // The ARN (Amazon Resource Name) of the protected resource. // // This member is required. ResourceArn *string diff --git a/service/shield/api_op_EnableApplicationLayerAutomaticResponse.go b/service/shield/api_op_EnableApplicationLayerAutomaticResponse.go index fb24693cb4e..eaa29322509 100644 --- a/service/shield/api_op_EnableApplicationLayerAutomaticResponse.go +++ b/service/shield/api_op_EnableApplicationLayerAutomaticResponse.go @@ -12,12 +12,13 @@ import ( ) // Enable the Shield Advanced automatic application layer DDoS mitigation for the -// resource. This feature is available for Amazon CloudFront distributions only. -// This causes Shield Advanced to create, verify, and apply WAF rules for DDoS -// attacks that it detects for the resource. Shield Advanced applies the rules in a -// Shield rule group inside the web ACL that you've associated with the resource. -// For information about how automatic mitigation works and the requirements for -// using it, see Shield Advanced automatic application layer DDoS mitigation +// protected resource. This feature is available for Amazon CloudFront +// distributions and Application Load Balancers only. This causes Shield Advanced +// to create, verify, and apply WAF rules for DDoS attacks that it detects for the +// resource. Shield Advanced applies the rules in a Shield rule group inside the +// web ACL that you've associated with the resource. For information about how +// automatic mitigation works and the requirements for using it, see Shield +// Advanced automatic application layer DDoS mitigation // (https://docs.aws.amazon.com/waf/latest/developerguide/ddos-advanced-automatic-app-layer-response.html). // Don't use this action to make changes to automatic mitigation settings when it's // already enabled for a resource. Instead, use @@ -28,9 +29,9 @@ import ( // (https://console.aws.amazon.com/wafv2/shieldv2#/). For more information, see // Getting Started with Shield Advanced // (https://docs.aws.amazon.com/waf/latest/developerguide/getting-started-ddos.html). -// You can also do this through the WAF console or the WAF API, but you must manage -// Shield Advanced automatic mitigation through Shield Advanced. For information -// about WAF, see WAF Developer Guide +// You can also associate the web ACL to the resource through the WAF console or +// the WAF API, but you must manage Shield Advanced automatic mitigation through +// Shield Advanced. For information about WAF, see WAF Developer Guide // (https://docs.aws.amazon.com/waf/latest/developerguide/). func (c *Client) EnableApplicationLayerAutomaticResponse(ctx context.Context, params *EnableApplicationLayerAutomaticResponseInput, optFns ...func(*Options)) (*EnableApplicationLayerAutomaticResponseOutput, error) { if params == nil { @@ -59,7 +60,7 @@ type EnableApplicationLayerAutomaticResponseInput struct { // This member is required. Action *types.ResponseAction - // The ARN (Amazon Resource Name) of the resource. + // The ARN (Amazon Resource Name) of the protected resource. // // This member is required. ResourceArn *string diff --git a/service/shield/api_op_ListProtectionGroups.go b/service/shield/api_op_ListProtectionGroups.go index b5c602e903b..a879e2c4ada 100644 --- a/service/shield/api_op_ListProtectionGroups.go +++ b/service/shield/api_op_ListProtectionGroups.go @@ -12,7 +12,9 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Retrieves the ProtectionGroup objects for the account. +// Retrieves ProtectionGroup objects for the account. You can retrieve all +// protection groups or you can provide filtering criteria and retrieve just the +// subset of protection groups that match the criteria. func (c *Client) ListProtectionGroups(ctx context.Context, params *ListProtectionGroupsInput, optFns ...func(*Options)) (*ListProtectionGroupsOutput, error) { if params == nil { params = &ListProtectionGroupsInput{} @@ -30,6 +32,14 @@ func (c *Client) ListProtectionGroups(ctx context.Context, params *ListProtectio type ListProtectionGroupsInput struct { + // Narrows the set of protection groups that the call retrieves. You can retrieve a + // single protection group by its name and you can retrieve all protection groups + // that are configured with specific pattern or aggregation settings. You can + // provide up to one criteria per filter type. Shield Advanced returns the + // protection groups that exactly match all of the search criteria that you + // provide. + InclusionFilters *types.InclusionProtectionGroupFilters + // The greatest number of objects that you want Shield Advanced to return to the // list request. Shield Advanced might return fewer objects than you indicate in // this setting, even if more objects are available. If there are more objects diff --git a/service/shield/api_op_ListProtections.go b/service/shield/api_op_ListProtections.go index bc2b047804a..3cf2b952be4 100644 --- a/service/shield/api_op_ListProtections.go +++ b/service/shield/api_op_ListProtections.go @@ -12,7 +12,9 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Lists all Protection objects for the account. +// Retrieves Protection objects for the account. You can retrieve all protections +// or you can provide filtering criteria and retrieve just the subset of +// protections that match the criteria. func (c *Client) ListProtections(ctx context.Context, params *ListProtectionsInput, optFns ...func(*Options)) (*ListProtectionsOutput, error) { if params == nil { params = &ListProtectionsInput{} @@ -30,6 +32,14 @@ func (c *Client) ListProtections(ctx context.Context, params *ListProtectionsInp type ListProtectionsInput struct { + // Narrows the set of protections that the call retrieves. You can retrieve a + // single protection by providing its name or the ARN (Amazon Resource Name) of its + // protected resource. You can also retrieve all protections for a specific + // resource type. You can provide up to one criteria per filter type. Shield + // Advanced returns protections that exactly match all of the filter criteria that + // you provide. + InclusionFilters *types.InclusionProtectionFilters + // The greatest number of objects that you want Shield Advanced to return to the // list request. Shield Advanced might return fewer objects than you indicate in // this setting, even if more objects are available. If there are more objects diff --git a/service/shield/api_op_UpdateSubscription.go b/service/shield/api_op_UpdateSubscription.go index 51ae2bbde96..7855ad12bd8 100644 --- a/service/shield/api_op_UpdateSubscription.go +++ b/service/shield/api_op_UpdateSubscription.go @@ -12,7 +12,10 @@ import ( ) // Updates the details of an existing subscription. Only enter values for -// parameters you want to change. Empty parameters are not updated. +// parameters you want to change. Empty parameters are not updated. For accounts +// that are members of an Organizations organization, Shield Advanced subscriptions +// are billed against the organization's payer account, regardless of whether the +// payer account itself is subscribed. func (c *Client) UpdateSubscription(ctx context.Context, params *UpdateSubscriptionInput, optFns ...func(*Options)) (*UpdateSubscriptionOutput, error) { if params == nil { params = &UpdateSubscriptionInput{} diff --git a/service/shield/serializers.go b/service/shield/serializers.go index c90fc30051f..0706319807b 100644 --- a/service/shield/serializers.go +++ b/service/shield/serializers.go @@ -2044,6 +2044,102 @@ func awsAwsjson11_serializeDocumentEmergencyContactList(v []types.EmergencyConta return nil } +func awsAwsjson11_serializeDocumentInclusionProtectionFilters(v *types.InclusionProtectionFilters, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.ProtectionNames != nil { + ok := object.Key("ProtectionNames") + if err := awsAwsjson11_serializeDocumentProtectionNameFilters(v.ProtectionNames, ok); err != nil { + return err + } + } + + if v.ResourceArns != nil { + ok := object.Key("ResourceArns") + if err := awsAwsjson11_serializeDocumentResourceArnFilters(v.ResourceArns, ok); err != nil { + return err + } + } + + if v.ResourceTypes != nil { + ok := object.Key("ResourceTypes") + if err := awsAwsjson11_serializeDocumentProtectedResourceTypeFilters(v.ResourceTypes, ok); err != nil { + return err + } + } + + return nil +} + +func awsAwsjson11_serializeDocumentInclusionProtectionGroupFilters(v *types.InclusionProtectionGroupFilters, value smithyjson.Value) error { + object := value.Object() + defer object.Close() + + if v.Aggregations != nil { + ok := object.Key("Aggregations") + if err := awsAwsjson11_serializeDocumentProtectionGroupAggregationFilters(v.Aggregations, ok); err != nil { + return err + } + } + + if v.Patterns != nil { + ok := object.Key("Patterns") + if err := awsAwsjson11_serializeDocumentProtectionGroupPatternFilters(v.Patterns, ok); err != nil { + return err + } + } + + if v.ProtectionGroupIds != nil { + ok := object.Key("ProtectionGroupIds") + if err := awsAwsjson11_serializeDocumentProtectionGroupIdFilters(v.ProtectionGroupIds, ok); err != nil { + return err + } + } + + if v.ResourceTypes != nil { + ok := object.Key("ResourceTypes") + if err := awsAwsjson11_serializeDocumentProtectedResourceTypeFilters(v.ResourceTypes, ok); err != nil { + return err + } + } + + return nil +} + +func awsAwsjson11_serializeDocumentProtectedResourceTypeFilters(v []types.ProtectedResourceType, value smithyjson.Value) error { + array := value.Array() + defer array.Close() + + for i := range v { + av := array.Value() + av.String(string(v[i])) + } + return nil +} + +func awsAwsjson11_serializeDocumentProtectionGroupAggregationFilters(v []types.ProtectionGroupAggregation, value smithyjson.Value) error { + array := value.Array() + defer array.Close() + + for i := range v { + av := array.Value() + av.String(string(v[i])) + } + return nil +} + +func awsAwsjson11_serializeDocumentProtectionGroupIdFilters(v []string, value smithyjson.Value) error { + array := value.Array() + defer array.Close() + + for i := range v { + av := array.Value() + av.String(v[i]) + } + return nil +} + func awsAwsjson11_serializeDocumentProtectionGroupMembers(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() @@ -2055,6 +2151,28 @@ func awsAwsjson11_serializeDocumentProtectionGroupMembers(v []string, value smit return nil } +func awsAwsjson11_serializeDocumentProtectionGroupPatternFilters(v []types.ProtectionGroupPattern, value smithyjson.Value) error { + array := value.Array() + defer array.Close() + + for i := range v { + av := array.Value() + av.String(string(v[i])) + } + return nil +} + +func awsAwsjson11_serializeDocumentProtectionNameFilters(v []string, value smithyjson.Value) error { + array := value.Array() + defer array.Close() + + for i := range v { + av := array.Value() + av.String(v[i]) + } + return nil +} + func awsAwsjson11_serializeDocumentResourceArnFilterList(v []string, value smithyjson.Value) error { array := value.Array() defer array.Close() @@ -2066,6 +2184,17 @@ func awsAwsjson11_serializeDocumentResourceArnFilterList(v []string, value smith return nil } +func awsAwsjson11_serializeDocumentResourceArnFilters(v []string, value smithyjson.Value) error { + array := value.Array() + defer array.Close() + + for i := range v { + av := array.Value() + av.String(v[i]) + } + return nil +} + func awsAwsjson11_serializeDocumentResponseAction(v *types.ResponseAction, value smithyjson.Value) error { object := value.Object() defer object.Close() @@ -2502,6 +2631,13 @@ func awsAwsjson11_serializeOpDocumentListProtectionGroupsInput(v *ListProtection object := value.Object() defer object.Close() + if v.InclusionFilters != nil { + ok := object.Key("InclusionFilters") + if err := awsAwsjson11_serializeDocumentInclusionProtectionGroupFilters(v.InclusionFilters, ok); err != nil { + return err + } + } + if v.MaxResults != nil { ok := object.Key("MaxResults") ok.Integer(*v.MaxResults) @@ -2519,6 +2655,13 @@ func awsAwsjson11_serializeOpDocumentListProtectionsInput(v *ListProtectionsInpu object := value.Object() defer object.Close() + if v.InclusionFilters != nil { + ok := object.Key("InclusionFilters") + if err := awsAwsjson11_serializeDocumentInclusionProtectionFilters(v.InclusionFilters, ok); err != nil { + return err + } + } + if v.MaxResults != nil { ok := object.Key("MaxResults") ok.Integer(*v.MaxResults) diff --git a/service/shield/types/errors.go b/service/shield/types/errors.go index e8bd573dfa7..dd910567d93 100644 --- a/service/shield/types/errors.go +++ b/service/shield/types/errors.go @@ -204,7 +204,7 @@ func (e *LockedSubscriptionException) ErrorMessage() string { func (e *LockedSubscriptionException) ErrorCode() string { return "LockedSubscriptionException" } func (e *LockedSubscriptionException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient } -// The ARN of the role that you specifed does not exist. +// The ARN of the role that you specified does not exist. type NoAssociatedRoleException struct { Message *string diff --git a/service/shield/types/types.go b/service/shield/types/types.go index 1928d020041..1c25f9d7c98 100644 --- a/service/shield/types/types.go +++ b/service/shield/types/types.go @@ -270,6 +270,52 @@ type EmergencyContact struct { noSmithyDocumentSerde } +// Narrows the set of protections that the call retrieves. You can retrieve a +// single protection by providing its name or the ARN (Amazon Resource Name) of its +// protected resource. You can also retrieve all protections for a specific +// resource type. You can provide up to one criteria per filter type. Shield +// Advanced returns protections that exactly match all of the filter criteria that +// you provide. +type InclusionProtectionFilters struct { + + // The name of the protection that you want to retrieve. + ProtectionNames []string + + // The ARN (Amazon Resource Name) of the resource whose protection you want to + // retrieve. + ResourceArns []string + + // The type of protected resource whose protections you want to retrieve. + ResourceTypes []ProtectedResourceType + + noSmithyDocumentSerde +} + +// Narrows the set of protection groups that the call retrieves. You can retrieve a +// single protection group by its name and you can retrieve all protection groups +// that are configured with a specific pattern, aggregation, or resource type. You +// can provide up to one criteria per filter type. Shield Advanced returns the +// protection groups that exactly match all of the search criteria that you +// provide. +type InclusionProtectionGroupFilters struct { + + // The aggregation setting of the protection groups that you want to retrieve. + Aggregations []ProtectionGroupAggregation + + // The pattern specification of the protection groups that you want to retrieve. + Patterns []ProtectionGroupPattern + + // The ID of the protection group that you want to retrieve. + ProtectionGroupIds []string + + // The resource type configuration of the protection groups that you want to + // retrieve. In the protection group configuration, you specify the resource type + // when you set the group's Pattern to BY_RESOURCE_TYPE. + ResourceTypes []ProtectedResourceType + + noSmithyDocumentSerde +} + // Specifies how many protections of a given type you can create. type Limit struct { @@ -345,7 +391,7 @@ type ProtectionGroup struct { // This member is required. Aggregation ProtectionGroupAggregation - // The Amazon Resource Names (ARNs) of the resources to include in the protection + // The ARNs (Amazon Resource Names) of the resources to include in the protection // group. You must set this when you set Pattern to ARBITRARY and you must not set // it for any other Pattern setting. // @@ -354,7 +400,7 @@ type ProtectionGroup struct { // The criteria to use to choose the protected resources for inclusion in the // group. You can include all resources that have protections, provide a list of - // resource Amazon Resource Names (ARNs), or include all resources of a specified + // resource ARNs (Amazon Resource Names), or include all resources of a specified // resource type. // // This member is required.