From 7616bf453667494d86cbd4ef813ba67a0306d0a7 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sun, 24 Nov 2024 00:34:08 +0000 Subject: [PATCH] Bump github.com/aws/aws-sdk-go-v2/service/ec2 from 1.189.0 to 1.193.0 Bumps [github.com/aws/aws-sdk-go-v2/service/ec2](https://github.com/aws/aws-sdk-go-v2) from 1.189.0 to 1.193.0. - [Release notes](https://github.com/aws/aws-sdk-go-v2/releases) - [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/ec2/v1.189.0...service/ec2/v1.193.0) --- updated-dependencies: - dependency-name: github.com/aws/aws-sdk-go-v2/service/ec2 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- go.mod | 2 +- go.sum | 4 +- .../aws-sdk-go-v2/service/ec2/CHANGELOG.md | 18 + .../ec2/api_op_CancelCapacityReservation.go | 11 + .../ec2/api_op_CreateCapacityReservation.go | 96 +- .../ec2/api_op_CreateLaunchTemplate.go | 3 + .../ec2/api_op_CreateNetworkInterface.go | 3 + .../service/ec2/api_op_CreateVolume.go | 6 + ..._op_CreateVpcBlockPublicAccessExclusion.go | 189 + ..._op_DeleteVpcBlockPublicAccessExclusion.go | 170 + ...p_DescribeCapacityBlockExtensionHistory.go | 291 ++ ...DescribeCapacityBlockExtensionOfferings.go | 283 ++ .../api_op_DescribeClassicLinkInstances.go | 2 +- .../service/ec2/api_op_DescribeDhcpOptions.go | 2 +- ...i_op_DescribeEgressOnlyInternetGateways.go | 2 +- .../ec2/api_op_DescribeInternetGateways.go | 2 +- .../service/ec2/api_op_DescribeNatGateways.go | 2 +- .../service/ec2/api_op_DescribeNetworkAcls.go | 2 +- .../service/ec2/api_op_DescribeRouteTables.go | 2 +- .../service/ec2/api_op_DescribeSubnets.go | 2 +- ..._DescribeVpcBlockPublicAccessExclusions.go | 204 + ..._op_DescribeVpcBlockPublicAccessOptions.go | 161 + .../ec2/api_op_DescribeVpcClassicLink.go | 2 +- .../api_op_DescribeVpcPeeringConnections.go | 2 +- .../service/ec2/api_op_DescribeVpcs.go | 2 +- .../ec2/api_op_GetCapacityReservationUsage.go | 32 +- .../ec2/api_op_ModifyCapacityReservation.go | 16 + ...fyInstanceCapacityReservationAttributes.go | 4 +- .../ec2/api_op_ModifyIpamResourceDiscovery.go | 18 + ..._op_ModifyVpcBlockPublicAccessExclusion.go | 180 + ...pi_op_ModifyVpcBlockPublicAccessOptions.go | 181 + .../api_op_PurchaseCapacityBlockExtension.go | 169 + .../service/ec2/api_op_RunInstances.go | 5 +- .../service/ec2/deserializers.go | 3818 ++++++++++++++--- .../aws-sdk-go-v2/service/ec2/generated.json | 9 + .../service/ec2/go_module_metadata.go | 2 +- .../aws-sdk-go-v2/service/ec2/serializers.go | 1133 ++++- .../aws-sdk-go-v2/service/ec2/types/enums.go | 175 +- .../aws-sdk-go-v2/service/ec2/types/types.go | 664 ++- .../aws-sdk-go-v2/service/ec2/validators.go | 243 ++ vendor/modules.txt | 2 +- 41 files changed, 7548 insertions(+), 566 deletions(-) create mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateVpcBlockPublicAccessExclusion.go create mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteVpcBlockPublicAccessExclusion.go create mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeCapacityBlockExtensionHistory.go create mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeCapacityBlockExtensionOfferings.go create mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeVpcBlockPublicAccessExclusions.go create mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeVpcBlockPublicAccessOptions.go create mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyVpcBlockPublicAccessExclusion.go create mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyVpcBlockPublicAccessOptions.go create mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_PurchaseCapacityBlockExtension.go diff --git a/go.mod b/go.mod index 41d83f0c..2ba8c3c0 100644 --- a/go.mod +++ b/go.mod @@ -8,7 +8,7 @@ require ( github.com/aws/aws-sdk-go v1.55.5 github.com/aws/aws-sdk-go-v2 v1.32.5 github.com/aws/aws-sdk-go-v2/config v1.28.5 - github.com/aws/aws-sdk-go-v2/service/ec2 v1.189.0 + github.com/aws/aws-sdk-go-v2/service/ec2 v1.193.0 github.com/aws/aws-sdk-go-v2/service/route53 v1.46.2 github.com/aws/aws-sdk-go-v2/service/ssm v1.55.6 github.com/mattn/go-isatty v0.0.20 diff --git a/go.sum b/go.sum index 7626a83a..2c3ba779 100644 --- a/go.sum +++ b/go.sum @@ -14,8 +14,8 @@ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24 h1:N1zsICrQglfzaBnrfM github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24/go.mod h1:dCn9HbJ8+K31i8IQ8EWmWj0EiIk0+vKiHNMxTTYveAg= github.com/aws/aws-sdk-go-v2/internal/ini v1.8.1 h1:VaRN3TlFdd6KxX1x3ILT5ynH6HvKgqdiXoTxAF4HQcQ= github.com/aws/aws-sdk-go-v2/internal/ini v1.8.1/go.mod h1:FbtygfRFze9usAadmnGJNc8KsP346kEe+y2/oyhGAGc= -github.com/aws/aws-sdk-go-v2/service/ec2 v1.189.0 h1:eBriSsQa4r7aiKF2wv1EGYbK3X1VnjAYvdOlepBUi8s= -github.com/aws/aws-sdk-go-v2/service/ec2 v1.189.0/go.mod h1:0A17IIeys01WfjDKehspGP+Cyo/YH/eNADIbEbRS9yM= +github.com/aws/aws-sdk-go-v2/service/ec2 v1.193.0 h1:RhSoBFT5/8tTmIseJUXM6INTXTQDF8+0oyxWBnozIms= +github.com/aws/aws-sdk-go-v2/service/ec2 v1.193.0/go.mod h1:mzj8EEjIHSN2oZRXiw1Dd+uB4HZTl7hC8nBzX9IZMWw= github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.12.1 h1:iXtILhvDxB6kPvEXgsDhGaZCSC6LQET5ZHSdJozeI0Y= github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.12.1/go.mod h1:9nu0fVANtYiAePIBh2/pFUSwtJ402hLnp854CNoDOeE= github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.12.5 h1:wtpJ4zcwrSbwhECWQoI/g6WM9zqCcSpHDJIWSbMLOu4= diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/CHANGELOG.md b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/CHANGELOG.md index dae193a7..1a386f44 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/CHANGELOG.md +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/CHANGELOG.md @@ -1,3 +1,21 @@ +# v1.193.0 (2024-11-21) + +* **Feature**: Adds support for requesting future-dated Capacity Reservations with a minimum commitment duration, enabling IPAM for organizational units within AWS Organizations, reserving EC2 Capacity Blocks that start in 30 minutes, and extending the end date of existing Capacity Blocks. + +# v1.192.0 (2024-11-20) + +* **Feature**: With this release, customers can express their desire to launch instances only in an ODCR or ODCR group rather than OnDemand capacity. Customers can express their baseline instances' CPU-performance in attribute-based Instance Requirements configuration by referencing an instance family. + +# v1.191.0 (2024-11-19) + +* **Feature**: This release adds VPC Block Public Access (VPC BPA), a new declarative control which blocks resources in VPCs and subnets that you own in a Region from reaching or being reached from the internet through internet gateways and egress-only internet gateways. + +# v1.190.0 (2024-11-18) + +* **Feature**: Adding request and response elements for managed resources. +* **Dependency Update**: Update to smithy-go v1.22.1. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.189.0 (2024-11-15.2) * **Feature**: Remove non-functional enum variants for FleetCapacityReservationUsageStrategy diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CancelCapacityReservation.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CancelCapacityReservation.go index e09acd7e..7d800237 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CancelCapacityReservation.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CancelCapacityReservation.go @@ -13,6 +13,17 @@ import ( // Cancels the specified Capacity Reservation, releases the reserved capacity, and // changes the Capacity Reservation's state to cancelled . // +// You can cancel a Capacity Reservation that is in the following states: +// +// - assessing +// +// - active and there is no commitment duration or the commitment duration has +// elapsed. You can't cancel a future-dated Capacity Reservation during the +// commitment duration. +// +// If a future-dated Capacity Reservation enters the delayed state, the commitment +// duration is waived, and you can cancel it as soon as it enters the active state. +// // Instances running in the reserved capacity continue running until you stop // them. Stopped instances that target the Capacity Reservation can no longer // launch. Modify these instances to either target a different Capacity diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateCapacityReservation.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateCapacityReservation.go index e2a1cdb8..f903c1cd 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateCapacityReservation.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateCapacityReservation.go @@ -12,30 +12,29 @@ import ( "time" ) -// Creates a new Capacity Reservation with the specified attributes. +// Creates a new Capacity Reservation with the specified attributes. Capacity +// Reservations enable you to reserve capacity for your Amazon EC2 instances in a +// specific Availability Zone for any duration. // -// Capacity Reservations enable you to reserve capacity for your Amazon EC2 -// instances in a specific Availability Zone for any duration. This gives you the -// flexibility to selectively add capacity reservations and still get the Regional -// RI discounts for that usage. By creating Capacity Reservations, you ensure that -// you always have access to Amazon EC2 capacity when you need it, for as long as -// you need it. For more information, see [Capacity Reservations]in the Amazon EC2 User Guide. +// You can create a Capacity Reservation at any time, and you can choose when it +// starts. You can create a Capacity Reservation for immediate use or you can +// request a Capacity Reservation for a future date. // -// Your request to create a Capacity Reservation could fail if Amazon EC2 does not -// have sufficient capacity to fulfill the request. If your request fails due to -// Amazon EC2 capacity constraints, either try again at a later time, try in a -// different Availability Zone, or request a smaller capacity reservation. If your -// application is flexible across instance types and sizes, try to create a -// Capacity Reservation with different instance attributes. +// For more information, see [Reserve compute capacity with On-Demand Capacity Reservations] in the Amazon EC2 User Guide. // -// Your request could also fail if the requested quantity exceeds your On-Demand -// Instance limit for the selected instance type. If your request fails due to -// limit constraints, increase your On-Demand Instance limit for the required -// instance type and try again. For more information about increasing your instance -// limits, see [Amazon EC2 Service Quotas]in the Amazon EC2 User Guide. +// Your request to create a Capacity Reservation could fail if: +// +// - Amazon EC2 does not have sufficient capacity. In this case, try again at a +// later time, try in a different Availability Zone, or request a smaller Capacity +// Reservation. If your workload is flexible across instance types and sizes, try +// with different instance attributes. +// +// - The requested quantity exceeds your On-Demand Instance quota. In this case, +// increase your On-Demand Instance quota for the requested instance type and try +// again. For more information, see [Amazon EC2 Service Quotas]in the Amazon EC2 User Guide. // // [Amazon EC2 Service Quotas]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-resource-limits.html -// [Capacity Reservations]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-capacity-reservations.html +// [Reserve compute capacity with On-Demand Capacity Reservations]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-capacity-reservations.html func (c *Client) CreateCapacityReservation(ctx context.Context, params *CreateCapacityReservationInput, optFns ...func(*Options)) (*CreateCapacityReservationOutput, error) { if params == nil { params = &CreateCapacityReservationInput{} @@ -55,6 +54,11 @@ type CreateCapacityReservationInput struct { // The number of instances for which to reserve capacity. // + // You can request future-dated Capacity Reservations for an instance count with a + // minimum of 100 VPUs. For example, if you request a future-dated Capacity + // Reservation for m5.xlarge instances, you must request at least 25 instances (25 + // * m5.xlarge = 100 vCPUs). + // // Valid range: 1 - 1000 // // This member is required. @@ -65,8 +69,12 @@ type CreateCapacityReservationInput struct { // This member is required. InstancePlatform types.CapacityReservationInstancePlatform - // The instance type for which to reserve capacity. For more information, see [Instance types] in - // the Amazon EC2 User Guide. + // The instance type for which to reserve capacity. + // + // You can request future-dated Capacity Reservations for instance types in the C, + // M, R, I, and T instance families only. + // + // For more information, see [Instance types] in the Amazon EC2 User Guide. // // [Instance types]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html // @@ -85,6 +93,31 @@ type CreateCapacityReservationInput struct { // [Ensure Idempotency]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html ClientToken *string + // Required for future-dated Capacity Reservations only. To create a Capacity + // Reservation for immediate use, omit this parameter. + // + // Specify a commitment duration, in seconds, for the future-dated Capacity + // Reservation. + // + // The commitment duration is a minimum duration for which you commit to having + // the future-dated Capacity Reservation in the active state in your account after + // it has been delivered. + // + // For more information, see [Commitment duration]. + // + // [Commitment duration]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/cr-concepts.html#cr-commitment-duration + CommitmentDuration *int64 + + // Required for future-dated Capacity Reservations only. To create a Capacity + // Reservation for immediate use, omit this parameter. + // + // Indicates that the requested capacity will be delivered in addition to any + // running instances or reserved capacity that you have in your account at the + // requested date and time. + // + // The only supported value is incremental . + DeliveryPreference types.CapacityReservationDeliveryPreference + // Checks whether you have the required permissions for the action, without // actually making the request, and provides an error response. If you have the // required permissions, the error response is DryRunOperation . Otherwise, it is @@ -110,6 +143,9 @@ type CreateCapacityReservationInput struct { // hour from the specified time. For example, if you specify 5/31/2019, 13:30:55, // the Capacity Reservation is guaranteed to end between 13:30:55 and 14:30:55 on // 5/31/2019. + // + // If you are requesting a future-dated Capacity Reservation, you can't specify an + // end date and time that is within the commitment duration. EndDate *time.Time // Indicates the way in which the Capacity Reservation ends. A Capacity @@ -139,13 +175,20 @@ type CreateCapacityReservationInput struct { // explicitly target the Capacity Reservation. This ensures that only permitted // instances can use the reserved capacity. // + // If you are requesting a future-dated Capacity Reservation, you must specify + // targeted . + // // Default: open InstanceMatchCriteria types.InstanceMatchCriteria + // Not supported for future-dated Capacity Reservations. + // // The Amazon Resource Name (ARN) of the Outpost on which to create the Capacity // Reservation. OutpostArn *string + // Not supported for future-dated Capacity Reservations. + // // The Amazon Resource Name (ARN) of the cluster placement group in which to // create the Capacity Reservation. For more information, see [Capacity Reservations for cluster placement groups]in the Amazon EC2 // User Guide. @@ -153,6 +196,17 @@ type CreateCapacityReservationInput struct { // [Capacity Reservations for cluster placement groups]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/cr-cpg.html PlacementGroupArn *string + // Required for future-dated Capacity Reservations only. To create a Capacity + // Reservation for immediate use, omit this parameter. + // + // The date and time at which the future-dated Capacity Reservation should become + // available for use, in the ISO8601 format in the UTC time zone ( + // YYYY-MM-DDThh:mm:ss.sssZ ). + // + // You can request a future-dated Capacity Reservation between 5 and 120 days in + // advance. + StartDate *time.Time + // The tags to apply to the Capacity Reservation during launch. TagSpecifications []types.TagSpecification diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateLaunchTemplate.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateLaunchTemplate.go index bf0a68e6..08646ccf 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateLaunchTemplate.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateLaunchTemplate.go @@ -65,6 +65,9 @@ type CreateLaunchTemplateInput struct { // UnauthorizedOperation . DryRun *bool + // Reserved for internal use. + Operator *types.OperatorRequest + // The tags to apply to the launch template on creation. To tag the launch // template, the resource type must be launch-template . // diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateNetworkInterface.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateNetworkInterface.go index 3d5327ce..4cedfa45 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateNetworkInterface.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateNetworkInterface.go @@ -133,6 +133,9 @@ type CreateNetworkInterfaceInput struct { // count of IPv6 prefixes, specific IPv6 addresses, or a count of IPv6 addresses. Ipv6Prefixes []types.Ipv6PrefixSpecificationRequest + // Reserved for internal use. + Operator *types.OperatorRequest + // The primary private IPv4 address of the network interface. If you don't specify // an IPv4 address, Amazon EC2 selects one for you from the subnet's IPv4 CIDR // range. If you specify an IP address, you cannot indicate any IP addresses diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateVolume.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateVolume.go index 16f29bfd..16b396c1 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateVolume.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateVolume.go @@ -132,6 +132,9 @@ type CreateVolumeInput struct { // [Amazon EBS Multi-Attach]: https://docs.aws.amazon.com/ebs/latest/userguide/ebs-volumes-multi.html MultiAttachEnabled *bool + // Reserved for internal use. + Operator *types.OperatorRequest + // The Amazon Resource Name (ARN) of the Outpost on which to create the volume. // // If you intend to use a volume with an instance running on an outpost, then you @@ -231,6 +234,9 @@ type CreateVolumeOutput struct { // Indicates whether Amazon EBS Multi-Attach is enabled. MultiAttachEnabled *bool + // The entity that manages the volume. + Operator *types.OperatorResponse + // The Amazon Resource Name (ARN) of the Outpost. OutpostArn *string diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateVpcBlockPublicAccessExclusion.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateVpcBlockPublicAccessExclusion.go new file mode 100644 index 00000000..b0668b1d --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateVpcBlockPublicAccessExclusion.go @@ -0,0 +1,189 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package ec2 + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/service/ec2/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Create a VPC Block Public Access (BPA) exclusion. A VPC BPA exclusion is a mode +// that can be applied to a single VPC or subnet that exempts it from the account’s +// BPA mode and will allow bidirectional or egress-only access. You can create BPA +// exclusions for VPCs and subnets even when BPA is not enabled on the account to +// ensure that there is no traffic disruption to the exclusions when VPC BPA is +// turned on. To learn more about VPC BPA, see [Block public access to VPCs and subnets]in the Amazon VPC User Guide. +// +// [Block public access to VPCs and subnets]: https://docs.aws.amazon.com/vpc/latest/userguide/security-vpc-bpa.html +func (c *Client) CreateVpcBlockPublicAccessExclusion(ctx context.Context, params *CreateVpcBlockPublicAccessExclusionInput, optFns ...func(*Options)) (*CreateVpcBlockPublicAccessExclusionOutput, error) { + if params == nil { + params = &CreateVpcBlockPublicAccessExclusionInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "CreateVpcBlockPublicAccessExclusion", params, optFns, c.addOperationCreateVpcBlockPublicAccessExclusionMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*CreateVpcBlockPublicAccessExclusionOutput) + out.ResultMetadata = metadata + return out, nil +} + +type CreateVpcBlockPublicAccessExclusionInput struct { + + // The exclusion mode for internet gateway traffic. + // + // - allow-bidirectional : Allow all internet traffic to and from the excluded + // VPCs and subnets. + // + // - allow-egress : Allow outbound internet traffic from the excluded VPCs and + // subnets. Block inbound internet traffic to the excluded VPCs and subnets. Only + // applies when VPC Block Public Access is set to Bidirectional. + // + // This member is required. + InternetGatewayExclusionMode types.InternetGatewayExclusionMode + + // Checks whether you have the required permissions for the action, without + // actually making the request, and provides an error response. If you have the + // required permissions, the error response is DryRunOperation . Otherwise, it is + // UnauthorizedOperation . + DryRun *bool + + // A subnet ID. + SubnetId *string + + // tag - The key/value combination of a tag assigned to the resource. Use the tag + // key in the filter name and the tag value as the filter value. For example, to + // find all resources that have a tag with the key Owner and the value TeamA , + // specify tag:Owner for the filter name and TeamA for the filter value. + TagSpecifications []types.TagSpecification + + // A VPC ID. + VpcId *string + + noSmithyDocumentSerde +} + +type CreateVpcBlockPublicAccessExclusionOutput struct { + + // Details about an exclusion. + VpcBlockPublicAccessExclusion *types.VpcBlockPublicAccessExclusion + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationCreateVpcBlockPublicAccessExclusionMiddlewares(stack *middleware.Stack, options Options) (err error) { + if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { + return err + } + err = stack.Serialize.Add(&awsEc2query_serializeOpCreateVpcBlockPublicAccessExclusion{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsEc2query_deserializeOpCreateVpcBlockPublicAccessExclusion{}, middleware.After) + if err != nil { + return err + } + if err := addProtocolFinalizerMiddlewares(stack, options, "CreateVpcBlockPublicAccessExclusion"); err != nil { + return fmt.Errorf("add protocol finalizers: %v", err) + } + + if err = addlegacyEndpointContextSetter(stack, options); err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = addClientRequestID(stack); err != nil { + return err + } + if err = addComputeContentLength(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = addComputePayloadSHA256(stack); err != nil { + return err + } + if err = addRetry(stack, options); err != nil { + return err + } + if err = addRawResponseToMetadata(stack); err != nil { + return err + } + if err = addRecordResponseTiming(stack); err != nil { + return err + } + if err = addSpanRetryLoop(stack, options); err != nil { + return err + } + if err = addClientUserAgent(stack, options); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { + return err + } + if err = addTimeOffsetBuild(stack, c); err != nil { + return err + } + if err = addUserAgentRetryMode(stack, options); err != nil { + return err + } + if err = addOpCreateVpcBlockPublicAccessExclusionValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCreateVpcBlockPublicAccessExclusion(options.Region), middleware.Before); err != nil { + return err + } + if err = addRecursionDetection(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + if err = addDisableHTTPSMiddleware(stack, options); err != nil { + return err + } + if err = addSpanInitializeStart(stack); err != nil { + return err + } + if err = addSpanInitializeEnd(stack); err != nil { + return err + } + if err = addSpanBuildRequestStart(stack); err != nil { + return err + } + if err = addSpanBuildRequestEnd(stack); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opCreateVpcBlockPublicAccessExclusion(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + OperationName: "CreateVpcBlockPublicAccessExclusion", + } +} diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteVpcBlockPublicAccessExclusion.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteVpcBlockPublicAccessExclusion.go new file mode 100644 index 00000000..a77060e3 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteVpcBlockPublicAccessExclusion.go @@ -0,0 +1,170 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package ec2 + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/service/ec2/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Delete a VPC Block Public Access (BPA) exclusion. A VPC BPA exclusion is a mode +// that can be applied to a single VPC or subnet that exempts it from the account’s +// BPA mode and will allow bidirectional or egress-only access. You can create BPA +// exclusions for VPCs and subnets even when BPA is not enabled on the account to +// ensure that there is no traffic disruption to the exclusions when VPC BPA is +// turned on. To learn more about VPC BPA, see [Block public access to VPCs and subnets]in the Amazon VPC User Guide. +// +// [Block public access to VPCs and subnets]: https://docs.aws.amazon.com/vpc/latest/userguide/security-vpc-bpa.html +func (c *Client) DeleteVpcBlockPublicAccessExclusion(ctx context.Context, params *DeleteVpcBlockPublicAccessExclusionInput, optFns ...func(*Options)) (*DeleteVpcBlockPublicAccessExclusionOutput, error) { + if params == nil { + params = &DeleteVpcBlockPublicAccessExclusionInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "DeleteVpcBlockPublicAccessExclusion", params, optFns, c.addOperationDeleteVpcBlockPublicAccessExclusionMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*DeleteVpcBlockPublicAccessExclusionOutput) + out.ResultMetadata = metadata + return out, nil +} + +type DeleteVpcBlockPublicAccessExclusionInput struct { + + // The ID of the exclusion. + // + // This member is required. + ExclusionId *string + + // Checks whether you have the required permissions for the action, without + // actually making the request, and provides an error response. If you have the + // required permissions, the error response is DryRunOperation . Otherwise, it is + // UnauthorizedOperation . + DryRun *bool + + noSmithyDocumentSerde +} + +type DeleteVpcBlockPublicAccessExclusionOutput struct { + + // Details about an exclusion. + VpcBlockPublicAccessExclusion *types.VpcBlockPublicAccessExclusion + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationDeleteVpcBlockPublicAccessExclusionMiddlewares(stack *middleware.Stack, options Options) (err error) { + if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { + return err + } + err = stack.Serialize.Add(&awsEc2query_serializeOpDeleteVpcBlockPublicAccessExclusion{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsEc2query_deserializeOpDeleteVpcBlockPublicAccessExclusion{}, middleware.After) + if err != nil { + return err + } + if err := addProtocolFinalizerMiddlewares(stack, options, "DeleteVpcBlockPublicAccessExclusion"); err != nil { + return fmt.Errorf("add protocol finalizers: %v", err) + } + + if err = addlegacyEndpointContextSetter(stack, options); err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = addClientRequestID(stack); err != nil { + return err + } + if err = addComputeContentLength(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = addComputePayloadSHA256(stack); err != nil { + return err + } + if err = addRetry(stack, options); err != nil { + return err + } + if err = addRawResponseToMetadata(stack); err != nil { + return err + } + if err = addRecordResponseTiming(stack); err != nil { + return err + } + if err = addSpanRetryLoop(stack, options); err != nil { + return err + } + if err = addClientUserAgent(stack, options); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { + return err + } + if err = addTimeOffsetBuild(stack, c); err != nil { + return err + } + if err = addUserAgentRetryMode(stack, options); err != nil { + return err + } + if err = addOpDeleteVpcBlockPublicAccessExclusionValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDeleteVpcBlockPublicAccessExclusion(options.Region), middleware.Before); err != nil { + return err + } + if err = addRecursionDetection(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + if err = addDisableHTTPSMiddleware(stack, options); err != nil { + return err + } + if err = addSpanInitializeStart(stack); err != nil { + return err + } + if err = addSpanInitializeEnd(stack); err != nil { + return err + } + if err = addSpanBuildRequestStart(stack); err != nil { + return err + } + if err = addSpanBuildRequestEnd(stack); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opDeleteVpcBlockPublicAccessExclusion(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + OperationName: "DeleteVpcBlockPublicAccessExclusion", + } +} diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeCapacityBlockExtensionHistory.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeCapacityBlockExtensionHistory.go new file mode 100644 index 00000000..5b1b21ef --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeCapacityBlockExtensionHistory.go @@ -0,0 +1,291 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package ec2 + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/service/ec2/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Describes the events for the specified Capacity Block extension during the +// specified time. +func (c *Client) DescribeCapacityBlockExtensionHistory(ctx context.Context, params *DescribeCapacityBlockExtensionHistoryInput, optFns ...func(*Options)) (*DescribeCapacityBlockExtensionHistoryOutput, error) { + if params == nil { + params = &DescribeCapacityBlockExtensionHistoryInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "DescribeCapacityBlockExtensionHistory", params, optFns, c.addOperationDescribeCapacityBlockExtensionHistoryMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*DescribeCapacityBlockExtensionHistoryOutput) + out.ResultMetadata = metadata + return out, nil +} + +type DescribeCapacityBlockExtensionHistoryInput struct { + + // The IDs of Capacity Block reservations that you want to display the history for. + CapacityReservationIds []string + + // Checks whether you have the required permissions for the action, without + // actually making the request, and provides an error response. If you have the + // required permissions, the error response is DryRunOperation . Otherwise, it is + // UnauthorizedOperation . + DryRun *bool + + // One or more filters + // + // - availability-zone - The Availability Zone of the extension. + // + // - availability-zone-id - The Availability Zone ID of the extension. + // + // - capacity-block-extension-offering-id - The ID of the extension offering. + // + // - capacity-block-extension-status - The status of the extension ( + // payment-pending | payment-failed | payment-succeeded ). + // + // - capacity-reservation-id - The reservation ID of the extension. + // + // - instance-type - The instance type of the extension. + Filters []types.Filter + + // The maximum number of items to return for this request. To get the next page of + // items, make another request with the token returned in the output. For more + // information, see [Pagination]. + // + // [Pagination]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination + MaxResults *int32 + + // The token to use to retrieve the next page of results. + NextToken *string + + noSmithyDocumentSerde +} + +type DescribeCapacityBlockExtensionHistoryOutput struct { + + // Describes one or more of your Capacity Block extensions. The results describe + // only the Capacity Block extensions in the Amazon Web Services Region that you're + // currently using. + CapacityBlockExtensions []types.CapacityBlockExtension + + // The token to use to retrieve the next page of results. This value is null when + // there are no more results to return. + NextToken *string + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationDescribeCapacityBlockExtensionHistoryMiddlewares(stack *middleware.Stack, options Options) (err error) { + if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { + return err + } + err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeCapacityBlockExtensionHistory{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsEc2query_deserializeOpDescribeCapacityBlockExtensionHistory{}, middleware.After) + if err != nil { + return err + } + if err := addProtocolFinalizerMiddlewares(stack, options, "DescribeCapacityBlockExtensionHistory"); err != nil { + return fmt.Errorf("add protocol finalizers: %v", err) + } + + if err = addlegacyEndpointContextSetter(stack, options); err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = addClientRequestID(stack); err != nil { + return err + } + if err = addComputeContentLength(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = addComputePayloadSHA256(stack); err != nil { + return err + } + if err = addRetry(stack, options); err != nil { + return err + } + if err = addRawResponseToMetadata(stack); err != nil { + return err + } + if err = addRecordResponseTiming(stack); err != nil { + return err + } + if err = addSpanRetryLoop(stack, options); err != nil { + return err + } + if err = addClientUserAgent(stack, options); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { + return err + } + if err = addTimeOffsetBuild(stack, c); err != nil { + return err + } + if err = addUserAgentRetryMode(stack, options); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeCapacityBlockExtensionHistory(options.Region), middleware.Before); err != nil { + return err + } + if err = addRecursionDetection(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + if err = addDisableHTTPSMiddleware(stack, options); err != nil { + return err + } + if err = addSpanInitializeStart(stack); err != nil { + return err + } + if err = addSpanInitializeEnd(stack); err != nil { + return err + } + if err = addSpanBuildRequestStart(stack); err != nil { + return err + } + if err = addSpanBuildRequestEnd(stack); err != nil { + return err + } + return nil +} + +// DescribeCapacityBlockExtensionHistoryPaginatorOptions is the paginator options +// for DescribeCapacityBlockExtensionHistory +type DescribeCapacityBlockExtensionHistoryPaginatorOptions struct { + // The maximum number of items to return for this request. To get the next page of + // items, make another request with the token returned in the output. For more + // information, see [Pagination]. + // + // [Pagination]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination + Limit int32 + + // Set to true if pagination should stop if the service returns a pagination token + // that matches the most recent token provided to the service. + StopOnDuplicateToken bool +} + +// DescribeCapacityBlockExtensionHistoryPaginator is a paginator for +// DescribeCapacityBlockExtensionHistory +type DescribeCapacityBlockExtensionHistoryPaginator struct { + options DescribeCapacityBlockExtensionHistoryPaginatorOptions + client DescribeCapacityBlockExtensionHistoryAPIClient + params *DescribeCapacityBlockExtensionHistoryInput + nextToken *string + firstPage bool +} + +// NewDescribeCapacityBlockExtensionHistoryPaginator returns a new +// DescribeCapacityBlockExtensionHistoryPaginator +func NewDescribeCapacityBlockExtensionHistoryPaginator(client DescribeCapacityBlockExtensionHistoryAPIClient, params *DescribeCapacityBlockExtensionHistoryInput, optFns ...func(*DescribeCapacityBlockExtensionHistoryPaginatorOptions)) *DescribeCapacityBlockExtensionHistoryPaginator { + if params == nil { + params = &DescribeCapacityBlockExtensionHistoryInput{} + } + + options := DescribeCapacityBlockExtensionHistoryPaginatorOptions{} + if params.MaxResults != nil { + options.Limit = *params.MaxResults + } + + for _, fn := range optFns { + fn(&options) + } + + return &DescribeCapacityBlockExtensionHistoryPaginator{ + options: options, + client: client, + params: params, + firstPage: true, + nextToken: params.NextToken, + } +} + +// HasMorePages returns a boolean indicating whether more pages are available +func (p *DescribeCapacityBlockExtensionHistoryPaginator) HasMorePages() bool { + return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0) +} + +// NextPage retrieves the next DescribeCapacityBlockExtensionHistory page. +func (p *DescribeCapacityBlockExtensionHistoryPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*DescribeCapacityBlockExtensionHistoryOutput, error) { + if !p.HasMorePages() { + return nil, fmt.Errorf("no more pages available") + } + + params := *p.params + params.NextToken = p.nextToken + + var limit *int32 + if p.options.Limit > 0 { + limit = &p.options.Limit + } + params.MaxResults = limit + + optFns = append([]func(*Options){ + addIsPaginatorUserAgent, + }, optFns...) + result, err := p.client.DescribeCapacityBlockExtensionHistory(ctx, ¶ms, optFns...) + if err != nil { + return nil, err + } + p.firstPage = false + + prevToken := p.nextToken + p.nextToken = result.NextToken + + if p.options.StopOnDuplicateToken && + prevToken != nil && + p.nextToken != nil && + *prevToken == *p.nextToken { + p.nextToken = nil + } + + return result, nil +} + +// DescribeCapacityBlockExtensionHistoryAPIClient is a client that implements the +// DescribeCapacityBlockExtensionHistory operation. +type DescribeCapacityBlockExtensionHistoryAPIClient interface { + DescribeCapacityBlockExtensionHistory(context.Context, *DescribeCapacityBlockExtensionHistoryInput, ...func(*Options)) (*DescribeCapacityBlockExtensionHistoryOutput, error) +} + +var _ DescribeCapacityBlockExtensionHistoryAPIClient = (*Client)(nil) + +func newServiceMetadataMiddleware_opDescribeCapacityBlockExtensionHistory(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + OperationName: "DescribeCapacityBlockExtensionHistory", + } +} diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeCapacityBlockExtensionOfferings.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeCapacityBlockExtensionOfferings.go new file mode 100644 index 00000000..40163375 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeCapacityBlockExtensionOfferings.go @@ -0,0 +1,283 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package ec2 + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/service/ec2/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Describes Capacity Block extension offerings available for purchase in the +// Amazon Web Services Region that you're currently using. +func (c *Client) DescribeCapacityBlockExtensionOfferings(ctx context.Context, params *DescribeCapacityBlockExtensionOfferingsInput, optFns ...func(*Options)) (*DescribeCapacityBlockExtensionOfferingsOutput, error) { + if params == nil { + params = &DescribeCapacityBlockExtensionOfferingsInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "DescribeCapacityBlockExtensionOfferings", params, optFns, c.addOperationDescribeCapacityBlockExtensionOfferingsMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*DescribeCapacityBlockExtensionOfferingsOutput) + out.ResultMetadata = metadata + return out, nil +} + +type DescribeCapacityBlockExtensionOfferingsInput struct { + + // The duration of the Capacity Block extension offering in hours. + // + // This member is required. + CapacityBlockExtensionDurationHours *int32 + + // The ID of the Capacity reservation to be extended. + // + // This member is required. + CapacityReservationId *string + + // Checks whether you have the required permissions for the action, without + // actually making the request, and provides an error response. If you have the + // required permissions, the error response is DryRunOperation . Otherwise, it is + // UnauthorizedOperation . + DryRun *bool + + // The maximum number of items to return for this request. To get the next page of + // items, make another request with the token returned in the output. For more + // information, see [Pagination]. + // + // [Pagination]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination + MaxResults *int32 + + // The token to use to retrieve the next page of results. + NextToken *string + + noSmithyDocumentSerde +} + +type DescribeCapacityBlockExtensionOfferingsOutput struct { + + // The recommended Capacity Block extension offerings for the dates specified. + CapacityBlockExtensionOfferings []types.CapacityBlockExtensionOffering + + // The token to use to retrieve the next page of results. This value is null when + // there are no more results to return. + NextToken *string + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationDescribeCapacityBlockExtensionOfferingsMiddlewares(stack *middleware.Stack, options Options) (err error) { + if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { + return err + } + err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeCapacityBlockExtensionOfferings{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsEc2query_deserializeOpDescribeCapacityBlockExtensionOfferings{}, middleware.After) + if err != nil { + return err + } + if err := addProtocolFinalizerMiddlewares(stack, options, "DescribeCapacityBlockExtensionOfferings"); err != nil { + return fmt.Errorf("add protocol finalizers: %v", err) + } + + if err = addlegacyEndpointContextSetter(stack, options); err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = addClientRequestID(stack); err != nil { + return err + } + if err = addComputeContentLength(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = addComputePayloadSHA256(stack); err != nil { + return err + } + if err = addRetry(stack, options); err != nil { + return err + } + if err = addRawResponseToMetadata(stack); err != nil { + return err + } + if err = addRecordResponseTiming(stack); err != nil { + return err + } + if err = addSpanRetryLoop(stack, options); err != nil { + return err + } + if err = addClientUserAgent(stack, options); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { + return err + } + if err = addTimeOffsetBuild(stack, c); err != nil { + return err + } + if err = addUserAgentRetryMode(stack, options); err != nil { + return err + } + if err = addOpDescribeCapacityBlockExtensionOfferingsValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeCapacityBlockExtensionOfferings(options.Region), middleware.Before); err != nil { + return err + } + if err = addRecursionDetection(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + if err = addDisableHTTPSMiddleware(stack, options); err != nil { + return err + } + if err = addSpanInitializeStart(stack); err != nil { + return err + } + if err = addSpanInitializeEnd(stack); err != nil { + return err + } + if err = addSpanBuildRequestStart(stack); err != nil { + return err + } + if err = addSpanBuildRequestEnd(stack); err != nil { + return err + } + return nil +} + +// DescribeCapacityBlockExtensionOfferingsPaginatorOptions is the paginator +// options for DescribeCapacityBlockExtensionOfferings +type DescribeCapacityBlockExtensionOfferingsPaginatorOptions struct { + // The maximum number of items to return for this request. To get the next page of + // items, make another request with the token returned in the output. For more + // information, see [Pagination]. + // + // [Pagination]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination + Limit int32 + + // Set to true if pagination should stop if the service returns a pagination token + // that matches the most recent token provided to the service. + StopOnDuplicateToken bool +} + +// DescribeCapacityBlockExtensionOfferingsPaginator is a paginator for +// DescribeCapacityBlockExtensionOfferings +type DescribeCapacityBlockExtensionOfferingsPaginator struct { + options DescribeCapacityBlockExtensionOfferingsPaginatorOptions + client DescribeCapacityBlockExtensionOfferingsAPIClient + params *DescribeCapacityBlockExtensionOfferingsInput + nextToken *string + firstPage bool +} + +// NewDescribeCapacityBlockExtensionOfferingsPaginator returns a new +// DescribeCapacityBlockExtensionOfferingsPaginator +func NewDescribeCapacityBlockExtensionOfferingsPaginator(client DescribeCapacityBlockExtensionOfferingsAPIClient, params *DescribeCapacityBlockExtensionOfferingsInput, optFns ...func(*DescribeCapacityBlockExtensionOfferingsPaginatorOptions)) *DescribeCapacityBlockExtensionOfferingsPaginator { + if params == nil { + params = &DescribeCapacityBlockExtensionOfferingsInput{} + } + + options := DescribeCapacityBlockExtensionOfferingsPaginatorOptions{} + if params.MaxResults != nil { + options.Limit = *params.MaxResults + } + + for _, fn := range optFns { + fn(&options) + } + + return &DescribeCapacityBlockExtensionOfferingsPaginator{ + options: options, + client: client, + params: params, + firstPage: true, + nextToken: params.NextToken, + } +} + +// HasMorePages returns a boolean indicating whether more pages are available +func (p *DescribeCapacityBlockExtensionOfferingsPaginator) HasMorePages() bool { + return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0) +} + +// NextPage retrieves the next DescribeCapacityBlockExtensionOfferings page. +func (p *DescribeCapacityBlockExtensionOfferingsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*DescribeCapacityBlockExtensionOfferingsOutput, error) { + if !p.HasMorePages() { + return nil, fmt.Errorf("no more pages available") + } + + params := *p.params + params.NextToken = p.nextToken + + var limit *int32 + if p.options.Limit > 0 { + limit = &p.options.Limit + } + params.MaxResults = limit + + optFns = append([]func(*Options){ + addIsPaginatorUserAgent, + }, optFns...) + result, err := p.client.DescribeCapacityBlockExtensionOfferings(ctx, ¶ms, optFns...) + if err != nil { + return nil, err + } + p.firstPage = false + + prevToken := p.nextToken + p.nextToken = result.NextToken + + if p.options.StopOnDuplicateToken && + prevToken != nil && + p.nextToken != nil && + *prevToken == *p.nextToken { + p.nextToken = nil + } + + return result, nil +} + +// DescribeCapacityBlockExtensionOfferingsAPIClient is a client that implements +// the DescribeCapacityBlockExtensionOfferings operation. +type DescribeCapacityBlockExtensionOfferingsAPIClient interface { + DescribeCapacityBlockExtensionOfferings(context.Context, *DescribeCapacityBlockExtensionOfferingsInput, ...func(*Options)) (*DescribeCapacityBlockExtensionOfferingsOutput, error) +} + +var _ DescribeCapacityBlockExtensionOfferingsAPIClient = (*Client)(nil) + +func newServiceMetadataMiddleware_opDescribeCapacityBlockExtensionOfferings(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + OperationName: "DescribeCapacityBlockExtensionOfferings", + } +} diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeClassicLinkInstances.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeClassicLinkInstances.go index 617b77e5..6e3660e6 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeClassicLinkInstances.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeClassicLinkInstances.go @@ -46,7 +46,7 @@ type DescribeClassicLinkInstancesInput struct { // // - instance-id - The ID of the instance. // - // - tag : - The key/value combination of a tag assigned to the resource. Use the + // - tag - The key/value combination of a tag assigned to the resource. Use the // tag key in the filter name and the tag value as the filter value. For example, // to find all resources that have a tag with the key Owner and the value TeamA , // specify tag:Owner for the filter name and TeamA for the filter value. diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeDhcpOptions.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeDhcpOptions.go index e6a015d0..ffaa347b 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeDhcpOptions.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeDhcpOptions.go @@ -56,7 +56,7 @@ type DescribeDhcpOptionsInput struct { // - owner-id - The ID of the Amazon Web Services account that owns the DHCP // options set. // - // - tag : - The key/value combination of a tag assigned to the resource. Use the + // - tag - The key/value combination of a tag assigned to the resource. Use the // tag key in the filter name and the tag value as the filter value. For example, // to find all resources that have a tag with the key Owner and the value TeamA , // specify tag:Owner for the filter name and TeamA for the filter value. diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeEgressOnlyInternetGateways.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeEgressOnlyInternetGateways.go index 56862bea..6bebccc4 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeEgressOnlyInternetGateways.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeEgressOnlyInternetGateways.go @@ -43,7 +43,7 @@ type DescribeEgressOnlyInternetGatewaysInput struct { // The filters. // - // - tag : - The key/value combination of a tag assigned to the resource. Use the + // - tag - The key/value combination of a tag assigned to the resource. Use the // tag key in the filter name and the tag value as the filter value. For example, // to find all resources that have a tag with the key Owner and the value TeamA , // specify tag:Owner for the filter name and TeamA for the filter value. diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeInternetGateways.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeInternetGateways.go index cd73b9d1..c25ee0c7 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeInternetGateways.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeInternetGateways.go @@ -55,7 +55,7 @@ type DescribeInternetGatewaysInput struct { // - owner-id - The ID of the Amazon Web Services account that owns the internet // gateway. // - // - tag : - The key/value combination of a tag assigned to the resource. Use the + // - tag - The key/value combination of a tag assigned to the resource. Use the // tag key in the filter name and the tag value as the filter value. For example, // to find all resources that have a tag with the key Owner and the value TeamA , // specify tag:Owner for the filter name and TeamA for the filter value. diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeNatGateways.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeNatGateways.go index a6038197..6f82c0cd 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeNatGateways.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeNatGateways.go @@ -51,7 +51,7 @@ type DescribeNatGatewaysInput struct { // // - subnet-id - The ID of the subnet in which the NAT gateway resides. // - // - tag : - The key/value combination of a tag assigned to the resource. Use the + // - tag - The key/value combination of a tag assigned to the resource. Use the // tag key in the filter name and the tag value as the filter value. For example, // to find all resources that have a tag with the key Owner and the value TeamA , // specify tag:Owner for the filter name and TeamA for the filter value. diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeNetworkAcls.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeNetworkAcls.go index 4aca50a3..77167aee 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeNetworkAcls.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeNetworkAcls.go @@ -80,7 +80,7 @@ type DescribeNetworkAclsInput struct { // - owner-id - The ID of the Amazon Web Services account that owns the network // ACL. // - // - tag : - The key/value combination of a tag assigned to the resource. Use the + // - tag - The key/value combination of a tag assigned to the resource. Use the // tag key in the filter name and the tag value as the filter value. For example, // to find all resources that have a tag with the key Owner and the value TeamA , // specify tag:Owner for the filter name and TeamA for the filter value. diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeRouteTables.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeRouteTables.go index 78121183..cbee884f 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeRouteTables.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeRouteTables.go @@ -101,7 +101,7 @@ type DescribeRouteTablesInput struct { // - route.vpc-peering-connection-id - The ID of a VPC peering connection // specified in a route in the table. // - // - tag : - The key/value combination of a tag assigned to the resource. Use the + // - tag - The key/value combination of a tag assigned to the resource. Use the // tag key in the filter name and the tag value as the filter value. For example, // to find all resources that have a tag with the key Owner and the value TeamA , // specify tag:Owner for the filter name and TeamA for the filter value. diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeSubnets.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeSubnets.go index 585441ed..fc21b32a 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeSubnets.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeSubnets.go @@ -116,7 +116,7 @@ type DescribeSubnetsInput struct { // // - subnet-id - The ID of the subnet. // - // - tag : - The key/value combination of a tag assigned to the resource. Use the + // - tag - The key/value combination of a tag assigned to the resource. Use the // tag key in the filter name and the tag value as the filter value. For example, // to find all resources that have a tag with the key Owner and the value TeamA , // specify tag:Owner for the filter name and TeamA for the filter value. diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeVpcBlockPublicAccessExclusions.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeVpcBlockPublicAccessExclusions.go new file mode 100644 index 00000000..5a7a8753 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeVpcBlockPublicAccessExclusions.go @@ -0,0 +1,204 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package ec2 + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/service/ec2/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Describe VPC Block Public Access (BPA) exclusions. A VPC BPA exclusion is a +// mode that can be applied to a single VPC or subnet that exempts it from the +// account’s BPA mode and will allow bidirectional or egress-only access. You can +// create BPA exclusions for VPCs and subnets even when BPA is not enabled on the +// account to ensure that there is no traffic disruption to the exclusions when VPC +// BPA is turned on. To learn more about VPC BPA, see [Block public access to VPCs and subnets]in the Amazon VPC User Guide. +// +// [Block public access to VPCs and subnets]: https://docs.aws.amazon.com/vpc/latest/userguide/security-vpc-bpa.html +func (c *Client) DescribeVpcBlockPublicAccessExclusions(ctx context.Context, params *DescribeVpcBlockPublicAccessExclusionsInput, optFns ...func(*Options)) (*DescribeVpcBlockPublicAccessExclusionsOutput, error) { + if params == nil { + params = &DescribeVpcBlockPublicAccessExclusionsInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "DescribeVpcBlockPublicAccessExclusions", params, optFns, c.addOperationDescribeVpcBlockPublicAccessExclusionsMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*DescribeVpcBlockPublicAccessExclusionsOutput) + out.ResultMetadata = metadata + return out, nil +} + +type DescribeVpcBlockPublicAccessExclusionsInput struct { + + // Checks whether you have the required permissions for the action, without + // actually making the request, and provides an error response. If you have the + // required permissions, the error response is DryRunOperation . Otherwise, it is + // UnauthorizedOperation . + DryRun *bool + + // IDs of exclusions. + ExclusionIds []string + + // Filters for the request: + // + // - resource-arn - The Amazon Resource Name (ARN) of a exclusion. + // + // - internet-gateway-exclusion-mode - The mode of a VPC BPA exclusion. Possible + // values: allow-bidirectional | allow-egress . + // + // - state - The state of VPC BPA. Possible values: create-in-progress | + // create-complete | update-in-progress | update-complete | delete-in-progress | + // deleted-complete | disable-in-progress | disable-complete + // + // - tag - The key/value combination of a tag assigned to the resource. Use the + // tag key in the filter name and the tag value as the filter value. For example, + // to find all resources that have a tag with the key Owner and the value TeamA , + // specify tag:Owner for the filter name and TeamA for the filter value. + // + // - tag-key - The key of a tag assigned to the resource. Use this filter to find + // all resources assigned a tag with a specific key, regardless of the tag value. + // + // - tag-value : The value of a tag assigned to the resource. Use this filter to + // find all resources assigned a tag with a specific value, regardless of the tag + // key. + Filters []types.Filter + + // The maximum number of items to return for this request. To get the next page of + // items, make another request with the token returned in the output. For more + // information, see [Pagination]. + // + // [Pagination]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination + MaxResults *int32 + + // The token returned from a previous paginated request. Pagination continues from + // the end of the items returned by the previous request. + NextToken *string + + noSmithyDocumentSerde +} + +type DescribeVpcBlockPublicAccessExclusionsOutput struct { + + // The token to include in another request to get the next page of items. This + // value is null when there are no more items to return. + NextToken *string + + // Details related to the exclusions. + VpcBlockPublicAccessExclusions []types.VpcBlockPublicAccessExclusion + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationDescribeVpcBlockPublicAccessExclusionsMiddlewares(stack *middleware.Stack, options Options) (err error) { + if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { + return err + } + err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeVpcBlockPublicAccessExclusions{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsEc2query_deserializeOpDescribeVpcBlockPublicAccessExclusions{}, middleware.After) + if err != nil { + return err + } + if err := addProtocolFinalizerMiddlewares(stack, options, "DescribeVpcBlockPublicAccessExclusions"); err != nil { + return fmt.Errorf("add protocol finalizers: %v", err) + } + + if err = addlegacyEndpointContextSetter(stack, options); err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = addClientRequestID(stack); err != nil { + return err + } + if err = addComputeContentLength(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = addComputePayloadSHA256(stack); err != nil { + return err + } + if err = addRetry(stack, options); err != nil { + return err + } + if err = addRawResponseToMetadata(stack); err != nil { + return err + } + if err = addRecordResponseTiming(stack); err != nil { + return err + } + if err = addSpanRetryLoop(stack, options); err != nil { + return err + } + if err = addClientUserAgent(stack, options); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { + return err + } + if err = addTimeOffsetBuild(stack, c); err != nil { + return err + } + if err = addUserAgentRetryMode(stack, options); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeVpcBlockPublicAccessExclusions(options.Region), middleware.Before); err != nil { + return err + } + if err = addRecursionDetection(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + if err = addDisableHTTPSMiddleware(stack, options); err != nil { + return err + } + if err = addSpanInitializeStart(stack); err != nil { + return err + } + if err = addSpanInitializeEnd(stack); err != nil { + return err + } + if err = addSpanBuildRequestStart(stack); err != nil { + return err + } + if err = addSpanBuildRequestEnd(stack); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opDescribeVpcBlockPublicAccessExclusions(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + OperationName: "DescribeVpcBlockPublicAccessExclusions", + } +} diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeVpcBlockPublicAccessOptions.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeVpcBlockPublicAccessOptions.go new file mode 100644 index 00000000..0a6b955d --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeVpcBlockPublicAccessOptions.go @@ -0,0 +1,161 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package ec2 + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/service/ec2/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Describe VPC Block Public Access (BPA) options. VPC Block Public Access (BPA) +// enables you to block resources in VPCs and subnets that you own in a Region from +// reaching or being reached from the internet through internet gateways and +// egress-only internet gateways. To learn more about VPC BPA, see [Block public access to VPCs and subnets]in the Amazon +// VPC User Guide. +// +// [Block public access to VPCs and subnets]: https://docs.aws.amazon.com/vpc/latest/userguide/security-vpc-bpa.html +func (c *Client) DescribeVpcBlockPublicAccessOptions(ctx context.Context, params *DescribeVpcBlockPublicAccessOptionsInput, optFns ...func(*Options)) (*DescribeVpcBlockPublicAccessOptionsOutput, error) { + if params == nil { + params = &DescribeVpcBlockPublicAccessOptionsInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "DescribeVpcBlockPublicAccessOptions", params, optFns, c.addOperationDescribeVpcBlockPublicAccessOptionsMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*DescribeVpcBlockPublicAccessOptionsOutput) + out.ResultMetadata = metadata + return out, nil +} + +type DescribeVpcBlockPublicAccessOptionsInput struct { + + // Checks whether you have the required permissions for the action, without + // actually making the request, and provides an error response. If you have the + // required permissions, the error response is DryRunOperation . Otherwise, it is + // UnauthorizedOperation . + DryRun *bool + + noSmithyDocumentSerde +} + +type DescribeVpcBlockPublicAccessOptionsOutput struct { + + // Details related to the options. + VpcBlockPublicAccessOptions *types.VpcBlockPublicAccessOptions + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationDescribeVpcBlockPublicAccessOptionsMiddlewares(stack *middleware.Stack, options Options) (err error) { + if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { + return err + } + err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeVpcBlockPublicAccessOptions{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsEc2query_deserializeOpDescribeVpcBlockPublicAccessOptions{}, middleware.After) + if err != nil { + return err + } + if err := addProtocolFinalizerMiddlewares(stack, options, "DescribeVpcBlockPublicAccessOptions"); err != nil { + return fmt.Errorf("add protocol finalizers: %v", err) + } + + if err = addlegacyEndpointContextSetter(stack, options); err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = addClientRequestID(stack); err != nil { + return err + } + if err = addComputeContentLength(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = addComputePayloadSHA256(stack); err != nil { + return err + } + if err = addRetry(stack, options); err != nil { + return err + } + if err = addRawResponseToMetadata(stack); err != nil { + return err + } + if err = addRecordResponseTiming(stack); err != nil { + return err + } + if err = addSpanRetryLoop(stack, options); err != nil { + return err + } + if err = addClientUserAgent(stack, options); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { + return err + } + if err = addTimeOffsetBuild(stack, c); err != nil { + return err + } + if err = addUserAgentRetryMode(stack, options); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeVpcBlockPublicAccessOptions(options.Region), middleware.Before); err != nil { + return err + } + if err = addRecursionDetection(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + if err = addDisableHTTPSMiddleware(stack, options); err != nil { + return err + } + if err = addSpanInitializeStart(stack); err != nil { + return err + } + if err = addSpanInitializeEnd(stack); err != nil { + return err + } + if err = addSpanBuildRequestStart(stack); err != nil { + return err + } + if err = addSpanBuildRequestEnd(stack); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opDescribeVpcBlockPublicAccessOptions(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + OperationName: "DescribeVpcBlockPublicAccessOptions", + } +} diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeVpcClassicLink.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeVpcClassicLink.go index fcbf3eac..68f82bcd 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeVpcClassicLink.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeVpcClassicLink.go @@ -42,7 +42,7 @@ type DescribeVpcClassicLinkInput struct { // - is-classic-link-enabled - Whether the VPC is enabled for ClassicLink ( true // | false ). // - // - tag : - The key/value combination of a tag assigned to the resource. Use the + // - tag - The key/value combination of a tag assigned to the resource. Use the // tag key in the filter name and the tag value as the filter value. For example, // to find all resources that have a tag with the key Owner and the value TeamA , // specify tag:Owner for the filter name and TeamA for the filter value. diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeVpcPeeringConnections.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeVpcPeeringConnections.go index e8920eab..d1cf7549 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeVpcPeeringConnections.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeVpcPeeringConnections.go @@ -68,7 +68,7 @@ type DescribeVpcPeeringConnectionsInput struct { // - status-message - A message that provides more information about the status // of the VPC peering connection, if applicable. // - // - tag : - The key/value combination of a tag assigned to the resource. Use the + // - tag - The key/value combination of a tag assigned to the resource. Use the // tag key in the filter name and the tag value as the filter value. For example, // to find all resources that have a tag with the key Owner and the value TeamA , // specify tag:Owner for the filter name and TeamA for the filter value. diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeVpcs.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeVpcs.go index 6cba0d69..504e90ed 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeVpcs.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeVpcs.go @@ -77,7 +77,7 @@ type DescribeVpcsInput struct { // // - state - The state of the VPC ( pending | available ). // - // - tag : - The key/value combination of a tag assigned to the resource. Use the + // - tag - The key/value combination of a tag assigned to the resource. Use the // tag key in the filter name and the tag value as the filter value. For example, // to find all resources that have a tag with the key Owner and the value TeamA , // specify tag:Owner for the filter name and TeamA for the filter value. diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetCapacityReservationUsage.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetCapacityReservationUsage.go index 9abe2178..cb8c4f75 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetCapacityReservationUsage.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetCapacityReservationUsage.go @@ -79,22 +79,38 @@ type GetCapacityReservationUsageOutput struct { // The current state of the Capacity Reservation. A Capacity Reservation can be in // one of the following states: // - // - active - The Capacity Reservation is active and the capacity is available - // for your use. + // - active - The capacity is available for use. // // - expired - The Capacity Reservation expired automatically at the date and - // time specified in your request. The reserved capacity is no longer available for - // your use. + // time specified in your reservation request. The reserved capacity is no longer + // available for your use. // - // - cancelled - The Capacity Reservation was cancelled. The reserved capacity is + // - cancelled - The Capacity Reservation was canceled. The reserved capacity is // no longer available for your use. // // - pending - The Capacity Reservation request was successful but the capacity // provisioning is still pending. // - // - failed - The Capacity Reservation request has failed. A request might fail - // due to invalid request parameters, capacity constraints, or instance limit - // constraints. Failed requests are retained for 60 minutes. + // - failed - The Capacity Reservation request has failed. A request can fail due + // to request parameters that are not valid, capacity constraints, or instance + // limit constraints. You can view a failed request for 60 minutes. + // + // - scheduled - (Future-dated Capacity Reservations only) The future-dated + // Capacity Reservation request was approved and the Capacity Reservation is + // scheduled for delivery on the requested start date. + // + // - assessing - (Future-dated Capacity Reservations only) Amazon EC2 is + // assessing your request for a future-dated Capacity Reservation. + // + // - delayed - (Future-dated Capacity Reservations only) Amazon EC2 encountered a + // delay in provisioning the requested future-dated Capacity Reservation. Amazon + // EC2 is unable to deliver the requested capacity by the requested start date and + // time. + // + // - unsupported - (Future-dated Capacity Reservations only) Amazon EC2 can't + // support the future-dated Capacity Reservation request due to capacity + // constraints. You can view unsupported requests for 30 days. The Capacity + // Reservation will not be delivered. State types.CapacityReservationState // The number of instances for which the Capacity Reservation reserves capacity. diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyCapacityReservation.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyCapacityReservation.go index 41fab81d..8a90bd9f 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyCapacityReservation.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyCapacityReservation.go @@ -19,6 +19,22 @@ import ( // attributes, we recommend that you cancel the Capacity Reservation, and then // create a new one with the required attributes. For more information, see [Modify an active Capacity Reservation]. // +// The allowed modifications depend on the state of the Capacity Reservation: +// +// - assessing or scheduled state - You can modify the tags only. +// +// - pending state - You can't modify the Capacity Reservation in any way. +// +// - active state but still within the commitment duration - You can't decrease +// the instance count or set an end date that is within the commitment duration. +// All other modifications are allowed. +// +// - active state with no commitment duration or elapsed commitment duration - +// All modifications are allowed. +// +// - expired , cancelled , unsupported , or failed state - You can't modify the +// Capacity Reservation in any way. +// // [Modify an active Capacity Reservation]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/capacity-reservations-modify.html func (c *Client) ModifyCapacityReservation(ctx context.Context, params *ModifyCapacityReservationInput, optFns ...func(*Options)) (*ModifyCapacityReservationOutput, error) { if params == nil { diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyInstanceCapacityReservationAttributes.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyInstanceCapacityReservationAttributes.go index 0ad3f51b..03b0dd7a 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyInstanceCapacityReservationAttributes.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyInstanceCapacityReservationAttributes.go @@ -13,8 +13,8 @@ import ( // Modifies the Capacity Reservation settings for a stopped instance. Use this // action to configure an instance to target a specific Capacity Reservation, run -// in any open Capacity Reservation with matching attributes, or run On-Demand -// Instance capacity. +// in any open Capacity Reservation with matching attributes, run in On-Demand +// Instance capacity, or only run in a Capacity Reservation. func (c *Client) ModifyInstanceCapacityReservationAttributes(ctx context.Context, params *ModifyInstanceCapacityReservationAttributesInput, optFns ...func(*Options)) (*ModifyInstanceCapacityReservationAttributesOutput, error) { if params == nil { params = &ModifyInstanceCapacityReservationAttributesInput{} diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyIpamResourceDiscovery.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyIpamResourceDiscovery.go index 35c57a1a..3eade00d 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyIpamResourceDiscovery.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyIpamResourceDiscovery.go @@ -41,6 +41,15 @@ type ModifyIpamResourceDiscoveryInput struct { // select as operating Regions. AddOperatingRegions []types.AddIpamOperatingRegion + // Add an Organizational Unit (OU) exclusion to your IPAM. If your IPAM is + // integrated with Amazon Web Services Organizations and you add an organizational + // unit (OU) exclusion, IPAM will not manage the IP addresses in accounts in that + // OU exclusion. There is a limit on the number of exclusions you can create. For + // more information, see [Quotas for your IPAM]in the Amazon VPC IPAM User Guide. + // + // [Quotas for your IPAM]: https://docs.aws.amazon.com/vpc/latest/ipam/quotas-ipam.html + AddOrganizationalUnitExclusions []types.AddIpamOrganizationalUnitExclusion + // A resource discovery description. Description *string @@ -53,6 +62,15 @@ type ModifyIpamResourceDiscoveryInput struct { // Remove operating Regions. RemoveOperatingRegions []types.RemoveIpamOperatingRegion + // Remove an Organizational Unit (OU) exclusion to your IPAM. If your IPAM is + // integrated with Amazon Web Services Organizations and you add an organizational + // unit (OU) exclusion, IPAM will not manage the IP addresses in accounts in that + // OU exclusion. There is a limit on the number of exclusions you can create. For + // more information, see [Quotas for your IPAM]in the Amazon VPC IPAM User Guide. + // + // [Quotas for your IPAM]: https://docs.aws.amazon.com/vpc/latest/ipam/quotas-ipam.html + RemoveOrganizationalUnitExclusions []types.RemoveIpamOrganizationalUnitExclusion + noSmithyDocumentSerde } diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyVpcBlockPublicAccessExclusion.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyVpcBlockPublicAccessExclusion.go new file mode 100644 index 00000000..cc2a26f7 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyVpcBlockPublicAccessExclusion.go @@ -0,0 +1,180 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package ec2 + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/service/ec2/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Modify VPC Block Public Access (BPA) exclusions. A VPC BPA exclusion is a mode +// that can be applied to a single VPC or subnet that exempts it from the account’s +// BPA mode and will allow bidirectional or egress-only access. You can create BPA +// exclusions for VPCs and subnets even when BPA is not enabled on the account to +// ensure that there is no traffic disruption to the exclusions when VPC BPA is +// turned on. +func (c *Client) ModifyVpcBlockPublicAccessExclusion(ctx context.Context, params *ModifyVpcBlockPublicAccessExclusionInput, optFns ...func(*Options)) (*ModifyVpcBlockPublicAccessExclusionOutput, error) { + if params == nil { + params = &ModifyVpcBlockPublicAccessExclusionInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "ModifyVpcBlockPublicAccessExclusion", params, optFns, c.addOperationModifyVpcBlockPublicAccessExclusionMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*ModifyVpcBlockPublicAccessExclusionOutput) + out.ResultMetadata = metadata + return out, nil +} + +type ModifyVpcBlockPublicAccessExclusionInput struct { + + // The ID of an exclusion. + // + // This member is required. + ExclusionId *string + + // The exclusion mode for internet gateway traffic. + // + // - allow-bidirectional : Allow all internet traffic to and from the excluded + // VPCs and subnets. + // + // - allow-egress : Allow outbound internet traffic from the excluded VPCs and + // subnets. Block inbound internet traffic to the excluded VPCs and subnets. Only + // applies when VPC Block Public Access is set to Bidirectional. + // + // This member is required. + InternetGatewayExclusionMode types.InternetGatewayExclusionMode + + // Checks whether you have the required permissions for the action, without + // actually making the request, and provides an error response. If you have the + // required permissions, the error response is DryRunOperation . Otherwise, it is + // UnauthorizedOperation . + DryRun *bool + + noSmithyDocumentSerde +} + +type ModifyVpcBlockPublicAccessExclusionOutput struct { + + // Details related to the exclusion. + VpcBlockPublicAccessExclusion *types.VpcBlockPublicAccessExclusion + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationModifyVpcBlockPublicAccessExclusionMiddlewares(stack *middleware.Stack, options Options) (err error) { + if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { + return err + } + err = stack.Serialize.Add(&awsEc2query_serializeOpModifyVpcBlockPublicAccessExclusion{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsEc2query_deserializeOpModifyVpcBlockPublicAccessExclusion{}, middleware.After) + if err != nil { + return err + } + if err := addProtocolFinalizerMiddlewares(stack, options, "ModifyVpcBlockPublicAccessExclusion"); err != nil { + return fmt.Errorf("add protocol finalizers: %v", err) + } + + if err = addlegacyEndpointContextSetter(stack, options); err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = addClientRequestID(stack); err != nil { + return err + } + if err = addComputeContentLength(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = addComputePayloadSHA256(stack); err != nil { + return err + } + if err = addRetry(stack, options); err != nil { + return err + } + if err = addRawResponseToMetadata(stack); err != nil { + return err + } + if err = addRecordResponseTiming(stack); err != nil { + return err + } + if err = addSpanRetryLoop(stack, options); err != nil { + return err + } + if err = addClientUserAgent(stack, options); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { + return err + } + if err = addTimeOffsetBuild(stack, c); err != nil { + return err + } + if err = addUserAgentRetryMode(stack, options); err != nil { + return err + } + if err = addOpModifyVpcBlockPublicAccessExclusionValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opModifyVpcBlockPublicAccessExclusion(options.Region), middleware.Before); err != nil { + return err + } + if err = addRecursionDetection(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + if err = addDisableHTTPSMiddleware(stack, options); err != nil { + return err + } + if err = addSpanInitializeStart(stack); err != nil { + return err + } + if err = addSpanInitializeEnd(stack); err != nil { + return err + } + if err = addSpanBuildRequestStart(stack); err != nil { + return err + } + if err = addSpanBuildRequestEnd(stack); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opModifyVpcBlockPublicAccessExclusion(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + OperationName: "ModifyVpcBlockPublicAccessExclusion", + } +} diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyVpcBlockPublicAccessOptions.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyVpcBlockPublicAccessOptions.go new file mode 100644 index 00000000..2202604b --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyVpcBlockPublicAccessOptions.go @@ -0,0 +1,181 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package ec2 + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/service/ec2/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Modify VPC Block Public Access (BPA) options. VPC Block Public Access (BPA) +// enables you to block resources in VPCs and subnets that you own in a Region from +// reaching or being reached from the internet through internet gateways and +// egress-only internet gateways. To learn more about VPC BPA, see [Block public access to VPCs and subnets]in the Amazon +// VPC User Guide. +// +// [Block public access to VPCs and subnets]: https://docs.aws.amazon.com/vpc/latest/userguide/security-vpc-bpa.html +func (c *Client) ModifyVpcBlockPublicAccessOptions(ctx context.Context, params *ModifyVpcBlockPublicAccessOptionsInput, optFns ...func(*Options)) (*ModifyVpcBlockPublicAccessOptionsOutput, error) { + if params == nil { + params = &ModifyVpcBlockPublicAccessOptionsInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "ModifyVpcBlockPublicAccessOptions", params, optFns, c.addOperationModifyVpcBlockPublicAccessOptionsMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*ModifyVpcBlockPublicAccessOptionsOutput) + out.ResultMetadata = metadata + return out, nil +} + +type ModifyVpcBlockPublicAccessOptionsInput struct { + + // The mode of VPC BPA. + // + // - off : VPC BPA is not enabled and traffic is allowed to and from internet + // gateways and egress-only internet gateways in this Region. + // + // - block-bidirectional : Block all traffic to and from internet gateways and + // egress-only internet gateways in this Region (except for excluded VPCs and + // subnets). + // + // - block-ingress : Block all internet traffic to the VPCs in this Region + // (except for VPCs or subnets which are excluded). Only traffic to and from NAT + // gateways and egress-only internet gateways is allowed because these gateways + // only allow outbound connections to be established. + // + // This member is required. + InternetGatewayBlockMode types.InternetGatewayBlockMode + + // Checks whether you have the required permissions for the action, without + // actually making the request, and provides an error response. If you have the + // required permissions, the error response is DryRunOperation . Otherwise, it is + // UnauthorizedOperation . + DryRun *bool + + noSmithyDocumentSerde +} + +type ModifyVpcBlockPublicAccessOptionsOutput struct { + + // Details related to the VPC Block Public Access (BPA) options. + VpcBlockPublicAccessOptions *types.VpcBlockPublicAccessOptions + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationModifyVpcBlockPublicAccessOptionsMiddlewares(stack *middleware.Stack, options Options) (err error) { + if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { + return err + } + err = stack.Serialize.Add(&awsEc2query_serializeOpModifyVpcBlockPublicAccessOptions{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsEc2query_deserializeOpModifyVpcBlockPublicAccessOptions{}, middleware.After) + if err != nil { + return err + } + if err := addProtocolFinalizerMiddlewares(stack, options, "ModifyVpcBlockPublicAccessOptions"); err != nil { + return fmt.Errorf("add protocol finalizers: %v", err) + } + + if err = addlegacyEndpointContextSetter(stack, options); err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = addClientRequestID(stack); err != nil { + return err + } + if err = addComputeContentLength(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = addComputePayloadSHA256(stack); err != nil { + return err + } + if err = addRetry(stack, options); err != nil { + return err + } + if err = addRawResponseToMetadata(stack); err != nil { + return err + } + if err = addRecordResponseTiming(stack); err != nil { + return err + } + if err = addSpanRetryLoop(stack, options); err != nil { + return err + } + if err = addClientUserAgent(stack, options); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { + return err + } + if err = addTimeOffsetBuild(stack, c); err != nil { + return err + } + if err = addUserAgentRetryMode(stack, options); err != nil { + return err + } + if err = addOpModifyVpcBlockPublicAccessOptionsValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opModifyVpcBlockPublicAccessOptions(options.Region), middleware.Before); err != nil { + return err + } + if err = addRecursionDetection(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + if err = addDisableHTTPSMiddleware(stack, options); err != nil { + return err + } + if err = addSpanInitializeStart(stack); err != nil { + return err + } + if err = addSpanInitializeEnd(stack); err != nil { + return err + } + if err = addSpanBuildRequestStart(stack); err != nil { + return err + } + if err = addSpanBuildRequestEnd(stack); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opModifyVpcBlockPublicAccessOptions(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + OperationName: "ModifyVpcBlockPublicAccessOptions", + } +} diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_PurchaseCapacityBlockExtension.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_PurchaseCapacityBlockExtension.go new file mode 100644 index 00000000..c907bf94 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_PurchaseCapacityBlockExtension.go @@ -0,0 +1,169 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package ec2 + +import ( + "context" + "fmt" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/service/ec2/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Purchase the Capacity Block extension for use with your account. You must +// specify the ID of the Capacity Block extension offering you are purchasing. +func (c *Client) PurchaseCapacityBlockExtension(ctx context.Context, params *PurchaseCapacityBlockExtensionInput, optFns ...func(*Options)) (*PurchaseCapacityBlockExtensionOutput, error) { + if params == nil { + params = &PurchaseCapacityBlockExtensionInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "PurchaseCapacityBlockExtension", params, optFns, c.addOperationPurchaseCapacityBlockExtensionMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*PurchaseCapacityBlockExtensionOutput) + out.ResultMetadata = metadata + return out, nil +} + +type PurchaseCapacityBlockExtensionInput struct { + + // The ID of the Capacity Block extension offering to purchase. + // + // This member is required. + CapacityBlockExtensionOfferingId *string + + // The ID of the Capacity reservation to be extended. + // + // This member is required. + CapacityReservationId *string + + // Checks whether you have the required permissions for the action, without + // actually making the request, and provides an error response. If you have the + // required permissions, the error response is DryRunOperation . Otherwise, it is + // UnauthorizedOperation . + DryRun *bool + + noSmithyDocumentSerde +} + +type PurchaseCapacityBlockExtensionOutput struct { + + // The purchased Capacity Block extensions. + CapacityBlockExtensions []types.CapacityBlockExtension + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (c *Client) addOperationPurchaseCapacityBlockExtensionMiddlewares(stack *middleware.Stack, options Options) (err error) { + if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { + return err + } + err = stack.Serialize.Add(&awsEc2query_serializeOpPurchaseCapacityBlockExtension{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsEc2query_deserializeOpPurchaseCapacityBlockExtension{}, middleware.After) + if err != nil { + return err + } + if err := addProtocolFinalizerMiddlewares(stack, options, "PurchaseCapacityBlockExtension"); err != nil { + return fmt.Errorf("add protocol finalizers: %v", err) + } + + if err = addlegacyEndpointContextSetter(stack, options); err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = addClientRequestID(stack); err != nil { + return err + } + if err = addComputeContentLength(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = addComputePayloadSHA256(stack); err != nil { + return err + } + if err = addRetry(stack, options); err != nil { + return err + } + if err = addRawResponseToMetadata(stack); err != nil { + return err + } + if err = addRecordResponseTiming(stack); err != nil { + return err + } + if err = addSpanRetryLoop(stack, options); err != nil { + return err + } + if err = addClientUserAgent(stack, options); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { + return err + } + if err = addTimeOffsetBuild(stack, c); err != nil { + return err + } + if err = addUserAgentRetryMode(stack, options); err != nil { + return err + } + if err = addOpPurchaseCapacityBlockExtensionValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opPurchaseCapacityBlockExtension(options.Region), middleware.Before); err != nil { + return err + } + if err = addRecursionDetection(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + if err = addDisableHTTPSMiddleware(stack, options); err != nil { + return err + } + if err = addSpanInitializeStart(stack); err != nil { + return err + } + if err = addSpanInitializeEnd(stack); err != nil { + return err + } + if err = addSpanBuildRequestStart(stack); err != nil { + return err + } + if err = addSpanBuildRequestEnd(stack); err != nil { + return err + } + return nil +} + +func newServiceMetadataMiddleware_opPurchaseCapacityBlockExtension(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + OperationName: "PurchaseCapacityBlockExtension", + } +} diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_RunInstances.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_RunInstances.go index 91ce7cab..2d32bf20 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_RunInstances.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_RunInstances.go @@ -118,7 +118,7 @@ type RunInstancesInput struct { // Information about the Capacity Reservation targeting option. If you do not // specify this parameter, the instance's Capacity Reservation preference defaults // to open , which enables it to run in any open Capacity Reservation that has - // matching attributes (instance type, platform, Availability Zone). + // matching attributes (instance type, platform, Availability Zone, and tenancy). CapacityReservationSpecification *types.CapacityReservationSpecification // Unique, case-sensitive identifier you provide to ensure the idempotency of the @@ -309,6 +309,9 @@ type RunInstancesInput struct { // The network interfaces to associate with the instance. NetworkInterfaces []types.InstanceNetworkInterfaceSpecification + // Reserved for internal use. + Operator *types.OperatorRequest + // The placement for the instance. Placement *types.Placement diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/deserializers.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/deserializers.go index 7d24ae7b..56f51a0c 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/deserializers.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/deserializers.go @@ -12721,6 +12721,101 @@ func awsEc2query_deserializeOpErrorCreateVpc(response *smithyhttp.Response, meta } } +type awsEc2query_deserializeOpCreateVpcBlockPublicAccessExclusion struct { +} + +func (*awsEc2query_deserializeOpCreateVpcBlockPublicAccessExclusion) ID() string { + return "OperationDeserializer" +} + +func (m *awsEc2query_deserializeOpCreateVpcBlockPublicAccessExclusion) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + _, span := tracing.StartSpan(ctx, "OperationDeserializer") + endTimer := startMetricTimer(ctx, "client.call.deserialization_duration") + defer endTimer() + defer span.End() + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsEc2query_deserializeOpErrorCreateVpcBlockPublicAccessExclusion(response, &metadata) + } + output := &CreateVpcBlockPublicAccessExclusionOutput{} + out.Result = output + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + body := io.TeeReader(response.Body, ringBuffer) + rootDecoder := xml.NewDecoder(body) + t, err := smithyxml.FetchRootElement(rootDecoder) + if err == io.EOF { + return out, metadata, nil + } + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) + err = awsEc2query_deserializeOpDocumentCreateVpcBlockPublicAccessExclusionOutput(&output, decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + return out, metadata, err +} + +func awsEc2query_deserializeOpErrorCreateVpcBlockPublicAccessExclusion(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + errorComponents, err := ec2query.GetErrorResponseComponents(errorBody) + if err != nil { + return err + } + awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID) + if len(errorComponents.Code) != 0 { + errorCode = errorComponents.Code + } + if len(errorComponents.Message) != 0 { + errorMessage = errorComponents.Message + } + errorBody.Seek(0, io.SeekStart) + switch { + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + type awsEc2query_deserializeOpCreateVpcEndpoint struct { } @@ -19455,6 +19550,101 @@ func awsEc2query_deserializeOpErrorDeleteVpc(response *smithyhttp.Response, meta } } +type awsEc2query_deserializeOpDeleteVpcBlockPublicAccessExclusion struct { +} + +func (*awsEc2query_deserializeOpDeleteVpcBlockPublicAccessExclusion) ID() string { + return "OperationDeserializer" +} + +func (m *awsEc2query_deserializeOpDeleteVpcBlockPublicAccessExclusion) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + _, span := tracing.StartSpan(ctx, "OperationDeserializer") + endTimer := startMetricTimer(ctx, "client.call.deserialization_duration") + defer endTimer() + defer span.End() + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsEc2query_deserializeOpErrorDeleteVpcBlockPublicAccessExclusion(response, &metadata) + } + output := &DeleteVpcBlockPublicAccessExclusionOutput{} + out.Result = output + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + body := io.TeeReader(response.Body, ringBuffer) + rootDecoder := xml.NewDecoder(body) + t, err := smithyxml.FetchRootElement(rootDecoder) + if err == io.EOF { + return out, metadata, nil + } + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) + err = awsEc2query_deserializeOpDocumentDeleteVpcBlockPublicAccessExclusionOutput(&output, decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + return out, metadata, err +} + +func awsEc2query_deserializeOpErrorDeleteVpcBlockPublicAccessExclusion(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + errorComponents, err := ec2query.GetErrorResponseComponents(errorBody) + if err != nil { + return err + } + awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID) + if len(errorComponents.Code) != 0 { + errorCode = errorComponents.Code + } + if len(errorComponents.Message) != 0 { + errorMessage = errorComponents.Message + } + errorBody.Seek(0, io.SeekStart) + switch { + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + type awsEc2query_deserializeOpDeleteVpcEndpointConnectionNotifications struct { } @@ -21643,14 +21833,14 @@ func awsEc2query_deserializeOpErrorDescribeByoipCidrs(response *smithyhttp.Respo } } -type awsEc2query_deserializeOpDescribeCapacityBlockOfferings struct { +type awsEc2query_deserializeOpDescribeCapacityBlockExtensionHistory struct { } -func (*awsEc2query_deserializeOpDescribeCapacityBlockOfferings) ID() string { +func (*awsEc2query_deserializeOpDescribeCapacityBlockExtensionHistory) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDescribeCapacityBlockOfferings) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDescribeCapacityBlockExtensionHistory) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -21668,9 +21858,9 @@ func (m *awsEc2query_deserializeOpDescribeCapacityBlockOfferings) HandleDeserial } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDescribeCapacityBlockOfferings(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDescribeCapacityBlockExtensionHistory(response, &metadata) } - output := &DescribeCapacityBlockOfferingsOutput{} + output := &DescribeCapacityBlockExtensionHistoryOutput{} out.Result = output var buff [1024]byte @@ -21691,7 +21881,7 @@ func (m *awsEc2query_deserializeOpDescribeCapacityBlockOfferings) HandleDeserial } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentDescribeCapacityBlockOfferingsOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentDescribeCapacityBlockExtensionHistoryOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -21705,7 +21895,7 @@ func (m *awsEc2query_deserializeOpDescribeCapacityBlockOfferings) HandleDeserial return out, metadata, err } -func awsEc2query_deserializeOpErrorDescribeCapacityBlockOfferings(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDescribeCapacityBlockExtensionHistory(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -21738,14 +21928,14 @@ func awsEc2query_deserializeOpErrorDescribeCapacityBlockOfferings(response *smit } } -type awsEc2query_deserializeOpDescribeCapacityReservationBillingRequests struct { +type awsEc2query_deserializeOpDescribeCapacityBlockExtensionOfferings struct { } -func (*awsEc2query_deserializeOpDescribeCapacityReservationBillingRequests) ID() string { +func (*awsEc2query_deserializeOpDescribeCapacityBlockExtensionOfferings) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDescribeCapacityReservationBillingRequests) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDescribeCapacityBlockExtensionOfferings) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -21763,9 +21953,9 @@ func (m *awsEc2query_deserializeOpDescribeCapacityReservationBillingRequests) Ha } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDescribeCapacityReservationBillingRequests(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDescribeCapacityBlockExtensionOfferings(response, &metadata) } - output := &DescribeCapacityReservationBillingRequestsOutput{} + output := &DescribeCapacityBlockExtensionOfferingsOutput{} out.Result = output var buff [1024]byte @@ -21786,7 +21976,7 @@ func (m *awsEc2query_deserializeOpDescribeCapacityReservationBillingRequests) Ha } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentDescribeCapacityReservationBillingRequestsOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentDescribeCapacityBlockExtensionOfferingsOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -21800,7 +21990,7 @@ func (m *awsEc2query_deserializeOpDescribeCapacityReservationBillingRequests) Ha return out, metadata, err } -func awsEc2query_deserializeOpErrorDescribeCapacityReservationBillingRequests(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDescribeCapacityBlockExtensionOfferings(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -21833,14 +22023,14 @@ func awsEc2query_deserializeOpErrorDescribeCapacityReservationBillingRequests(re } } -type awsEc2query_deserializeOpDescribeCapacityReservationFleets struct { +type awsEc2query_deserializeOpDescribeCapacityBlockOfferings struct { } -func (*awsEc2query_deserializeOpDescribeCapacityReservationFleets) ID() string { +func (*awsEc2query_deserializeOpDescribeCapacityBlockOfferings) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDescribeCapacityReservationFleets) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDescribeCapacityBlockOfferings) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -21858,9 +22048,9 @@ func (m *awsEc2query_deserializeOpDescribeCapacityReservationFleets) HandleDeser } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDescribeCapacityReservationFleets(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDescribeCapacityBlockOfferings(response, &metadata) } - output := &DescribeCapacityReservationFleetsOutput{} + output := &DescribeCapacityBlockOfferingsOutput{} out.Result = output var buff [1024]byte @@ -21881,7 +22071,7 @@ func (m *awsEc2query_deserializeOpDescribeCapacityReservationFleets) HandleDeser } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentDescribeCapacityReservationFleetsOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentDescribeCapacityBlockOfferingsOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -21895,7 +22085,7 @@ func (m *awsEc2query_deserializeOpDescribeCapacityReservationFleets) HandleDeser return out, metadata, err } -func awsEc2query_deserializeOpErrorDescribeCapacityReservationFleets(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDescribeCapacityBlockOfferings(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -21928,14 +22118,14 @@ func awsEc2query_deserializeOpErrorDescribeCapacityReservationFleets(response *s } } -type awsEc2query_deserializeOpDescribeCapacityReservations struct { +type awsEc2query_deserializeOpDescribeCapacityReservationBillingRequests struct { } -func (*awsEc2query_deserializeOpDescribeCapacityReservations) ID() string { +func (*awsEc2query_deserializeOpDescribeCapacityReservationBillingRequests) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDescribeCapacityReservations) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDescribeCapacityReservationBillingRequests) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -21953,9 +22143,9 @@ func (m *awsEc2query_deserializeOpDescribeCapacityReservations) HandleDeserializ } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDescribeCapacityReservations(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDescribeCapacityReservationBillingRequests(response, &metadata) } - output := &DescribeCapacityReservationsOutput{} + output := &DescribeCapacityReservationBillingRequestsOutput{} out.Result = output var buff [1024]byte @@ -21976,7 +22166,7 @@ func (m *awsEc2query_deserializeOpDescribeCapacityReservations) HandleDeserializ } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentDescribeCapacityReservationsOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentDescribeCapacityReservationBillingRequestsOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -21990,7 +22180,7 @@ func (m *awsEc2query_deserializeOpDescribeCapacityReservations) HandleDeserializ return out, metadata, err } -func awsEc2query_deserializeOpErrorDescribeCapacityReservations(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDescribeCapacityReservationBillingRequests(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -22023,14 +22213,14 @@ func awsEc2query_deserializeOpErrorDescribeCapacityReservations(response *smithy } } -type awsEc2query_deserializeOpDescribeCarrierGateways struct { +type awsEc2query_deserializeOpDescribeCapacityReservationFleets struct { } -func (*awsEc2query_deserializeOpDescribeCarrierGateways) ID() string { +func (*awsEc2query_deserializeOpDescribeCapacityReservationFleets) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDescribeCarrierGateways) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDescribeCapacityReservationFleets) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -22048,9 +22238,9 @@ func (m *awsEc2query_deserializeOpDescribeCarrierGateways) HandleDeserialize(ctx } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDescribeCarrierGateways(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDescribeCapacityReservationFleets(response, &metadata) } - output := &DescribeCarrierGatewaysOutput{} + output := &DescribeCapacityReservationFleetsOutput{} out.Result = output var buff [1024]byte @@ -22071,7 +22261,7 @@ func (m *awsEc2query_deserializeOpDescribeCarrierGateways) HandleDeserialize(ctx } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentDescribeCarrierGatewaysOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentDescribeCapacityReservationFleetsOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -22085,7 +22275,7 @@ func (m *awsEc2query_deserializeOpDescribeCarrierGateways) HandleDeserialize(ctx return out, metadata, err } -func awsEc2query_deserializeOpErrorDescribeCarrierGateways(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDescribeCapacityReservationFleets(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -22118,14 +22308,14 @@ func awsEc2query_deserializeOpErrorDescribeCarrierGateways(response *smithyhttp. } } -type awsEc2query_deserializeOpDescribeClassicLinkInstances struct { +type awsEc2query_deserializeOpDescribeCapacityReservations struct { } -func (*awsEc2query_deserializeOpDescribeClassicLinkInstances) ID() string { +func (*awsEc2query_deserializeOpDescribeCapacityReservations) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDescribeClassicLinkInstances) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDescribeCapacityReservations) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -22143,9 +22333,9 @@ func (m *awsEc2query_deserializeOpDescribeClassicLinkInstances) HandleDeserializ } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDescribeClassicLinkInstances(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDescribeCapacityReservations(response, &metadata) } - output := &DescribeClassicLinkInstancesOutput{} + output := &DescribeCapacityReservationsOutput{} out.Result = output var buff [1024]byte @@ -22166,7 +22356,7 @@ func (m *awsEc2query_deserializeOpDescribeClassicLinkInstances) HandleDeserializ } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentDescribeClassicLinkInstancesOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentDescribeCapacityReservationsOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -22180,7 +22370,7 @@ func (m *awsEc2query_deserializeOpDescribeClassicLinkInstances) HandleDeserializ return out, metadata, err } -func awsEc2query_deserializeOpErrorDescribeClassicLinkInstances(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDescribeCapacityReservations(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -22213,14 +22403,14 @@ func awsEc2query_deserializeOpErrorDescribeClassicLinkInstances(response *smithy } } -type awsEc2query_deserializeOpDescribeClientVpnAuthorizationRules struct { +type awsEc2query_deserializeOpDescribeCarrierGateways struct { } -func (*awsEc2query_deserializeOpDescribeClientVpnAuthorizationRules) ID() string { +func (*awsEc2query_deserializeOpDescribeCarrierGateways) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDescribeClientVpnAuthorizationRules) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDescribeCarrierGateways) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -22238,9 +22428,9 @@ func (m *awsEc2query_deserializeOpDescribeClientVpnAuthorizationRules) HandleDes } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDescribeClientVpnAuthorizationRules(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDescribeCarrierGateways(response, &metadata) } - output := &DescribeClientVpnAuthorizationRulesOutput{} + output := &DescribeCarrierGatewaysOutput{} out.Result = output var buff [1024]byte @@ -22261,7 +22451,7 @@ func (m *awsEc2query_deserializeOpDescribeClientVpnAuthorizationRules) HandleDes } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentDescribeClientVpnAuthorizationRulesOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentDescribeCarrierGatewaysOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -22275,7 +22465,197 @@ func (m *awsEc2query_deserializeOpDescribeClientVpnAuthorizationRules) HandleDes return out, metadata, err } -func awsEc2query_deserializeOpErrorDescribeClientVpnAuthorizationRules(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDescribeCarrierGateways(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + errorComponents, err := ec2query.GetErrorResponseComponents(errorBody) + if err != nil { + return err + } + awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID) + if len(errorComponents.Code) != 0 { + errorCode = errorComponents.Code + } + if len(errorComponents.Message) != 0 { + errorMessage = errorComponents.Message + } + errorBody.Seek(0, io.SeekStart) + switch { + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +type awsEc2query_deserializeOpDescribeClassicLinkInstances struct { +} + +func (*awsEc2query_deserializeOpDescribeClassicLinkInstances) ID() string { + return "OperationDeserializer" +} + +func (m *awsEc2query_deserializeOpDescribeClassicLinkInstances) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + _, span := tracing.StartSpan(ctx, "OperationDeserializer") + endTimer := startMetricTimer(ctx, "client.call.deserialization_duration") + defer endTimer() + defer span.End() + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsEc2query_deserializeOpErrorDescribeClassicLinkInstances(response, &metadata) + } + output := &DescribeClassicLinkInstancesOutput{} + out.Result = output + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + body := io.TeeReader(response.Body, ringBuffer) + rootDecoder := xml.NewDecoder(body) + t, err := smithyxml.FetchRootElement(rootDecoder) + if err == io.EOF { + return out, metadata, nil + } + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) + err = awsEc2query_deserializeOpDocumentDescribeClassicLinkInstancesOutput(&output, decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + return out, metadata, err +} + +func awsEc2query_deserializeOpErrorDescribeClassicLinkInstances(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + errorComponents, err := ec2query.GetErrorResponseComponents(errorBody) + if err != nil { + return err + } + awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID) + if len(errorComponents.Code) != 0 { + errorCode = errorComponents.Code + } + if len(errorComponents.Message) != 0 { + errorMessage = errorComponents.Message + } + errorBody.Seek(0, io.SeekStart) + switch { + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +type awsEc2query_deserializeOpDescribeClientVpnAuthorizationRules struct { +} + +func (*awsEc2query_deserializeOpDescribeClientVpnAuthorizationRules) ID() string { + return "OperationDeserializer" +} + +func (m *awsEc2query_deserializeOpDescribeClientVpnAuthorizationRules) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + _, span := tracing.StartSpan(ctx, "OperationDeserializer") + endTimer := startMetricTimer(ctx, "client.call.deserialization_duration") + defer endTimer() + defer span.End() + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsEc2query_deserializeOpErrorDescribeClientVpnAuthorizationRules(response, &metadata) + } + output := &DescribeClientVpnAuthorizationRulesOutput{} + out.Result = output + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + body := io.TeeReader(response.Body, ringBuffer) + rootDecoder := xml.NewDecoder(body) + t, err := smithyxml.FetchRootElement(rootDecoder) + if err == io.EOF { + return out, metadata, nil + } + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) + err = awsEc2query_deserializeOpDocumentDescribeClientVpnAuthorizationRulesOutput(&output, decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + return out, metadata, err +} + +func awsEc2query_deserializeOpErrorDescribeClientVpnAuthorizationRules(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -34373,14 +34753,14 @@ func awsEc2query_deserializeOpErrorDescribeVpcAttribute(response *smithyhttp.Res } } -type awsEc2query_deserializeOpDescribeVpcClassicLink struct { +type awsEc2query_deserializeOpDescribeVpcBlockPublicAccessExclusions struct { } -func (*awsEc2query_deserializeOpDescribeVpcClassicLink) ID() string { +func (*awsEc2query_deserializeOpDescribeVpcBlockPublicAccessExclusions) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDescribeVpcClassicLink) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDescribeVpcBlockPublicAccessExclusions) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -34398,9 +34778,9 @@ func (m *awsEc2query_deserializeOpDescribeVpcClassicLink) HandleDeserialize(ctx } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDescribeVpcClassicLink(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDescribeVpcBlockPublicAccessExclusions(response, &metadata) } - output := &DescribeVpcClassicLinkOutput{} + output := &DescribeVpcBlockPublicAccessExclusionsOutput{} out.Result = output var buff [1024]byte @@ -34421,7 +34801,7 @@ func (m *awsEc2query_deserializeOpDescribeVpcClassicLink) HandleDeserialize(ctx } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentDescribeVpcClassicLinkOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentDescribeVpcBlockPublicAccessExclusionsOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -34435,7 +34815,7 @@ func (m *awsEc2query_deserializeOpDescribeVpcClassicLink) HandleDeserialize(ctx return out, metadata, err } -func awsEc2query_deserializeOpErrorDescribeVpcClassicLink(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDescribeVpcBlockPublicAccessExclusions(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -34468,14 +34848,14 @@ func awsEc2query_deserializeOpErrorDescribeVpcClassicLink(response *smithyhttp.R } } -type awsEc2query_deserializeOpDescribeVpcClassicLinkDnsSupport struct { +type awsEc2query_deserializeOpDescribeVpcBlockPublicAccessOptions struct { } -func (*awsEc2query_deserializeOpDescribeVpcClassicLinkDnsSupport) ID() string { +func (*awsEc2query_deserializeOpDescribeVpcBlockPublicAccessOptions) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDescribeVpcClassicLinkDnsSupport) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDescribeVpcBlockPublicAccessOptions) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -34493,9 +34873,9 @@ func (m *awsEc2query_deserializeOpDescribeVpcClassicLinkDnsSupport) HandleDeseri } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDescribeVpcClassicLinkDnsSupport(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDescribeVpcBlockPublicAccessOptions(response, &metadata) } - output := &DescribeVpcClassicLinkDnsSupportOutput{} + output := &DescribeVpcBlockPublicAccessOptionsOutput{} out.Result = output var buff [1024]byte @@ -34516,7 +34896,7 @@ func (m *awsEc2query_deserializeOpDescribeVpcClassicLinkDnsSupport) HandleDeseri } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentDescribeVpcClassicLinkDnsSupportOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentDescribeVpcBlockPublicAccessOptionsOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -34530,7 +34910,7 @@ func (m *awsEc2query_deserializeOpDescribeVpcClassicLinkDnsSupport) HandleDeseri return out, metadata, err } -func awsEc2query_deserializeOpErrorDescribeVpcClassicLinkDnsSupport(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDescribeVpcBlockPublicAccessOptions(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -34563,14 +34943,14 @@ func awsEc2query_deserializeOpErrorDescribeVpcClassicLinkDnsSupport(response *sm } } -type awsEc2query_deserializeOpDescribeVpcEndpointConnectionNotifications struct { +type awsEc2query_deserializeOpDescribeVpcClassicLink struct { } -func (*awsEc2query_deserializeOpDescribeVpcEndpointConnectionNotifications) ID() string { +func (*awsEc2query_deserializeOpDescribeVpcClassicLink) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDescribeVpcEndpointConnectionNotifications) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDescribeVpcClassicLink) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -34588,9 +34968,9 @@ func (m *awsEc2query_deserializeOpDescribeVpcEndpointConnectionNotifications) Ha } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDescribeVpcEndpointConnectionNotifications(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDescribeVpcClassicLink(response, &metadata) } - output := &DescribeVpcEndpointConnectionNotificationsOutput{} + output := &DescribeVpcClassicLinkOutput{} out.Result = output var buff [1024]byte @@ -34611,7 +34991,7 @@ func (m *awsEc2query_deserializeOpDescribeVpcEndpointConnectionNotifications) Ha } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentDescribeVpcEndpointConnectionNotificationsOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentDescribeVpcClassicLinkOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -34625,7 +35005,7 @@ func (m *awsEc2query_deserializeOpDescribeVpcEndpointConnectionNotifications) Ha return out, metadata, err } -func awsEc2query_deserializeOpErrorDescribeVpcEndpointConnectionNotifications(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDescribeVpcClassicLink(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -34658,14 +35038,14 @@ func awsEc2query_deserializeOpErrorDescribeVpcEndpointConnectionNotifications(re } } -type awsEc2query_deserializeOpDescribeVpcEndpointConnections struct { +type awsEc2query_deserializeOpDescribeVpcClassicLinkDnsSupport struct { } -func (*awsEc2query_deserializeOpDescribeVpcEndpointConnections) ID() string { +func (*awsEc2query_deserializeOpDescribeVpcClassicLinkDnsSupport) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDescribeVpcEndpointConnections) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDescribeVpcClassicLinkDnsSupport) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -34683,9 +35063,9 @@ func (m *awsEc2query_deserializeOpDescribeVpcEndpointConnections) HandleDeserial } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDescribeVpcEndpointConnections(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDescribeVpcClassicLinkDnsSupport(response, &metadata) } - output := &DescribeVpcEndpointConnectionsOutput{} + output := &DescribeVpcClassicLinkDnsSupportOutput{} out.Result = output var buff [1024]byte @@ -34706,7 +35086,7 @@ func (m *awsEc2query_deserializeOpDescribeVpcEndpointConnections) HandleDeserial } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentDescribeVpcEndpointConnectionsOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentDescribeVpcClassicLinkDnsSupportOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -34720,7 +35100,7 @@ func (m *awsEc2query_deserializeOpDescribeVpcEndpointConnections) HandleDeserial return out, metadata, err } -func awsEc2query_deserializeOpErrorDescribeVpcEndpointConnections(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDescribeVpcClassicLinkDnsSupport(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -34753,14 +35133,14 @@ func awsEc2query_deserializeOpErrorDescribeVpcEndpointConnections(response *smit } } -type awsEc2query_deserializeOpDescribeVpcEndpoints struct { +type awsEc2query_deserializeOpDescribeVpcEndpointConnectionNotifications struct { } -func (*awsEc2query_deserializeOpDescribeVpcEndpoints) ID() string { +func (*awsEc2query_deserializeOpDescribeVpcEndpointConnectionNotifications) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDescribeVpcEndpoints) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDescribeVpcEndpointConnectionNotifications) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -34778,9 +35158,9 @@ func (m *awsEc2query_deserializeOpDescribeVpcEndpoints) HandleDeserialize(ctx co } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDescribeVpcEndpoints(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDescribeVpcEndpointConnectionNotifications(response, &metadata) } - output := &DescribeVpcEndpointsOutput{} + output := &DescribeVpcEndpointConnectionNotificationsOutput{} out.Result = output var buff [1024]byte @@ -34801,7 +35181,7 @@ func (m *awsEc2query_deserializeOpDescribeVpcEndpoints) HandleDeserialize(ctx co } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentDescribeVpcEndpointsOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentDescribeVpcEndpointConnectionNotificationsOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -34815,7 +35195,7 @@ func (m *awsEc2query_deserializeOpDescribeVpcEndpoints) HandleDeserialize(ctx co return out, metadata, err } -func awsEc2query_deserializeOpErrorDescribeVpcEndpoints(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDescribeVpcEndpointConnectionNotifications(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -34848,14 +35228,14 @@ func awsEc2query_deserializeOpErrorDescribeVpcEndpoints(response *smithyhttp.Res } } -type awsEc2query_deserializeOpDescribeVpcEndpointServiceConfigurations struct { +type awsEc2query_deserializeOpDescribeVpcEndpointConnections struct { } -func (*awsEc2query_deserializeOpDescribeVpcEndpointServiceConfigurations) ID() string { +func (*awsEc2query_deserializeOpDescribeVpcEndpointConnections) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDescribeVpcEndpointServiceConfigurations) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDescribeVpcEndpointConnections) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -34873,9 +35253,9 @@ func (m *awsEc2query_deserializeOpDescribeVpcEndpointServiceConfigurations) Hand } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDescribeVpcEndpointServiceConfigurations(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDescribeVpcEndpointConnections(response, &metadata) } - output := &DescribeVpcEndpointServiceConfigurationsOutput{} + output := &DescribeVpcEndpointConnectionsOutput{} out.Result = output var buff [1024]byte @@ -34896,7 +35276,7 @@ func (m *awsEc2query_deserializeOpDescribeVpcEndpointServiceConfigurations) Hand } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentDescribeVpcEndpointServiceConfigurationsOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentDescribeVpcEndpointConnectionsOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -34910,7 +35290,197 @@ func (m *awsEc2query_deserializeOpDescribeVpcEndpointServiceConfigurations) Hand return out, metadata, err } -func awsEc2query_deserializeOpErrorDescribeVpcEndpointServiceConfigurations(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDescribeVpcEndpointConnections(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + errorComponents, err := ec2query.GetErrorResponseComponents(errorBody) + if err != nil { + return err + } + awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID) + if len(errorComponents.Code) != 0 { + errorCode = errorComponents.Code + } + if len(errorComponents.Message) != 0 { + errorMessage = errorComponents.Message + } + errorBody.Seek(0, io.SeekStart) + switch { + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +type awsEc2query_deserializeOpDescribeVpcEndpoints struct { +} + +func (*awsEc2query_deserializeOpDescribeVpcEndpoints) ID() string { + return "OperationDeserializer" +} + +func (m *awsEc2query_deserializeOpDescribeVpcEndpoints) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + _, span := tracing.StartSpan(ctx, "OperationDeserializer") + endTimer := startMetricTimer(ctx, "client.call.deserialization_duration") + defer endTimer() + defer span.End() + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsEc2query_deserializeOpErrorDescribeVpcEndpoints(response, &metadata) + } + output := &DescribeVpcEndpointsOutput{} + out.Result = output + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + body := io.TeeReader(response.Body, ringBuffer) + rootDecoder := xml.NewDecoder(body) + t, err := smithyxml.FetchRootElement(rootDecoder) + if err == io.EOF { + return out, metadata, nil + } + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) + err = awsEc2query_deserializeOpDocumentDescribeVpcEndpointsOutput(&output, decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + return out, metadata, err +} + +func awsEc2query_deserializeOpErrorDescribeVpcEndpoints(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + errorComponents, err := ec2query.GetErrorResponseComponents(errorBody) + if err != nil { + return err + } + awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID) + if len(errorComponents.Code) != 0 { + errorCode = errorComponents.Code + } + if len(errorComponents.Message) != 0 { + errorMessage = errorComponents.Message + } + errorBody.Seek(0, io.SeekStart) + switch { + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +type awsEc2query_deserializeOpDescribeVpcEndpointServiceConfigurations struct { +} + +func (*awsEc2query_deserializeOpDescribeVpcEndpointServiceConfigurations) ID() string { + return "OperationDeserializer" +} + +func (m *awsEc2query_deserializeOpDescribeVpcEndpointServiceConfigurations) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + _, span := tracing.StartSpan(ctx, "OperationDeserializer") + endTimer := startMetricTimer(ctx, "client.call.deserialization_duration") + defer endTimer() + defer span.End() + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsEc2query_deserializeOpErrorDescribeVpcEndpointServiceConfigurations(response, &metadata) + } + output := &DescribeVpcEndpointServiceConfigurationsOutput{} + out.Result = output + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + body := io.TeeReader(response.Body, ringBuffer) + rootDecoder := xml.NewDecoder(body) + t, err := smithyxml.FetchRootElement(rootDecoder) + if err == io.EOF { + return out, metadata, nil + } + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) + err = awsEc2query_deserializeOpDocumentDescribeVpcEndpointServiceConfigurationsOutput(&output, decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + return out, metadata, err +} + +func awsEc2query_deserializeOpErrorDescribeVpcEndpointServiceConfigurations(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -51652,14 +52222,14 @@ func awsEc2query_deserializeOpErrorModifyVpcAttribute(response *smithyhttp.Respo } } -type awsEc2query_deserializeOpModifyVpcEndpoint struct { +type awsEc2query_deserializeOpModifyVpcBlockPublicAccessExclusion struct { } -func (*awsEc2query_deserializeOpModifyVpcEndpoint) ID() string { +func (*awsEc2query_deserializeOpModifyVpcBlockPublicAccessExclusion) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpModifyVpcEndpoint) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpModifyVpcBlockPublicAccessExclusion) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -51677,9 +52247,9 @@ func (m *awsEc2query_deserializeOpModifyVpcEndpoint) HandleDeserialize(ctx conte } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorModifyVpcEndpoint(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorModifyVpcBlockPublicAccessExclusion(response, &metadata) } - output := &ModifyVpcEndpointOutput{} + output := &ModifyVpcBlockPublicAccessExclusionOutput{} out.Result = output var buff [1024]byte @@ -51700,7 +52270,7 @@ func (m *awsEc2query_deserializeOpModifyVpcEndpoint) HandleDeserialize(ctx conte } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentModifyVpcEndpointOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentModifyVpcBlockPublicAccessExclusionOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -51714,7 +52284,7 @@ func (m *awsEc2query_deserializeOpModifyVpcEndpoint) HandleDeserialize(ctx conte return out, metadata, err } -func awsEc2query_deserializeOpErrorModifyVpcEndpoint(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorModifyVpcBlockPublicAccessExclusion(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -51747,14 +52317,14 @@ func awsEc2query_deserializeOpErrorModifyVpcEndpoint(response *smithyhttp.Respon } } -type awsEc2query_deserializeOpModifyVpcEndpointConnectionNotification struct { +type awsEc2query_deserializeOpModifyVpcBlockPublicAccessOptions struct { } -func (*awsEc2query_deserializeOpModifyVpcEndpointConnectionNotification) ID() string { +func (*awsEc2query_deserializeOpModifyVpcBlockPublicAccessOptions) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpModifyVpcEndpointConnectionNotification) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpModifyVpcBlockPublicAccessOptions) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -51772,9 +52342,9 @@ func (m *awsEc2query_deserializeOpModifyVpcEndpointConnectionNotification) Handl } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorModifyVpcEndpointConnectionNotification(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorModifyVpcBlockPublicAccessOptions(response, &metadata) } - output := &ModifyVpcEndpointConnectionNotificationOutput{} + output := &ModifyVpcBlockPublicAccessOptionsOutput{} out.Result = output var buff [1024]byte @@ -51795,7 +52365,7 @@ func (m *awsEc2query_deserializeOpModifyVpcEndpointConnectionNotification) Handl } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentModifyVpcEndpointConnectionNotificationOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentModifyVpcBlockPublicAccessOptionsOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -51809,7 +52379,7 @@ func (m *awsEc2query_deserializeOpModifyVpcEndpointConnectionNotification) Handl return out, metadata, err } -func awsEc2query_deserializeOpErrorModifyVpcEndpointConnectionNotification(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorModifyVpcBlockPublicAccessOptions(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -51842,14 +52412,14 @@ func awsEc2query_deserializeOpErrorModifyVpcEndpointConnectionNotification(respo } } -type awsEc2query_deserializeOpModifyVpcEndpointServiceConfiguration struct { +type awsEc2query_deserializeOpModifyVpcEndpoint struct { } -func (*awsEc2query_deserializeOpModifyVpcEndpointServiceConfiguration) ID() string { +func (*awsEc2query_deserializeOpModifyVpcEndpoint) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpModifyVpcEndpointServiceConfiguration) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpModifyVpcEndpoint) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -51867,9 +52437,9 @@ func (m *awsEc2query_deserializeOpModifyVpcEndpointServiceConfiguration) HandleD } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorModifyVpcEndpointServiceConfiguration(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorModifyVpcEndpoint(response, &metadata) } - output := &ModifyVpcEndpointServiceConfigurationOutput{} + output := &ModifyVpcEndpointOutput{} out.Result = output var buff [1024]byte @@ -51890,7 +52460,7 @@ func (m *awsEc2query_deserializeOpModifyVpcEndpointServiceConfiguration) HandleD } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentModifyVpcEndpointServiceConfigurationOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentModifyVpcEndpointOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -51904,7 +52474,7 @@ func (m *awsEc2query_deserializeOpModifyVpcEndpointServiceConfiguration) HandleD return out, metadata, err } -func awsEc2query_deserializeOpErrorModifyVpcEndpointServiceConfiguration(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorModifyVpcEndpoint(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -51937,14 +52507,14 @@ func awsEc2query_deserializeOpErrorModifyVpcEndpointServiceConfiguration(respons } } -type awsEc2query_deserializeOpModifyVpcEndpointServicePayerResponsibility struct { +type awsEc2query_deserializeOpModifyVpcEndpointConnectionNotification struct { } -func (*awsEc2query_deserializeOpModifyVpcEndpointServicePayerResponsibility) ID() string { +func (*awsEc2query_deserializeOpModifyVpcEndpointConnectionNotification) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpModifyVpcEndpointServicePayerResponsibility) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpModifyVpcEndpointConnectionNotification) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -51962,9 +52532,9 @@ func (m *awsEc2query_deserializeOpModifyVpcEndpointServicePayerResponsibility) H } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorModifyVpcEndpointServicePayerResponsibility(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorModifyVpcEndpointConnectionNotification(response, &metadata) } - output := &ModifyVpcEndpointServicePayerResponsibilityOutput{} + output := &ModifyVpcEndpointConnectionNotificationOutput{} out.Result = output var buff [1024]byte @@ -51985,7 +52555,7 @@ func (m *awsEc2query_deserializeOpModifyVpcEndpointServicePayerResponsibility) H } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentModifyVpcEndpointServicePayerResponsibilityOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentModifyVpcEndpointConnectionNotificationOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -51999,7 +52569,7 @@ func (m *awsEc2query_deserializeOpModifyVpcEndpointServicePayerResponsibility) H return out, metadata, err } -func awsEc2query_deserializeOpErrorModifyVpcEndpointServicePayerResponsibility(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorModifyVpcEndpointConnectionNotification(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -52032,14 +52602,14 @@ func awsEc2query_deserializeOpErrorModifyVpcEndpointServicePayerResponsibility(r } } -type awsEc2query_deserializeOpModifyVpcEndpointServicePermissions struct { +type awsEc2query_deserializeOpModifyVpcEndpointServiceConfiguration struct { } -func (*awsEc2query_deserializeOpModifyVpcEndpointServicePermissions) ID() string { +func (*awsEc2query_deserializeOpModifyVpcEndpointServiceConfiguration) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpModifyVpcEndpointServicePermissions) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpModifyVpcEndpointServiceConfiguration) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -52057,9 +52627,9 @@ func (m *awsEc2query_deserializeOpModifyVpcEndpointServicePermissions) HandleDes } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorModifyVpcEndpointServicePermissions(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorModifyVpcEndpointServiceConfiguration(response, &metadata) } - output := &ModifyVpcEndpointServicePermissionsOutput{} + output := &ModifyVpcEndpointServiceConfigurationOutput{} out.Result = output var buff [1024]byte @@ -52080,7 +52650,7 @@ func (m *awsEc2query_deserializeOpModifyVpcEndpointServicePermissions) HandleDes } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentModifyVpcEndpointServicePermissionsOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentModifyVpcEndpointServiceConfigurationOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -52094,7 +52664,7 @@ func (m *awsEc2query_deserializeOpModifyVpcEndpointServicePermissions) HandleDes return out, metadata, err } -func awsEc2query_deserializeOpErrorModifyVpcEndpointServicePermissions(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorModifyVpcEndpointServiceConfiguration(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -52127,14 +52697,14 @@ func awsEc2query_deserializeOpErrorModifyVpcEndpointServicePermissions(response } } -type awsEc2query_deserializeOpModifyVpcPeeringConnectionOptions struct { +type awsEc2query_deserializeOpModifyVpcEndpointServicePayerResponsibility struct { } -func (*awsEc2query_deserializeOpModifyVpcPeeringConnectionOptions) ID() string { +func (*awsEc2query_deserializeOpModifyVpcEndpointServicePayerResponsibility) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpModifyVpcPeeringConnectionOptions) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpModifyVpcEndpointServicePayerResponsibility) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -52152,9 +52722,9 @@ func (m *awsEc2query_deserializeOpModifyVpcPeeringConnectionOptions) HandleDeser } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorModifyVpcPeeringConnectionOptions(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorModifyVpcEndpointServicePayerResponsibility(response, &metadata) } - output := &ModifyVpcPeeringConnectionOptionsOutput{} + output := &ModifyVpcEndpointServicePayerResponsibilityOutput{} out.Result = output var buff [1024]byte @@ -52175,7 +52745,7 @@ func (m *awsEc2query_deserializeOpModifyVpcPeeringConnectionOptions) HandleDeser } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentModifyVpcPeeringConnectionOptionsOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentModifyVpcEndpointServicePayerResponsibilityOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -52189,7 +52759,197 @@ func (m *awsEc2query_deserializeOpModifyVpcPeeringConnectionOptions) HandleDeser return out, metadata, err } -func awsEc2query_deserializeOpErrorModifyVpcPeeringConnectionOptions(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorModifyVpcEndpointServicePayerResponsibility(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + errorComponents, err := ec2query.GetErrorResponseComponents(errorBody) + if err != nil { + return err + } + awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID) + if len(errorComponents.Code) != 0 { + errorCode = errorComponents.Code + } + if len(errorComponents.Message) != 0 { + errorMessage = errorComponents.Message + } + errorBody.Seek(0, io.SeekStart) + switch { + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +type awsEc2query_deserializeOpModifyVpcEndpointServicePermissions struct { +} + +func (*awsEc2query_deserializeOpModifyVpcEndpointServicePermissions) ID() string { + return "OperationDeserializer" +} + +func (m *awsEc2query_deserializeOpModifyVpcEndpointServicePermissions) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + _, span := tracing.StartSpan(ctx, "OperationDeserializer") + endTimer := startMetricTimer(ctx, "client.call.deserialization_duration") + defer endTimer() + defer span.End() + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsEc2query_deserializeOpErrorModifyVpcEndpointServicePermissions(response, &metadata) + } + output := &ModifyVpcEndpointServicePermissionsOutput{} + out.Result = output + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + body := io.TeeReader(response.Body, ringBuffer) + rootDecoder := xml.NewDecoder(body) + t, err := smithyxml.FetchRootElement(rootDecoder) + if err == io.EOF { + return out, metadata, nil + } + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) + err = awsEc2query_deserializeOpDocumentModifyVpcEndpointServicePermissionsOutput(&output, decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + return out, metadata, err +} + +func awsEc2query_deserializeOpErrorModifyVpcEndpointServicePermissions(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + errorComponents, err := ec2query.GetErrorResponseComponents(errorBody) + if err != nil { + return err + } + awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID) + if len(errorComponents.Code) != 0 { + errorCode = errorComponents.Code + } + if len(errorComponents.Message) != 0 { + errorMessage = errorComponents.Message + } + errorBody.Seek(0, io.SeekStart) + switch { + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +type awsEc2query_deserializeOpModifyVpcPeeringConnectionOptions struct { +} + +func (*awsEc2query_deserializeOpModifyVpcPeeringConnectionOptions) ID() string { + return "OperationDeserializer" +} + +func (m *awsEc2query_deserializeOpModifyVpcPeeringConnectionOptions) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + _, span := tracing.StartSpan(ctx, "OperationDeserializer") + endTimer := startMetricTimer(ctx, "client.call.deserialization_duration") + defer endTimer() + defer span.End() + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsEc2query_deserializeOpErrorModifyVpcPeeringConnectionOptions(response, &metadata) + } + output := &ModifyVpcPeeringConnectionOptionsOutput{} + out.Result = output + + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + body := io.TeeReader(response.Body, ringBuffer) + rootDecoder := xml.NewDecoder(body) + t, err := smithyxml.FetchRootElement(rootDecoder) + if err == io.EOF { + return out, metadata, nil + } + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) + err = awsEc2query_deserializeOpDocumentModifyVpcPeeringConnectionOptionsOutput(&output, decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + return out, metadata, err + } + + return out, metadata, err +} + +func awsEc2query_deserializeOpErrorModifyVpcPeeringConnectionOptions(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -53552,14 +54312,14 @@ func awsEc2query_deserializeOpErrorPurchaseCapacityBlock(response *smithyhttp.Re } } -type awsEc2query_deserializeOpPurchaseHostReservation struct { +type awsEc2query_deserializeOpPurchaseCapacityBlockExtension struct { } -func (*awsEc2query_deserializeOpPurchaseHostReservation) ID() string { +func (*awsEc2query_deserializeOpPurchaseCapacityBlockExtension) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpPurchaseHostReservation) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpPurchaseCapacityBlockExtension) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -53577,9 +54337,9 @@ func (m *awsEc2query_deserializeOpPurchaseHostReservation) HandleDeserialize(ctx } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorPurchaseHostReservation(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorPurchaseCapacityBlockExtension(response, &metadata) } - output := &PurchaseHostReservationOutput{} + output := &PurchaseCapacityBlockExtensionOutput{} out.Result = output var buff [1024]byte @@ -53600,7 +54360,7 @@ func (m *awsEc2query_deserializeOpPurchaseHostReservation) HandleDeserialize(ctx } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentPurchaseHostReservationOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentPurchaseCapacityBlockExtensionOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -53614,7 +54374,7 @@ func (m *awsEc2query_deserializeOpPurchaseHostReservation) HandleDeserialize(ctx return out, metadata, err } -func awsEc2query_deserializeOpErrorPurchaseHostReservation(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorPurchaseCapacityBlockExtension(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -53647,14 +54407,14 @@ func awsEc2query_deserializeOpErrorPurchaseHostReservation(response *smithyhttp. } } -type awsEc2query_deserializeOpPurchaseReservedInstancesOffering struct { +type awsEc2query_deserializeOpPurchaseHostReservation struct { } -func (*awsEc2query_deserializeOpPurchaseReservedInstancesOffering) ID() string { +func (*awsEc2query_deserializeOpPurchaseHostReservation) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpPurchaseReservedInstancesOffering) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpPurchaseHostReservation) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -53672,9 +54432,9 @@ func (m *awsEc2query_deserializeOpPurchaseReservedInstancesOffering) HandleDeser } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorPurchaseReservedInstancesOffering(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorPurchaseHostReservation(response, &metadata) } - output := &PurchaseReservedInstancesOfferingOutput{} + output := &PurchaseHostReservationOutput{} out.Result = output var buff [1024]byte @@ -53695,7 +54455,7 @@ func (m *awsEc2query_deserializeOpPurchaseReservedInstancesOffering) HandleDeser } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentPurchaseReservedInstancesOfferingOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentPurchaseHostReservationOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -53709,7 +54469,7 @@ func (m *awsEc2query_deserializeOpPurchaseReservedInstancesOffering) HandleDeser return out, metadata, err } -func awsEc2query_deserializeOpErrorPurchaseReservedInstancesOffering(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorPurchaseHostReservation(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -53742,14 +54502,14 @@ func awsEc2query_deserializeOpErrorPurchaseReservedInstancesOffering(response *s } } -type awsEc2query_deserializeOpPurchaseScheduledInstances struct { +type awsEc2query_deserializeOpPurchaseReservedInstancesOffering struct { } -func (*awsEc2query_deserializeOpPurchaseScheduledInstances) ID() string { +func (*awsEc2query_deserializeOpPurchaseReservedInstancesOffering) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpPurchaseScheduledInstances) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpPurchaseReservedInstancesOffering) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -53767,9 +54527,9 @@ func (m *awsEc2query_deserializeOpPurchaseScheduledInstances) HandleDeserialize( } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorPurchaseScheduledInstances(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorPurchaseReservedInstancesOffering(response, &metadata) } - output := &PurchaseScheduledInstancesOutput{} + output := &PurchaseReservedInstancesOfferingOutput{} out.Result = output var buff [1024]byte @@ -53790,7 +54550,7 @@ func (m *awsEc2query_deserializeOpPurchaseScheduledInstances) HandleDeserialize( } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentPurchaseScheduledInstancesOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentPurchaseReservedInstancesOfferingOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -53804,7 +54564,7 @@ func (m *awsEc2query_deserializeOpPurchaseScheduledInstances) HandleDeserialize( return out, metadata, err } -func awsEc2query_deserializeOpErrorPurchaseScheduledInstances(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorPurchaseReservedInstancesOffering(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -53837,14 +54597,14 @@ func awsEc2query_deserializeOpErrorPurchaseScheduledInstances(response *smithyht } } -type awsEc2query_deserializeOpRebootInstances struct { +type awsEc2query_deserializeOpPurchaseScheduledInstances struct { } -func (*awsEc2query_deserializeOpRebootInstances) ID() string { +func (*awsEc2query_deserializeOpPurchaseScheduledInstances) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpRebootInstances) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpPurchaseScheduledInstances) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( out middleware.DeserializeOutput, metadata middleware.Metadata, err error, ) { out, metadata, err = next.HandleDeserialize(ctx, in) @@ -53862,21 +54622,116 @@ func (m *awsEc2query_deserializeOpRebootInstances) HandleDeserialize(ctx context } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorRebootInstances(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorPurchaseScheduledInstances(response, &metadata) } - output := &RebootInstancesOutput{} + output := &PurchaseScheduledInstancesOutput{} out.Result = output - if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { + var buff [1024]byte + ringBuffer := smithyio.NewRingBuffer(buff[:]) + body := io.TeeReader(response.Body, ringBuffer) + rootDecoder := xml.NewDecoder(body) + t, err := smithyxml.FetchRootElement(rootDecoder) + if err == io.EOF { + return out, metadata, nil + } + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to discard response body, %w", err), + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), + } + } + + decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) + err = awsEc2query_deserializeOpDocumentPurchaseScheduledInstancesOutput(&output, decoder) + if err != nil { + var snapshot bytes.Buffer + io.Copy(&snapshot, ringBuffer) + err = &smithy.DeserializationError{ + Err: fmt.Errorf("failed to decode response body, %w", err), + Snapshot: snapshot.Bytes(), } + return out, metadata, err } return out, metadata, err } -func awsEc2query_deserializeOpErrorRebootInstances(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorPurchaseScheduledInstances(response *smithyhttp.Response, metadata *middleware.Metadata) error { + var errorBuffer bytes.Buffer + if _, err := io.Copy(&errorBuffer, response.Body); err != nil { + return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} + } + errorBody := bytes.NewReader(errorBuffer.Bytes()) + + errorCode := "UnknownError" + errorMessage := errorCode + + errorComponents, err := ec2query.GetErrorResponseComponents(errorBody) + if err != nil { + return err + } + awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID) + if len(errorComponents.Code) != 0 { + errorCode = errorComponents.Code + } + if len(errorComponents.Message) != 0 { + errorMessage = errorComponents.Message + } + errorBody.Seek(0, io.SeekStart) + switch { + default: + genericError := &smithy.GenericAPIError{ + Code: errorCode, + Message: errorMessage, + } + return genericError + + } +} + +type awsEc2query_deserializeOpRebootInstances struct { +} + +func (*awsEc2query_deserializeOpRebootInstances) ID() string { + return "OperationDeserializer" +} + +func (m *awsEc2query_deserializeOpRebootInstances) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( + out middleware.DeserializeOutput, metadata middleware.Metadata, err error, +) { + out, metadata, err = next.HandleDeserialize(ctx, in) + if err != nil { + return out, metadata, err + } + + _, span := tracing.StartSpan(ctx, "OperationDeserializer") + endTimer := startMetricTimer(ctx, "client.call.deserialization_duration") + defer endTimer() + defer span.End() + response, ok := out.RawResponse.(*smithyhttp.Response) + if !ok { + return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)} + } + + if response.StatusCode < 200 || response.StatusCode >= 300 { + return out, metadata, awsEc2query_deserializeOpErrorRebootInstances(response, &metadata) + } + output := &RebootInstancesOutput{} + out.Result = output + + if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { + return out, metadata, &smithy.DeserializationError{ + Err: fmt.Errorf("failed to discard response body, %w", err), + } + } + + return out, metadata, err +} + +func awsEc2query_deserializeOpErrorRebootInstances(response *smithyhttp.Response, metadata *middleware.Metadata) error { var errorBuffer bytes.Buffer if _, err := io.Copy(&errorBuffer, response.Body); err != nil { return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)} @@ -64177,6 +65032,48 @@ func awsEc2query_deserializeDocumentBaselineEbsBandwidthMbps(v **types.BaselineE return nil } +func awsEc2query_deserializeDocumentBaselinePerformanceFactors(v **types.BaselinePerformanceFactors, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *types.BaselinePerformanceFactors + if *v == nil { + sv = &types.BaselinePerformanceFactors{} + } else { + sv = *v + } + + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) + switch { + case strings.EqualFold("cpu", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentCpuPerformanceFactor(&sv.Cpu, nodeDecoder); err != nil { + return err + } + + default: + // Do nothing and ignore the unexpected tag element + err = decoder.Decoder.Skip() + if err != nil { + return err + } + + } + decoder = originalDecoder + } + *v = sv + return nil +} + func awsEc2query_deserializeDocumentBlockDeviceMapping(v **types.BlockDeviceMapping, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -64326,6 +65223,55 @@ func awsEc2query_deserializeDocumentBlockDeviceMappingListUnwrapped(v *[]types.B *v = sv return nil } +func awsEc2query_deserializeDocumentBlockPublicAccessStates(v **types.BlockPublicAccessStates, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *types.BlockPublicAccessStates + if *v == nil { + sv = &types.BlockPublicAccessStates{} + } else { + sv = *v + } + + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) + switch { + case strings.EqualFold("internetGatewayBlockMode", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.InternetGatewayBlockMode = types.BlockPublicAccessMode(xtv) + } + + default: + // Do nothing and ignore the unexpected tag element + err = decoder.Decoder.Skip() + if err != nil { + return err + } + + } + decoder = originalDecoder + } + *v = sv + return nil +} + func awsEc2query_deserializeDocumentBootModeTypeList(v *[]types.BootModeType, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -65655,13 +66601,13 @@ func awsEc2query_deserializeDocumentCapacityAllocationsUnwrapped(v *[]types.Capa *v = sv return nil } -func awsEc2query_deserializeDocumentCapacityBlockOffering(v **types.CapacityBlockOffering, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentCapacityBlockExtension(v **types.CapacityBlockExtension, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.CapacityBlockOffering + var sv *types.CapacityBlockExtension if *v == nil { - sv = &types.CapacityBlockOffering{} + sv = &types.CapacityBlockExtension{} } else { sv = *v } @@ -65690,7 +66636,20 @@ func awsEc2query_deserializeDocumentCapacityBlockOffering(v **types.CapacityBloc sv.AvailabilityZone = ptr.String(xtv) } - case strings.EqualFold("capacityBlockDurationHours", t.Name.Local): + case strings.EqualFold("availabilityZoneId", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.AvailabilityZoneId = ptr.String(xtv) + } + + case strings.EqualFold("capacityBlockExtensionDurationHours", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -65704,10 +66663,10 @@ func awsEc2query_deserializeDocumentCapacityBlockOffering(v **types.CapacityBloc if err != nil { return err } - sv.CapacityBlockDurationHours = ptr.Int32(int32(i64)) + sv.CapacityBlockExtensionDurationHours = ptr.Int32(int32(i64)) } - case strings.EqualFold("capacityBlockOfferingId", t.Name.Local): + case strings.EqualFold("capacityBlockExtensionEndDate", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -65717,10 +66676,14 @@ func awsEc2query_deserializeDocumentCapacityBlockOffering(v **types.CapacityBloc } { xtv := string(val) - sv.CapacityBlockOfferingId = ptr.String(xtv) + t, err := smithytime.ParseDateTime(xtv) + if err != nil { + return err + } + sv.CapacityBlockExtensionEndDate = ptr.Time(t) } - case strings.EqualFold("currencyCode", t.Name.Local): + case strings.EqualFold("capacityBlockExtensionOfferingId", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -65730,10 +66693,10 @@ func awsEc2query_deserializeDocumentCapacityBlockOffering(v **types.CapacityBloc } { xtv := string(val) - sv.CurrencyCode = ptr.String(xtv) + sv.CapacityBlockExtensionOfferingId = ptr.String(xtv) } - case strings.EqualFold("endDate", t.Name.Local): + case strings.EqualFold("capacityBlockExtensionPurchaseDate", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -65747,10 +66710,10 @@ func awsEc2query_deserializeDocumentCapacityBlockOffering(v **types.CapacityBloc if err != nil { return err } - sv.EndDate = ptr.Time(t) + sv.CapacityBlockExtensionPurchaseDate = ptr.Time(t) } - case strings.EqualFold("instanceCount", t.Name.Local): + case strings.EqualFold("capacityBlockExtensionStartDate", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -65760,14 +66723,14 @@ func awsEc2query_deserializeDocumentCapacityBlockOffering(v **types.CapacityBloc } { xtv := string(val) - i64, err := strconv.ParseInt(xtv, 10, 64) + t, err := smithytime.ParseDateTime(xtv) if err != nil { return err } - sv.InstanceCount = ptr.Int32(int32(i64)) + sv.CapacityBlockExtensionStartDate = ptr.Time(t) } - case strings.EqualFold("instanceType", t.Name.Local): + case strings.EqualFold("capacityBlockExtensionStatus", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -65777,10 +66740,10 @@ func awsEc2query_deserializeDocumentCapacityBlockOffering(v **types.CapacityBloc } { xtv := string(val) - sv.InstanceType = ptr.String(xtv) + sv.CapacityBlockExtensionStatus = types.CapacityBlockExtensionStatus(xtv) } - case strings.EqualFold("startDate", t.Name.Local): + case strings.EqualFold("capacityReservationId", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -65790,14 +66753,10 @@ func awsEc2query_deserializeDocumentCapacityBlockOffering(v **types.CapacityBloc } { xtv := string(val) - t, err := smithytime.ParseDateTime(xtv) - if err != nil { - return err - } - sv.StartDate = ptr.Time(t) + sv.CapacityReservationId = ptr.String(xtv) } - case strings.EqualFold("tenancy", t.Name.Local): + case strings.EqualFold("currencyCode", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -65807,10 +66766,10 @@ func awsEc2query_deserializeDocumentCapacityBlockOffering(v **types.CapacityBloc } { xtv := string(val) - sv.Tenancy = types.CapacityReservationTenancy(xtv) + sv.CurrencyCode = ptr.String(xtv) } - case strings.EqualFold("upfrontFee", t.Name.Local): + case strings.EqualFold("instanceCount", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -65820,55 +66779,41 @@ func awsEc2query_deserializeDocumentCapacityBlockOffering(v **types.CapacityBloc } { xtv := string(val) - sv.UpfrontFee = ptr.String(xtv) + i64, err := strconv.ParseInt(xtv, 10, 64) + if err != nil { + return err + } + sv.InstanceCount = ptr.Int32(int32(i64)) } - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() + case strings.EqualFold("instanceType", t.Name.Local): + val, err := decoder.Value() if err != nil { return err } + if val == nil { + break + } + { + xtv := string(val) + sv.InstanceType = ptr.String(xtv) + } - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsEc2query_deserializeDocumentCapacityBlockOfferingSet(v *[]types.CapacityBlockOffering, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv []types.CapacityBlockOffering - if *v == nil { - sv = make([]types.CapacityBlockOffering, 0) - } else { - sv = *v - } - - originalDecoder := decoder - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - switch { - case strings.EqualFold("item", t.Name.Local): - var col types.CapacityBlockOffering - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - destAddr := &col - if err := awsEc2query_deserializeDocumentCapacityBlockOffering(&destAddr, nodeDecoder); err != nil { + case strings.EqualFold("upfrontFee", t.Name.Local): + val, err := decoder.Value() + if err != nil { return err } - col = *destAddr - sv = append(sv, col) + if val == nil { + break + } + { + xtv := string(val) + sv.UpfrontFee = ptr.String(xtv) + } default: + // Do nothing and ignore the unexpected tag element err = decoder.Decoder.Skip() if err != nil { return err @@ -65881,37 +66826,628 @@ func awsEc2query_deserializeDocumentCapacityBlockOfferingSet(v *[]types.Capacity return nil } -func awsEc2query_deserializeDocumentCapacityBlockOfferingSetUnwrapped(v *[]types.CapacityBlockOffering, decoder smithyxml.NodeDecoder) error { - var sv []types.CapacityBlockOffering - if *v == nil { - sv = make([]types.CapacityBlockOffering, 0) - } else { - sv = *v - } - - switch { - default: - var mv types.CapacityBlockOffering - t := decoder.StartEl - _ = t - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - destAddr := &mv - if err := awsEc2query_deserializeDocumentCapacityBlockOffering(&destAddr, nodeDecoder); err != nil { - return err - } - mv = *destAddr - sv = append(sv, mv) - } - *v = sv - return nil -} -func awsEc2query_deserializeDocumentCapacityReservation(v **types.CapacityReservation, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeDocumentCapacityBlockExtensionOffering(v **types.CapacityBlockExtensionOffering, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *types.CapacityReservation + var sv *types.CapacityBlockExtensionOffering if *v == nil { - sv = &types.CapacityReservation{} + sv = &types.CapacityBlockExtensionOffering{} + } else { + sv = *v + } + + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) + switch { + case strings.EqualFold("availabilityZone", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.AvailabilityZone = ptr.String(xtv) + } + + case strings.EqualFold("availabilityZoneId", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.AvailabilityZoneId = ptr.String(xtv) + } + + case strings.EqualFold("capacityBlockExtensionDurationHours", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + i64, err := strconv.ParseInt(xtv, 10, 64) + if err != nil { + return err + } + sv.CapacityBlockExtensionDurationHours = ptr.Int32(int32(i64)) + } + + case strings.EqualFold("capacityBlockExtensionEndDate", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + t, err := smithytime.ParseDateTime(xtv) + if err != nil { + return err + } + sv.CapacityBlockExtensionEndDate = ptr.Time(t) + } + + case strings.EqualFold("capacityBlockExtensionOfferingId", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.CapacityBlockExtensionOfferingId = ptr.String(xtv) + } + + case strings.EqualFold("capacityBlockExtensionStartDate", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + t, err := smithytime.ParseDateTime(xtv) + if err != nil { + return err + } + sv.CapacityBlockExtensionStartDate = ptr.Time(t) + } + + case strings.EqualFold("currencyCode", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.CurrencyCode = ptr.String(xtv) + } + + case strings.EqualFold("instanceCount", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + i64, err := strconv.ParseInt(xtv, 10, 64) + if err != nil { + return err + } + sv.InstanceCount = ptr.Int32(int32(i64)) + } + + case strings.EqualFold("instanceType", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.InstanceType = ptr.String(xtv) + } + + case strings.EqualFold("startDate", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + t, err := smithytime.ParseDateTime(xtv) + if err != nil { + return err + } + sv.StartDate = ptr.Time(t) + } + + case strings.EqualFold("tenancy", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.Tenancy = types.CapacityReservationTenancy(xtv) + } + + case strings.EqualFold("upfrontFee", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.UpfrontFee = ptr.String(xtv) + } + + default: + // Do nothing and ignore the unexpected tag element + err = decoder.Decoder.Skip() + if err != nil { + return err + } + + } + decoder = originalDecoder + } + *v = sv + return nil +} + +func awsEc2query_deserializeDocumentCapacityBlockExtensionOfferingSet(v *[]types.CapacityBlockExtensionOffering, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv []types.CapacityBlockExtensionOffering + if *v == nil { + sv = make([]types.CapacityBlockExtensionOffering, 0) + } else { + sv = *v + } + + originalDecoder := decoder + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + switch { + case strings.EqualFold("item", t.Name.Local): + var col types.CapacityBlockExtensionOffering + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + destAddr := &col + if err := awsEc2query_deserializeDocumentCapacityBlockExtensionOffering(&destAddr, nodeDecoder); err != nil { + return err + } + col = *destAddr + sv = append(sv, col) + + default: + err = decoder.Decoder.Skip() + if err != nil { + return err + } + + } + decoder = originalDecoder + } + *v = sv + return nil +} + +func awsEc2query_deserializeDocumentCapacityBlockExtensionOfferingSetUnwrapped(v *[]types.CapacityBlockExtensionOffering, decoder smithyxml.NodeDecoder) error { + var sv []types.CapacityBlockExtensionOffering + if *v == nil { + sv = make([]types.CapacityBlockExtensionOffering, 0) + } else { + sv = *v + } + + switch { + default: + var mv types.CapacityBlockExtensionOffering + t := decoder.StartEl + _ = t + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + destAddr := &mv + if err := awsEc2query_deserializeDocumentCapacityBlockExtensionOffering(&destAddr, nodeDecoder); err != nil { + return err + } + mv = *destAddr + sv = append(sv, mv) + } + *v = sv + return nil +} +func awsEc2query_deserializeDocumentCapacityBlockExtensionSet(v *[]types.CapacityBlockExtension, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv []types.CapacityBlockExtension + if *v == nil { + sv = make([]types.CapacityBlockExtension, 0) + } else { + sv = *v + } + + originalDecoder := decoder + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + switch { + case strings.EqualFold("item", t.Name.Local): + var col types.CapacityBlockExtension + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + destAddr := &col + if err := awsEc2query_deserializeDocumentCapacityBlockExtension(&destAddr, nodeDecoder); err != nil { + return err + } + col = *destAddr + sv = append(sv, col) + + default: + err = decoder.Decoder.Skip() + if err != nil { + return err + } + + } + decoder = originalDecoder + } + *v = sv + return nil +} + +func awsEc2query_deserializeDocumentCapacityBlockExtensionSetUnwrapped(v *[]types.CapacityBlockExtension, decoder smithyxml.NodeDecoder) error { + var sv []types.CapacityBlockExtension + if *v == nil { + sv = make([]types.CapacityBlockExtension, 0) + } else { + sv = *v + } + + switch { + default: + var mv types.CapacityBlockExtension + t := decoder.StartEl + _ = t + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + destAddr := &mv + if err := awsEc2query_deserializeDocumentCapacityBlockExtension(&destAddr, nodeDecoder); err != nil { + return err + } + mv = *destAddr + sv = append(sv, mv) + } + *v = sv + return nil +} +func awsEc2query_deserializeDocumentCapacityBlockOffering(v **types.CapacityBlockOffering, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *types.CapacityBlockOffering + if *v == nil { + sv = &types.CapacityBlockOffering{} + } else { + sv = *v + } + + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) + switch { + case strings.EqualFold("availabilityZone", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.AvailabilityZone = ptr.String(xtv) + } + + case strings.EqualFold("capacityBlockDurationHours", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + i64, err := strconv.ParseInt(xtv, 10, 64) + if err != nil { + return err + } + sv.CapacityBlockDurationHours = ptr.Int32(int32(i64)) + } + + case strings.EqualFold("capacityBlockDurationMinutes", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + i64, err := strconv.ParseInt(xtv, 10, 64) + if err != nil { + return err + } + sv.CapacityBlockDurationMinutes = ptr.Int32(int32(i64)) + } + + case strings.EqualFold("capacityBlockOfferingId", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.CapacityBlockOfferingId = ptr.String(xtv) + } + + case strings.EqualFold("currencyCode", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.CurrencyCode = ptr.String(xtv) + } + + case strings.EqualFold("endDate", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + t, err := smithytime.ParseDateTime(xtv) + if err != nil { + return err + } + sv.EndDate = ptr.Time(t) + } + + case strings.EqualFold("instanceCount", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + i64, err := strconv.ParseInt(xtv, 10, 64) + if err != nil { + return err + } + sv.InstanceCount = ptr.Int32(int32(i64)) + } + + case strings.EqualFold("instanceType", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.InstanceType = ptr.String(xtv) + } + + case strings.EqualFold("startDate", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + t, err := smithytime.ParseDateTime(xtv) + if err != nil { + return err + } + sv.StartDate = ptr.Time(t) + } + + case strings.EqualFold("tenancy", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.Tenancy = types.CapacityReservationTenancy(xtv) + } + + case strings.EqualFold("upfrontFee", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.UpfrontFee = ptr.String(xtv) + } + + default: + // Do nothing and ignore the unexpected tag element + err = decoder.Decoder.Skip() + if err != nil { + return err + } + + } + decoder = originalDecoder + } + *v = sv + return nil +} + +func awsEc2query_deserializeDocumentCapacityBlockOfferingSet(v *[]types.CapacityBlockOffering, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv []types.CapacityBlockOffering + if *v == nil { + sv = make([]types.CapacityBlockOffering, 0) + } else { + sv = *v + } + + originalDecoder := decoder + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + switch { + case strings.EqualFold("item", t.Name.Local): + var col types.CapacityBlockOffering + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + destAddr := &col + if err := awsEc2query_deserializeDocumentCapacityBlockOffering(&destAddr, nodeDecoder); err != nil { + return err + } + col = *destAddr + sv = append(sv, col) + + default: + err = decoder.Decoder.Skip() + if err != nil { + return err + } + + } + decoder = originalDecoder + } + *v = sv + return nil +} + +func awsEc2query_deserializeDocumentCapacityBlockOfferingSetUnwrapped(v *[]types.CapacityBlockOffering, decoder smithyxml.NodeDecoder) error { + var sv []types.CapacityBlockOffering + if *v == nil { + sv = make([]types.CapacityBlockOffering, 0) + } else { + sv = *v + } + + switch { + default: + var mv types.CapacityBlockOffering + t := decoder.StartEl + _ = t + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + destAddr := &mv + if err := awsEc2query_deserializeDocumentCapacityBlockOffering(&destAddr, nodeDecoder); err != nil { + return err + } + mv = *destAddr + sv = append(sv, mv) + } + *v = sv + return nil +} +func awsEc2query_deserializeDocumentCapacityReservation(v **types.CapacityReservation, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *types.CapacityReservation + if *v == nil { + sv = &types.CapacityReservation{} } else { sv = *v } @@ -66015,6 +67551,12 @@ func awsEc2query_deserializeDocumentCapacityReservation(v **types.CapacityReserv sv.CapacityReservationId = ptr.String(xtv) } + case strings.EqualFold("commitmentInfo", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentCapacityReservationCommitmentInfo(&sv.CommitmentInfo, nodeDecoder); err != nil { + return err + } + case strings.EqualFold("createDate", t.Name.Local): val, err := decoder.Value() if err != nil { @@ -66032,6 +67574,19 @@ func awsEc2query_deserializeDocumentCapacityReservation(v **types.CapacityReserv sv.CreateDate = ptr.Time(t) } + case strings.EqualFold("deliveryPreference", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.DeliveryPreference = types.CapacityReservationDeliveryPreference(xtv) + } + case strings.EqualFold("ebsOptimized", t.Name.Local): val, err := decoder.Value() if err != nil { @@ -66470,6 +68025,76 @@ func awsEc2query_deserializeDocumentCapacityReservationBillingRequestSetUnwrappe *v = sv return nil } +func awsEc2query_deserializeDocumentCapacityReservationCommitmentInfo(v **types.CapacityReservationCommitmentInfo, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *types.CapacityReservationCommitmentInfo + if *v == nil { + sv = &types.CapacityReservationCommitmentInfo{} + } else { + sv = *v + } + + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) + switch { + case strings.EqualFold("commitmentEndDate", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + t, err := smithytime.ParseDateTime(xtv) + if err != nil { + return err + } + sv.CommitmentEndDate = ptr.Time(t) + } + + case strings.EqualFold("committedInstanceCount", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + i64, err := strconv.ParseInt(xtv, 10, 64) + if err != nil { + return err + } + sv.CommittedInstanceCount = ptr.Int32(int32(i64)) + } + + default: + // Do nothing and ignore the unexpected tag element + err = decoder.Decoder.Skip() + if err != nil { + return err + } + + } + decoder = originalDecoder + } + *v = sv + return nil +} + func awsEc2query_deserializeDocumentCapacityReservationFleet(v **types.CapacityReservationFleet, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -70977,6 +72602,48 @@ func awsEc2query_deserializeDocumentCpuOptions(v **types.CpuOptions, decoder smi return nil } +func awsEc2query_deserializeDocumentCpuPerformanceFactor(v **types.CpuPerformanceFactor, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *types.CpuPerformanceFactor + if *v == nil { + sv = &types.CpuPerformanceFactor{} + } else { + sv = *v + } + + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) + switch { + case strings.EqualFold("referenceSet", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentPerformanceFactorReferenceSet(&sv.References, nodeDecoder); err != nil { + return err + } + + default: + // Do nothing and ignore the unexpected tag element + err = decoder.Decoder.Skip() + if err != nil { + return err + } + + } + decoder = originalDecoder + } + *v = sv + return nil +} + func awsEc2query_deserializeDocumentCreateFleetError(v **types.CreateFleetError, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -75490,6 +77157,12 @@ func awsEc2query_deserializeDocumentEbsInstanceBlockDevice(v **types.EbsInstance sv.DeleteOnTermination = ptr.Bool(xtv) } + case strings.EqualFold("operator", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentOperatorResponse(&sv.Operator, nodeDecoder); err != nil { + return err + } + case strings.EqualFold("status", t.Name.Local): val, err := decoder.Value() if err != nil { @@ -86937,6 +88610,12 @@ func awsEc2query_deserializeDocumentInstance(v **types.Instance, decoder smithyx return err } + case strings.EqualFold("operator", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentOperatorResponse(&sv.Operator, nodeDecoder); err != nil { + return err + } + case strings.EqualFold("outpostArn", t.Name.Local): val, err := decoder.Value() if err != nil { @@ -88890,6 +90569,12 @@ func awsEc2query_deserializeDocumentInstanceImageMetadata(v **types.InstanceImag sv.LaunchTime = ptr.Time(t) } + case strings.EqualFold("operator", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentOperatorResponse(&sv.Operator, nodeDecoder); err != nil { + return err + } + case strings.EqualFold("instanceOwnerId", t.Name.Local): val, err := decoder.Value() if err != nil { @@ -89943,6 +91628,12 @@ func awsEc2query_deserializeDocumentInstanceNetworkInterface(v **types.InstanceN sv.NetworkInterfaceId = ptr.String(xtv) } + case strings.EqualFold("operator", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentOperatorResponse(&sv.Operator, nodeDecoder); err != nil { + return err + } + case strings.EqualFold("ownerId", t.Name.Local): val, err := decoder.Value() if err != nil { @@ -90967,6 +92658,12 @@ func awsEc2query_deserializeDocumentInstanceRequirements(v **types.InstanceRequi return err } + case strings.EqualFold("baselinePerformanceFactors", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentBaselinePerformanceFactors(&sv.BaselinePerformanceFactors, nodeDecoder); err != nil { + return err + } + case strings.EqualFold("burstablePerformance", t.Name.Local): val, err := decoder.Value() if err != nil { @@ -91469,6 +93166,12 @@ func awsEc2query_deserializeDocumentInstanceStatus(v **types.InstanceStatus, dec return err } + case strings.EqualFold("operator", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentOperatorResponse(&sv.Operator, nodeDecoder); err != nil { + return err + } + case strings.EqualFold("outpostArn", t.Name.Local): val, err := decoder.Value() if err != nil { @@ -94118,6 +95821,19 @@ func awsEc2query_deserializeDocumentIpamDiscoveredAccount(v **types.IpamDiscover sv.LastSuccessfulDiscoveryTime = ptr.Time(t) } + case strings.EqualFold("organizationalUnitId", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.OrganizationalUnitId = ptr.String(xtv) + } + default: // Do nothing and ignore the unexpected tag element err = decoder.Decoder.Skip() @@ -95251,6 +96967,123 @@ func awsEc2query_deserializeDocumentIpamOperatingRegionSetUnwrapped(v *[]types.I *v = sv return nil } +func awsEc2query_deserializeDocumentIpamOrganizationalUnitExclusion(v **types.IpamOrganizationalUnitExclusion, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *types.IpamOrganizationalUnitExclusion + if *v == nil { + sv = &types.IpamOrganizationalUnitExclusion{} + } else { + sv = *v + } + + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) + switch { + case strings.EqualFold("organizationsEntityPath", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.OrganizationsEntityPath = ptr.String(xtv) + } + + default: + // Do nothing and ignore the unexpected tag element + err = decoder.Decoder.Skip() + if err != nil { + return err + } + + } + decoder = originalDecoder + } + *v = sv + return nil +} + +func awsEc2query_deserializeDocumentIpamOrganizationalUnitExclusionSet(v *[]types.IpamOrganizationalUnitExclusion, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv []types.IpamOrganizationalUnitExclusion + if *v == nil { + sv = make([]types.IpamOrganizationalUnitExclusion, 0) + } else { + sv = *v + } + + originalDecoder := decoder + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + switch { + case strings.EqualFold("item", t.Name.Local): + var col types.IpamOrganizationalUnitExclusion + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + destAddr := &col + if err := awsEc2query_deserializeDocumentIpamOrganizationalUnitExclusion(&destAddr, nodeDecoder); err != nil { + return err + } + col = *destAddr + sv = append(sv, col) + + default: + err = decoder.Decoder.Skip() + if err != nil { + return err + } + + } + decoder = originalDecoder + } + *v = sv + return nil +} + +func awsEc2query_deserializeDocumentIpamOrganizationalUnitExclusionSetUnwrapped(v *[]types.IpamOrganizationalUnitExclusion, decoder smithyxml.NodeDecoder) error { + var sv []types.IpamOrganizationalUnitExclusion + if *v == nil { + sv = make([]types.IpamOrganizationalUnitExclusion, 0) + } else { + sv = *v + } + + switch { + default: + var mv types.IpamOrganizationalUnitExclusion + t := decoder.StartEl + _ = t + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + destAddr := &mv + if err := awsEc2query_deserializeDocumentIpamOrganizationalUnitExclusion(&destAddr, nodeDecoder); err != nil { + return err + } + mv = *destAddr + sv = append(sv, mv) + } + *v = sv + return nil +} func awsEc2query_deserializeDocumentIpamPool(v **types.IpamPool, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -96886,6 +98719,12 @@ func awsEc2query_deserializeDocumentIpamResourceDiscovery(v **types.IpamResource return err } + case strings.EqualFold("organizationalUnitExclusionSet", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentIpamOrganizationalUnitExclusionSet(&sv.OrganizationalUnitExclusions, nodeDecoder); err != nil { + return err + } + case strings.EqualFold("ownerId", t.Name.Local): val, err := decoder.Value() if err != nil { @@ -100236,6 +102075,12 @@ func awsEc2query_deserializeDocumentLaunchTemplate(v **types.LaunchTemplate, dec sv.LaunchTemplateName = ptr.String(xtv) } + case strings.EqualFold("operator", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentOperatorResponse(&sv.Operator, nodeDecoder); err != nil { + return err + } + case strings.EqualFold("tagSet", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) if err := awsEc2query_deserializeDocumentTagList(&sv.Tags, nodeDecoder); err != nil { @@ -102877,6 +104722,12 @@ func awsEc2query_deserializeDocumentLaunchTemplateVersion(v **types.LaunchTempla sv.LaunchTemplateName = ptr.String(xtv) } + case strings.EqualFold("operator", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentOperatorResponse(&sv.Operator, nodeDecoder); err != nil { + return err + } + case strings.EqualFold("versionDescription", t.Name.Local): val, err := decoder.Value() if err != nil { @@ -109064,6 +110915,12 @@ func awsEc2query_deserializeDocumentNetworkInterface(v **types.NetworkInterface, sv.NetworkInterfaceId = ptr.String(xtv) } + case strings.EqualFold("operator", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentOperatorResponse(&sv.Operator, nodeDecoder); err != nil { + return err + } + case strings.EqualFold("outpostArn", t.Name.Local): val, err := decoder.Value() if err != nil { @@ -111116,6 +112973,71 @@ func awsEc2query_deserializeDocumentOnDemandOptions(v **types.OnDemandOptions, d return nil } +func awsEc2query_deserializeDocumentOperatorResponse(v **types.OperatorResponse, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *types.OperatorResponse + if *v == nil { + sv = &types.OperatorResponse{} + } else { + sv = *v + } + + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) + switch { + case strings.EqualFold("managed", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv, err := strconv.ParseBool(string(val)) + if err != nil { + return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) + } + sv.Managed = ptr.Bool(xtv) + } + + case strings.EqualFold("principal", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.Principal = ptr.String(xtv) + } + + default: + // Do nothing and ignore the unexpected tag element + err = decoder.Decoder.Skip() + if err != nil { + return err + } + + } + decoder = originalDecoder + } + *v = sv + return nil +} + func awsEc2query_deserializeDocumentPacketHeaderStatement(v **types.PacketHeaderStatement, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -111880,6 +113802,123 @@ func awsEc2query_deserializeDocumentPeeringTgwInfo(v **types.PeeringTgwInfo, dec return nil } +func awsEc2query_deserializeDocumentPerformanceFactorReference(v **types.PerformanceFactorReference, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *types.PerformanceFactorReference + if *v == nil { + sv = &types.PerformanceFactorReference{} + } else { + sv = *v + } + + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) + switch { + case strings.EqualFold("instanceFamily", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.InstanceFamily = ptr.String(xtv) + } + + default: + // Do nothing and ignore the unexpected tag element + err = decoder.Decoder.Skip() + if err != nil { + return err + } + + } + decoder = originalDecoder + } + *v = sv + return nil +} + +func awsEc2query_deserializeDocumentPerformanceFactorReferenceSet(v *[]types.PerformanceFactorReference, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv []types.PerformanceFactorReference + if *v == nil { + sv = make([]types.PerformanceFactorReference, 0) + } else { + sv = *v + } + + originalDecoder := decoder + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + switch { + case strings.EqualFold("item", t.Name.Local): + var col types.PerformanceFactorReference + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + destAddr := &col + if err := awsEc2query_deserializeDocumentPerformanceFactorReference(&destAddr, nodeDecoder); err != nil { + return err + } + col = *destAddr + sv = append(sv, col) + + default: + err = decoder.Decoder.Skip() + if err != nil { + return err + } + + } + decoder = originalDecoder + } + *v = sv + return nil +} + +func awsEc2query_deserializeDocumentPerformanceFactorReferenceSetUnwrapped(v *[]types.PerformanceFactorReference, decoder smithyxml.NodeDecoder) error { + var sv []types.PerformanceFactorReference + if *v == nil { + sv = make([]types.PerformanceFactorReference, 0) + } else { + sv = *v + } + + switch { + default: + var mv types.PerformanceFactorReference + t := decoder.StartEl + _ = t + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + destAddr := &mv + if err := awsEc2query_deserializeDocumentPerformanceFactorReference(&destAddr, nodeDecoder); err != nil { + return err + } + mv = *destAddr + sv = append(sv, mv) + } + *v = sv + return nil +} func awsEc2query_deserializeDocumentPhase1DHGroupNumbersList(v *[]types.Phase1DHGroupNumbersListValue, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -119097,6 +121136,12 @@ func awsEc2query_deserializeDocumentResponseLaunchTemplateData(v **types.Respons return err } + case strings.EqualFold("operator", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentOperatorResponse(&sv.Operator, nodeDecoder); err != nil { + return err + } + case strings.EqualFold("placement", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) if err := awsEc2query_deserializeDocumentLaunchTemplatePlacement(&sv.Placement, nodeDecoder); err != nil { @@ -127839,6 +129884,12 @@ func awsEc2query_deserializeDocumentSubnet(v **types.Subnet, decoder smithyxml.N sv.AvailableIpAddressCount = ptr.Int32(int32(i64)) } + case strings.EqualFold("blockPublicAccessStates", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentBlockPublicAccessStates(&sv.BlockPublicAccessStates, nodeDecoder); err != nil { + return err + } + case strings.EqualFold("cidrBlock", t.Name.Local): val, err := decoder.Value() if err != nil { @@ -141248,6 +143299,12 @@ func awsEc2query_deserializeDocumentVolume(v **types.Volume, decoder smithyxml.N sv.MultiAttachEnabled = ptr.Bool(xtv) } + case strings.EqualFold("operator", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentOperatorResponse(&sv.Operator, nodeDecoder); err != nil { + return err + } + case strings.EqualFold("outpostArn", t.Name.Local): val, err := decoder.Value() if err != nil { @@ -142867,6 +144924,12 @@ func awsEc2query_deserializeDocumentVpc(v **types.Vpc, decoder smithyxml.NodeDec originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { + case strings.EqualFold("blockPublicAccessStates", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentBlockPublicAccessStates(&sv.BlockPublicAccessStates, nodeDecoder); err != nil { + return err + } + case strings.EqualFold("cidrBlock", t.Name.Local): val, err := decoder.Value() if err != nil { @@ -143123,6 +145186,350 @@ func awsEc2query_deserializeDocumentVpcAttachmentListUnwrapped(v *[]types.VpcAtt *v = sv return nil } +func awsEc2query_deserializeDocumentVpcBlockPublicAccessExclusion(v **types.VpcBlockPublicAccessExclusion, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *types.VpcBlockPublicAccessExclusion + if *v == nil { + sv = &types.VpcBlockPublicAccessExclusion{} + } else { + sv = *v + } + + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) + switch { + case strings.EqualFold("creationTimestamp", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + t, err := smithytime.ParseDateTime(xtv) + if err != nil { + return err + } + sv.CreationTimestamp = ptr.Time(t) + } + + case strings.EqualFold("deletionTimestamp", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + t, err := smithytime.ParseDateTime(xtv) + if err != nil { + return err + } + sv.DeletionTimestamp = ptr.Time(t) + } + + case strings.EqualFold("exclusionId", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.ExclusionId = ptr.String(xtv) + } + + case strings.EqualFold("internetGatewayExclusionMode", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.InternetGatewayExclusionMode = types.InternetGatewayExclusionMode(xtv) + } + + case strings.EqualFold("lastUpdateTimestamp", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + t, err := smithytime.ParseDateTime(xtv) + if err != nil { + return err + } + sv.LastUpdateTimestamp = ptr.Time(t) + } + + case strings.EqualFold("reason", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.Reason = ptr.String(xtv) + } + + case strings.EqualFold("resourceArn", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.ResourceArn = ptr.String(xtv) + } + + case strings.EqualFold("state", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.State = types.VpcBlockPublicAccessExclusionState(xtv) + } + + case strings.EqualFold("tagSet", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentTagList(&sv.Tags, nodeDecoder); err != nil { + return err + } + + default: + // Do nothing and ignore the unexpected tag element + err = decoder.Decoder.Skip() + if err != nil { + return err + } + + } + decoder = originalDecoder + } + *v = sv + return nil +} + +func awsEc2query_deserializeDocumentVpcBlockPublicAccessExclusionList(v *[]types.VpcBlockPublicAccessExclusion, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv []types.VpcBlockPublicAccessExclusion + if *v == nil { + sv = make([]types.VpcBlockPublicAccessExclusion, 0) + } else { + sv = *v + } + + originalDecoder := decoder + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + switch { + case strings.EqualFold("item", t.Name.Local): + var col types.VpcBlockPublicAccessExclusion + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + destAddr := &col + if err := awsEc2query_deserializeDocumentVpcBlockPublicAccessExclusion(&destAddr, nodeDecoder); err != nil { + return err + } + col = *destAddr + sv = append(sv, col) + + default: + err = decoder.Decoder.Skip() + if err != nil { + return err + } + + } + decoder = originalDecoder + } + *v = sv + return nil +} + +func awsEc2query_deserializeDocumentVpcBlockPublicAccessExclusionListUnwrapped(v *[]types.VpcBlockPublicAccessExclusion, decoder smithyxml.NodeDecoder) error { + var sv []types.VpcBlockPublicAccessExclusion + if *v == nil { + sv = make([]types.VpcBlockPublicAccessExclusion, 0) + } else { + sv = *v + } + + switch { + default: + var mv types.VpcBlockPublicAccessExclusion + t := decoder.StartEl + _ = t + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + destAddr := &mv + if err := awsEc2query_deserializeDocumentVpcBlockPublicAccessExclusion(&destAddr, nodeDecoder); err != nil { + return err + } + mv = *destAddr + sv = append(sv, mv) + } + *v = sv + return nil +} +func awsEc2query_deserializeDocumentVpcBlockPublicAccessOptions(v **types.VpcBlockPublicAccessOptions, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *types.VpcBlockPublicAccessOptions + if *v == nil { + sv = &types.VpcBlockPublicAccessOptions{} + } else { + sv = *v + } + + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) + switch { + case strings.EqualFold("awsAccountId", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.AwsAccountId = ptr.String(xtv) + } + + case strings.EqualFold("awsRegion", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.AwsRegion = ptr.String(xtv) + } + + case strings.EqualFold("internetGatewayBlockMode", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.InternetGatewayBlockMode = types.InternetGatewayBlockMode(xtv) + } + + case strings.EqualFold("lastUpdateTimestamp", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + t, err := smithytime.ParseDateTime(xtv) + if err != nil { + return err + } + sv.LastUpdateTimestamp = ptr.Time(t) + } + + case strings.EqualFold("reason", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.Reason = ptr.String(xtv) + } + + case strings.EqualFold("state", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.State = types.VpcBlockPublicAccessState(xtv) + } + + default: + // Do nothing and ignore the unexpected tag element + err = decoder.Decoder.Skip() + if err != nil { + return err + } + + } + decoder = originalDecoder + } + *v = sv + return nil +} + func awsEc2query_deserializeDocumentVpcCidrBlockAssociation(v **types.VpcCidrBlockAssociation, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -152431,6 +154838,12 @@ func awsEc2query_deserializeOpDocumentCreateVolumeOutput(v **CreateVolumeOutput, sv.MultiAttachEnabled = ptr.Bool(xtv) } + case strings.EqualFold("operator", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentOperatorResponse(&sv.Operator, nodeDecoder); err != nil { + return err + } + case strings.EqualFold("outpostArn", t.Name.Local): val, err := decoder.Value() if err != nil { @@ -152563,6 +154976,48 @@ func awsEc2query_deserializeOpDocumentCreateVolumeOutput(v **CreateVolumeOutput, return nil } +func awsEc2query_deserializeOpDocumentCreateVpcBlockPublicAccessExclusionOutput(v **CreateVpcBlockPublicAccessExclusionOutput, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *CreateVpcBlockPublicAccessExclusionOutput + if *v == nil { + sv = &CreateVpcBlockPublicAccessExclusionOutput{} + } else { + sv = *v + } + + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) + switch { + case strings.EqualFold("vpcBlockPublicAccessExclusion", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentVpcBlockPublicAccessExclusion(&sv.VpcBlockPublicAccessExclusion, nodeDecoder); err != nil { + return err + } + + default: + // Do nothing and ignore the unexpected tag element + err = decoder.Decoder.Skip() + if err != nil { + return err + } + + } + decoder = originalDecoder + } + *v = sv + return nil +} + func awsEc2query_deserializeOpDocumentCreateVpcEndpointConnectionNotificationOutput(v **CreateVpcEndpointConnectionNotificationOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -155224,6 +157679,48 @@ func awsEc2query_deserializeOpDocumentDeleteVerifiedAccessTrustProviderOutput(v return nil } +func awsEc2query_deserializeOpDocumentDeleteVpcBlockPublicAccessExclusionOutput(v **DeleteVpcBlockPublicAccessExclusionOutput, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *DeleteVpcBlockPublicAccessExclusionOutput + if *v == nil { + sv = &DeleteVpcBlockPublicAccessExclusionOutput{} + } else { + sv = *v + } + + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) + switch { + case strings.EqualFold("vpcBlockPublicAccessExclusion", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentVpcBlockPublicAccessExclusion(&sv.VpcBlockPublicAccessExclusion, nodeDecoder); err != nil { + return err + } + + default: + // Do nothing and ignore the unexpected tag element + err = decoder.Decoder.Skip() + if err != nil { + return err + } + + } + decoder = originalDecoder + } + *v = sv + return nil +} + func awsEc2query_deserializeOpDocumentDeleteVpcEndpointConnectionNotificationsOutput(v **DeleteVpcEndpointConnectionNotificationsOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -156155,6 +158652,116 @@ func awsEc2query_deserializeOpDocumentDescribeByoipCidrsOutput(v **DescribeByoip return nil } +func awsEc2query_deserializeOpDocumentDescribeCapacityBlockExtensionHistoryOutput(v **DescribeCapacityBlockExtensionHistoryOutput, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *DescribeCapacityBlockExtensionHistoryOutput + if *v == nil { + sv = &DescribeCapacityBlockExtensionHistoryOutput{} + } else { + sv = *v + } + + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) + switch { + case strings.EqualFold("capacityBlockExtensionSet", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentCapacityBlockExtensionSet(&sv.CapacityBlockExtensions, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("nextToken", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.NextToken = ptr.String(xtv) + } + + default: + // Do nothing and ignore the unexpected tag element + err = decoder.Decoder.Skip() + if err != nil { + return err + } + + } + decoder = originalDecoder + } + *v = sv + return nil +} + +func awsEc2query_deserializeOpDocumentDescribeCapacityBlockExtensionOfferingsOutput(v **DescribeCapacityBlockExtensionOfferingsOutput, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *DescribeCapacityBlockExtensionOfferingsOutput + if *v == nil { + sv = &DescribeCapacityBlockExtensionOfferingsOutput{} + } else { + sv = *v + } + + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) + switch { + case strings.EqualFold("capacityBlockExtensionOfferingSet", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentCapacityBlockExtensionOfferingSet(&sv.CapacityBlockExtensionOfferings, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("nextToken", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.NextToken = ptr.String(xtv) + } + + default: + // Do nothing and ignore the unexpected tag element + err = decoder.Decoder.Skip() + if err != nil { + return err + } + + } + decoder = originalDecoder + } + *v = sv + return nil +} + func awsEc2query_deserializeOpDocumentDescribeCapacityBlockOfferingsOutput(v **DescribeCapacityBlockOfferingsOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -162012,9 +164619,174 @@ func awsEc2query_deserializeOpDocumentDescribeSpotInstanceRequestsOutput(v **Des sv.NextToken = ptr.String(xtv) } - case strings.EqualFold("spotInstanceRequestSet", t.Name.Local): + case strings.EqualFold("spotInstanceRequestSet", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentSpotInstanceRequestList(&sv.SpotInstanceRequests, nodeDecoder); err != nil { + return err + } + + default: + // Do nothing and ignore the unexpected tag element + err = decoder.Decoder.Skip() + if err != nil { + return err + } + + } + decoder = originalDecoder + } + *v = sv + return nil +} + +func awsEc2query_deserializeOpDocumentDescribeSpotPriceHistoryOutput(v **DescribeSpotPriceHistoryOutput, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *DescribeSpotPriceHistoryOutput + if *v == nil { + sv = &DescribeSpotPriceHistoryOutput{} + } else { + sv = *v + } + + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) + switch { + case strings.EqualFold("nextToken", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.NextToken = ptr.String(xtv) + } + + case strings.EqualFold("spotPriceHistorySet", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentSpotPriceHistoryList(&sv.SpotPriceHistory, nodeDecoder); err != nil { + return err + } + + default: + // Do nothing and ignore the unexpected tag element + err = decoder.Decoder.Skip() + if err != nil { + return err + } + + } + decoder = originalDecoder + } + *v = sv + return nil +} + +func awsEc2query_deserializeOpDocumentDescribeStaleSecurityGroupsOutput(v **DescribeStaleSecurityGroupsOutput, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *DescribeStaleSecurityGroupsOutput + if *v == nil { + sv = &DescribeStaleSecurityGroupsOutput{} + } else { + sv = *v + } + + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) + switch { + case strings.EqualFold("nextToken", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.NextToken = ptr.String(xtv) + } + + case strings.EqualFold("staleSecurityGroupSet", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentStaleSecurityGroupSet(&sv.StaleSecurityGroupSet, nodeDecoder); err != nil { + return err + } + + default: + // Do nothing and ignore the unexpected tag element + err = decoder.Decoder.Skip() + if err != nil { + return err + } + + } + decoder = originalDecoder + } + *v = sv + return nil +} + +func awsEc2query_deserializeOpDocumentDescribeStoreImageTasksOutput(v **DescribeStoreImageTasksOutput, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *DescribeStoreImageTasksOutput + if *v == nil { + sv = &DescribeStoreImageTasksOutput{} + } else { + sv = *v + } + + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) + switch { + case strings.EqualFold("nextToken", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.NextToken = ptr.String(xtv) + } + + case strings.EqualFold("storeImageTaskResultSet", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentSpotInstanceRequestList(&sv.SpotInstanceRequests, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentStoreImageTaskResultSet(&sv.StoreImageTaskResults, nodeDecoder); err != nil { return err } @@ -162032,13 +164804,13 @@ func awsEc2query_deserializeOpDocumentDescribeSpotInstanceRequestsOutput(v **Des return nil } -func awsEc2query_deserializeOpDocumentDescribeSpotPriceHistoryOutput(v **DescribeSpotPriceHistoryOutput, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeOpDocumentDescribeSubnetsOutput(v **DescribeSubnetsOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *DescribeSpotPriceHistoryOutput + var sv *DescribeSubnetsOutput if *v == nil { - sv = &DescribeSpotPriceHistoryOutput{} + sv = &DescribeSubnetsOutput{} } else { sv = *v } @@ -162067,9 +164839,9 @@ func awsEc2query_deserializeOpDocumentDescribeSpotPriceHistoryOutput(v **Describ sv.NextToken = ptr.String(xtv) } - case strings.EqualFold("spotPriceHistorySet", t.Name.Local): + case strings.EqualFold("subnetSet", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentSpotPriceHistoryList(&sv.SpotPriceHistory, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentSubnetList(&sv.Subnets, nodeDecoder); err != nil { return err } @@ -162087,13 +164859,13 @@ func awsEc2query_deserializeOpDocumentDescribeSpotPriceHistoryOutput(v **Describ return nil } -func awsEc2query_deserializeOpDocumentDescribeStaleSecurityGroupsOutput(v **DescribeStaleSecurityGroupsOutput, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeOpDocumentDescribeTagsOutput(v **DescribeTagsOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *DescribeStaleSecurityGroupsOutput + var sv *DescribeTagsOutput if *v == nil { - sv = &DescribeStaleSecurityGroupsOutput{} + sv = &DescribeTagsOutput{} } else { sv = *v } @@ -162122,9 +164894,9 @@ func awsEc2query_deserializeOpDocumentDescribeStaleSecurityGroupsOutput(v **Desc sv.NextToken = ptr.String(xtv) } - case strings.EqualFold("staleSecurityGroupSet", t.Name.Local): + case strings.EqualFold("tagSet", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentStaleSecurityGroupSet(&sv.StaleSecurityGroupSet, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentTagDescriptionList(&sv.Tags, nodeDecoder); err != nil { return err } @@ -162142,13 +164914,13 @@ func awsEc2query_deserializeOpDocumentDescribeStaleSecurityGroupsOutput(v **Desc return nil } -func awsEc2query_deserializeOpDocumentDescribeStoreImageTasksOutput(v **DescribeStoreImageTasksOutput, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeOpDocumentDescribeTrafficMirrorFilterRulesOutput(v **DescribeTrafficMirrorFilterRulesOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *DescribeStoreImageTasksOutput + var sv *DescribeTrafficMirrorFilterRulesOutput if *v == nil { - sv = &DescribeStoreImageTasksOutput{} + sv = &DescribeTrafficMirrorFilterRulesOutput{} } else { sv = *v } @@ -162177,9 +164949,9 @@ func awsEc2query_deserializeOpDocumentDescribeStoreImageTasksOutput(v **Describe sv.NextToken = ptr.String(xtv) } - case strings.EqualFold("storeImageTaskResultSet", t.Name.Local): + case strings.EqualFold("trafficMirrorFilterRuleSet", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentStoreImageTaskResultSet(&sv.StoreImageTaskResults, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentTrafficMirrorFilterRuleSet(&sv.TrafficMirrorFilterRules, nodeDecoder); err != nil { return err } @@ -162197,13 +164969,13 @@ func awsEc2query_deserializeOpDocumentDescribeStoreImageTasksOutput(v **Describe return nil } -func awsEc2query_deserializeOpDocumentDescribeSubnetsOutput(v **DescribeSubnetsOutput, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeOpDocumentDescribeTrafficMirrorFiltersOutput(v **DescribeTrafficMirrorFiltersOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *DescribeSubnetsOutput + var sv *DescribeTrafficMirrorFiltersOutput if *v == nil { - sv = &DescribeSubnetsOutput{} + sv = &DescribeTrafficMirrorFiltersOutput{} } else { sv = *v } @@ -162232,9 +165004,9 @@ func awsEc2query_deserializeOpDocumentDescribeSubnetsOutput(v **DescribeSubnetsO sv.NextToken = ptr.String(xtv) } - case strings.EqualFold("subnetSet", t.Name.Local): + case strings.EqualFold("trafficMirrorFilterSet", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentSubnetList(&sv.Subnets, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentTrafficMirrorFilterSet(&sv.TrafficMirrorFilters, nodeDecoder); err != nil { return err } @@ -162252,13 +165024,13 @@ func awsEc2query_deserializeOpDocumentDescribeSubnetsOutput(v **DescribeSubnetsO return nil } -func awsEc2query_deserializeOpDocumentDescribeTagsOutput(v **DescribeTagsOutput, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeOpDocumentDescribeTrafficMirrorSessionsOutput(v **DescribeTrafficMirrorSessionsOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *DescribeTagsOutput + var sv *DescribeTrafficMirrorSessionsOutput if *v == nil { - sv = &DescribeTagsOutput{} + sv = &DescribeTrafficMirrorSessionsOutput{} } else { sv = *v } @@ -162287,9 +165059,9 @@ func awsEc2query_deserializeOpDocumentDescribeTagsOutput(v **DescribeTagsOutput, sv.NextToken = ptr.String(xtv) } - case strings.EqualFold("tagSet", t.Name.Local): + case strings.EqualFold("trafficMirrorSessionSet", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentTagDescriptionList(&sv.Tags, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentTrafficMirrorSessionSet(&sv.TrafficMirrorSessions, nodeDecoder); err != nil { return err } @@ -162307,13 +165079,13 @@ func awsEc2query_deserializeOpDocumentDescribeTagsOutput(v **DescribeTagsOutput, return nil } -func awsEc2query_deserializeOpDocumentDescribeTrafficMirrorFilterRulesOutput(v **DescribeTrafficMirrorFilterRulesOutput, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeOpDocumentDescribeTrafficMirrorTargetsOutput(v **DescribeTrafficMirrorTargetsOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *DescribeTrafficMirrorFilterRulesOutput + var sv *DescribeTrafficMirrorTargetsOutput if *v == nil { - sv = &DescribeTrafficMirrorFilterRulesOutput{} + sv = &DescribeTrafficMirrorTargetsOutput{} } else { sv = *v } @@ -162342,9 +165114,9 @@ func awsEc2query_deserializeOpDocumentDescribeTrafficMirrorFilterRulesOutput(v * sv.NextToken = ptr.String(xtv) } - case strings.EqualFold("trafficMirrorFilterRuleSet", t.Name.Local): + case strings.EqualFold("trafficMirrorTargetSet", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentTrafficMirrorFilterRuleSet(&sv.TrafficMirrorFilterRules, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentTrafficMirrorTargetSet(&sv.TrafficMirrorTargets, nodeDecoder); err != nil { return err } @@ -162362,13 +165134,13 @@ func awsEc2query_deserializeOpDocumentDescribeTrafficMirrorFilterRulesOutput(v * return nil } -func awsEc2query_deserializeOpDocumentDescribeTrafficMirrorFiltersOutput(v **DescribeTrafficMirrorFiltersOutput, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeOpDocumentDescribeTransitGatewayAttachmentsOutput(v **DescribeTransitGatewayAttachmentsOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *DescribeTrafficMirrorFiltersOutput + var sv *DescribeTransitGatewayAttachmentsOutput if *v == nil { - sv = &DescribeTrafficMirrorFiltersOutput{} + sv = &DescribeTransitGatewayAttachmentsOutput{} } else { sv = *v } @@ -162397,9 +165169,9 @@ func awsEc2query_deserializeOpDocumentDescribeTrafficMirrorFiltersOutput(v **Des sv.NextToken = ptr.String(xtv) } - case strings.EqualFold("trafficMirrorFilterSet", t.Name.Local): + case strings.EqualFold("transitGatewayAttachments", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentTrafficMirrorFilterSet(&sv.TrafficMirrorFilters, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentTransitGatewayAttachmentList(&sv.TransitGatewayAttachments, nodeDecoder); err != nil { return err } @@ -162417,13 +165189,13 @@ func awsEc2query_deserializeOpDocumentDescribeTrafficMirrorFiltersOutput(v **Des return nil } -func awsEc2query_deserializeOpDocumentDescribeTrafficMirrorSessionsOutput(v **DescribeTrafficMirrorSessionsOutput, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeOpDocumentDescribeTransitGatewayConnectPeersOutput(v **DescribeTransitGatewayConnectPeersOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *DescribeTrafficMirrorSessionsOutput + var sv *DescribeTransitGatewayConnectPeersOutput if *v == nil { - sv = &DescribeTrafficMirrorSessionsOutput{} + sv = &DescribeTransitGatewayConnectPeersOutput{} } else { sv = *v } @@ -162452,9 +165224,9 @@ func awsEc2query_deserializeOpDocumentDescribeTrafficMirrorSessionsOutput(v **De sv.NextToken = ptr.String(xtv) } - case strings.EqualFold("trafficMirrorSessionSet", t.Name.Local): + case strings.EqualFold("transitGatewayConnectPeerSet", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentTrafficMirrorSessionSet(&sv.TrafficMirrorSessions, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentTransitGatewayConnectPeerList(&sv.TransitGatewayConnectPeers, nodeDecoder); err != nil { return err } @@ -162472,13 +165244,13 @@ func awsEc2query_deserializeOpDocumentDescribeTrafficMirrorSessionsOutput(v **De return nil } -func awsEc2query_deserializeOpDocumentDescribeTrafficMirrorTargetsOutput(v **DescribeTrafficMirrorTargetsOutput, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeOpDocumentDescribeTransitGatewayConnectsOutput(v **DescribeTransitGatewayConnectsOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *DescribeTrafficMirrorTargetsOutput + var sv *DescribeTransitGatewayConnectsOutput if *v == nil { - sv = &DescribeTrafficMirrorTargetsOutput{} + sv = &DescribeTransitGatewayConnectsOutput{} } else { sv = *v } @@ -162507,9 +165279,9 @@ func awsEc2query_deserializeOpDocumentDescribeTrafficMirrorTargetsOutput(v **Des sv.NextToken = ptr.String(xtv) } - case strings.EqualFold("trafficMirrorTargetSet", t.Name.Local): + case strings.EqualFold("transitGatewayConnectSet", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentTrafficMirrorTargetSet(&sv.TrafficMirrorTargets, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentTransitGatewayConnectList(&sv.TransitGatewayConnects, nodeDecoder); err != nil { return err } @@ -162527,13 +165299,13 @@ func awsEc2query_deserializeOpDocumentDescribeTrafficMirrorTargetsOutput(v **Des return nil } -func awsEc2query_deserializeOpDocumentDescribeTransitGatewayAttachmentsOutput(v **DescribeTransitGatewayAttachmentsOutput, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeOpDocumentDescribeTransitGatewayMulticastDomainsOutput(v **DescribeTransitGatewayMulticastDomainsOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *DescribeTransitGatewayAttachmentsOutput + var sv *DescribeTransitGatewayMulticastDomainsOutput if *v == nil { - sv = &DescribeTransitGatewayAttachmentsOutput{} + sv = &DescribeTransitGatewayMulticastDomainsOutput{} } else { sv = *v } @@ -162562,9 +165334,9 @@ func awsEc2query_deserializeOpDocumentDescribeTransitGatewayAttachmentsOutput(v sv.NextToken = ptr.String(xtv) } - case strings.EqualFold("transitGatewayAttachments", t.Name.Local): + case strings.EqualFold("transitGatewayMulticastDomains", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentTransitGatewayAttachmentList(&sv.TransitGatewayAttachments, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentTransitGatewayMulticastDomainList(&sv.TransitGatewayMulticastDomains, nodeDecoder); err != nil { return err } @@ -162582,13 +165354,13 @@ func awsEc2query_deserializeOpDocumentDescribeTransitGatewayAttachmentsOutput(v return nil } -func awsEc2query_deserializeOpDocumentDescribeTransitGatewayConnectPeersOutput(v **DescribeTransitGatewayConnectPeersOutput, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeOpDocumentDescribeTransitGatewayPeeringAttachmentsOutput(v **DescribeTransitGatewayPeeringAttachmentsOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *DescribeTransitGatewayConnectPeersOutput + var sv *DescribeTransitGatewayPeeringAttachmentsOutput if *v == nil { - sv = &DescribeTransitGatewayConnectPeersOutput{} + sv = &DescribeTransitGatewayPeeringAttachmentsOutput{} } else { sv = *v } @@ -162617,9 +165389,9 @@ func awsEc2query_deserializeOpDocumentDescribeTransitGatewayConnectPeersOutput(v sv.NextToken = ptr.String(xtv) } - case strings.EqualFold("transitGatewayConnectPeerSet", t.Name.Local): + case strings.EqualFold("transitGatewayPeeringAttachments", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentTransitGatewayConnectPeerList(&sv.TransitGatewayConnectPeers, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentTransitGatewayPeeringAttachmentList(&sv.TransitGatewayPeeringAttachments, nodeDecoder); err != nil { return err } @@ -162637,13 +165409,13 @@ func awsEc2query_deserializeOpDocumentDescribeTransitGatewayConnectPeersOutput(v return nil } -func awsEc2query_deserializeOpDocumentDescribeTransitGatewayConnectsOutput(v **DescribeTransitGatewayConnectsOutput, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeOpDocumentDescribeTransitGatewayPolicyTablesOutput(v **DescribeTransitGatewayPolicyTablesOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *DescribeTransitGatewayConnectsOutput + var sv *DescribeTransitGatewayPolicyTablesOutput if *v == nil { - sv = &DescribeTransitGatewayConnectsOutput{} + sv = &DescribeTransitGatewayPolicyTablesOutput{} } else { sv = *v } @@ -162672,9 +165444,9 @@ func awsEc2query_deserializeOpDocumentDescribeTransitGatewayConnectsOutput(v **D sv.NextToken = ptr.String(xtv) } - case strings.EqualFold("transitGatewayConnectSet", t.Name.Local): + case strings.EqualFold("transitGatewayPolicyTables", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentTransitGatewayConnectList(&sv.TransitGatewayConnects, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentTransitGatewayPolicyTableList(&sv.TransitGatewayPolicyTables, nodeDecoder); err != nil { return err } @@ -162692,13 +165464,13 @@ func awsEc2query_deserializeOpDocumentDescribeTransitGatewayConnectsOutput(v **D return nil } -func awsEc2query_deserializeOpDocumentDescribeTransitGatewayMulticastDomainsOutput(v **DescribeTransitGatewayMulticastDomainsOutput, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeOpDocumentDescribeTransitGatewayRouteTableAnnouncementsOutput(v **DescribeTransitGatewayRouteTableAnnouncementsOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *DescribeTransitGatewayMulticastDomainsOutput + var sv *DescribeTransitGatewayRouteTableAnnouncementsOutput if *v == nil { - sv = &DescribeTransitGatewayMulticastDomainsOutput{} + sv = &DescribeTransitGatewayRouteTableAnnouncementsOutput{} } else { sv = *v } @@ -162727,9 +165499,9 @@ func awsEc2query_deserializeOpDocumentDescribeTransitGatewayMulticastDomainsOutp sv.NextToken = ptr.String(xtv) } - case strings.EqualFold("transitGatewayMulticastDomains", t.Name.Local): + case strings.EqualFold("transitGatewayRouteTableAnnouncements", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentTransitGatewayMulticastDomainList(&sv.TransitGatewayMulticastDomains, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentTransitGatewayRouteTableAnnouncementList(&sv.TransitGatewayRouteTableAnnouncements, nodeDecoder); err != nil { return err } @@ -162747,13 +165519,13 @@ func awsEc2query_deserializeOpDocumentDescribeTransitGatewayMulticastDomainsOutp return nil } -func awsEc2query_deserializeOpDocumentDescribeTransitGatewayPeeringAttachmentsOutput(v **DescribeTransitGatewayPeeringAttachmentsOutput, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeOpDocumentDescribeTransitGatewayRouteTablesOutput(v **DescribeTransitGatewayRouteTablesOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *DescribeTransitGatewayPeeringAttachmentsOutput + var sv *DescribeTransitGatewayRouteTablesOutput if *v == nil { - sv = &DescribeTransitGatewayPeeringAttachmentsOutput{} + sv = &DescribeTransitGatewayRouteTablesOutput{} } else { sv = *v } @@ -162782,9 +165554,9 @@ func awsEc2query_deserializeOpDocumentDescribeTransitGatewayPeeringAttachmentsOu sv.NextToken = ptr.String(xtv) } - case strings.EqualFold("transitGatewayPeeringAttachments", t.Name.Local): + case strings.EqualFold("transitGatewayRouteTables", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentTransitGatewayPeeringAttachmentList(&sv.TransitGatewayPeeringAttachments, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentTransitGatewayRouteTableList(&sv.TransitGatewayRouteTables, nodeDecoder); err != nil { return err } @@ -162802,13 +165574,13 @@ func awsEc2query_deserializeOpDocumentDescribeTransitGatewayPeeringAttachmentsOu return nil } -func awsEc2query_deserializeOpDocumentDescribeTransitGatewayPolicyTablesOutput(v **DescribeTransitGatewayPolicyTablesOutput, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeOpDocumentDescribeTransitGatewaysOutput(v **DescribeTransitGatewaysOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *DescribeTransitGatewayPolicyTablesOutput + var sv *DescribeTransitGatewaysOutput if *v == nil { - sv = &DescribeTransitGatewayPolicyTablesOutput{} + sv = &DescribeTransitGatewaysOutput{} } else { sv = *v } @@ -162837,9 +165609,9 @@ func awsEc2query_deserializeOpDocumentDescribeTransitGatewayPolicyTablesOutput(v sv.NextToken = ptr.String(xtv) } - case strings.EqualFold("transitGatewayPolicyTables", t.Name.Local): + case strings.EqualFold("transitGatewaySet", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentTransitGatewayPolicyTableList(&sv.TransitGatewayPolicyTables, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentTransitGatewayList(&sv.TransitGateways, nodeDecoder); err != nil { return err } @@ -162857,13 +165629,13 @@ func awsEc2query_deserializeOpDocumentDescribeTransitGatewayPolicyTablesOutput(v return nil } -func awsEc2query_deserializeOpDocumentDescribeTransitGatewayRouteTableAnnouncementsOutput(v **DescribeTransitGatewayRouteTableAnnouncementsOutput, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeOpDocumentDescribeTransitGatewayVpcAttachmentsOutput(v **DescribeTransitGatewayVpcAttachmentsOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *DescribeTransitGatewayRouteTableAnnouncementsOutput + var sv *DescribeTransitGatewayVpcAttachmentsOutput if *v == nil { - sv = &DescribeTransitGatewayRouteTableAnnouncementsOutput{} + sv = &DescribeTransitGatewayVpcAttachmentsOutput{} } else { sv = *v } @@ -162892,9 +165664,9 @@ func awsEc2query_deserializeOpDocumentDescribeTransitGatewayRouteTableAnnounceme sv.NextToken = ptr.String(xtv) } - case strings.EqualFold("transitGatewayRouteTableAnnouncements", t.Name.Local): + case strings.EqualFold("transitGatewayVpcAttachments", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentTransitGatewayRouteTableAnnouncementList(&sv.TransitGatewayRouteTableAnnouncements, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentTransitGatewayVpcAttachmentList(&sv.TransitGatewayVpcAttachments, nodeDecoder); err != nil { return err } @@ -162912,13 +165684,13 @@ func awsEc2query_deserializeOpDocumentDescribeTransitGatewayRouteTableAnnounceme return nil } -func awsEc2query_deserializeOpDocumentDescribeTransitGatewayRouteTablesOutput(v **DescribeTransitGatewayRouteTablesOutput, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeOpDocumentDescribeTrunkInterfaceAssociationsOutput(v **DescribeTrunkInterfaceAssociationsOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *DescribeTransitGatewayRouteTablesOutput + var sv *DescribeTrunkInterfaceAssociationsOutput if *v == nil { - sv = &DescribeTransitGatewayRouteTablesOutput{} + sv = &DescribeTrunkInterfaceAssociationsOutput{} } else { sv = *v } @@ -162934,6 +165706,12 @@ func awsEc2query_deserializeOpDocumentDescribeTransitGatewayRouteTablesOutput(v originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { + case strings.EqualFold("interfaceAssociationSet", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentTrunkInterfaceAssociationList(&sv.InterfaceAssociations, nodeDecoder); err != nil { + return err + } + case strings.EqualFold("nextToken", t.Name.Local): val, err := decoder.Value() if err != nil { @@ -162947,12 +165725,6 @@ func awsEc2query_deserializeOpDocumentDescribeTransitGatewayRouteTablesOutput(v sv.NextToken = ptr.String(xtv) } - case strings.EqualFold("transitGatewayRouteTables", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentTransitGatewayRouteTableList(&sv.TransitGatewayRouteTables, nodeDecoder); err != nil { - return err - } - default: // Do nothing and ignore the unexpected tag element err = decoder.Decoder.Skip() @@ -162967,13 +165739,13 @@ func awsEc2query_deserializeOpDocumentDescribeTransitGatewayRouteTablesOutput(v return nil } -func awsEc2query_deserializeOpDocumentDescribeTransitGatewaysOutput(v **DescribeTransitGatewaysOutput, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeOpDocumentDescribeVerifiedAccessEndpointsOutput(v **DescribeVerifiedAccessEndpointsOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *DescribeTransitGatewaysOutput + var sv *DescribeVerifiedAccessEndpointsOutput if *v == nil { - sv = &DescribeTransitGatewaysOutput{} + sv = &DescribeVerifiedAccessEndpointsOutput{} } else { sv = *v } @@ -163002,9 +165774,9 @@ func awsEc2query_deserializeOpDocumentDescribeTransitGatewaysOutput(v **Describe sv.NextToken = ptr.String(xtv) } - case strings.EqualFold("transitGatewaySet", t.Name.Local): + case strings.EqualFold("verifiedAccessEndpointSet", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentTransitGatewayList(&sv.TransitGateways, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentVerifiedAccessEndpointList(&sv.VerifiedAccessEndpoints, nodeDecoder); err != nil { return err } @@ -163022,13 +165794,13 @@ func awsEc2query_deserializeOpDocumentDescribeTransitGatewaysOutput(v **Describe return nil } -func awsEc2query_deserializeOpDocumentDescribeTransitGatewayVpcAttachmentsOutput(v **DescribeTransitGatewayVpcAttachmentsOutput, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeOpDocumentDescribeVerifiedAccessGroupsOutput(v **DescribeVerifiedAccessGroupsOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *DescribeTransitGatewayVpcAttachmentsOutput + var sv *DescribeVerifiedAccessGroupsOutput if *v == nil { - sv = &DescribeTransitGatewayVpcAttachmentsOutput{} + sv = &DescribeVerifiedAccessGroupsOutput{} } else { sv = *v } @@ -163057,9 +165829,9 @@ func awsEc2query_deserializeOpDocumentDescribeTransitGatewayVpcAttachmentsOutput sv.NextToken = ptr.String(xtv) } - case strings.EqualFold("transitGatewayVpcAttachments", t.Name.Local): + case strings.EqualFold("verifiedAccessGroupSet", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentTransitGatewayVpcAttachmentList(&sv.TransitGatewayVpcAttachments, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentVerifiedAccessGroupList(&sv.VerifiedAccessGroups, nodeDecoder); err != nil { return err } @@ -163077,13 +165849,13 @@ func awsEc2query_deserializeOpDocumentDescribeTransitGatewayVpcAttachmentsOutput return nil } -func awsEc2query_deserializeOpDocumentDescribeTrunkInterfaceAssociationsOutput(v **DescribeTrunkInterfaceAssociationsOutput, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeOpDocumentDescribeVerifiedAccessInstanceLoggingConfigurationsOutput(v **DescribeVerifiedAccessInstanceLoggingConfigurationsOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *DescribeTrunkInterfaceAssociationsOutput + var sv *DescribeVerifiedAccessInstanceLoggingConfigurationsOutput if *v == nil { - sv = &DescribeTrunkInterfaceAssociationsOutput{} + sv = &DescribeVerifiedAccessInstanceLoggingConfigurationsOutput{} } else { sv = *v } @@ -163099,9 +165871,9 @@ func awsEc2query_deserializeOpDocumentDescribeTrunkInterfaceAssociationsOutput(v originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("interfaceAssociationSet", t.Name.Local): + case strings.EqualFold("loggingConfigurationSet", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentTrunkInterfaceAssociationList(&sv.InterfaceAssociations, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentVerifiedAccessInstanceLoggingConfigurationList(&sv.LoggingConfigurations, nodeDecoder); err != nil { return err } @@ -163132,13 +165904,13 @@ func awsEc2query_deserializeOpDocumentDescribeTrunkInterfaceAssociationsOutput(v return nil } -func awsEc2query_deserializeOpDocumentDescribeVerifiedAccessEndpointsOutput(v **DescribeVerifiedAccessEndpointsOutput, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeOpDocumentDescribeVerifiedAccessInstancesOutput(v **DescribeVerifiedAccessInstancesOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *DescribeVerifiedAccessEndpointsOutput + var sv *DescribeVerifiedAccessInstancesOutput if *v == nil { - sv = &DescribeVerifiedAccessEndpointsOutput{} + sv = &DescribeVerifiedAccessInstancesOutput{} } else { sv = *v } @@ -163167,9 +165939,9 @@ func awsEc2query_deserializeOpDocumentDescribeVerifiedAccessEndpointsOutput(v ** sv.NextToken = ptr.String(xtv) } - case strings.EqualFold("verifiedAccessEndpointSet", t.Name.Local): + case strings.EqualFold("verifiedAccessInstanceSet", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentVerifiedAccessEndpointList(&sv.VerifiedAccessEndpoints, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentVerifiedAccessInstanceList(&sv.VerifiedAccessInstances, nodeDecoder); err != nil { return err } @@ -163187,13 +165959,13 @@ func awsEc2query_deserializeOpDocumentDescribeVerifiedAccessEndpointsOutput(v ** return nil } -func awsEc2query_deserializeOpDocumentDescribeVerifiedAccessGroupsOutput(v **DescribeVerifiedAccessGroupsOutput, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeOpDocumentDescribeVerifiedAccessTrustProvidersOutput(v **DescribeVerifiedAccessTrustProvidersOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *DescribeVerifiedAccessGroupsOutput + var sv *DescribeVerifiedAccessTrustProvidersOutput if *v == nil { - sv = &DescribeVerifiedAccessGroupsOutput{} + sv = &DescribeVerifiedAccessTrustProvidersOutput{} } else { sv = *v } @@ -163222,9 +165994,9 @@ func awsEc2query_deserializeOpDocumentDescribeVerifiedAccessGroupsOutput(v **Des sv.NextToken = ptr.String(xtv) } - case strings.EqualFold("verifiedAccessGroupSet", t.Name.Local): + case strings.EqualFold("verifiedAccessTrustProviderSet", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentVerifiedAccessGroupList(&sv.VerifiedAccessGroups, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentVerifiedAccessTrustProviderList(&sv.VerifiedAccessTrustProviders, nodeDecoder); err != nil { return err } @@ -163242,13 +166014,13 @@ func awsEc2query_deserializeOpDocumentDescribeVerifiedAccessGroupsOutput(v **Des return nil } -func awsEc2query_deserializeOpDocumentDescribeVerifiedAccessInstanceLoggingConfigurationsOutput(v **DescribeVerifiedAccessInstanceLoggingConfigurationsOutput, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeOpDocumentDescribeVolumeAttributeOutput(v **DescribeVolumeAttributeOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *DescribeVerifiedAccessInstanceLoggingConfigurationsOutput + var sv *DescribeVolumeAttributeOutput if *v == nil { - sv = &DescribeVerifiedAccessInstanceLoggingConfigurationsOutput{} + sv = &DescribeVolumeAttributeOutput{} } else { sv = *v } @@ -163264,13 +166036,19 @@ func awsEc2query_deserializeOpDocumentDescribeVerifiedAccessInstanceLoggingConfi originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("loggingConfigurationSet", t.Name.Local): + case strings.EqualFold("autoEnableIO", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentVerifiedAccessInstanceLoggingConfigurationList(&sv.LoggingConfigurations, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentAttributeBooleanValue(&sv.AutoEnableIO, nodeDecoder); err != nil { return err } - case strings.EqualFold("nextToken", t.Name.Local): + case strings.EqualFold("productCodes", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentProductCodeList(&sv.ProductCodes, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("volumeId", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -163280,7 +166058,7 @@ func awsEc2query_deserializeOpDocumentDescribeVerifiedAccessInstanceLoggingConfi } { xtv := string(val) - sv.NextToken = ptr.String(xtv) + sv.VolumeId = ptr.String(xtv) } default: @@ -163297,13 +166075,13 @@ func awsEc2query_deserializeOpDocumentDescribeVerifiedAccessInstanceLoggingConfi return nil } -func awsEc2query_deserializeOpDocumentDescribeVerifiedAccessInstancesOutput(v **DescribeVerifiedAccessInstancesOutput, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeOpDocumentDescribeVolumesModificationsOutput(v **DescribeVolumesModificationsOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *DescribeVerifiedAccessInstancesOutput + var sv *DescribeVolumesModificationsOutput if *v == nil { - sv = &DescribeVerifiedAccessInstancesOutput{} + sv = &DescribeVolumesModificationsOutput{} } else { sv = *v } @@ -163332,9 +166110,9 @@ func awsEc2query_deserializeOpDocumentDescribeVerifiedAccessInstancesOutput(v ** sv.NextToken = ptr.String(xtv) } - case strings.EqualFold("verifiedAccessInstanceSet", t.Name.Local): + case strings.EqualFold("volumeModificationSet", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentVerifiedAccessInstanceList(&sv.VerifiedAccessInstances, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentVolumeModificationList(&sv.VolumesModifications, nodeDecoder); err != nil { return err } @@ -163352,13 +166130,13 @@ func awsEc2query_deserializeOpDocumentDescribeVerifiedAccessInstancesOutput(v ** return nil } -func awsEc2query_deserializeOpDocumentDescribeVerifiedAccessTrustProvidersOutput(v **DescribeVerifiedAccessTrustProvidersOutput, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeOpDocumentDescribeVolumesOutput(v **DescribeVolumesOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *DescribeVerifiedAccessTrustProvidersOutput + var sv *DescribeVolumesOutput if *v == nil { - sv = &DescribeVerifiedAccessTrustProvidersOutput{} + sv = &DescribeVolumesOutput{} } else { sv = *v } @@ -163387,9 +166165,9 @@ func awsEc2query_deserializeOpDocumentDescribeVerifiedAccessTrustProvidersOutput sv.NextToken = ptr.String(xtv) } - case strings.EqualFold("verifiedAccessTrustProviderSet", t.Name.Local): + case strings.EqualFold("volumeSet", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentVerifiedAccessTrustProviderList(&sv.VerifiedAccessTrustProviders, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentVolumeList(&sv.Volumes, nodeDecoder); err != nil { return err } @@ -163407,13 +166185,13 @@ func awsEc2query_deserializeOpDocumentDescribeVerifiedAccessTrustProvidersOutput return nil } -func awsEc2query_deserializeOpDocumentDescribeVolumeAttributeOutput(v **DescribeVolumeAttributeOutput, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeOpDocumentDescribeVolumeStatusOutput(v **DescribeVolumeStatusOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *DescribeVolumeAttributeOutput + var sv *DescribeVolumeStatusOutput if *v == nil { - sv = &DescribeVolumeAttributeOutput{} + sv = &DescribeVolumeStatusOutput{} } else { sv = *v } @@ -163429,19 +166207,7 @@ func awsEc2query_deserializeOpDocumentDescribeVolumeAttributeOutput(v **Describe originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("autoEnableIO", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentAttributeBooleanValue(&sv.AutoEnableIO, nodeDecoder); err != nil { - return err - } - - case strings.EqualFold("productCodes", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentProductCodeList(&sv.ProductCodes, nodeDecoder); err != nil { - return err - } - - case strings.EqualFold("volumeId", t.Name.Local): + case strings.EqualFold("nextToken", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -163451,7 +166217,13 @@ func awsEc2query_deserializeOpDocumentDescribeVolumeAttributeOutput(v **Describe } { xtv := string(val) - sv.VolumeId = ptr.String(xtv) + sv.NextToken = ptr.String(xtv) + } + + case strings.EqualFold("volumeStatusSet", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentVolumeStatusList(&sv.VolumeStatuses, nodeDecoder); err != nil { + return err } default: @@ -163468,13 +166240,13 @@ func awsEc2query_deserializeOpDocumentDescribeVolumeAttributeOutput(v **Describe return nil } -func awsEc2query_deserializeOpDocumentDescribeVolumesModificationsOutput(v **DescribeVolumesModificationsOutput, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeOpDocumentDescribeVpcAttributeOutput(v **DescribeVpcAttributeOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *DescribeVolumesModificationsOutput + var sv *DescribeVpcAttributeOutput if *v == nil { - sv = &DescribeVolumesModificationsOutput{} + sv = &DescribeVpcAttributeOutput{} } else { sv = *v } @@ -163490,62 +166262,25 @@ func awsEc2query_deserializeOpDocumentDescribeVolumesModificationsOutput(v **Des originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("nextToken", t.Name.Local): - val, err := decoder.Value() - if err != nil { + case strings.EqualFold("enableDnsHostnames", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentAttributeBooleanValue(&sv.EnableDnsHostnames, nodeDecoder); err != nil { return err } - if val == nil { - break - } - { - xtv := string(val) - sv.NextToken = ptr.String(xtv) - } - case strings.EqualFold("volumeModificationSet", t.Name.Local): + case strings.EqualFold("enableDnsSupport", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentVolumeModificationList(&sv.VolumesModifications, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentAttributeBooleanValue(&sv.EnableDnsSupport, nodeDecoder); err != nil { return err } - default: - // Do nothing and ignore the unexpected tag element - err = decoder.Decoder.Skip() - if err != nil { + case strings.EqualFold("enableNetworkAddressUsageMetrics", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentAttributeBooleanValue(&sv.EnableNetworkAddressUsageMetrics, nodeDecoder); err != nil { return err } - } - decoder = originalDecoder - } - *v = sv - return nil -} - -func awsEc2query_deserializeOpDocumentDescribeVolumesOutput(v **DescribeVolumesOutput, decoder smithyxml.NodeDecoder) error { - if v == nil { - return fmt.Errorf("unexpected nil of type %T", v) - } - var sv *DescribeVolumesOutput - if *v == nil { - sv = &DescribeVolumesOutput{} - } else { - sv = *v - } - - for { - t, done, err := decoder.Token() - if err != nil { - return err - } - if done { - break - } - originalDecoder := decoder - decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) - switch { - case strings.EqualFold("nextToken", t.Name.Local): + case strings.EqualFold("vpcId", t.Name.Local): val, err := decoder.Value() if err != nil { return err @@ -163555,13 +166290,7 @@ func awsEc2query_deserializeOpDocumentDescribeVolumesOutput(v **DescribeVolumesO } { xtv := string(val) - sv.NextToken = ptr.String(xtv) - } - - case strings.EqualFold("volumeSet", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentVolumeList(&sv.Volumes, nodeDecoder); err != nil { - return err + sv.VpcId = ptr.String(xtv) } default: @@ -163578,13 +166307,13 @@ func awsEc2query_deserializeOpDocumentDescribeVolumesOutput(v **DescribeVolumesO return nil } -func awsEc2query_deserializeOpDocumentDescribeVolumeStatusOutput(v **DescribeVolumeStatusOutput, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeOpDocumentDescribeVpcBlockPublicAccessExclusionsOutput(v **DescribeVpcBlockPublicAccessExclusionsOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *DescribeVolumeStatusOutput + var sv *DescribeVpcBlockPublicAccessExclusionsOutput if *v == nil { - sv = &DescribeVolumeStatusOutput{} + sv = &DescribeVpcBlockPublicAccessExclusionsOutput{} } else { sv = *v } @@ -163613,9 +166342,9 @@ func awsEc2query_deserializeOpDocumentDescribeVolumeStatusOutput(v **DescribeVol sv.NextToken = ptr.String(xtv) } - case strings.EqualFold("volumeStatusSet", t.Name.Local): + case strings.EqualFold("vpcBlockPublicAccessExclusionSet", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentVolumeStatusList(&sv.VolumeStatuses, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentVpcBlockPublicAccessExclusionList(&sv.VpcBlockPublicAccessExclusions, nodeDecoder); err != nil { return err } @@ -163633,13 +166362,13 @@ func awsEc2query_deserializeOpDocumentDescribeVolumeStatusOutput(v **DescribeVol return nil } -func awsEc2query_deserializeOpDocumentDescribeVpcAttributeOutput(v **DescribeVpcAttributeOutput, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeOpDocumentDescribeVpcBlockPublicAccessOptionsOutput(v **DescribeVpcBlockPublicAccessOptionsOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *DescribeVpcAttributeOutput + var sv *DescribeVpcBlockPublicAccessOptionsOutput if *v == nil { - sv = &DescribeVpcAttributeOutput{} + sv = &DescribeVpcBlockPublicAccessOptionsOutput{} } else { sv = *v } @@ -163655,37 +166384,12 @@ func awsEc2query_deserializeOpDocumentDescribeVpcAttributeOutput(v **DescribeVpc originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("enableDnsHostnames", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentAttributeBooleanValue(&sv.EnableDnsHostnames, nodeDecoder); err != nil { - return err - } - - case strings.EqualFold("enableDnsSupport", t.Name.Local): + case strings.EqualFold("vpcBlockPublicAccessOptions", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentAttributeBooleanValue(&sv.EnableDnsSupport, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentVpcBlockPublicAccessOptions(&sv.VpcBlockPublicAccessOptions, nodeDecoder); err != nil { return err } - case strings.EqualFold("enableNetworkAddressUsageMetrics", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentAttributeBooleanValue(&sv.EnableNetworkAddressUsageMetrics, nodeDecoder); err != nil { - return err - } - - case strings.EqualFold("vpcId", t.Name.Local): - val, err := decoder.Value() - if err != nil { - return err - } - if val == nil { - break - } - { - xtv := string(val) - sv.VpcId = ptr.String(xtv) - } - default: // Do nothing and ignore the unexpected tag element err = decoder.Decoder.Skip() @@ -173380,6 +176084,90 @@ func awsEc2query_deserializeOpDocumentModifyVolumeOutput(v **ModifyVolumeOutput, return nil } +func awsEc2query_deserializeOpDocumentModifyVpcBlockPublicAccessExclusionOutput(v **ModifyVpcBlockPublicAccessExclusionOutput, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *ModifyVpcBlockPublicAccessExclusionOutput + if *v == nil { + sv = &ModifyVpcBlockPublicAccessExclusionOutput{} + } else { + sv = *v + } + + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) + switch { + case strings.EqualFold("vpcBlockPublicAccessExclusion", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentVpcBlockPublicAccessExclusion(&sv.VpcBlockPublicAccessExclusion, nodeDecoder); err != nil { + return err + } + + default: + // Do nothing and ignore the unexpected tag element + err = decoder.Decoder.Skip() + if err != nil { + return err + } + + } + decoder = originalDecoder + } + *v = sv + return nil +} + +func awsEc2query_deserializeOpDocumentModifyVpcBlockPublicAccessOptionsOutput(v **ModifyVpcBlockPublicAccessOptionsOutput, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *ModifyVpcBlockPublicAccessOptionsOutput + if *v == nil { + sv = &ModifyVpcBlockPublicAccessOptionsOutput{} + } else { + sv = *v + } + + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) + switch { + case strings.EqualFold("vpcBlockPublicAccessOptions", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentVpcBlockPublicAccessOptions(&sv.VpcBlockPublicAccessOptions, nodeDecoder); err != nil { + return err + } + + default: + // Do nothing and ignore the unexpected tag element + err = decoder.Decoder.Skip() + if err != nil { + return err + } + + } + decoder = originalDecoder + } + *v = sv + return nil +} + func awsEc2query_deserializeOpDocumentModifyVpcEndpointConnectionNotificationOutput(v **ModifyVpcEndpointConnectionNotificationOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -174306,6 +177094,48 @@ func awsEc2query_deserializeOpDocumentProvisionPublicIpv4PoolCidrOutput(v **Prov return nil } +func awsEc2query_deserializeOpDocumentPurchaseCapacityBlockExtensionOutput(v **PurchaseCapacityBlockExtensionOutput, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *PurchaseCapacityBlockExtensionOutput + if *v == nil { + sv = &PurchaseCapacityBlockExtensionOutput{} + } else { + sv = *v + } + + for { + t, done, err := decoder.Token() + if err != nil { + return err + } + if done { + break + } + originalDecoder := decoder + decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) + switch { + case strings.EqualFold("capacityBlockExtensionSet", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentCapacityBlockExtensionSet(&sv.CapacityBlockExtensions, nodeDecoder); err != nil { + return err + } + + default: + // Do nothing and ignore the unexpected tag element + err = decoder.Decoder.Skip() + if err != nil { + return err + } + + } + decoder = originalDecoder + } + *v = sv + return nil +} + func awsEc2query_deserializeOpDocumentPurchaseCapacityBlockOutput(v **PurchaseCapacityBlockOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/generated.json b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/generated.json index 7631a3dd..63cdf4d2 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/generated.json +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/generated.json @@ -146,6 +146,7 @@ "api_op_CreateVerifiedAccessTrustProvider.go", "api_op_CreateVolume.go", "api_op_CreateVpc.go", + "api_op_CreateVpcBlockPublicAccessExclusion.go", "api_op_CreateVpcEndpoint.go", "api_op_CreateVpcEndpointConnectionNotification.go", "api_op_CreateVpcEndpointServiceConfiguration.go", @@ -221,6 +222,7 @@ "api_op_DeleteVerifiedAccessTrustProvider.go", "api_op_DeleteVolume.go", "api_op_DeleteVpc.go", + "api_op_DeleteVpcBlockPublicAccessExclusion.go", "api_op_DeleteVpcEndpointConnectionNotifications.go", "api_op_DeleteVpcEndpointServiceConfigurations.go", "api_op_DeleteVpcEndpoints.go", @@ -245,6 +247,8 @@ "api_op_DescribeAwsNetworkPerformanceMetricSubscriptions.go", "api_op_DescribeBundleTasks.go", "api_op_DescribeByoipCidrs.go", + "api_op_DescribeCapacityBlockExtensionHistory.go", + "api_op_DescribeCapacityBlockExtensionOfferings.go", "api_op_DescribeCapacityBlockOfferings.go", "api_op_DescribeCapacityReservationBillingRequests.go", "api_op_DescribeCapacityReservationFleets.go", @@ -379,6 +383,8 @@ "api_op_DescribeVolumes.go", "api_op_DescribeVolumesModifications.go", "api_op_DescribeVpcAttribute.go", + "api_op_DescribeVpcBlockPublicAccessExclusions.go", + "api_op_DescribeVpcBlockPublicAccessOptions.go", "api_op_DescribeVpcClassicLink.go", "api_op_DescribeVpcClassicLinkDnsSupport.go", "api_op_DescribeVpcEndpointConnectionNotifications.go", @@ -565,6 +571,8 @@ "api_op_ModifyVolume.go", "api_op_ModifyVolumeAttribute.go", "api_op_ModifyVpcAttribute.go", + "api_op_ModifyVpcBlockPublicAccessExclusion.go", + "api_op_ModifyVpcBlockPublicAccessOptions.go", "api_op_ModifyVpcEndpoint.go", "api_op_ModifyVpcEndpointConnectionNotification.go", "api_op_ModifyVpcEndpointServiceConfiguration.go", @@ -585,6 +593,7 @@ "api_op_ProvisionIpamPoolCidr.go", "api_op_ProvisionPublicIpv4PoolCidr.go", "api_op_PurchaseCapacityBlock.go", + "api_op_PurchaseCapacityBlockExtension.go", "api_op_PurchaseHostReservation.go", "api_op_PurchaseReservedInstancesOffering.go", "api_op_PurchaseScheduledInstances.go", diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/go_module_metadata.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/go_module_metadata.go index 443248fe..2640bc40 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/go_module_metadata.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/go_module_metadata.go @@ -3,4 +3,4 @@ package ec2 // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.189.0" +const goModuleVersion = "1.193.0" diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/serializers.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/serializers.go index 7d889125..302d22b0 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/serializers.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/serializers.go @@ -9468,6 +9468,76 @@ func (m *awsEc2query_serializeOpCreateVpc) HandleSerialize(ctx context.Context, return next.HandleSerialize(ctx, in) } +type awsEc2query_serializeOpCreateVpcBlockPublicAccessExclusion struct { +} + +func (*awsEc2query_serializeOpCreateVpcBlockPublicAccessExclusion) ID() string { + return "OperationSerializer" +} + +func (m *awsEc2query_serializeOpCreateVpcBlockPublicAccessExclusion) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + _, span := tracing.StartSpan(ctx, "OperationSerializer") + endTimer := startMetricTimer(ctx, "client.call.serialization_duration") + defer endTimer() + defer span.End() + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*CreateVpcBlockPublicAccessExclusionInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + operationPath := "/" + if len(request.Request.URL.Path) == 0 { + request.Request.URL.Path = operationPath + } else { + request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath) + if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' { + request.Request.URL.Path += "/" + } + } + request.Request.Method = "POST" + httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + httpBindingEncoder.SetHeader("Content-Type").String("application/x-www-form-urlencoded") + + bodyWriter := bytes.NewBuffer(nil) + bodyEncoder := query.NewEncoder(bodyWriter) + body := bodyEncoder.Object() + body.Key("Action").String("CreateVpcBlockPublicAccessExclusion") + body.Key("Version").String("2016-11-15") + + if err := awsEc2query_serializeOpDocumentCreateVpcBlockPublicAccessExclusionInput(input, bodyEncoder.Value); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + err = bodyEncoder.Encode() + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request, err = request.SetStream(bytes.NewReader(bodyWriter.Bytes())); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + endTimer() + span.End() + return next.HandleSerialize(ctx, in) +} + type awsEc2query_serializeOpCreateVpcEndpoint struct { } @@ -14718,6 +14788,76 @@ func (m *awsEc2query_serializeOpDeleteVpc) HandleSerialize(ctx context.Context, return next.HandleSerialize(ctx, in) } +type awsEc2query_serializeOpDeleteVpcBlockPublicAccessExclusion struct { +} + +func (*awsEc2query_serializeOpDeleteVpcBlockPublicAccessExclusion) ID() string { + return "OperationSerializer" +} + +func (m *awsEc2query_serializeOpDeleteVpcBlockPublicAccessExclusion) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + _, span := tracing.StartSpan(ctx, "OperationSerializer") + endTimer := startMetricTimer(ctx, "client.call.serialization_duration") + defer endTimer() + defer span.End() + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*DeleteVpcBlockPublicAccessExclusionInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + operationPath := "/" + if len(request.Request.URL.Path) == 0 { + request.Request.URL.Path = operationPath + } else { + request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath) + if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' { + request.Request.URL.Path += "/" + } + } + request.Request.Method = "POST" + httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + httpBindingEncoder.SetHeader("Content-Type").String("application/x-www-form-urlencoded") + + bodyWriter := bytes.NewBuffer(nil) + bodyEncoder := query.NewEncoder(bodyWriter) + body := bodyEncoder.Object() + body.Key("Action").String("DeleteVpcBlockPublicAccessExclusion") + body.Key("Version").String("2016-11-15") + + if err := awsEc2query_serializeOpDocumentDeleteVpcBlockPublicAccessExclusionInput(input, bodyEncoder.Value); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + err = bodyEncoder.Encode() + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request, err = request.SetStream(bytes.NewReader(bodyWriter.Bytes())); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + endTimer() + span.End() + return next.HandleSerialize(ctx, in) +} + type awsEc2query_serializeOpDeleteVpcEndpointConnectionNotifications struct { } @@ -16398,6 +16538,146 @@ func (m *awsEc2query_serializeOpDescribeByoipCidrs) HandleSerialize(ctx context. return next.HandleSerialize(ctx, in) } +type awsEc2query_serializeOpDescribeCapacityBlockExtensionHistory struct { +} + +func (*awsEc2query_serializeOpDescribeCapacityBlockExtensionHistory) ID() string { + return "OperationSerializer" +} + +func (m *awsEc2query_serializeOpDescribeCapacityBlockExtensionHistory) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + _, span := tracing.StartSpan(ctx, "OperationSerializer") + endTimer := startMetricTimer(ctx, "client.call.serialization_duration") + defer endTimer() + defer span.End() + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*DescribeCapacityBlockExtensionHistoryInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + operationPath := "/" + if len(request.Request.URL.Path) == 0 { + request.Request.URL.Path = operationPath + } else { + request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath) + if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' { + request.Request.URL.Path += "/" + } + } + request.Request.Method = "POST" + httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + httpBindingEncoder.SetHeader("Content-Type").String("application/x-www-form-urlencoded") + + bodyWriter := bytes.NewBuffer(nil) + bodyEncoder := query.NewEncoder(bodyWriter) + body := bodyEncoder.Object() + body.Key("Action").String("DescribeCapacityBlockExtensionHistory") + body.Key("Version").String("2016-11-15") + + if err := awsEc2query_serializeOpDocumentDescribeCapacityBlockExtensionHistoryInput(input, bodyEncoder.Value); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + err = bodyEncoder.Encode() + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request, err = request.SetStream(bytes.NewReader(bodyWriter.Bytes())); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + endTimer() + span.End() + return next.HandleSerialize(ctx, in) +} + +type awsEc2query_serializeOpDescribeCapacityBlockExtensionOfferings struct { +} + +func (*awsEc2query_serializeOpDescribeCapacityBlockExtensionOfferings) ID() string { + return "OperationSerializer" +} + +func (m *awsEc2query_serializeOpDescribeCapacityBlockExtensionOfferings) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + _, span := tracing.StartSpan(ctx, "OperationSerializer") + endTimer := startMetricTimer(ctx, "client.call.serialization_duration") + defer endTimer() + defer span.End() + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*DescribeCapacityBlockExtensionOfferingsInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + operationPath := "/" + if len(request.Request.URL.Path) == 0 { + request.Request.URL.Path = operationPath + } else { + request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath) + if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' { + request.Request.URL.Path += "/" + } + } + request.Request.Method = "POST" + httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + httpBindingEncoder.SetHeader("Content-Type").String("application/x-www-form-urlencoded") + + bodyWriter := bytes.NewBuffer(nil) + bodyEncoder := query.NewEncoder(bodyWriter) + body := bodyEncoder.Object() + body.Key("Action").String("DescribeCapacityBlockExtensionOfferings") + body.Key("Version").String("2016-11-15") + + if err := awsEc2query_serializeOpDocumentDescribeCapacityBlockExtensionOfferingsInput(input, bodyEncoder.Value); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + err = bodyEncoder.Encode() + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request, err = request.SetStream(bytes.NewReader(bodyWriter.Bytes())); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + endTimer() + span.End() + return next.HandleSerialize(ctx, in) +} + type awsEc2query_serializeOpDescribeCapacityBlockOfferings struct { } @@ -25778,14 +26058,14 @@ func (m *awsEc2query_serializeOpDescribeVpcAttribute) HandleSerialize(ctx contex return next.HandleSerialize(ctx, in) } -type awsEc2query_serializeOpDescribeVpcClassicLink struct { +type awsEc2query_serializeOpDescribeVpcBlockPublicAccessExclusions struct { } -func (*awsEc2query_serializeOpDescribeVpcClassicLink) ID() string { +func (*awsEc2query_serializeOpDescribeVpcBlockPublicAccessExclusions) ID() string { return "OperationSerializer" } -func (m *awsEc2query_serializeOpDescribeVpcClassicLink) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( +func (m *awsEc2query_serializeOpDescribeVpcBlockPublicAccessExclusions) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, ) { _, span := tracing.StartSpan(ctx, "OperationSerializer") @@ -25797,7 +26077,147 @@ func (m *awsEc2query_serializeOpDescribeVpcClassicLink) HandleSerialize(ctx cont return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} } - input, ok := in.Parameters.(*DescribeVpcClassicLinkInput) + input, ok := in.Parameters.(*DescribeVpcBlockPublicAccessExclusionsInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + operationPath := "/" + if len(request.Request.URL.Path) == 0 { + request.Request.URL.Path = operationPath + } else { + request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath) + if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' { + request.Request.URL.Path += "/" + } + } + request.Request.Method = "POST" + httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + httpBindingEncoder.SetHeader("Content-Type").String("application/x-www-form-urlencoded") + + bodyWriter := bytes.NewBuffer(nil) + bodyEncoder := query.NewEncoder(bodyWriter) + body := bodyEncoder.Object() + body.Key("Action").String("DescribeVpcBlockPublicAccessExclusions") + body.Key("Version").String("2016-11-15") + + if err := awsEc2query_serializeOpDocumentDescribeVpcBlockPublicAccessExclusionsInput(input, bodyEncoder.Value); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + err = bodyEncoder.Encode() + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request, err = request.SetStream(bytes.NewReader(bodyWriter.Bytes())); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + endTimer() + span.End() + return next.HandleSerialize(ctx, in) +} + +type awsEc2query_serializeOpDescribeVpcBlockPublicAccessOptions struct { +} + +func (*awsEc2query_serializeOpDescribeVpcBlockPublicAccessOptions) ID() string { + return "OperationSerializer" +} + +func (m *awsEc2query_serializeOpDescribeVpcBlockPublicAccessOptions) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + _, span := tracing.StartSpan(ctx, "OperationSerializer") + endTimer := startMetricTimer(ctx, "client.call.serialization_duration") + defer endTimer() + defer span.End() + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*DescribeVpcBlockPublicAccessOptionsInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + operationPath := "/" + if len(request.Request.URL.Path) == 0 { + request.Request.URL.Path = operationPath + } else { + request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath) + if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' { + request.Request.URL.Path += "/" + } + } + request.Request.Method = "POST" + httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + httpBindingEncoder.SetHeader("Content-Type").String("application/x-www-form-urlencoded") + + bodyWriter := bytes.NewBuffer(nil) + bodyEncoder := query.NewEncoder(bodyWriter) + body := bodyEncoder.Object() + body.Key("Action").String("DescribeVpcBlockPublicAccessOptions") + body.Key("Version").String("2016-11-15") + + if err := awsEc2query_serializeOpDocumentDescribeVpcBlockPublicAccessOptionsInput(input, bodyEncoder.Value); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + err = bodyEncoder.Encode() + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request, err = request.SetStream(bytes.NewReader(bodyWriter.Bytes())); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + endTimer() + span.End() + return next.HandleSerialize(ctx, in) +} + +type awsEc2query_serializeOpDescribeVpcClassicLink struct { +} + +func (*awsEc2query_serializeOpDescribeVpcClassicLink) ID() string { + return "OperationSerializer" +} + +func (m *awsEc2query_serializeOpDescribeVpcClassicLink) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + _, span := tracing.StartSpan(ctx, "OperationSerializer") + endTimer := startMetricTimer(ctx, "client.call.serialization_duration") + defer endTimer() + defer span.End() + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*DescribeVpcClassicLinkInput) _ = input if !ok { return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} @@ -38798,6 +39218,146 @@ func (m *awsEc2query_serializeOpModifyVpcAttribute) HandleSerialize(ctx context. return next.HandleSerialize(ctx, in) } +type awsEc2query_serializeOpModifyVpcBlockPublicAccessExclusion struct { +} + +func (*awsEc2query_serializeOpModifyVpcBlockPublicAccessExclusion) ID() string { + return "OperationSerializer" +} + +func (m *awsEc2query_serializeOpModifyVpcBlockPublicAccessExclusion) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + _, span := tracing.StartSpan(ctx, "OperationSerializer") + endTimer := startMetricTimer(ctx, "client.call.serialization_duration") + defer endTimer() + defer span.End() + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*ModifyVpcBlockPublicAccessExclusionInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + operationPath := "/" + if len(request.Request.URL.Path) == 0 { + request.Request.URL.Path = operationPath + } else { + request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath) + if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' { + request.Request.URL.Path += "/" + } + } + request.Request.Method = "POST" + httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + httpBindingEncoder.SetHeader("Content-Type").String("application/x-www-form-urlencoded") + + bodyWriter := bytes.NewBuffer(nil) + bodyEncoder := query.NewEncoder(bodyWriter) + body := bodyEncoder.Object() + body.Key("Action").String("ModifyVpcBlockPublicAccessExclusion") + body.Key("Version").String("2016-11-15") + + if err := awsEc2query_serializeOpDocumentModifyVpcBlockPublicAccessExclusionInput(input, bodyEncoder.Value); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + err = bodyEncoder.Encode() + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request, err = request.SetStream(bytes.NewReader(bodyWriter.Bytes())); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + endTimer() + span.End() + return next.HandleSerialize(ctx, in) +} + +type awsEc2query_serializeOpModifyVpcBlockPublicAccessOptions struct { +} + +func (*awsEc2query_serializeOpModifyVpcBlockPublicAccessOptions) ID() string { + return "OperationSerializer" +} + +func (m *awsEc2query_serializeOpModifyVpcBlockPublicAccessOptions) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + _, span := tracing.StartSpan(ctx, "OperationSerializer") + endTimer := startMetricTimer(ctx, "client.call.serialization_duration") + defer endTimer() + defer span.End() + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*ModifyVpcBlockPublicAccessOptionsInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + operationPath := "/" + if len(request.Request.URL.Path) == 0 { + request.Request.URL.Path = operationPath + } else { + request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath) + if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' { + request.Request.URL.Path += "/" + } + } + request.Request.Method = "POST" + httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + httpBindingEncoder.SetHeader("Content-Type").String("application/x-www-form-urlencoded") + + bodyWriter := bytes.NewBuffer(nil) + bodyEncoder := query.NewEncoder(bodyWriter) + body := bodyEncoder.Object() + body.Key("Action").String("ModifyVpcBlockPublicAccessOptions") + body.Key("Version").String("2016-11-15") + + if err := awsEc2query_serializeOpDocumentModifyVpcBlockPublicAccessOptionsInput(input, bodyEncoder.Value); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + err = bodyEncoder.Encode() + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request, err = request.SetStream(bytes.NewReader(bodyWriter.Bytes())); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + endTimer() + span.End() + return next.HandleSerialize(ctx, in) +} + type awsEc2query_serializeOpModifyVpcEndpoint struct { } @@ -40198,6 +40758,76 @@ func (m *awsEc2query_serializeOpPurchaseCapacityBlock) HandleSerialize(ctx conte return next.HandleSerialize(ctx, in) } +type awsEc2query_serializeOpPurchaseCapacityBlockExtension struct { +} + +func (*awsEc2query_serializeOpPurchaseCapacityBlockExtension) ID() string { + return "OperationSerializer" +} + +func (m *awsEc2query_serializeOpPurchaseCapacityBlockExtension) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + _, span := tracing.StartSpan(ctx, "OperationSerializer") + endTimer := startMetricTimer(ctx, "client.call.serialization_duration") + defer endTimer() + defer span.End() + request, ok := in.Request.(*smithyhttp.Request) + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)} + } + + input, ok := in.Parameters.(*PurchaseCapacityBlockExtensionInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + operationPath := "/" + if len(request.Request.URL.Path) == 0 { + request.Request.URL.Path = operationPath + } else { + request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath) + if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' { + request.Request.URL.Path += "/" + } + } + request.Request.Method = "POST" + httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header) + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + httpBindingEncoder.SetHeader("Content-Type").String("application/x-www-form-urlencoded") + + bodyWriter := bytes.NewBuffer(nil) + bodyEncoder := query.NewEncoder(bodyWriter) + body := bodyEncoder.Object() + body.Key("Action").String("PurchaseCapacityBlockExtension") + body.Key("Version").String("2016-11-15") + + if err := awsEc2query_serializeOpDocumentPurchaseCapacityBlockExtensionInput(input, bodyEncoder.Value); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + err = bodyEncoder.Encode() + if err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request, err = request.SetStream(bytes.NewReader(bodyWriter.Bytes())); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + + if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil { + return out, metadata, &smithy.SerializationError{Err: err} + } + in.Request = request + + endTimer() + span.End() + return next.HandleSerialize(ctx, in) +} + type awsEc2query_serializeOpPurchaseHostReservation struct { } @@ -44797,6 +45427,33 @@ func awsEc2query_serializeDocumentAddIpamOperatingRegionSet(v []types.AddIpamOpe return nil } +func awsEc2query_serializeDocumentAddIpamOrganizationalUnitExclusion(v *types.AddIpamOrganizationalUnitExclusion, value query.Value) error { + object := value.Object() + _ = object + + if v.OrganizationsEntityPath != nil { + objectKey := object.Key("OrganizationsEntityPath") + objectKey.String(*v.OrganizationsEntityPath) + } + + return nil +} + +func awsEc2query_serializeDocumentAddIpamOrganizationalUnitExclusionSet(v []types.AddIpamOrganizationalUnitExclusion, value query.Value) error { + if len(v) == 0 { + return nil + } + array := value.Array("Member") + + for i := range v { + av := array.Value() + if err := awsEc2query_serializeDocumentAddIpamOrganizationalUnitExclusion(&v[i], av); err != nil { + return err + } + } + return nil +} + func awsEc2query_serializeDocumentAddPrefixListEntries(v []types.AddPrefixListEntry, value query.Value) error { if len(v) == 0 { return nil @@ -45050,6 +45707,34 @@ func awsEc2query_serializeDocumentBaselineEbsBandwidthMbpsRequest(v *types.Basel return nil } +func awsEc2query_serializeDocumentBaselinePerformanceFactors(v *types.BaselinePerformanceFactors, value query.Value) error { + object := value.Object() + _ = object + + if v.Cpu != nil { + objectKey := object.Key("Cpu") + if err := awsEc2query_serializeDocumentCpuPerformanceFactor(v.Cpu, objectKey); err != nil { + return err + } + } + + return nil +} + +func awsEc2query_serializeDocumentBaselinePerformanceFactorsRequest(v *types.BaselinePerformanceFactorsRequest, value query.Value) error { + object := value.Object() + _ = object + + if v.Cpu != nil { + objectKey := object.Key("Cpu") + if err := awsEc2query_serializeDocumentCpuPerformanceFactorRequest(v.Cpu, objectKey); err != nil { + return err + } + } + + return nil +} + func awsEc2query_serializeDocumentBillingProductList(v []string, value query.Value) error { if len(v) == 0 { return nil @@ -45592,6 +46277,34 @@ func awsEc2query_serializeDocumentCpuOptionsRequest(v *types.CpuOptionsRequest, return nil } +func awsEc2query_serializeDocumentCpuPerformanceFactor(v *types.CpuPerformanceFactor, value query.Value) error { + object := value.Object() + _ = object + + if v.References != nil { + objectKey := object.FlatKey("ReferenceSet") + if err := awsEc2query_serializeDocumentPerformanceFactorReferenceSet(v.References, objectKey); err != nil { + return err + } + } + + return nil +} + +func awsEc2query_serializeDocumentCpuPerformanceFactorRequest(v *types.CpuPerformanceFactorRequest, value query.Value) error { + object := value.Object() + _ = object + + if v.References != nil { + objectKey := object.FlatKey("Reference") + if err := awsEc2query_serializeDocumentPerformanceFactorReferenceSetRequest(v.References, objectKey); err != nil { + return err + } + } + + return nil +} + func awsEc2query_serializeDocumentCreateTransitGatewayConnectRequestOptions(v *types.CreateTransitGatewayConnectRequestOptions, value query.Value) error { object := value.Object() _ = object @@ -47770,6 +48483,13 @@ func awsEc2query_serializeDocumentInstanceRequirements(v *types.InstanceRequirem } } + if v.BaselinePerformanceFactors != nil { + objectKey := object.Key("BaselinePerformanceFactors") + if err := awsEc2query_serializeDocumentBaselinePerformanceFactors(v.BaselinePerformanceFactors, objectKey); err != nil { + return err + } + } + if len(v.BurstablePerformance) > 0 { objectKey := object.Key("BurstablePerformance") objectKey.String(string(v.BurstablePerformance)) @@ -47931,6 +48651,13 @@ func awsEc2query_serializeDocumentInstanceRequirementsRequest(v *types.InstanceR } } + if v.BaselinePerformanceFactors != nil { + objectKey := object.Key("BaselinePerformanceFactors") + if err := awsEc2query_serializeDocumentBaselinePerformanceFactorsRequest(v.BaselinePerformanceFactors, objectKey); err != nil { + return err + } + } + if len(v.BurstablePerformance) > 0 { objectKey := object.Key("BurstablePerformance") objectKey.String(string(v.BurstablePerformance)) @@ -50286,6 +51013,18 @@ func awsEc2query_serializeDocumentOnDemandOptionsRequest(v *types.OnDemandOption return nil } +func awsEc2query_serializeDocumentOperatorRequest(v *types.OperatorRequest, value query.Value) error { + object := value.Object() + _ = object + + if v.Principal != nil { + objectKey := object.Key("Principal") + objectKey.String(*v.Principal) + } + + return nil +} + func awsEc2query_serializeDocumentOrganizationalUnitArnStringList(v []string, value query.Value) error { if len(v) == 0 { return nil @@ -50455,6 +51194,60 @@ func awsEc2query_serializeDocumentPeeringConnectionOptionsRequest(v *types.Peeri return nil } +func awsEc2query_serializeDocumentPerformanceFactorReference(v *types.PerformanceFactorReference, value query.Value) error { + object := value.Object() + _ = object + + if v.InstanceFamily != nil { + objectKey := object.Key("InstanceFamily") + objectKey.String(*v.InstanceFamily) + } + + return nil +} + +func awsEc2query_serializeDocumentPerformanceFactorReferenceRequest(v *types.PerformanceFactorReferenceRequest, value query.Value) error { + object := value.Object() + _ = object + + if v.InstanceFamily != nil { + objectKey := object.Key("InstanceFamily") + objectKey.String(*v.InstanceFamily) + } + + return nil +} + +func awsEc2query_serializeDocumentPerformanceFactorReferenceSet(v []types.PerformanceFactorReference, value query.Value) error { + if len(v) == 0 { + return nil + } + array := value.Array("Item") + + for i := range v { + av := array.Value() + if err := awsEc2query_serializeDocumentPerformanceFactorReference(&v[i], av); err != nil { + return err + } + } + return nil +} + +func awsEc2query_serializeDocumentPerformanceFactorReferenceSetRequest(v []types.PerformanceFactorReferenceRequest, value query.Value) error { + if len(v) == 0 { + return nil + } + array := value.Array("Item") + + for i := range v { + av := array.Value() + if err := awsEc2query_serializeDocumentPerformanceFactorReferenceRequest(&v[i], av); err != nil { + return err + } + } + return nil +} + func awsEc2query_serializeDocumentPhase1DHGroupNumbersRequestList(v []types.Phase1DHGroupNumbersRequestListValue, value query.Value) error { if len(v) == 0 { return nil @@ -51071,6 +51864,33 @@ func awsEc2query_serializeDocumentRemoveIpamOperatingRegionSet(v []types.RemoveI return nil } +func awsEc2query_serializeDocumentRemoveIpamOrganizationalUnitExclusion(v *types.RemoveIpamOrganizationalUnitExclusion, value query.Value) error { + object := value.Object() + _ = object + + if v.OrganizationsEntityPath != nil { + objectKey := object.Key("OrganizationsEntityPath") + objectKey.String(*v.OrganizationsEntityPath) + } + + return nil +} + +func awsEc2query_serializeDocumentRemoveIpamOrganizationalUnitExclusionSet(v []types.RemoveIpamOrganizationalUnitExclusion, value query.Value) error { + if len(v) == 0 { + return nil + } + array := value.Array("Member") + + for i := range v { + av := array.Value() + if err := awsEc2query_serializeDocumentRemoveIpamOrganizationalUnitExclusion(&v[i], av); err != nil { + return err + } + } + return nil +} + func awsEc2query_serializeDocumentRemovePrefixListEntries(v []types.RemovePrefixListEntry, value query.Value) error { if len(v) == 0 { return nil @@ -51355,6 +52175,13 @@ func awsEc2query_serializeDocumentRequestLaunchTemplateData(v *types.RequestLaun } } + if v.Operator != nil { + objectKey := object.Key("Operator") + if err := awsEc2query_serializeDocumentOperatorRequest(v.Operator, objectKey); err != nil { + return err + } + } + if v.Placement != nil { objectKey := object.Key("Placement") if err := awsEc2query_serializeDocumentLaunchTemplatePlacementRequest(v.Placement, objectKey); err != nil { @@ -54112,6 +54939,19 @@ func awsEc2query_serializeDocumentVolumeIdStringList(v []string, value query.Val return nil } +func awsEc2query_serializeDocumentVpcBlockPublicAccessExclusionIdList(v []string, value query.Value) error { + if len(v) == 0 { + return nil + } + array := value.Array("Item") + + for i := range v { + av := array.Value() + av.String(v[i]) + } + return nil +} + func awsEc2query_serializeDocumentVpcClassicLinkIdList(v []string, value query.Value) error { if len(v) == 0 { return nil @@ -56322,6 +57162,16 @@ func awsEc2query_serializeOpDocumentCreateCapacityReservationInput(v *CreateCapa objectKey.String(*v.ClientToken) } + if v.CommitmentDuration != nil { + objectKey := object.Key("CommitmentDuration") + objectKey.Long(*v.CommitmentDuration) + } + + if len(v.DeliveryPreference) > 0 { + objectKey := object.Key("DeliveryPreference") + objectKey.String(string(v.DeliveryPreference)) + } + if v.DryRun != nil { objectKey := object.Key("DryRun") objectKey.Boolean(*v.DryRun) @@ -56377,6 +57227,11 @@ func awsEc2query_serializeOpDocumentCreateCapacityReservationInput(v *CreateCapa objectKey.String(*v.PlacementGroupArn) } + if v.StartDate != nil { + objectKey := object.Key("StartDate") + objectKey.String(smithytime.FormatDateTime(*v.StartDate)) + } + if v.TagSpecifications != nil { objectKey := object.FlatKey("TagSpecifications") if err := awsEc2query_serializeDocumentTagSpecificationList(v.TagSpecifications, objectKey); err != nil { @@ -57457,6 +58312,13 @@ func awsEc2query_serializeOpDocumentCreateLaunchTemplateInput(v *CreateLaunchTem objectKey.String(*v.LaunchTemplateName) } + if v.Operator != nil { + objectKey := object.Key("Operator") + if err := awsEc2query_serializeDocumentOperatorRequest(v.Operator, objectKey); err != nil { + return err + } + } + if v.TagSpecifications != nil { objectKey := object.FlatKey("TagSpecification") if err := awsEc2query_serializeDocumentTagSpecificationList(v.TagSpecifications, objectKey); err != nil { @@ -58029,6 +58891,13 @@ func awsEc2query_serializeOpDocumentCreateNetworkInterfaceInput(v *CreateNetwork } } + if v.Operator != nil { + objectKey := object.Key("Operator") + if err := awsEc2query_serializeDocumentOperatorRequest(v.Operator, objectKey); err != nil { + return err + } + } + if v.PrivateIpAddress != nil { objectKey := object.Key("PrivateIpAddress") objectKey.String(*v.PrivateIpAddress) @@ -59540,6 +60409,13 @@ func awsEc2query_serializeOpDocumentCreateVolumeInput(v *CreateVolumeInput, valu objectKey.Boolean(*v.MultiAttachEnabled) } + if v.Operator != nil { + objectKey := object.Key("Operator") + if err := awsEc2query_serializeDocumentOperatorRequest(v.Operator, objectKey); err != nil { + return err + } + } + if v.OutpostArn != nil { objectKey := object.Key("OutpostArn") objectKey.String(*v.OutpostArn) @@ -59575,6 +60451,40 @@ func awsEc2query_serializeOpDocumentCreateVolumeInput(v *CreateVolumeInput, valu return nil } +func awsEc2query_serializeOpDocumentCreateVpcBlockPublicAccessExclusionInput(v *CreateVpcBlockPublicAccessExclusionInput, value query.Value) error { + object := value.Object() + _ = object + + if v.DryRun != nil { + objectKey := object.Key("DryRun") + objectKey.Boolean(*v.DryRun) + } + + if len(v.InternetGatewayExclusionMode) > 0 { + objectKey := object.Key("InternetGatewayExclusionMode") + objectKey.String(string(v.InternetGatewayExclusionMode)) + } + + if v.SubnetId != nil { + objectKey := object.Key("SubnetId") + objectKey.String(*v.SubnetId) + } + + if v.TagSpecifications != nil { + objectKey := object.FlatKey("TagSpecification") + if err := awsEc2query_serializeDocumentTagSpecificationList(v.TagSpecifications, objectKey); err != nil { + return err + } + } + + if v.VpcId != nil { + objectKey := object.Key("VpcId") + objectKey.String(*v.VpcId) + } + + return nil +} + func awsEc2query_serializeOpDocumentCreateVpcEndpointConnectionNotificationInput(v *CreateVpcEndpointConnectionNotificationInput, value query.Value) error { object := value.Object() _ = object @@ -61249,6 +62159,23 @@ func awsEc2query_serializeOpDocumentDeleteVolumeInput(v *DeleteVolumeInput, valu return nil } +func awsEc2query_serializeOpDocumentDeleteVpcBlockPublicAccessExclusionInput(v *DeleteVpcBlockPublicAccessExclusionInput, value query.Value) error { + object := value.Object() + _ = object + + if v.DryRun != nil { + objectKey := object.Key("DryRun") + objectKey.Boolean(*v.DryRun) + } + + if v.ExclusionId != nil { + objectKey := object.Key("ExclusionId") + objectKey.String(*v.ExclusionId) + } + + return nil +} + func awsEc2query_serializeOpDocumentDeleteVpcEndpointConnectionNotificationsInput(v *DeleteVpcEndpointConnectionNotificationsInput, value query.Value) error { object := value.Object() _ = object @@ -61810,6 +62737,74 @@ func awsEc2query_serializeOpDocumentDescribeByoipCidrsInput(v *DescribeByoipCidr return nil } +func awsEc2query_serializeOpDocumentDescribeCapacityBlockExtensionHistoryInput(v *DescribeCapacityBlockExtensionHistoryInput, value query.Value) error { + object := value.Object() + _ = object + + if v.CapacityReservationIds != nil { + objectKey := object.FlatKey("CapacityReservationId") + if err := awsEc2query_serializeDocumentCapacityReservationIdSet(v.CapacityReservationIds, objectKey); err != nil { + return err + } + } + + if v.DryRun != nil { + objectKey := object.Key("DryRun") + objectKey.Boolean(*v.DryRun) + } + + if v.Filters != nil { + objectKey := object.FlatKey("Filter") + if err := awsEc2query_serializeDocumentFilterList(v.Filters, objectKey); err != nil { + return err + } + } + + if v.MaxResults != nil { + objectKey := object.Key("MaxResults") + objectKey.Integer(*v.MaxResults) + } + + if v.NextToken != nil { + objectKey := object.Key("NextToken") + objectKey.String(*v.NextToken) + } + + return nil +} + +func awsEc2query_serializeOpDocumentDescribeCapacityBlockExtensionOfferingsInput(v *DescribeCapacityBlockExtensionOfferingsInput, value query.Value) error { + object := value.Object() + _ = object + + if v.CapacityBlockExtensionDurationHours != nil { + objectKey := object.Key("CapacityBlockExtensionDurationHours") + objectKey.Integer(*v.CapacityBlockExtensionDurationHours) + } + + if v.CapacityReservationId != nil { + objectKey := object.Key("CapacityReservationId") + objectKey.String(*v.CapacityReservationId) + } + + if v.DryRun != nil { + objectKey := object.Key("DryRun") + objectKey.Boolean(*v.DryRun) + } + + if v.MaxResults != nil { + objectKey := object.Key("MaxResults") + objectKey.Integer(*v.MaxResults) + } + + if v.NextToken != nil { + objectKey := object.Key("NextToken") + objectKey.String(*v.NextToken) + } + + return nil +} + func awsEc2query_serializeOpDocumentDescribeCapacityBlockOfferingsInput(v *DescribeCapacityBlockOfferingsInput, value query.Value) error { object := value.Object() _ = object @@ -66512,6 +67507,54 @@ func awsEc2query_serializeOpDocumentDescribeVpcAttributeInput(v *DescribeVpcAttr return nil } +func awsEc2query_serializeOpDocumentDescribeVpcBlockPublicAccessExclusionsInput(v *DescribeVpcBlockPublicAccessExclusionsInput, value query.Value) error { + object := value.Object() + _ = object + + if v.DryRun != nil { + objectKey := object.Key("DryRun") + objectKey.Boolean(*v.DryRun) + } + + if v.ExclusionIds != nil { + objectKey := object.FlatKey("ExclusionId") + if err := awsEc2query_serializeDocumentVpcBlockPublicAccessExclusionIdList(v.ExclusionIds, objectKey); err != nil { + return err + } + } + + if v.Filters != nil { + objectKey := object.FlatKey("Filter") + if err := awsEc2query_serializeDocumentFilterList(v.Filters, objectKey); err != nil { + return err + } + } + + if v.MaxResults != nil { + objectKey := object.Key("MaxResults") + objectKey.Integer(*v.MaxResults) + } + + if v.NextToken != nil { + objectKey := object.Key("NextToken") + objectKey.String(*v.NextToken) + } + + return nil +} + +func awsEc2query_serializeOpDocumentDescribeVpcBlockPublicAccessOptionsInput(v *DescribeVpcBlockPublicAccessOptionsInput, value query.Value) error { + object := value.Object() + _ = object + + if v.DryRun != nil { + objectKey := object.Key("DryRun") + objectKey.Boolean(*v.DryRun) + } + + return nil +} + func awsEc2query_serializeOpDocumentDescribeVpcClassicLinkDnsSupportInput(v *DescribeVpcClassicLinkDnsSupportInput, value query.Value) error { object := value.Object() _ = object @@ -70975,6 +72018,13 @@ func awsEc2query_serializeOpDocumentModifyIpamResourceDiscoveryInput(v *ModifyIp } } + if v.AddOrganizationalUnitExclusions != nil { + objectKey := object.FlatKey("AddOrganizationalUnitExclusion") + if err := awsEc2query_serializeDocumentAddIpamOrganizationalUnitExclusionSet(v.AddOrganizationalUnitExclusions, objectKey); err != nil { + return err + } + } + if v.Description != nil { objectKey := object.Key("Description") objectKey.String(*v.Description) @@ -70997,6 +72047,13 @@ func awsEc2query_serializeOpDocumentModifyIpamResourceDiscoveryInput(v *ModifyIp } } + if v.RemoveOrganizationalUnitExclusions != nil { + objectKey := object.FlatKey("RemoveOrganizationalUnitExclusion") + if err := awsEc2query_serializeDocumentRemoveIpamOrganizationalUnitExclusionSet(v.RemoveOrganizationalUnitExclusions, objectKey); err != nil { + return err + } + } + return nil } @@ -72089,6 +73146,45 @@ func awsEc2query_serializeOpDocumentModifyVpcAttributeInput(v *ModifyVpcAttribut return nil } +func awsEc2query_serializeOpDocumentModifyVpcBlockPublicAccessExclusionInput(v *ModifyVpcBlockPublicAccessExclusionInput, value query.Value) error { + object := value.Object() + _ = object + + if v.DryRun != nil { + objectKey := object.Key("DryRun") + objectKey.Boolean(*v.DryRun) + } + + if v.ExclusionId != nil { + objectKey := object.Key("ExclusionId") + objectKey.String(*v.ExclusionId) + } + + if len(v.InternetGatewayExclusionMode) > 0 { + objectKey := object.Key("InternetGatewayExclusionMode") + objectKey.String(string(v.InternetGatewayExclusionMode)) + } + + return nil +} + +func awsEc2query_serializeOpDocumentModifyVpcBlockPublicAccessOptionsInput(v *ModifyVpcBlockPublicAccessOptionsInput, value query.Value) error { + object := value.Object() + _ = object + + if v.DryRun != nil { + objectKey := object.Key("DryRun") + objectKey.Boolean(*v.DryRun) + } + + if len(v.InternetGatewayBlockMode) > 0 { + objectKey := object.Key("InternetGatewayBlockMode") + objectKey.String(string(v.InternetGatewayBlockMode)) + } + + return nil +} + func awsEc2query_serializeOpDocumentModifyVpcEndpointConnectionNotificationInput(v *ModifyVpcEndpointConnectionNotificationInput, value query.Value) error { object := value.Object() _ = object @@ -72772,6 +73868,28 @@ func awsEc2query_serializeOpDocumentProvisionPublicIpv4PoolCidrInput(v *Provisio return nil } +func awsEc2query_serializeOpDocumentPurchaseCapacityBlockExtensionInput(v *PurchaseCapacityBlockExtensionInput, value query.Value) error { + object := value.Object() + _ = object + + if v.CapacityBlockExtensionOfferingId != nil { + objectKey := object.Key("CapacityBlockExtensionOfferingId") + objectKey.String(*v.CapacityBlockExtensionOfferingId) + } + + if v.CapacityReservationId != nil { + objectKey := object.Key("CapacityReservationId") + objectKey.String(*v.CapacityReservationId) + } + + if v.DryRun != nil { + objectKey := object.Key("DryRun") + objectKey.Boolean(*v.DryRun) + } + + return nil +} + func awsEc2query_serializeOpDocumentPurchaseCapacityBlockInput(v *PurchaseCapacityBlockInput, value query.Value) error { object := value.Object() _ = object @@ -74310,6 +75428,13 @@ func awsEc2query_serializeOpDocumentRunInstancesInput(v *RunInstancesInput, valu } } + if v.Operator != nil { + objectKey := object.Key("Operator") + if err := awsEc2query_serializeDocumentOperatorRequest(v.Operator, objectKey); err != nil { + return err + } + } + if v.Placement != nil { objectKey := object.Key("Placement") if err := awsEc2query_serializeDocumentPlacement(v.Placement, objectKey); err != nil { diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/types/enums.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/types/enums.go index 52abe006..5997b036 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/types/enums.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/types/enums.go @@ -695,6 +695,27 @@ func (BgpStatus) Values() []BgpStatus { } } +type BlockPublicAccessMode string + +// Enum values for BlockPublicAccessMode +const ( + BlockPublicAccessModeOff BlockPublicAccessMode = "off" + BlockPublicAccessModeBlockBidirectional BlockPublicAccessMode = "block-bidirectional" + BlockPublicAccessModeBlockIngress BlockPublicAccessMode = "block-ingress" +) + +// Values returns all known values for BlockPublicAccessMode. Note that this can +// be expanded in the future, and so it is only as up to date as the client. +// +// The ordering of this slice is not guaranteed to be stable across updates. +func (BlockPublicAccessMode) Values() []BlockPublicAccessMode { + return []BlockPublicAccessMode{ + "off", + "block-bidirectional", + "block-ingress", + } +} + type BootModeType string // Enum values for BootModeType @@ -884,6 +905,28 @@ func (CancelSpotInstanceRequestState) Values() []CancelSpotInstanceRequestState } } +type CapacityBlockExtensionStatus string + +// Enum values for CapacityBlockExtensionStatus +const ( + CapacityBlockExtensionStatusPaymentPending CapacityBlockExtensionStatus = "payment-pending" + CapacityBlockExtensionStatusPaymentFailed CapacityBlockExtensionStatus = "payment-failed" + CapacityBlockExtensionStatusPaymentSucceeded CapacityBlockExtensionStatus = "payment-succeeded" +) + +// Values returns all known values for CapacityBlockExtensionStatus. Note that +// this can be expanded in the future, and so it is only as up to date as the +// client. +// +// The ordering of this slice is not guaranteed to be stable across updates. +func (CapacityBlockExtensionStatus) Values() []CapacityBlockExtensionStatus { + return []CapacityBlockExtensionStatus{ + "payment-pending", + "payment-failed", + "payment-succeeded", + } +} + type CapacityReservationBillingRequestStatus string // Enum values for CapacityReservationBillingRequestStatus @@ -912,6 +955,26 @@ func (CapacityReservationBillingRequestStatus) Values() []CapacityReservationBil } } +type CapacityReservationDeliveryPreference string + +// Enum values for CapacityReservationDeliveryPreference +const ( + CapacityReservationDeliveryPreferenceFixed CapacityReservationDeliveryPreference = "fixed" + CapacityReservationDeliveryPreferenceIncremental CapacityReservationDeliveryPreference = "incremental" +) + +// Values returns all known values for CapacityReservationDeliveryPreference. Note +// that this can be expanded in the future, and so it is only as up to date as the +// client. +// +// The ordering of this slice is not guaranteed to be stable across updates. +func (CapacityReservationDeliveryPreference) Values() []CapacityReservationDeliveryPreference { + return []CapacityReservationDeliveryPreference{ + "fixed", + "incremental", + } +} + type CapacityReservationFleetState string // Enum values for CapacityReservationFleetState @@ -1002,8 +1065,9 @@ type CapacityReservationPreference string // Enum values for CapacityReservationPreference const ( - CapacityReservationPreferenceOpen CapacityReservationPreference = "open" - CapacityReservationPreferenceNone CapacityReservationPreference = "none" + CapacityReservationPreferenceCapacityReservationsOnly CapacityReservationPreference = "capacity-reservations-only" + CapacityReservationPreferenceOpen CapacityReservationPreference = "open" + CapacityReservationPreferenceNone CapacityReservationPreference = "none" ) // Values returns all known values for CapacityReservationPreference. Note that @@ -1013,6 +1077,7 @@ const ( // The ordering of this slice is not guaranteed to be stable across updates. func (CapacityReservationPreference) Values() []CapacityReservationPreference { return []CapacityReservationPreference{ + "capacity-reservations-only", "open", "none", } @@ -1030,6 +1095,9 @@ const ( CapacityReservationStateScheduled CapacityReservationState = "scheduled" CapacityReservationStatePaymentPending CapacityReservationState = "payment-pending" CapacityReservationStatePaymentFailed CapacityReservationState = "payment-failed" + CapacityReservationStateAssessing CapacityReservationState = "assessing" + CapacityReservationStateDelayed CapacityReservationState = "delayed" + CapacityReservationStateUnsupported CapacityReservationState = "unsupported" ) // Values returns all known values for CapacityReservationState. Note that this @@ -1046,6 +1114,9 @@ func (CapacityReservationState) Values() []CapacityReservationState { "scheduled", "payment-pending", "payment-failed", + "assessing", + "delayed", + "unsupported", } } @@ -1384,6 +1455,7 @@ const ( CpuManufacturerIntel CpuManufacturer = "intel" CpuManufacturerAmd CpuManufacturer = "amd" CpuManufacturerAmazonWebServices CpuManufacturer = "amazon-web-services" + CpuManufacturerApple CpuManufacturer = "apple" ) // Values returns all known values for CpuManufacturer. Note that this can be @@ -1395,6 +1467,7 @@ func (CpuManufacturer) Values() []CpuManufacturer { "intel", "amd", "amazon-web-services", + "apple", } } @@ -4986,6 +5059,47 @@ func (InterfaceProtocolType) Values() []InterfaceProtocolType { } } +type InternetGatewayBlockMode string + +// Enum values for InternetGatewayBlockMode +const ( + InternetGatewayBlockModeOff InternetGatewayBlockMode = "off" + InternetGatewayBlockModeBlockBidirectional InternetGatewayBlockMode = "block-bidirectional" + InternetGatewayBlockModeBlockIngress InternetGatewayBlockMode = "block-ingress" +) + +// Values returns all known values for InternetGatewayBlockMode. Note that this +// can be expanded in the future, and so it is only as up to date as the client. +// +// The ordering of this slice is not guaranteed to be stable across updates. +func (InternetGatewayBlockMode) Values() []InternetGatewayBlockMode { + return []InternetGatewayBlockMode{ + "off", + "block-bidirectional", + "block-ingress", + } +} + +type InternetGatewayExclusionMode string + +// Enum values for InternetGatewayExclusionMode +const ( + InternetGatewayExclusionModeAllowBidirectional InternetGatewayExclusionMode = "allow-bidirectional" + InternetGatewayExclusionModeAllowEgress InternetGatewayExclusionMode = "allow-egress" +) + +// Values returns all known values for InternetGatewayExclusionMode. Note that +// this can be expanded in the future, and so it is only as up to date as the +// client. +// +// The ordering of this slice is not guaranteed to be stable across updates. +func (InternetGatewayExclusionMode) Values() []InternetGatewayExclusionMode { + return []InternetGatewayExclusionMode{ + "allow-bidirectional", + "allow-egress", + } +} + type IpAddressType string // Enum values for IpAddressType @@ -9246,6 +9360,63 @@ func (VpcAttributeName) Values() []VpcAttributeName { } } +type VpcBlockPublicAccessExclusionState string + +// Enum values for VpcBlockPublicAccessExclusionState +const ( + VpcBlockPublicAccessExclusionStateCreateInProgress VpcBlockPublicAccessExclusionState = "create-in-progress" + VpcBlockPublicAccessExclusionStateCreateComplete VpcBlockPublicAccessExclusionState = "create-complete" + VpcBlockPublicAccessExclusionStateCreateFailed VpcBlockPublicAccessExclusionState = "create-failed" + VpcBlockPublicAccessExclusionStateUpdateInProgress VpcBlockPublicAccessExclusionState = "update-in-progress" + VpcBlockPublicAccessExclusionStateUpdateComplete VpcBlockPublicAccessExclusionState = "update-complete" + VpcBlockPublicAccessExclusionStateUpdateFailed VpcBlockPublicAccessExclusionState = "update-failed" + VpcBlockPublicAccessExclusionStateDeleteInProgress VpcBlockPublicAccessExclusionState = "delete-in-progress" + VpcBlockPublicAccessExclusionStateDeleteComplete VpcBlockPublicAccessExclusionState = "delete-complete" + VpcBlockPublicAccessExclusionStateDisableInProgress VpcBlockPublicAccessExclusionState = "disable-in-progress" + VpcBlockPublicAccessExclusionStateDisableComplete VpcBlockPublicAccessExclusionState = "disable-complete" +) + +// Values returns all known values for VpcBlockPublicAccessExclusionState. Note +// that this can be expanded in the future, and so it is only as up to date as the +// client. +// +// The ordering of this slice is not guaranteed to be stable across updates. +func (VpcBlockPublicAccessExclusionState) Values() []VpcBlockPublicAccessExclusionState { + return []VpcBlockPublicAccessExclusionState{ + "create-in-progress", + "create-complete", + "create-failed", + "update-in-progress", + "update-complete", + "update-failed", + "delete-in-progress", + "delete-complete", + "disable-in-progress", + "disable-complete", + } +} + +type VpcBlockPublicAccessState string + +// Enum values for VpcBlockPublicAccessState +const ( + VpcBlockPublicAccessStateDefaultState VpcBlockPublicAccessState = "default-state" + VpcBlockPublicAccessStateUpdateInProgress VpcBlockPublicAccessState = "update-in-progress" + VpcBlockPublicAccessStateUpdateComplete VpcBlockPublicAccessState = "update-complete" +) + +// Values returns all known values for VpcBlockPublicAccessState. Note that this +// can be expanded in the future, and so it is only as up to date as the client. +// +// The ordering of this slice is not guaranteed to be stable across updates. +func (VpcBlockPublicAccessState) Values() []VpcBlockPublicAccessState { + return []VpcBlockPublicAccessState{ + "default-state", + "update-in-progress", + "update-complete", + } +} + type VpcCidrBlockStateCode string // Enum values for VpcCidrBlockStateCode diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/types/types.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/types/types.go index 57109eda..4020c5cb 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/types/types.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/types/types.go @@ -190,6 +190,47 @@ type AddIpamOperatingRegion struct { noSmithyDocumentSerde } +// Add an Organizational Unit (OU) exclusion to your IPAM. If your IPAM is +// integrated with Amazon Web Services Organizations and you add an organizational +// unit (OU) exclusion, IPAM will not manage the IP addresses in accounts in that +// OU exclusion. There is a limit on the number of exclusions you can create. For +// more information, see [Quotas for your IPAM]in the Amazon VPC IPAM User Guide. +// +// [Quotas for your IPAM]: https://docs.aws.amazon.com/vpc/latest/ipam/quotas-ipam.html +type AddIpamOrganizationalUnitExclusion struct { + + // An Amazon Web Services Organizations entity path. Build the path for the OU(s) + // using Amazon Web Services Organizations IDs separated by a / . Include all child + // OUs by ending the path with /* . + // + // - Example 1 + // + // - Path to a child OU: + // o-a1b2c3d4e5/r-f6g7h8i9j0example/ou-ghi0-awsccccc/ou-jkl0-awsddddd/ + // + // - In this example, o-a1b2c3d4e5 is the organization ID, r-f6g7h8i9j0example is + // the root ID , ou-ghi0-awsccccc is an OU ID, and ou-jkl0-awsddddd is a child OU + // ID. + // + // - IPAM will not manage the IP addresses in accounts in the child OU. + // + // - Example 2 + // + // - Path where all child OUs will be part of the exclusion: + // o-a1b2c3d4e5/r-f6g7h8i9j0example/ou-ghi0-awsccccc/* + // + // - In this example, IPAM will not manage the IP addresses in accounts in the + // OU ( ou-ghi0-awsccccc ) or in accounts in any OUs that are children of the OU. + // + // For more information on how to construct an entity path, see [Understand the Amazon Web Services Organizations entity path] in the Amazon Web + // Services Identity and Access Management User Guide. + // + // [Understand the Amazon Web Services Organizations entity path]: https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies_last-accessed-view-data-orgs.html#access_policies_access-advisor-viewing-orgs-entity-path + OrganizationsEntityPath *string + + noSmithyDocumentSerde +} + // Describes an additional detail for a path analysis. For more information, see [Reachability Analyzer additional detail codes]. // // [Reachability Analyzer additional detail codes]: https://docs.aws.amazon.com/vpc/latest/reachability/additional-detail-codes.html @@ -858,6 +899,42 @@ type BaselineEbsBandwidthMbpsRequest struct { noSmithyDocumentSerde } +// The baseline performance to consider, using an instance family as a baseline +// reference. The instance family establishes the lowest acceptable level of +// performance. Amazon EC2 uses this baseline to guide instance type selection, but +// there is no guarantee that the selected instance types will always exceed the +// baseline for every application. +// +// Currently, this parameter only supports CPU performance as a baseline +// performance factor. For example, specifying c6i would use the CPU performance +// of the c6i family as the baseline reference. +type BaselinePerformanceFactors struct { + + // The CPU performance to consider, using an instance family as the baseline + // reference. + Cpu *CpuPerformanceFactor + + noSmithyDocumentSerde +} + +// The baseline performance to consider, using an instance family as a baseline +// reference. The instance family establishes the lowest acceptable level of +// performance. Amazon EC2 uses this baseline to guide instance type selection, but +// there is no guarantee that the selected instance types will always exceed the +// baseline for every application. +// +// Currently, this parameter only supports CPU performance as a baseline +// performance factor. For example, specifying c6i would use the CPU performance +// of the c6i family as the baseline reference. +type BaselinePerformanceFactorsRequest struct { + + // The CPU performance to consider, using an instance family as the baseline + // reference. + Cpu *CpuPerformanceFactorRequest + + noSmithyDocumentSerde +} + type BlobAttributeValue struct { Value []byte @@ -897,6 +974,27 @@ type BlockDeviceMapping struct { noSmithyDocumentSerde } +// The state of VPC Block Public Access (BPA). +type BlockPublicAccessStates struct { + + // The mode of VPC BPA. + // + // - off : VPC BPA is not enabled and traffic is allowed to and from internet + // gateways and egress-only internet gateways in this Region. + // + // - block-bidirectional : Block all traffic to and from internet gateways and + // egress-only internet gateways in this Region (except for excluded VPCs and + // subnets). + // + // - block-ingress : Block all internet traffic to the VPCs in this Region + // (except for VPCs or subnets which are excluded). Only traffic to and from NAT + // gateways and egress-only internet gateways is allowed because these gateways + // only allow outbound connections to be established. + InternetGatewayBlockMode BlockPublicAccessMode + + noSmithyDocumentSerde +} + // Describes a bundle task. type BundleTask struct { @@ -1101,15 +1199,134 @@ type CapacityAllocation struct { noSmithyDocumentSerde } +// Describes a Capacity Block extension. With an extension, you can extend the +// duration of time for an existing Capacity Block. +type CapacityBlockExtension struct { + + // The Availability Zone of the Capacity Block extension. + AvailabilityZone *string + + // The Availability Zone ID of the Capacity Block extension. + AvailabilityZoneId *string + + // The duration of the Capacity Block extension in hours. + CapacityBlockExtensionDurationHours *int32 + + // The end date of the Capacity Block extension. + CapacityBlockExtensionEndDate *time.Time + + // The ID of the Capacity Block extension offering. + CapacityBlockExtensionOfferingId *string + + // The date when the Capacity Block extension was purchased. + CapacityBlockExtensionPurchaseDate *time.Time + + // The start date of the Capacity Block extension. + CapacityBlockExtensionStartDate *time.Time + + // The status of the Capacity Block extension. A Capacity Block extension can have + // one of the following statuses: + // + // - payment-pending - The Capacity Block extension payment is processing. If + // your payment can't be processed within 12 hours, the Capacity Block extension is + // failed. + // + // - payment-failed - Payment for the Capacity Block extension request was not + // successful. + // + // - payment-succeeded - Payment for the Capacity Block extension request was + // successful. You receive an invoice that reflects the one-time upfront payment. + // In the invoice, you can associate the paid amount with the Capacity Block + // reservation ID. + CapacityBlockExtensionStatus CapacityBlockExtensionStatus + + // The reservation ID of the Capacity Block extension. + CapacityReservationId *string + + // The currency of the payment for the Capacity Block extension. + CurrencyCode *string + + // The number of instances in the Capacity Block extension. + InstanceCount *int32 + + // The instance type of the Capacity Block extension. + InstanceType *string + + // The total price to be paid up front. + UpfrontFee *string + + noSmithyDocumentSerde +} + +// The recommended Capacity Block extension that fits your search requirements. +type CapacityBlockExtensionOffering struct { + + // The Availability Zone of the Capacity Block that will be extended. + AvailabilityZone *string + + // The Availability Zone ID of the Capacity Block that will be extended. + AvailabilityZoneId *string + + // The amount of time of the Capacity Block extension offering in hours. + CapacityBlockExtensionDurationHours *int32 + + // The date and time at which the Capacity Block extension expires. When a + // Capacity Block expires, the reserved capacity is released and you can no longer + // launch instances into it. The Capacity Block's state changes to expired when it + // reaches its end date + CapacityBlockExtensionEndDate *time.Time + + // The ID of the Capacity Block extension offering. + CapacityBlockExtensionOfferingId *string + + // The date and time at which the Capacity Block extension will start. This date + // is also the same as the end date of the Capacity Block that will be extended. + CapacityBlockExtensionStartDate *time.Time + + // The currency of the payment for the Capacity Block extension offering. + CurrencyCode *string + + // The number of instances in the Capacity Block extension offering. + InstanceCount *int32 + + // The instance type of the Capacity Block that will be extended. + InstanceType *string + + // The start date of the Capacity Block that will be extended. + StartDate *time.Time + + // Indicates the tenancy of the Capacity Block extension offering. A Capacity + // Block can have one of the following tenancy settings: + // + // - default - The Capacity Block is created on hardware that is shared with + // other Amazon Web Services accounts. + // + // - dedicated - The Capacity Block is created on single-tenant hardware that is + // dedicated to a single Amazon Web Services account. + Tenancy CapacityReservationTenancy + + // The total price of the Capacity Block extension offering, to be paid up front. + UpfrontFee *string + + noSmithyDocumentSerde +} + // The recommended Capacity Block that fits your search requirements. type CapacityBlockOffering struct { // The Availability Zone of the Capacity Block offering. AvailabilityZone *string - // The amount of time of the Capacity Block reservation in hours. + // The number of hours (in addition to capacityBlockDurationMinutes ) for the + // duration of the Capacity Block reservation. For example, if a Capacity Block + // starts at 04:55 and ends at 11:30, the hours field would be 6. CapacityBlockDurationHours *int32 + // The number of minutes (in addition to capacityBlockDurationHours ) for the + // duration of the Capacity Block reservation. For example, if a Capacity Block + // starts at 08:55 and ends at 11:30, the minutes field would be 35. + CapacityBlockDurationMinutes *int32 + // The ID of the Capacity Block offering. CapacityBlockOfferingId *string @@ -1164,9 +1381,18 @@ type CapacityReservation struct { // The ID of the Capacity Reservation. CapacityReservationId *string + // Information about your commitment for a future-dated Capacity Reservation. + CommitmentInfo *CapacityReservationCommitmentInfo + // The date and time at which the Capacity Reservation was created. CreateDate *time.Time + // The delivery method for a future-dated Capacity Reservation. incremental + // indicates that the requested capacity is delivered in addition to any running + // instances and reserved capacity that you have in your account at the requested + // date and time. + DeliveryPreference CapacityReservationDeliveryPreference + // Indicates whether the Capacity Reservation supports EBS-optimized instances. // This optimization provides dedicated throughput to Amazon EBS and an optimized // configuration stack to provide optimal I/O performance. This optimization isn't @@ -1237,22 +1463,38 @@ type CapacityReservation struct { // The current state of the Capacity Reservation. A Capacity Reservation can be in // one of the following states: // - // - active - The Capacity Reservation is active and the capacity is available - // for your use. + // - active - The capacity is available for use. // // - expired - The Capacity Reservation expired automatically at the date and - // time specified in your request. The reserved capacity is no longer available for - // your use. + // time specified in your reservation request. The reserved capacity is no longer + // available for your use. // - // - cancelled - The Capacity Reservation was cancelled. The reserved capacity is + // - cancelled - The Capacity Reservation was canceled. The reserved capacity is // no longer available for your use. // // - pending - The Capacity Reservation request was successful but the capacity // provisioning is still pending. // - // - failed - The Capacity Reservation request has failed. A request might fail - // due to invalid request parameters, capacity constraints, or instance limit - // constraints. Failed requests are retained for 60 minutes. + // - failed - The Capacity Reservation request has failed. A request can fail due + // to request parameters that are not valid, capacity constraints, or instance + // limit constraints. You can view a failed request for 60 minutes. + // + // - scheduled - (Future-dated Capacity Reservations only) The future-dated + // Capacity Reservation request was approved and the Capacity Reservation is + // scheduled for delivery on the requested start date. + // + // - assessing - (Future-dated Capacity Reservations only) Amazon EC2 is + // assessing your request for a future-dated Capacity Reservation. + // + // - delayed - (Future-dated Capacity Reservations only) Amazon EC2 encountered a + // delay in provisioning the requested future-dated Capacity Reservation. Amazon + // EC2 is unable to deliver the requested capacity by the requested start date and + // time. + // + // - unsupported - (Future-dated Capacity Reservations only) Amazon EC2 can't + // support the future-dated Capacity Reservation request due to capacity + // constraints. You can view unsupported requests for 30 days. The Capacity + // Reservation will not be delivered. State CapacityReservationState // Any tags assigned to the Capacity Reservation. @@ -1309,6 +1551,21 @@ type CapacityReservationBillingRequest struct { noSmithyDocumentSerde } +// Information about your commitment for a future-dated Capacity Reservation. +type CapacityReservationCommitmentInfo struct { + + // The date and time at which the commitment duration expires, in the ISO8601 + // format in the UTC time zone ( YYYY-MM-DDThh:mm:ss.sssZ ). You can't decrease the + // instance count or cancel the Capacity Reservation before this date and time. + CommitmentEndDate *time.Time + + // The instance capacity that you committed to when you requested the future-dated + // Capacity Reservation. + CommittedInstanceCount *int32 + + noSmithyDocumentSerde +} + // Information about a Capacity Reservation Fleet. type CapacityReservationFleet struct { @@ -1509,24 +1766,30 @@ type CapacityReservationOptionsRequest struct { noSmithyDocumentSerde } -// Describes an instance's Capacity Reservation targeting option. You can specify -// only one parameter at a time. If you specify CapacityReservationPreference and -// CapacityReservationTarget , the request fails. +// Describes an instance's Capacity Reservation targeting option. // // Use the CapacityReservationPreference parameter to configure the instance to -// run as an On-Demand Instance or to run in any open Capacity Reservation that -// has matching attributes (instance type, platform, Availability Zone). Use the -// CapacityReservationTarget parameter to explicitly target a specific Capacity -// Reservation or a Capacity Reservation group. +// run as an On-Demand Instance, to run in any open Capacity Reservation that has +// matching attributes, or to run only in a Capacity Reservation or Capacity +// Reservation group. Use the CapacityReservationTarget parameter to explicitly +// target a specific Capacity Reservation or a Capacity Reservation group. +// +// You can only specify CapacityReservationPreference and CapacityReservationTarget +// if the CapacityReservationPreference is capacity-reservations-only . type CapacityReservationSpecification struct { // Indicates the instance's Capacity Reservation preferences. Possible preferences // include: // + // - capacity-reservations-only - The instance will only run in a Capacity + // Reservation or Capacity Reservation group. If capacity isn't available, the + // instance will fail to launch. + // // - open - The instance can run in any open Capacity Reservation that has - // matching attributes (instance type, platform, Availability Zone). + // matching attributes (instance type, platform, Availability Zone, and tenancy). + // If capacity isn't available, the instance runs as an On-Demand Instance. // - // - none - The instance avoids running in a Capacity Reservation even if one is + // - none - The instance doesn't run in a Capacity Reservation even if one is // available. The instance runs as an On-Demand Instance. CapacityReservationPreference CapacityReservationPreference @@ -2423,6 +2686,36 @@ type CpuOptionsRequest struct { noSmithyDocumentSerde } +// The CPU performance to consider, using an instance family as the baseline +// reference. +type CpuPerformanceFactor struct { + + // Specify an instance family to use as the baseline reference for CPU + // performance. All instance types that match your specified attributes will be + // compared against the CPU performance of the referenced instance family, + // regardless of CPU manufacturer or architecture differences. + // + // Currently, only one instance family can be specified in the list. + References []PerformanceFactorReference + + noSmithyDocumentSerde +} + +// The CPU performance to consider, using an instance family as the baseline +// reference. +type CpuPerformanceFactorRequest struct { + + // Specify an instance family to use as the baseline reference for CPU + // performance. All instance types that match your specified attributes will be + // compared against the CPU performance of the referenced instance family, + // regardless of CPU manufacturer or architecture differences. + // + // Currently, only one instance family can be specified in the list. + References []PerformanceFactorReferenceRequest + + noSmithyDocumentSerde +} + // Describes the instances that could not be launched by the fleet. type CreateFleetError struct { @@ -3501,6 +3794,9 @@ type EbsInstanceBlockDevice struct { // Indicates whether the volume is deleted on instance termination. DeleteOnTermination *bool + // The entity that manages the EBS volume. + Operator *OperatorResponse + // The attachment state. Status AttachmentStatus @@ -6372,6 +6668,9 @@ type Instance struct { // The network interfaces for the instance. NetworkInterfaces []InstanceNetworkInterface + // The entity that manages the instance. + Operator *OperatorResponse + // The Amazon Resource Name (ARN) of the Outpost. OutpostArn *string @@ -6784,6 +7083,9 @@ type InstanceImageMetadata struct { // The time the instance was launched. LaunchTime *time.Time + // The entity that manages the instance. + Operator *OperatorResponse + // The ID of the Amazon Web Services account that owns the instance. OwnerId *string @@ -7063,6 +7365,9 @@ type InstanceNetworkInterface struct { // The ID of the network interface. NetworkInterfaceId *string + // The entity that manages the network interface. + Operator *OperatorResponse + // The ID of the Amazon Web Services account that created the network interface. OwnerId *string @@ -7450,6 +7755,17 @@ type InstanceRequirements struct { // [Amazon EBS–optimized instances]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-optimized.html BaselineEbsBandwidthMbps *BaselineEbsBandwidthMbps + // The baseline performance to consider, using an instance family as a baseline + // reference. The instance family establishes the lowest acceptable level of + // performance. Amazon EC2 uses this baseline to guide instance type selection, but + // there is no guarantee that the selected instance types will always exceed the + // baseline for every application. Currently, this parameter only supports CPU + // performance as a baseline performance factor. For more information, see [Performance protection]in the + // Amazon EC2 User Guide. + // + // [Performance protection]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-fleet-attribute-based-instance-type-selection.html#ec2fleet-abis-performance-protection + BaselinePerformanceFactors *BaselinePerformanceFactors + // Indicates whether burstable performance T instance types are included, // excluded, or required. For more information, see [Burstable performance instances]. // @@ -7806,6 +8122,17 @@ type InstanceRequirementsRequest struct { // [Amazon EBS–optimized instances]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-optimized.html BaselineEbsBandwidthMbps *BaselineEbsBandwidthMbpsRequest + // The baseline performance to consider, using an instance family as a baseline + // reference. The instance family establishes the lowest acceptable level of + // performance. Amazon EC2 uses this baseline to guide instance type selection, but + // there is no guarantee that the selected instance types will always exceed the + // baseline for every application. Currently, this parameter only supports CPU + // performance as a baseline performance factor. For more information, see [Performance protection]in the + // Amazon EC2 User Guide. + // + // [Performance protection]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-fleet-attribute-based-instance-type-selection.html#ec2fleet-abis-performance-protection + BaselinePerformanceFactors *BaselinePerformanceFactorsRequest + // Indicates whether burstable performance T instance types are included, // excluded, or required. For more information, see [Burstable performance instances]. // @@ -8124,6 +8451,9 @@ type InstanceStatus struct { // such as impaired reachability. InstanceStatus *InstanceStatusSummary + // The entity that manages the instance. + Operator *OperatorResponse + // The Amazon Resource Name (ARN) of the Outpost. OutpostArn *string @@ -8609,6 +8939,9 @@ type IpamDiscoveredAccount struct { // The last successful resource discovery time. LastSuccessfulDiscoveryTime *time.Time + // The ID of an Organizational Unit in Amazon Web Services Organizations. + OrganizationalUnitId *string + noSmithyDocumentSerde } @@ -8839,6 +9172,21 @@ type IpamOperatingRegion struct { noSmithyDocumentSerde } +// If your IPAM is integrated with Amazon Web Services Organizations and you add +// an organizational unit (OU) exclusion, IPAM will not manage the IP addresses in +// accounts in that OU exclusion. +type IpamOrganizationalUnitExclusion struct { + + // An Amazon Web Services Organizations entity path. For more information on the + // entity path, see [Understand the Amazon Web Services Organizations entity path]in the Amazon Web Services Identity and Access Management User + // Guide. + // + // [Understand the Amazon Web Services Organizations entity path]: https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies_last-accessed-view-data-orgs.html#access_policies_access-advisor-viewing-orgs-entity-path + OrganizationsEntityPath *string + + noSmithyDocumentSerde +} + // In IPAM, a pool is a collection of contiguous IP addresses CIDRs. Pools enable // you to organize your IP addresses according to your routing and security needs. // For example, if you have separate routing and security needs for development and @@ -9220,6 +9568,11 @@ type IpamResourceDiscovery struct { // select as operating Regions. OperatingRegions []IpamOperatingRegion + // If your IPAM is integrated with Amazon Web Services Organizations and you add + // an organizational unit (OU) exclusion, IPAM will not manage the IP addresses in + // accounts in that OU exclusion. + OrganizationalUnitExclusions []IpamOrganizationalUnitExclusion + // The ID of the owner. OwnerId *string @@ -9750,6 +10103,9 @@ type LaunchTemplate struct { // The name of the launch template. LaunchTemplateName *string + // The entity that manages the launch template. + Operator *OperatorResponse + // The tags for the launch template. Tags []Tag @@ -10892,6 +11248,9 @@ type LaunchTemplateVersion struct { // The name of the launch template. LaunchTemplateName *string + // The entity that manages the launch template. + Operator *OperatorResponse + // The description for the version. VersionDescription *string @@ -12321,6 +12680,9 @@ type NetworkInterface struct { // The ID of the network interface. NetworkInterfaceId *string + // The entity that manages the network interface. + Operator *OperatorResponse + // The Amazon Resource Name (ARN) of the Outpost. OutpostArn *string @@ -12757,6 +13119,29 @@ type OnDemandOptionsRequest struct { noSmithyDocumentSerde } +// The entity that manages the resource. +type OperatorRequest struct { + + // The entity that manages the resource. + Principal *string + + noSmithyDocumentSerde +} + +// Describes whether the resource is managed by an entity and, if so, describes +// the entity that manages it. +type OperatorResponse struct { + + // If true , the resource is managed by an entity. + Managed *bool + + // If managed is true , then the principal is returned. The principal is the entity + // that manages the resource. + Principal *string + + noSmithyDocumentSerde +} + // Describes a packet header statement. type PacketHeaderStatement struct { @@ -13019,6 +13404,102 @@ type PeeringTgwInfo struct { noSmithyDocumentSerde } +// Specify an instance family to use as the baseline reference for CPU +// performance. All instance types that match your specified attributes will be +// compared against the CPU performance of the referenced instance family, +// regardless of CPU manufacturer or architecture. +// +// Currently, only one instance family can be specified in the list. +type PerformanceFactorReference struct { + + // The instance family to use as a baseline reference. + // + // Ensure that you specify the correct value for the instance family. The instance + // family is everything before the period ( . ) in the instance type name. For + // example, in the instance type c6i.large , the instance family is c6i , not c6 . + // For more information, see [Amazon EC2 instance type naming conventions]in Amazon EC2 Instance Types. + // + // The following instance families are not supported for performance protection: + // + // - c1 + // + // - g3 | g3s + // + // - hpc7g + // + // - m1 | m2 + // + // - mac1 | mac2 | mac2-m1ultra | mac2-m2 | mac2-m2pro + // + // - p3dn | p4d | p5 + // + // - t1 + // + // - u-12tb1 | u-18tb1 | u-24tb1 | u-3tb1 | u-6tb1 | u-9tb1 | u7i-12tb | + // u7in-16tb | u7in-24tb | u7in-32tb + // + // If you enable performance protection by specifying a supported instance family, + // the returned instance types will exclude the above unsupported instance + // families. + // + // If you specify an unsupported instance family as a value for baseline + // performance, the API returns an empty response for and an exception for , , , + // and . + // + // [Amazon EC2 instance type naming conventions]: https://docs.aws.amazon.com/ec2/latest/instancetypes/instance-type-names.html + InstanceFamily *string + + noSmithyDocumentSerde +} + +// Specify an instance family to use as the baseline reference for CPU +// performance. All instance types that match your specified attributes will be +// compared against the CPU performance of the referenced instance family, +// regardless of CPU manufacturer or architecture. +// +// Currently, only one instance family can be specified in the list. +type PerformanceFactorReferenceRequest struct { + + // The instance family to use as a baseline reference. + // + // Ensure that you specify the correct value for the instance family. The instance + // family is everything before the period ( . ) in the instance type name. For + // example, in the instance type c6i.large , the instance family is c6i , not c6 . + // For more information, see [Amazon EC2 instance type naming conventions]in Amazon EC2 Instance Types. + // + // The following instance families are not supported for performance protection: + // + // - c1 + // + // - g3 | g3s + // + // - hpc7g + // + // - m1 | m2 + // + // - mac1 | mac2 | mac2-m1ultra | mac2-m2 | mac2-m2pro + // + // - p3dn | p4d | p5 + // + // - t1 + // + // - u-12tb1 | u-18tb1 | u-24tb1 | u-3tb1 | u-6tb1 | u-9tb1 | u7i-12tb | + // u7in-16tb | u7in-24tb | u7in-32tb + // + // If you enable performance protection by specifying a supported instance family, + // the returned instance types will exclude the above unsupported instance + // families. + // + // If you specify an unsupported instance family as a value for baseline + // performance, the API returns an empty response for and an exception for , , , + // and . + // + // [Amazon EC2 instance type naming conventions]: https://docs.aws.amazon.com/ec2/latest/instancetypes/instance-type-names.html + InstanceFamily *string + + noSmithyDocumentSerde +} + // The Diffie-Hellmann group number for phase 1 IKE negotiations. type Phase1DHGroupNumbersListValue struct { @@ -13759,6 +14240,47 @@ type RemoveIpamOperatingRegion struct { noSmithyDocumentSerde } +// Remove an Organizational Unit (OU) exclusion to your IPAM. If your IPAM is +// integrated with Amazon Web Services Organizations and you add an organizational +// unit (OU) exclusion, IPAM will not manage the IP addresses in accounts in that +// OU exclusion. There is a limit on the number of exclusions you can create. For +// more information, see [Quotas for your IPAM]in the Amazon VPC IPAM User Guide. +// +// [Quotas for your IPAM]: https://docs.aws.amazon.com/vpc/latest/ipam/quotas-ipam.html +type RemoveIpamOrganizationalUnitExclusion struct { + + // An Amazon Web Services Organizations entity path. Build the path for the OU(s) + // using Amazon Web Services Organizations IDs separated by a / . Include all child + // OUs by ending the path with /* . + // + // - Example 1 + // + // - Path to a child OU: + // o-a1b2c3d4e5/r-f6g7h8i9j0example/ou-ghi0-awsccccc/ou-jkl0-awsddddd/ + // + // - In this example, o-a1b2c3d4e5 is the organization ID, r-f6g7h8i9j0example is + // the root ID , ou-ghi0-awsccccc is an OU ID, and ou-jkl0-awsddddd is a child OU + // ID. + // + // - IPAM will not manage the IP addresses in accounts in the child OU. + // + // - Example 2 + // + // - Path where all child OUs will be part of the exclusion: + // o-a1b2c3d4e5/r-f6g7h8i9j0example/ou-ghi0-awsccccc/* + // + // - In this example, IPAM will not manage the IP addresses in accounts in the + // OU ( ou-ghi0-awsccccc ) or in accounts in any OUs that are children of the OU. + // + // For more information on how to construct an entity path, see [Understand the Amazon Web Services Organizations entity path] in the Amazon Web + // Services Identity and Access Management User Guide. + // + // [Understand the Amazon Web Services Organizations entity path]: https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies_last-accessed-view-data-orgs.html#access_policies_access-advisor-viewing-orgs-entity-path + OrganizationsEntityPath *string + + noSmithyDocumentSerde +} + // An entry for a prefix list. type RemovePrefixListEntry struct { @@ -14065,6 +14587,9 @@ type RequestLaunchTemplateData struct { // The network interfaces for the instance. NetworkInterfaces []LaunchTemplateInstanceNetworkInterfaceSpecificationRequest + // The entity that manages the launch template. + Operator *OperatorRequest + // The placement for the instance. Placement *LaunchTemplatePlacementRequest @@ -14702,6 +15227,9 @@ type ResponseLaunchTemplateData struct { // The network interfaces. NetworkInterfaces []LaunchTemplateInstanceNetworkInterfaceSpecification + // The entity that manages the launch template. + Operator *OperatorResponse + // The placement of the instance. Placement *LaunchTemplatePlacement @@ -17192,6 +17720,9 @@ type Subnet struct { // for any stopped instances are considered unavailable. AvailableIpAddressCount *int32 + // The state of VPC Block Public Access (BPA). + BlockPublicAccessStates *BlockPublicAccessStates + // The IPv4 CIDR block assigned to the subnet. CidrBlock *string @@ -19625,6 +20156,9 @@ type Volume struct { // Indicates whether Amazon EBS Multi-Attach is enabled. MultiAttachEnabled *bool + // The entity that manages the volume. + Operator *OperatorResponse + // The Amazon Resource Name (ARN) of the Outpost. OutpostArn *string @@ -19867,6 +20401,9 @@ type VolumeStatusItem struct { // Describes a VPC. type Vpc struct { + // The state of VPC Block Public Access (BPA). + BlockPublicAccessStates *BlockPublicAccessStates + // The primary IPv4 CIDR block for the VPC. CidrBlock *string @@ -19912,6 +20449,97 @@ type VpcAttachment struct { noSmithyDocumentSerde } +// A VPC BPA exclusion is a mode that can be applied to a single VPC or subnet +// that exempts it from the account’s BPA mode and will allow bidirectional or +// egress-only access. You can create BPA exclusions for VPCs and subnets even when +// BPA is not enabled on the account to ensure that there is no traffic disruption +// to the exclusions when VPC BPA is turned on. To learn more about VPC BPA, see [Block public access to VPCs and subnets] +// in the Amazon VPC User Guide. +// +// [Block public access to VPCs and subnets]: https://docs.aws.amazon.com/vpc/latest/userguide/security-vpc-bpa.html +type VpcBlockPublicAccessExclusion struct { + + // When the exclusion was created. + CreationTimestamp *time.Time + + // When the exclusion was deleted. + DeletionTimestamp *time.Time + + // The ID of the exclusion. + ExclusionId *string + + // The exclusion mode for internet gateway traffic. + // + // - allow-bidirectional : Allow all internet traffic to and from the excluded + // VPCs and subnets. + // + // - allow-egress : Allow outbound internet traffic from the excluded VPCs and + // subnets. Block inbound internet traffic to the excluded VPCs and subnets. Only + // applies when VPC Block Public Access is set to Bidirectional. + InternetGatewayExclusionMode InternetGatewayExclusionMode + + // When the exclusion was last updated. + LastUpdateTimestamp *time.Time + + // The reason for the current exclusion state. + Reason *string + + // The ARN of the exclusion. + ResourceArn *string + + // The state of the exclusion. + State VpcBlockPublicAccessExclusionState + + // tag - The key/value combination of a tag assigned to the resource. Use the tag + // key in the filter name and the tag value as the filter value. For example, to + // find all resources that have a tag with the key Owner and the value TeamA , + // specify tag:Owner for the filter name and TeamA for the filter value. + Tags []Tag + + noSmithyDocumentSerde +} + +// VPC Block Public Access (BPA) enables you to block resources in VPCs and +// subnets that you own in a Region from reaching or being reached from the +// internet through internet gateways and egress-only internet gateways. To learn +// more about VPC BPA, see [Block public access to VPCs and subnets]in the Amazon VPC User Guide. +// +// [Block public access to VPCs and subnets]: https://docs.aws.amazon.com/vpc/latest/userguide/security-vpc-bpa.html +type VpcBlockPublicAccessOptions struct { + + // An Amazon Web Services account ID. + AwsAccountId *string + + // An Amazon Web Services Region. + AwsRegion *string + + // The current mode of VPC BPA. + // + // - off : VPC BPA is not enabled and traffic is allowed to and from internet + // gateways and egress-only internet gateways in this Region. + // + // - block-bidirectional : Block all traffic to and from internet gateways and + // egress-only internet gateways in this Region (except for excluded VPCs and + // subnets). + // + // - block-ingress : Block all internet traffic to the VPCs in this Region + // (except for VPCs or subnets which are excluded). Only traffic to and from NAT + // gateways and egress-only internet gateways is allowed because these gateways + // only allow outbound connections to be established. + InternetGatewayBlockMode InternetGatewayBlockMode + + // The last time the VPC BPA mode was updated. + LastUpdateTimestamp *time.Time + + // The reason for the current state. + Reason *string + + // The current state of VPC BPA. + State VpcBlockPublicAccessState + + noSmithyDocumentSerde +} + // Describes an IPv4 CIDR block associated with a VPC. type VpcCidrBlockAssociation struct { diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/validators.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/validators.go index 30ca8697..28a4f85d 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/validators.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/validators.go @@ -2370,6 +2370,26 @@ func (m *validateOpCreateVolume) HandleInitialize(ctx context.Context, in middle return next.HandleInitialize(ctx, in) } +type validateOpCreateVpcBlockPublicAccessExclusion struct { +} + +func (*validateOpCreateVpcBlockPublicAccessExclusion) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpCreateVpcBlockPublicAccessExclusion) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*CreateVpcBlockPublicAccessExclusionInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpCreateVpcBlockPublicAccessExclusionInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + type validateOpCreateVpcEndpointConnectionNotification struct { } @@ -3750,6 +3770,26 @@ func (m *validateOpDeleteVolume) HandleInitialize(ctx context.Context, in middle return next.HandleInitialize(ctx, in) } +type validateOpDeleteVpcBlockPublicAccessExclusion struct { +} + +func (*validateOpDeleteVpcBlockPublicAccessExclusion) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpDeleteVpcBlockPublicAccessExclusion) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*DeleteVpcBlockPublicAccessExclusionInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpDeleteVpcBlockPublicAccessExclusionInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + type validateOpDeleteVpcEndpointConnectionNotifications struct { } @@ -4050,6 +4090,26 @@ func (m *validateOpDescribeByoipCidrs) HandleInitialize(ctx context.Context, in return next.HandleInitialize(ctx, in) } +type validateOpDescribeCapacityBlockExtensionOfferings struct { +} + +func (*validateOpDescribeCapacityBlockExtensionOfferings) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpDescribeCapacityBlockExtensionOfferings) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*DescribeCapacityBlockExtensionOfferingsInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpDescribeCapacityBlockExtensionOfferingsInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + type validateOpDescribeCapacityBlockOfferings struct { } @@ -7450,6 +7510,46 @@ func (m *validateOpModifyVpcAttribute) HandleInitialize(ctx context.Context, in return next.HandleInitialize(ctx, in) } +type validateOpModifyVpcBlockPublicAccessExclusion struct { +} + +func (*validateOpModifyVpcBlockPublicAccessExclusion) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpModifyVpcBlockPublicAccessExclusion) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*ModifyVpcBlockPublicAccessExclusionInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpModifyVpcBlockPublicAccessExclusionInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + +type validateOpModifyVpcBlockPublicAccessOptions struct { +} + +func (*validateOpModifyVpcBlockPublicAccessOptions) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpModifyVpcBlockPublicAccessOptions) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*ModifyVpcBlockPublicAccessOptionsInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpModifyVpcBlockPublicAccessOptionsInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + type validateOpModifyVpcEndpointConnectionNotification struct { } @@ -7830,6 +7930,26 @@ func (m *validateOpProvisionPublicIpv4PoolCidr) HandleInitialize(ctx context.Con return next.HandleInitialize(ctx, in) } +type validateOpPurchaseCapacityBlockExtension struct { +} + +func (*validateOpPurchaseCapacityBlockExtension) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpPurchaseCapacityBlockExtension) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*PurchaseCapacityBlockExtensionInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpPurchaseCapacityBlockExtensionInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + type validateOpPurchaseCapacityBlock struct { } @@ -9462,6 +9582,10 @@ func addOpCreateVolumeValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpCreateVolume{}, middleware.After) } +func addOpCreateVpcBlockPublicAccessExclusionValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpCreateVpcBlockPublicAccessExclusion{}, middleware.After) +} + func addOpCreateVpcEndpointConnectionNotificationValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpCreateVpcEndpointConnectionNotification{}, middleware.After) } @@ -9738,6 +9862,10 @@ func addOpDeleteVolumeValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpDeleteVolume{}, middleware.After) } +func addOpDeleteVpcBlockPublicAccessExclusionValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpDeleteVpcBlockPublicAccessExclusion{}, middleware.After) +} + func addOpDeleteVpcEndpointConnectionNotificationsValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpDeleteVpcEndpointConnectionNotifications{}, middleware.After) } @@ -9798,6 +9926,10 @@ func addOpDescribeByoipCidrsValidationMiddleware(stack *middleware.Stack) error return stack.Initialize.Add(&validateOpDescribeByoipCidrs{}, middleware.After) } +func addOpDescribeCapacityBlockExtensionOfferingsValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpDescribeCapacityBlockExtensionOfferings{}, middleware.After) +} + func addOpDescribeCapacityBlockOfferingsValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpDescribeCapacityBlockOfferings{}, middleware.After) } @@ -10478,6 +10610,14 @@ func addOpModifyVpcAttributeValidationMiddleware(stack *middleware.Stack) error return stack.Initialize.Add(&validateOpModifyVpcAttribute{}, middleware.After) } +func addOpModifyVpcBlockPublicAccessExclusionValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpModifyVpcBlockPublicAccessExclusion{}, middleware.After) +} + +func addOpModifyVpcBlockPublicAccessOptionsValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpModifyVpcBlockPublicAccessOptions{}, middleware.After) +} + func addOpModifyVpcEndpointConnectionNotificationValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpModifyVpcEndpointConnectionNotification{}, middleware.After) } @@ -10554,6 +10694,10 @@ func addOpProvisionPublicIpv4PoolCidrValidationMiddleware(stack *middleware.Stac return stack.Initialize.Add(&validateOpProvisionPublicIpv4PoolCidr{}, middleware.After) } +func addOpPurchaseCapacityBlockExtensionValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpPurchaseCapacityBlockExtension{}, middleware.After) +} + func addOpPurchaseCapacityBlockValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpPurchaseCapacityBlock{}, middleware.After) } @@ -13770,6 +13914,21 @@ func validateOpCreateVolumeInput(v *CreateVolumeInput) error { } } +func validateOpCreateVpcBlockPublicAccessExclusionInput(v *CreateVpcBlockPublicAccessExclusionInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "CreateVpcBlockPublicAccessExclusionInput"} + if len(v.InternetGatewayExclusionMode) == 0 { + invalidParams.Add(smithy.NewErrParamRequired("InternetGatewayExclusionMode")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpCreateVpcEndpointConnectionNotificationInput(v *CreateVpcEndpointConnectionNotificationInput) error { if v == nil { return nil @@ -14838,6 +14997,21 @@ func validateOpDeleteVolumeInput(v *DeleteVolumeInput) error { } } +func validateOpDeleteVpcBlockPublicAccessExclusionInput(v *DeleteVpcBlockPublicAccessExclusionInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "DeleteVpcBlockPublicAccessExclusionInput"} + if v.ExclusionId == nil { + invalidParams.Add(smithy.NewErrParamRequired("ExclusionId")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpDeleteVpcEndpointConnectionNotificationsInput(v *DeleteVpcEndpointConnectionNotificationsInput) error { if v == nil { return nil @@ -15072,6 +15246,24 @@ func validateOpDescribeByoipCidrsInput(v *DescribeByoipCidrsInput) error { } } +func validateOpDescribeCapacityBlockExtensionOfferingsInput(v *DescribeCapacityBlockExtensionOfferingsInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "DescribeCapacityBlockExtensionOfferingsInput"} + if v.CapacityBlockExtensionDurationHours == nil { + invalidParams.Add(smithy.NewErrParamRequired("CapacityBlockExtensionDurationHours")) + } + if v.CapacityReservationId == nil { + invalidParams.Add(smithy.NewErrParamRequired("CapacityReservationId")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpDescribeCapacityBlockOfferingsInput(v *DescribeCapacityBlockOfferingsInput) error { if v == nil { return nil @@ -17905,6 +18097,39 @@ func validateOpModifyVpcAttributeInput(v *ModifyVpcAttributeInput) error { } } +func validateOpModifyVpcBlockPublicAccessExclusionInput(v *ModifyVpcBlockPublicAccessExclusionInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "ModifyVpcBlockPublicAccessExclusionInput"} + if v.ExclusionId == nil { + invalidParams.Add(smithy.NewErrParamRequired("ExclusionId")) + } + if len(v.InternetGatewayExclusionMode) == 0 { + invalidParams.Add(smithy.NewErrParamRequired("InternetGatewayExclusionMode")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateOpModifyVpcBlockPublicAccessOptionsInput(v *ModifyVpcBlockPublicAccessOptionsInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "ModifyVpcBlockPublicAccessOptionsInput"} + if len(v.InternetGatewayBlockMode) == 0 { + invalidParams.Add(smithy.NewErrParamRequired("InternetGatewayBlockMode")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpModifyVpcEndpointConnectionNotificationInput(v *ModifyVpcEndpointConnectionNotificationInput) error { if v == nil { return nil @@ -18238,6 +18463,24 @@ func validateOpProvisionPublicIpv4PoolCidrInput(v *ProvisionPublicIpv4PoolCidrIn } } +func validateOpPurchaseCapacityBlockExtensionInput(v *PurchaseCapacityBlockExtensionInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "PurchaseCapacityBlockExtensionInput"} + if v.CapacityBlockExtensionOfferingId == nil { + invalidParams.Add(smithy.NewErrParamRequired("CapacityBlockExtensionOfferingId")) + } + if v.CapacityReservationId == nil { + invalidParams.Add(smithy.NewErrParamRequired("CapacityReservationId")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpPurchaseCapacityBlockInput(v *PurchaseCapacityBlockInput) error { if v == nil { return nil diff --git a/vendor/modules.txt b/vendor/modules.txt index 323d1832..ea6bbcd4 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -61,7 +61,7 @@ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 # github.com/aws/aws-sdk-go-v2/internal/ini v1.8.1 ## explicit; go 1.21 github.com/aws/aws-sdk-go-v2/internal/ini -# github.com/aws/aws-sdk-go-v2/service/ec2 v1.189.0 +# github.com/aws/aws-sdk-go-v2/service/ec2 v1.193.0 ## explicit; go 1.21 github.com/aws/aws-sdk-go-v2/service/ec2 github.com/aws/aws-sdk-go-v2/service/ec2/internal/endpoints