From 75008617b85bbe781743d99f48c1a56677a95cf2 Mon Sep 17 00:00:00 2001 From: Gyuho Lee Date: Sun, 11 Jul 2021 22:22:24 -0700 Subject: [PATCH] vendor: update ec2 v2 Signed-off-by: Gyuho Lee --- go.mod | 19 +- go.sum | 15 +- .../github.com/aws/aws-sdk-go-v2/.gitignore | 11 + .../github.com/aws/aws-sdk-go-v2/.travis.yml | 31 + .../github.com/aws/aws-sdk-go-v2/CHANGELOG.md | 1131 +++ .../aws/aws-sdk-go-v2/CODE_OF_CONDUCT.md | 4 + .../aws/aws-sdk-go-v2/CONTRIBUTING.md | 178 + vendor/github.com/aws/aws-sdk-go-v2/DESIGN.md | 15 + vendor/github.com/aws/aws-sdk-go-v2/Makefile | 442 ++ vendor/github.com/aws/aws-sdk-go-v2/README.md | 155 + .../aws/aws-sdk-go-v2/aws/config.go | 31 + .../github.com/aws/aws-sdk-go-v2/aws/doc.go | 4 +- .../aws/aws-sdk-go-v2/aws/endpoints.go | 19 + .../aws/aws-sdk-go-v2/aws/from_ptr.go | 1 + .../aws-sdk-go-v2/aws/go_module_metadata.go | 6 + .../aws/aws-sdk-go-v2/aws/logging.go | 1 + .../aws/aws-sdk-go-v2/aws/logging_generate.go | 1 + .../aws-sdk-go-v2/aws/middleware/metadata.go | 15 + .../aws/middleware/middleware.go | 6 +- .../aws-sdk-go-v2/aws/middleware/osname.go | 23 + .../aws/middleware/osname_go115.go | 23 + .../aws/middleware/user_agent.go | 27 +- .../aws/signer/internal/v4/header_rules.go | 16 +- .../aws/signer/internal/v4/headers.go | 11 +- .../aws-sdk-go-v2/aws/signer/v4/middleware.go | 10 + .../aws/aws-sdk-go-v2/aws/signer/v4/v4.go | 29 +- .../aws/aws-sdk-go-v2/aws/to_ptr.go | 1 + .../aws/aws-sdk-go-v2/aws/version.go | 2 +- .../aws/aws-sdk-go-v2/buildspec.yml | 12 + vendor/github.com/aws/aws-sdk-go-v2/doc.go | 58 + vendor/github.com/aws/aws-sdk-go-v2/go.mod | 9 + vendor/github.com/aws/aws-sdk-go-v2/go.sum | 19 + .../internal/endpoints/endpoints.go | 8 +- .../aws-sdk-go-v2/internal/ini/CHANGELOG.md | 13 + .../aws-sdk-go-v2/internal/ini/LICENSE.txt | 202 + .../aws-sdk-go-v2/internal/ini/dependency.go | 6 + .../aws/aws-sdk-go-v2/internal/ini/doc.go | 33 +- .../aws/aws-sdk-go-v2/internal/ini/go.mod | 7 + .../aws/aws-sdk-go-v2/internal/ini/go.sum | 10 + .../internal/ini/go_module_metadata.go | 6 + .../aws-sdk-go-v2/internal/ini/ini_parser.go | 25 +- .../aws/aws-sdk-go-v2/internal/ini/visitor.go | 7 +- .../aws/aws-sdk-go-v2/internal/sdk/time.go | 11 + .../internal/sdkio/ringbuffer.go | 72 - .../aws/aws-sdk-go-v2/local-mod-replace.sh | 39 + .../github.com/aws/aws-sdk-go-v2/modman.toml | 52 + .../aws-sdk-go-v2/service/ec2/CHANGELOG.md | 28 + .../aws-sdk-go-v2/service/ec2/api_client.go | 11 +- ...op_AcceptReservedInstancesExchangeQuote.go | 6 +- ...ansitGatewayMulticastDomainAssociations.go | 6 +- ...p_AcceptTransitGatewayPeeringAttachment.go | 6 +- ...pi_op_AcceptTransitGatewayVpcAttachment.go | 6 +- .../api_op_AcceptVpcEndpointConnections.go | 6 +- .../ec2/api_op_AcceptVpcPeeringConnection.go | 6 +- .../service/ec2/api_op_AdvertiseByoipCidr.go | 26 +- .../service/ec2/api_op_AllocateAddress.go | 40 +- .../service/ec2/api_op_AllocateHosts.go | 16 +- ...ySecurityGroupsToClientVpnTargetNetwork.go | 6 +- .../service/ec2/api_op_AssignIpv6Addresses.go | 14 +- .../ec2/api_op_AssignPrivateIpAddresses.go | 8 +- .../service/ec2/api_op_AssociateAddress.go | 20 +- .../api_op_AssociateClientVpnTargetNetwork.go | 6 +- .../ec2/api_op_AssociateDhcpOptions.go | 6 +- ...i_op_AssociateEnclaveCertificateIamRole.go | 14 +- .../ec2/api_op_AssociateIamInstanceProfile.go | 4 +- .../service/ec2/api_op_AssociateRouteTable.go | 6 +- .../ec2/api_op_AssociateSubnetCidrBlock.go | 4 +- ..._AssociateTransitGatewayMulticastDomain.go | 6 +- ...pi_op_AssociateTransitGatewayRouteTable.go | 6 +- .../ec2/api_op_AssociateTrunkInterface.go | 189 + .../ec2/api_op_AssociateVpcCidrBlock.go | 6 +- .../ec2/api_op_AttachClassicLinkVpc.go | 8 +- .../ec2/api_op_AttachInternetGateway.go | 6 +- .../ec2/api_op_AttachNetworkInterface.go | 12 +- .../service/ec2/api_op_AttachVolume.go | 8 +- .../service/ec2/api_op_AttachVpnGateway.go | 6 +- .../ec2/api_op_AuthorizeClientVpnIngress.go | 8 +- .../api_op_AuthorizeSecurityGroupEgress.go | 10 +- .../api_op_AuthorizeSecurityGroupIngress.go | 10 +- .../service/ec2/api_op_BundleInstance.go | 6 +- .../service/ec2/api_op_CancelBundleTask.go | 6 +- .../ec2/api_op_CancelCapacityReservation.go | 8 +- .../ec2/api_op_CancelConversionTask.go | 6 +- .../service/ec2/api_op_CancelExportTask.go | 4 +- .../service/ec2/api_op_CancelImportTask.go | 6 +- .../api_op_CancelReservedInstancesListing.go | 6 +- .../ec2/api_op_CancelSpotFleetRequests.go | 8 +- .../ec2/api_op_CancelSpotInstanceRequests.go | 6 +- .../ec2/api_op_ConfirmProductInstance.go | 12 +- .../service/ec2/api_op_CopyFpgaImage.go | 6 +- .../service/ec2/api_op_CopyImage.go | 53 +- .../service/ec2/api_op_CopySnapshot.go | 49 +- .../ec2/api_op_CreateCapacityReservation.go | 50 +- .../ec2/api_op_CreateCarrierGateway.go | 6 +- .../ec2/api_op_CreateClientVpnEndpoint.go | 10 +- .../ec2/api_op_CreateClientVpnRoute.go | 6 +- .../ec2/api_op_CreateCustomerGateway.go | 8 +- .../service/ec2/api_op_CreateDefaultSubnet.go | 6 +- .../service/ec2/api_op_CreateDefaultVpc.go | 6 +- .../service/ec2/api_op_CreateDhcpOptions.go | 6 +- .../api_op_CreateEgressOnlyInternetGateway.go | 6 +- .../service/ec2/api_op_CreateFleet.go | 48 +- .../service/ec2/api_op_CreateFlowLogs.go | 8 +- .../service/ec2/api_op_CreateFpgaImage.go | 6 +- .../service/ec2/api_op_CreateImage.go | 10 +- .../ec2/api_op_CreateInstanceExportTask.go | 12 +- .../ec2/api_op_CreateInternetGateway.go | 6 +- .../service/ec2/api_op_CreateKeyPair.go | 6 +- .../ec2/api_op_CreateLaunchTemplate.go | 6 +- .../ec2/api_op_CreateLaunchTemplateVersion.go | 6 +- .../ec2/api_op_CreateLocalGatewayRoute.go | 6 +- ...ateLocalGatewayRouteTableVpcAssociation.go | 6 +- .../ec2/api_op_CreateManagedPrefixList.go | 8 +- .../service/ec2/api_op_CreateNatGateway.go | 42 +- .../service/ec2/api_op_CreateNetworkAcl.go | 6 +- .../ec2/api_op_CreateNetworkAclEntry.go | 10 +- .../ec2/api_op_CreateNetworkInsightsPath.go | 8 +- .../ec2/api_op_CreateNetworkInterface.go | 61 +- ...api_op_CreateNetworkInterfacePermission.go | 16 +- .../ec2/api_op_CreatePlacementGroup.go | 10 +- .../ec2/api_op_CreateReplaceRootVolumeTask.go | 177 + .../api_op_CreateReservedInstancesListing.go | 8 +- .../ec2/api_op_CreateRestoreImageTask.go | 152 + .../service/ec2/api_op_CreateRoute.go | 8 +- .../service/ec2/api_op_CreateRouteTable.go | 6 +- .../service/ec2/api_op_CreateSecurityGroup.go | 6 +- .../service/ec2/api_op_CreateSnapshot.go | 76 +- .../service/ec2/api_op_CreateSnapshots.go | 35 +- .../api_op_CreateSpotDatafeedSubscription.go | 10 +- .../ec2/api_op_CreateStoreImageTask.go | 140 + .../service/ec2/api_op_CreateSubnet.go | 6 +- .../service/ec2/api_op_CreateTags.go | 6 +- .../ec2/api_op_CreateTrafficMirrorFilter.go | 6 +- .../api_op_CreateTrafficMirrorFilterRule.go | 10 +- .../ec2/api_op_CreateTrafficMirrorSession.go | 12 +- .../ec2/api_op_CreateTrafficMirrorTarget.go | 6 +- .../ec2/api_op_CreateTransitGateway.go | 6 +- .../ec2/api_op_CreateTransitGatewayConnect.go | 6 +- .../api_op_CreateTransitGatewayConnectPeer.go | 6 +- ..._op_CreateTransitGatewayMulticastDomain.go | 6 +- ...p_CreateTransitGatewayPeeringAttachment.go | 6 +- ...CreateTransitGatewayPrefixListReference.go | 8 +- .../ec2/api_op_CreateTransitGatewayRoute.go | 8 +- .../api_op_CreateTransitGatewayRouteTable.go | 6 +- ...pi_op_CreateTransitGatewayVpcAttachment.go | 6 +- .../service/ec2/api_op_CreateVolume.go | 28 +- .../service/ec2/api_op_CreateVpc.go | 8 +- .../service/ec2/api_op_CreateVpcEndpoint.go | 8 +- ...CreateVpcEndpointConnectionNotification.go | 6 +- ...p_CreateVpcEndpointServiceConfiguration.go | 8 +- .../ec2/api_op_CreateVpcPeeringConnection.go | 6 +- .../service/ec2/api_op_CreateVpnConnection.go | 6 +- .../ec2/api_op_CreateVpnConnectionRoute.go | 4 +- .../service/ec2/api_op_CreateVpnGateway.go | 8 +- .../ec2/api_op_DeleteCarrierGateway.go | 6 +- .../ec2/api_op_DeleteClientVpnEndpoint.go | 6 +- .../ec2/api_op_DeleteClientVpnRoute.go | 6 +- .../ec2/api_op_DeleteCustomerGateway.go | 6 +- .../service/ec2/api_op_DeleteDhcpOptions.go | 6 +- .../api_op_DeleteEgressOnlyInternetGateway.go | 8 +- .../service/ec2/api_op_DeleteFleets.go | 10 +- .../service/ec2/api_op_DeleteFlowLogs.go | 6 +- .../service/ec2/api_op_DeleteFpgaImage.go | 8 +- .../ec2/api_op_DeleteInternetGateway.go | 6 +- .../service/ec2/api_op_DeleteKeyPair.go | 6 +- .../ec2/api_op_DeleteLaunchTemplate.go | 6 +- .../api_op_DeleteLaunchTemplateVersions.go | 6 +- .../ec2/api_op_DeleteLocalGatewayRoute.go | 6 +- ...eteLocalGatewayRouteTableVpcAssociation.go | 6 +- .../ec2/api_op_DeleteManagedPrefixList.go | 6 +- .../service/ec2/api_op_DeleteNatGateway.go | 13 +- .../service/ec2/api_op_DeleteNetworkAcl.go | 6 +- .../ec2/api_op_DeleteNetworkAclEntry.go | 10 +- .../api_op_DeleteNetworkInsightsAnalysis.go | 6 +- .../ec2/api_op_DeleteNetworkInsightsPath.go | 6 +- .../ec2/api_op_DeleteNetworkInterface.go | 6 +- ...api_op_DeleteNetworkInterfacePermission.go | 10 +- .../ec2/api_op_DeletePlacementGroup.go | 8 +- .../api_op_DeleteQueuedReservedInstances.go | 6 +- .../service/ec2/api_op_DeleteRoute.go | 6 +- .../service/ec2/api_op_DeleteRouteTable.go | 6 +- .../service/ec2/api_op_DeleteSecurityGroup.go | 6 +- .../service/ec2/api_op_DeleteSnapshot.go | 6 +- .../api_op_DeleteSpotDatafeedSubscription.go | 6 +- .../service/ec2/api_op_DeleteSubnet.go | 6 +- .../service/ec2/api_op_DeleteTags.go | 6 +- .../ec2/api_op_DeleteTrafficMirrorFilter.go | 6 +- .../api_op_DeleteTrafficMirrorFilterRule.go | 6 +- .../ec2/api_op_DeleteTrafficMirrorSession.go | 6 +- .../ec2/api_op_DeleteTrafficMirrorTarget.go | 6 +- .../ec2/api_op_DeleteTransitGateway.go | 6 +- .../ec2/api_op_DeleteTransitGatewayConnect.go | 6 +- .../api_op_DeleteTransitGatewayConnectPeer.go | 6 +- ..._op_DeleteTransitGatewayMulticastDomain.go | 6 +- ...p_DeleteTransitGatewayPeeringAttachment.go | 6 +- ...DeleteTransitGatewayPrefixListReference.go | 6 +- .../ec2/api_op_DeleteTransitGatewayRoute.go | 6 +- .../api_op_DeleteTransitGatewayRouteTable.go | 6 +- ...pi_op_DeleteTransitGatewayVpcAttachment.go | 6 +- .../service/ec2/api_op_DeleteVolume.go | 6 +- .../service/ec2/api_op_DeleteVpc.go | 6 +- ...eleteVpcEndpointConnectionNotifications.go | 6 +- ..._DeleteVpcEndpointServiceConfigurations.go | 6 +- .../service/ec2/api_op_DeleteVpcEndpoints.go | 34 +- .../ec2/api_op_DeleteVpcPeeringConnection.go | 8 +- .../service/ec2/api_op_DeleteVpnConnection.go | 6 +- .../ec2/api_op_DeleteVpnConnectionRoute.go | 4 +- .../service/ec2/api_op_DeleteVpnGateway.go | 6 +- .../ec2/api_op_DeprovisionByoipCidr.go | 16 +- .../service/ec2/api_op_DeregisterImage.go | 6 +- ...sterInstanceEventNotificationAttributes.go | 6 +- ...sterTransitGatewayMulticastGroupMembers.go | 6 +- ...sterTransitGatewayMulticastGroupSources.go | 6 +- .../ec2/api_op_DescribeAccountAttributes.go | 6 +- .../service/ec2/api_op_DescribeAddresses.go | 41 +- .../ec2/api_op_DescribeAddressesAttribute.go | 116 +- .../ec2/api_op_DescribeAggregateIdFormat.go | 8 +- .../ec2/api_op_DescribeAvailabilityZones.go | 8 +- .../service/ec2/api_op_DescribeBundleTasks.go | 28 +- .../service/ec2/api_op_DescribeByoipCidrs.go | 26 +- .../api_op_DescribeCapacityReservations.go | 128 +- .../ec2/api_op_DescribeCarrierGateways.go | 26 +- .../api_op_DescribeClassicLinkInstances.go | 26 +- ..._op_DescribeClientVpnAuthorizationRules.go | 26 +- .../api_op_DescribeClientVpnConnections.go | 26 +- .../ec2/api_op_DescribeClientVpnEndpoints.go | 26 +- .../ec2/api_op_DescribeClientVpnRoutes.go | 26 +- .../api_op_DescribeClientVpnTargetNetworks.go | 26 +- .../service/ec2/api_op_DescribeCoipPools.go | 26 +- .../ec2/api_op_DescribeConversionTasks.go | 61 +- .../ec2/api_op_DescribeCustomerGateways.go | 39 +- .../service/ec2/api_op_DescribeDhcpOptions.go | 26 +- ...i_op_DescribeEgressOnlyInternetGateways.go | 26 +- .../service/ec2/api_op_DescribeElasticGpus.go | 10 +- .../ec2/api_op_DescribeExportImageTasks.go | 26 +- .../service/ec2/api_op_DescribeExportTasks.go | 26 +- .../api_op_DescribeFastSnapshotRestores.go | 14 +- .../ec2/api_op_DescribeFleetHistory.go | 13 +- .../ec2/api_op_DescribeFleetInstances.go | 13 +- .../service/ec2/api_op_DescribeFleets.go | 31 +- .../service/ec2/api_op_DescribeFlowLogs.go | 26 +- .../ec2/api_op_DescribeFpgaImageAttribute.go | 6 +- .../service/ec2/api_op_DescribeFpgaImages.go | 26 +- ...api_op_DescribeHostReservationOfferings.go | 32 +- .../ec2/api_op_DescribeHostReservations.go | 24 +- .../service/ec2/api_op_DescribeHosts.go | 24 +- ..._DescribeIamInstanceProfileAssociations.go | 24 +- .../service/ec2/api_op_DescribeIdFormat.go | 4 +- .../ec2/api_op_DescribeIdentityIdFormat.go | 4 +- .../ec2/api_op_DescribeImageAttribute.go | 13 +- .../service/ec2/api_op_DescribeImages.go | 276 +- .../ec2/api_op_DescribeImportImageTasks.go | 26 +- .../ec2/api_op_DescribeImportSnapshotTasks.go | 26 +- .../ec2/api_op_DescribeInstanceAttribute.go | 19 +- ...op_DescribeInstanceCreditSpecifications.go | 28 +- ...ribeInstanceEventNotificationAttributes.go | 6 +- .../ec2/api_op_DescribeInstanceStatus.go | 239 +- .../api_op_DescribeInstanceTypeOfferings.go | 14 +- .../ec2/api_op_DescribeInstanceTypes.go | 72 +- .../service/ec2/api_op_DescribeInstances.go | 592 +- .../ec2/api_op_DescribeInternetGateways.go | 26 +- .../service/ec2/api_op_DescribeIpv6Pools.go | 26 +- .../service/ec2/api_op_DescribeKeyPairs.go | 189 +- .../api_op_DescribeLaunchTemplateVersions.go | 26 +- .../ec2/api_op_DescribeLaunchTemplates.go | 26 +- ...eTableVirtualInterfaceGroupAssociations.go | 26 +- ...beLocalGatewayRouteTableVpcAssociations.go | 26 +- .../api_op_DescribeLocalGatewayRouteTables.go | 26 +- ...cribeLocalGatewayVirtualInterfaceGroups.go | 26 +- ...p_DescribeLocalGatewayVirtualInterfaces.go | 26 +- .../ec2/api_op_DescribeLocalGateways.go | 26 +- .../ec2/api_op_DescribeManagedPrefixLists.go | 31 +- .../ec2/api_op_DescribeMovingAddresses.go | 26 +- .../service/ec2/api_op_DescribeNatGateways.go | 283 +- .../service/ec2/api_op_DescribeNetworkAcls.go | 26 +- .../api_op_DescribeNetworkInsightsAnalyses.go | 26 +- .../api_op_DescribeNetworkInsightsPaths.go | 26 +- ...pi_op_DescribeNetworkInterfaceAttribute.go | 6 +- ..._op_DescribeNetworkInterfacePermissions.go | 30 +- .../ec2/api_op_DescribeNetworkInterfaces.go | 275 +- .../ec2/api_op_DescribePlacementGroups.go | 8 +- .../service/ec2/api_op_DescribePrefixLists.go | 33 +- .../ec2/api_op_DescribePrincipalIdFormat.go | 26 +- .../ec2/api_op_DescribePublicIpv4Pools.go | 24 +- .../service/ec2/api_op_DescribeRegions.go | 8 +- .../api_op_DescribeReplaceRootVolumeTasks.go | 228 + .../ec2/api_op_DescribeReservedInstances.go | 50 +- ...pi_op_DescribeReservedInstancesListings.go | 6 +- ..._DescribeReservedInstancesModifications.go | 14 +- ...i_op_DescribeReservedInstancesOfferings.go | 75 +- .../service/ec2/api_op_DescribeRouteTables.go | 26 +- ...p_DescribeScheduledInstanceAvailability.go | 30 +- .../ec2/api_op_DescribeScheduledInstances.go | 26 +- .../api_op_DescribeSecurityGroupReferences.go | 6 +- .../ec2/api_op_DescribeSecurityGroups.go | 264 +- .../ec2/api_op_DescribeSnapshotAttribute.go | 6 +- .../service/ec2/api_op_DescribeSnapshots.go | 37 +- ...api_op_DescribeSpotDatafeedSubscription.go | 6 +- .../ec2/api_op_DescribeSpotFleetInstances.go | 8 +- .../api_op_DescribeSpotFleetRequestHistory.go | 8 +- .../ec2/api_op_DescribeSpotFleetRequests.go | 26 +- .../api_op_DescribeSpotInstanceRequests.go | 342 +- .../ec2/api_op_DescribeSpotPriceHistory.go | 33 +- .../ec2/api_op_DescribeStaleSecurityGroups.go | 26 +- .../ec2/api_op_DescribeStoreImageTasks.go | 245 + .../service/ec2/api_op_DescribeSubnets.go | 73 +- .../service/ec2/api_op_DescribeTags.go | 26 +- .../api_op_DescribeTrafficMirrorFilters.go | 26 +- .../api_op_DescribeTrafficMirrorSessions.go | 26 +- .../api_op_DescribeTrafficMirrorTargets.go | 26 +- ...pi_op_DescribeTransitGatewayAttachments.go | 26 +- ...i_op_DescribeTransitGatewayConnectPeers.go | 26 +- .../api_op_DescribeTransitGatewayConnects.go | 26 +- ..._DescribeTransitGatewayMulticastDomains.go | 26 +- ...escribeTransitGatewayPeeringAttachments.go | 26 +- ...pi_op_DescribeTransitGatewayRouteTables.go | 26 +- ...op_DescribeTransitGatewayVpcAttachments.go | 26 +- .../ec2/api_op_DescribeTransitGateways.go | 26 +- ...i_op_DescribeTrunkInterfaceAssociations.go | 137 + .../ec2/api_op_DescribeVolumeAttribute.go | 6 +- .../ec2/api_op_DescribeVolumeStatus.go | 26 +- .../service/ec2/api_op_DescribeVolumes.go | 250 +- .../api_op_DescribeVolumesModifications.go | 26 +- .../ec2/api_op_DescribeVpcAttribute.go | 6 +- .../ec2/api_op_DescribeVpcClassicLink.go | 6 +- ...api_op_DescribeVpcClassicLinkDnsSupport.go | 24 +- ...cribeVpcEndpointConnectionNotifications.go | 26 +- .../api_op_DescribeVpcEndpointConnections.go | 26 +- ...escribeVpcEndpointServiceConfigurations.go | 26 +- ...p_DescribeVpcEndpointServicePermissions.go | 26 +- .../ec2/api_op_DescribeVpcEndpointServices.go | 39 +- .../ec2/api_op_DescribeVpcEndpoints.go | 26 +- .../api_op_DescribeVpcPeeringConnections.go | 368 +- .../service/ec2/api_op_DescribeVpcs.go | 189 +- .../ec2/api_op_DescribeVpnConnections.go | 61 +- .../service/ec2/api_op_DescribeVpnGateways.go | 6 +- .../ec2/api_op_DetachClassicLinkVpc.go | 8 +- .../ec2/api_op_DetachInternetGateway.go | 6 +- .../ec2/api_op_DetachNetworkInterface.go | 8 +- .../service/ec2/api_op_DetachVolume.go | 10 +- .../service/ec2/api_op_DetachVpnGateway.go | 6 +- .../api_op_DisableEbsEncryptionByDefault.go | 8 +- .../ec2/api_op_DisableFastSnapshotRestores.go | 6 +- .../ec2/api_op_DisableImageDeprecation.go | 125 + .../ec2/api_op_DisableSerialConsoleAccess.go | 120 + ...ableTransitGatewayRouteTablePropagation.go | 6 +- .../ec2/api_op_DisableVgwRoutePropagation.go | 6 +- .../ec2/api_op_DisableVpcClassicLink.go | 8 +- .../api_op_DisableVpcClassicLinkDnsSupport.go | 6 +- .../service/ec2/api_op_DisassociateAddress.go | 6 +- ...i_op_DisassociateClientVpnTargetNetwork.go | 6 +- ...p_DisassociateEnclaveCertificateIamRole.go | 8 +- .../api_op_DisassociateIamInstanceProfile.go | 4 +- .../ec2/api_op_DisassociateRouteTable.go | 6 +- .../ec2/api_op_DisassociateSubnetCidrBlock.go | 4 +- ...sassociateTransitGatewayMulticastDomain.go | 6 +- ...op_DisassociateTransitGatewayRouteTable.go | 6 +- .../ec2/api_op_DisassociateTrunkInterface.go | 170 + .../ec2/api_op_DisassociateVpcCidrBlock.go | 4 +- .../api_op_EnableEbsEncryptionByDefault.go | 10 +- .../ec2/api_op_EnableFastSnapshotRestores.go | 6 +- .../ec2/api_op_EnableImageDeprecation.go | 134 + .../ec2/api_op_EnableSerialConsoleAccess.go | 120 + ...ableTransitGatewayRouteTablePropagation.go | 6 +- .../ec2/api_op_EnableVgwRoutePropagation.go | 6 +- .../service/ec2/api_op_EnableVolumeIO.go | 6 +- .../ec2/api_op_EnableVpcClassicLink.go | 8 +- .../api_op_EnableVpcClassicLinkDnsSupport.go | 6 +- ...lientVpnClientCertificateRevocationList.go | 6 +- ...i_op_ExportClientVpnClientConfiguration.go | 6 +- .../service/ec2/api_op_ExportImage.go | 12 +- .../ec2/api_op_ExportTransitGatewayRoutes.go | 6 +- ...GetAssociatedEnclaveCertificateIamRoles.go | 6 +- .../ec2/api_op_GetAssociatedIpv6PoolCidrs.go | 26 +- .../ec2/api_op_GetCapacityReservationUsage.go | 30 +- .../service/ec2/api_op_GetCoipPoolUsage.go | 8 +- .../service/ec2/api_op_GetConsoleOutput.go | 12 +- .../ec2/api_op_GetConsoleScreenshot.go | 8 +- .../api_op_GetDefaultCreditSpecification.go | 8 +- .../ec2/api_op_GetEbsDefaultKmsKeyId.go | 6 +- .../ec2/api_op_GetEbsEncryptionByDefault.go | 8 +- .../api_op_GetFlowLogsIntegrationTemplate.go | 150 + .../api_op_GetGroupsForCapacityReservation.go | 26 +- ...pi_op_GetHostReservationPurchasePreview.go | 4 +- .../ec2/api_op_GetLaunchTemplateData.go | 6 +- ...api_op_GetManagedPrefixListAssociations.go | 26 +- .../ec2/api_op_GetManagedPrefixListEntries.go | 28 +- .../service/ec2/api_op_GetPasswordData.go | 22 +- ...pi_op_GetReservedInstancesExchangeQuote.go | 8 +- .../api_op_GetSerialConsoleAccessStatus.go | 121 + ...GetTransitGatewayAttachmentPropagations.go | 26 +- ...ansitGatewayMulticastDomainAssociations.go | 26 +- ...p_GetTransitGatewayPrefixListReferences.go | 26 +- ...GetTransitGatewayRouteTableAssociations.go | 26 +- ...GetTransitGatewayRouteTablePropagations.go | 26 +- ...lientVpnClientCertificateRevocationList.go | 8 +- .../service/ec2/api_op_ImportImage.go | 16 +- .../service/ec2/api_op_ImportInstance.go | 19 +- .../service/ec2/api_op_ImportKeyPair.go | 6 +- .../service/ec2/api_op_ImportSnapshot.go | 17 +- .../service/ec2/api_op_ImportVolume.go | 20 +- .../ec2/api_op_ModifyAddressAttribute.go | 18 +- .../ec2/api_op_ModifyAvailabilityZoneGroup.go | 8 +- .../ec2/api_op_ModifyCapacityReservation.go | 13 +- .../ec2/api_op_ModifyClientVpnEndpoint.go | 12 +- ...api_op_ModifyDefaultCreditSpecification.go | 28 +- .../ec2/api_op_ModifyEbsDefaultKmsKeyId.go | 6 +- .../service/ec2/api_op_ModifyFleet.go | 11 +- .../ec2/api_op_ModifyFpgaImageAttribute.go | 6 +- .../service/ec2/api_op_ModifyHosts.go | 8 +- .../service/ec2/api_op_ModifyIdFormat.go | 6 +- .../ec2/api_op_ModifyIdentityIdFormat.go | 6 +- .../ec2/api_op_ModifyImageAttribute.go | 6 +- .../ec2/api_op_ModifyInstanceAttribute.go | 37 +- ...fyInstanceCapacityReservationAttributes.go | 8 +- ...pi_op_ModifyInstanceCreditSpecification.go | 8 +- .../api_op_ModifyInstanceEventStartTime.go | 6 +- .../api_op_ModifyInstanceMetadataOptions.go | 11 +- .../ec2/api_op_ModifyInstancePlacement.go | 8 +- .../ec2/api_op_ModifyLaunchTemplate.go | 6 +- .../ec2/api_op_ModifyManagedPrefixList.go | 8 +- .../api_op_ModifyNetworkInterfaceAttribute.go | 17 +- .../ec2/api_op_ModifyReservedInstances.go | 6 +- .../ec2/api_op_ModifySnapshotAttribute.go | 6 +- .../ec2/api_op_ModifySpotFleetRequest.go | 13 +- .../ec2/api_op_ModifySubnetAttribute.go | 4 +- ...odifyTrafficMirrorFilterNetworkServices.go | 6 +- .../api_op_ModifyTrafficMirrorFilterRule.go | 10 +- .../ec2/api_op_ModifyTrafficMirrorSession.go | 12 +- .../ec2/api_op_ModifyTransitGateway.go | 6 +- ...ModifyTransitGatewayPrefixListReference.go | 8 +- ...pi_op_ModifyTransitGatewayVpcAttachment.go | 6 +- .../service/ec2/api_op_ModifyVolume.go | 17 +- .../ec2/api_op_ModifyVolumeAttribute.go | 6 +- .../service/ec2/api_op_ModifyVpcAttribute.go | 4 +- .../service/ec2/api_op_ModifyVpcEndpoint.go | 12 +- ...ModifyVpcEndpointConnectionNotification.go | 8 +- ...p_ModifyVpcEndpointServiceConfiguration.go | 12 +- ..._op_ModifyVpcEndpointServicePermissions.go | 8 +- ...pi_op_ModifyVpcPeeringConnectionOptions.go | 6 +- .../service/ec2/api_op_ModifyVpcTenancy.go | 8 +- .../service/ec2/api_op_ModifyVpnConnection.go | 6 +- .../ec2/api_op_ModifyVpnConnectionOptions.go | 6 +- .../ec2/api_op_ModifyVpnTunnelCertificate.go | 6 +- .../ec2/api_op_ModifyVpnTunnelOptions.go | 6 +- .../service/ec2/api_op_MonitorInstances.go | 9 +- .../service/ec2/api_op_MoveAddressToVpc.go | 6 +- .../service/ec2/api_op_ProvisionByoipCidr.go | 27 +- .../ec2/api_op_PurchaseHostReservation.go | 8 +- ...pi_op_PurchaseReservedInstancesOffering.go | 16 +- .../ec2/api_op_PurchaseScheduledInstances.go | 6 +- .../service/ec2/api_op_RebootInstances.go | 8 +- .../service/ec2/api_op_RegisterImage.go | 59 +- ...sterInstanceEventNotificationAttributes.go | 6 +- ...sterTransitGatewayMulticastGroupMembers.go | 6 +- ...sterTransitGatewayMulticastGroupSources.go | 6 +- ...ansitGatewayMulticastDomainAssociations.go | 6 +- ...p_RejectTransitGatewayPeeringAttachment.go | 6 +- ...pi_op_RejectTransitGatewayVpcAttachment.go | 6 +- .../api_op_RejectVpcEndpointConnections.go | 6 +- .../ec2/api_op_RejectVpcPeeringConnection.go | 8 +- .../service/ec2/api_op_ReleaseAddress.go | 8 +- .../service/ec2/api_op_ReleaseHosts.go | 4 +- ...op_ReplaceIamInstanceProfileAssociation.go | 4 +- .../api_op_ReplaceNetworkAclAssociation.go | 6 +- .../ec2/api_op_ReplaceNetworkAclEntry.go | 10 +- .../service/ec2/api_op_ReplaceRoute.go | 8 +- .../api_op_ReplaceRouteTableAssociation.go | 6 +- .../ec2/api_op_ReplaceTransitGatewayRoute.go | 8 +- .../ec2/api_op_ReportInstanceStatus.go | 6 +- .../service/ec2/api_op_RequestSpotFleet.go | 6 +- .../ec2/api_op_RequestSpotInstances.go | 20 +- .../ec2/api_op_ResetAddressAttribute.go | 19 +- .../ec2/api_op_ResetEbsDefaultKmsKeyId.go | 6 +- .../ec2/api_op_ResetFpgaImageAttribute.go | 8 +- .../service/ec2/api_op_ResetImageAttribute.go | 6 +- .../ec2/api_op_ResetInstanceAttribute.go | 8 +- .../api_op_ResetNetworkInterfaceAttribute.go | 6 +- .../ec2/api_op_ResetSnapshotAttribute.go | 6 +- .../ec2/api_op_RestoreAddressToClassic.go | 6 +- .../api_op_RestoreManagedPrefixListVersion.go | 10 +- .../ec2/api_op_RevokeClientVpnIngress.go | 8 +- .../ec2/api_op_RevokeSecurityGroupEgress.go | 12 +- .../ec2/api_op_RevokeSecurityGroupIngress.go | 12 +- .../service/ec2/api_op_RunInstances.go | 64 +- .../ec2/api_op_RunScheduledInstances.go | 10 +- .../ec2/api_op_SearchLocalGatewayRoutes.go | 14 +- ..._op_SearchTransitGatewayMulticastGroups.go | 26 +- .../ec2/api_op_SearchTransitGatewayRoutes.go | 10 +- .../ec2/api_op_SendDiagnosticInterrupt.go | 6 +- .../service/ec2/api_op_StartInstances.go | 24 +- .../api_op_StartNetworkInsightsAnalysis.go | 6 +- ...pcEndpointServicePrivateDnsVerification.go | 8 +- .../service/ec2/api_op_StopInstances.go | 65 +- .../api_op_TerminateClientVpnConnections.go | 6 +- .../service/ec2/api_op_TerminateInstances.go | 71 +- .../ec2/api_op_UnassignIpv6Addresses.go | 4 +- .../ec2/api_op_UnassignPrivateIpAddresses.go | 4 +- .../service/ec2/api_op_UnmonitorInstances.go | 8 +- ...dateSecurityGroupRuleDescriptionsEgress.go | 8 +- ...ateSecurityGroupRuleDescriptionsIngress.go | 8 +- .../service/ec2/api_op_WithdrawByoipCidr.go | 9 +- .../service/ec2/deserializers.go | 7019 ++++++++++++----- .../aws/aws-sdk-go-v2/service/ec2/doc.go | 34 +- .../aws-sdk-go-v2/service/ec2/endpoints.go | 22 + .../aws-sdk-go-v2/service/ec2/generated.json | 480 ++ .../aws/aws-sdk-go-v2/service/ec2/go.mod | 6 +- .../aws/aws-sdk-go-v2/service/ec2/go.sum | 6 +- .../service/ec2/go_module_metadata.go | 6 + .../ec2/internal/endpoints/endpoints.go | 74 +- .../aws-sdk-go-v2/service/ec2/serializers.go | 4345 ++++++---- .../aws-sdk-go-v2/service/ec2/types/enums.go | 938 ++- .../aws-sdk-go-v2/service/ec2/types/types.go | 1350 ++-- .../aws-sdk-go-v2/service/ec2/validators.go | 485 +- .../internal/presigned-url/CHANGELOG.md | 14 + .../service/internal/presigned-url/go.mod | 4 +- .../service/internal/presigned-url/go.sum | 6 +- .../presigned-url/go_module_metadata.go | 6 + vendor/github.com/aws/smithy-go/.travis.yml | 43 +- vendor/github.com/aws/smithy-go/CHANGELOG.md | 50 + vendor/github.com/aws/smithy-go/README.md | 2 + .../smithy-go/encoding/httpbinding/encode.go | 8 +- .../aws/smithy-go/encoding/xml/escape.go | 20 +- vendor/github.com/aws/smithy-go/go.mod | 4 +- vendor/github.com/aws/smithy-go/go.sum | 4 +- .../github.com/aws/smithy-go/io/ringbuffer.go | 15 +- .../aws/smithy-go/local-mod-replace.sh | 39 + .../aws/smithy-go/logging/logger.go | 8 + vendor/github.com/aws/smithy-go/time/time.go | 76 +- .../aws/smithy-go/transport/http/host.go | 42 +- .../aws/smithy-go/transport/http/time.go | 13 + .../aws/smithy-go/transport/http/url.go | 44 + vendor/modules.txt | 13 +- 533 files changed, 21902 insertions(+), 7871 deletions(-) create mode 100644 vendor/github.com/aws/aws-sdk-go-v2/.gitignore create mode 100644 vendor/github.com/aws/aws-sdk-go-v2/.travis.yml create mode 100644 vendor/github.com/aws/aws-sdk-go-v2/CHANGELOG.md create mode 100644 vendor/github.com/aws/aws-sdk-go-v2/CODE_OF_CONDUCT.md create mode 100644 vendor/github.com/aws/aws-sdk-go-v2/CONTRIBUTING.md create mode 100644 vendor/github.com/aws/aws-sdk-go-v2/DESIGN.md create mode 100644 vendor/github.com/aws/aws-sdk-go-v2/Makefile create mode 100644 vendor/github.com/aws/aws-sdk-go-v2/README.md create mode 100644 vendor/github.com/aws/aws-sdk-go-v2/aws/go_module_metadata.go create mode 100644 vendor/github.com/aws/aws-sdk-go-v2/aws/middleware/osname.go create mode 100644 vendor/github.com/aws/aws-sdk-go-v2/aws/middleware/osname_go115.go create mode 100644 vendor/github.com/aws/aws-sdk-go-v2/buildspec.yml create mode 100644 vendor/github.com/aws/aws-sdk-go-v2/doc.go create mode 100644 vendor/github.com/aws/aws-sdk-go-v2/go.mod create mode 100644 vendor/github.com/aws/aws-sdk-go-v2/go.sum create mode 100644 vendor/github.com/aws/aws-sdk-go-v2/internal/ini/CHANGELOG.md create mode 100644 vendor/github.com/aws/aws-sdk-go-v2/internal/ini/LICENSE.txt create mode 100644 vendor/github.com/aws/aws-sdk-go-v2/internal/ini/dependency.go create mode 100644 vendor/github.com/aws/aws-sdk-go-v2/internal/ini/go.mod create mode 100644 vendor/github.com/aws/aws-sdk-go-v2/internal/ini/go.sum create mode 100644 vendor/github.com/aws/aws-sdk-go-v2/internal/ini/go_module_metadata.go delete mode 100644 vendor/github.com/aws/aws-sdk-go-v2/internal/sdkio/ringbuffer.go create mode 100644 vendor/github.com/aws/aws-sdk-go-v2/local-mod-replace.sh create mode 100644 vendor/github.com/aws/aws-sdk-go-v2/modman.toml create mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/CHANGELOG.md create mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AssociateTrunkInterface.go create mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateReplaceRootVolumeTask.go create mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateRestoreImageTask.go create mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateStoreImageTask.go create mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeReplaceRootVolumeTasks.go create mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeStoreImageTasks.go create mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeTrunkInterfaceAssociations.go create mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisableImageDeprecation.go create mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisableSerialConsoleAccess.go create mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisassociateTrunkInterface.go create mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_EnableImageDeprecation.go create mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_EnableSerialConsoleAccess.go create mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetFlowLogsIntegrationTemplate.go create mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetSerialConsoleAccessStatus.go create mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/generated.json create mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/ec2/go_module_metadata.go create mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/internal/presigned-url/CHANGELOG.md create mode 100644 vendor/github.com/aws/aws-sdk-go-v2/service/internal/presigned-url/go_module_metadata.go create mode 100644 vendor/github.com/aws/smithy-go/CHANGELOG.md create mode 100644 vendor/github.com/aws/smithy-go/local-mod-replace.sh create mode 100644 vendor/github.com/aws/smithy-go/transport/http/time.go create mode 100644 vendor/github.com/aws/smithy-go/transport/http/url.go diff --git a/go.mod b/go.mod index ada99e1f9..c1e40b752 100644 --- a/go.mod +++ b/go.mod @@ -2,18 +2,6 @@ module github.com/aws/aws-k8s-tester go 1.16 -// https://github.com/kubernetes/kubernetes/releases -// https://github.com/kubernetes/client-go/releases -// https://github.com/kubernetes/apiextensions-apiserver/releases - -// https://github.com/aws/aws-sdk-go/releases -// https://github.com/google/cadvisor/releases -// https://github.com/containerd/containerd/releases -// https://github.com/uber-go/zap/releases -// https://github.com/helm/helm/releases -// https://github.com/kubernetes-sigs/yaml/releases -// https://github.com/manifoldco/promptui/releases - replace ( github.com/Azure/go-autorest => github.com/Azure/go-autorest v12.2.0+incompatible github.com/containerd/containerd => github.com/containerd/containerd v1.3.4 @@ -44,12 +32,13 @@ replace ( require ( github.com/aws/aws-sdk-go v1.35.30 - github.com/aws/aws-sdk-go-v2 v1.0.0 + github.com/aws/aws-sdk-go-v2 v1.7.0 github.com/aws/aws-sdk-go-v2/config v1.0.0 + github.com/aws/aws-sdk-go-v2/internal/ini v1.1.0 // indirect github.com/aws/aws-sdk-go-v2/service/autoscaling v1.0.0 github.com/aws/aws-sdk-go-v2/service/cloudformation v1.0.0 github.com/aws/aws-sdk-go-v2/service/cloudwatch v1.0.0 - github.com/aws/aws-sdk-go-v2/service/ec2 v1.0.0 + github.com/aws/aws-sdk-go-v2/service/ec2 v1.11.0 github.com/aws/aws-sdk-go-v2/service/ecr v1.0.0 github.com/aws/aws-sdk-go-v2/service/eks v1.0.0 github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2 v1.0.0 @@ -58,7 +47,7 @@ require ( github.com/aws/aws-sdk-go-v2/service/s3 v1.0.0 github.com/aws/aws-sdk-go-v2/service/ssm v1.0.0 github.com/aws/aws-sdk-go-v2/service/sts v1.0.0 - github.com/aws/smithy-go v1.0.0 + github.com/aws/smithy-go v1.5.0 github.com/briandowns/spinner v1.11.1 github.com/cihub/seelog v0.0.0-20170130134532-f561c5e57575 github.com/davecgh/go-spew v1.1.1 diff --git a/go.sum b/go.sum index 91c272ae5..2a98ffd77 100644 --- a/go.sum +++ b/go.sum @@ -102,22 +102,25 @@ github.com/aws/aws-sdk-go v1.15.11/go.mod h1:mFuSZ37Z9YOHbQEwBWztmVzqXrEkub65tZo github.com/aws/aws-sdk-go v1.28.2/go.mod h1:KmX6BPdI08NWTb3/sm4ZGu5ShLoqVDhKgpiN924inxo= github.com/aws/aws-sdk-go v1.35.30 h1:ZT+70Tw1ar5U2bL81ZyIvcLorxlD1UoxoIgjsEkismY= github.com/aws/aws-sdk-go v1.35.30/go.mod h1:tlPOdRjfxPBpNIwqDj61rmsnA85v9jc0Ps9+muhnW+k= -github.com/aws/aws-sdk-go-v2 v1.0.0 h1:ncEVPoHArsG+HjoDe/3ex/TG1CbLwMQ4eaWj0UGdyTo= github.com/aws/aws-sdk-go-v2 v1.0.0/go.mod h1:smfAbmpW+tcRVuNUjo3MOArSZmW72t62rkCzc2i0TWM= +github.com/aws/aws-sdk-go-v2 v1.7.0 h1:UYGnoIPIzed+ycmgw8Snb/0HK+KlMD+SndLTneG8ncE= +github.com/aws/aws-sdk-go-v2 v1.7.0/go.mod h1:tb9wi5s61kTDA5qCkcDbt3KRVV74GGslQkl/DRdX/P4= github.com/aws/aws-sdk-go-v2/config v1.0.0 h1:x6vSFAwqAvhYPeSu60f0ZUlGHo3PKKmwDOTL8aMXtv4= github.com/aws/aws-sdk-go-v2/config v1.0.0/go.mod h1:WysE/OpUgE37tjtmtJd8GXgT8s1euilE5XtUkRNUQ1w= github.com/aws/aws-sdk-go-v2/credentials v1.0.0 h1:0M7netgZ8gCV4v7z1km+Fbl7j6KQYyZL7SS0/l5Jn/4= github.com/aws/aws-sdk-go-v2/credentials v1.0.0/go.mod h1:/SvsiqBf509hG4Bddigr3NB12MIpfHhZapyBurJe8aY= github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.0.0 h1:lO7fH5n7Q1dKcDBpuTmwJylD1bOQiRig8LI6TD9yVQk= github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.0.0/go.mod h1:wpMHDCXvOXZxGCRSidyepa8uJHY4vaBGfY2/+oKU/Bc= +github.com/aws/aws-sdk-go-v2/internal/ini v1.1.0 h1:DJq/vXXF+LAFaa/kQX9C6arlf4xX4uaaqGWIyAKOCpM= +github.com/aws/aws-sdk-go-v2/internal/ini v1.1.0/go.mod h1:qGQ/9IfkZonRNSNLE99/yBJ7EPA/h8jlWEqtJCcaj+Q= github.com/aws/aws-sdk-go-v2/service/autoscaling v1.0.0 h1:qhlzq+/+r7x85qcd+dMMzUJ2WdaHSMkYBalMaIUH3c0= github.com/aws/aws-sdk-go-v2/service/autoscaling v1.0.0/go.mod h1:XGqFiu9uLXgwJvujnm9EGAwk6+bRnUn1omVyuNt3mks= github.com/aws/aws-sdk-go-v2/service/cloudformation v1.0.0 h1:kt1v8ZnGsSYusSCnnOpKcBfIHZC/JLj+Rzu47VWz6Vo= github.com/aws/aws-sdk-go-v2/service/cloudformation v1.0.0/go.mod h1:eWeVWUXYoJly9d7xI2346JNW4rx9UbIp5Bki6mtCBTo= github.com/aws/aws-sdk-go-v2/service/cloudwatch v1.0.0 h1:SREEMUFRBIDGmo9IU4zqmGwHBdKd+Fz0RdM4m+142uw= github.com/aws/aws-sdk-go-v2/service/cloudwatch v1.0.0/go.mod h1:u1GqwOV+isp7n1DZF+aCa7TkA8QwVYq6mHkPbeWnuLk= -github.com/aws/aws-sdk-go-v2/service/ec2 v1.0.0 h1:tN4DlCwhBm4YgDR8LJJnKxiSuWrt/6uW52e5bgkip/E= -github.com/aws/aws-sdk-go-v2/service/ec2 v1.0.0/go.mod h1:Y/x9ybbmBtvjZTTVj7WVRY0UNuA5TYH1AmQXa3QOqsM= +github.com/aws/aws-sdk-go-v2/service/ec2 v1.11.0 h1:KFzMDGBBkeo22Ty+A4xFc7LY7TmwOaJSETj/l7o90Vo= +github.com/aws/aws-sdk-go-v2/service/ec2 v1.11.0/go.mod h1:WEDK28a3G3+BQCzP50oGA/6807+Sx/Ogn8BttfJ27zY= github.com/aws/aws-sdk-go-v2/service/ecr v1.0.0 h1:cFsYV3YlPjYKX9kKSS7UbTI8ES09Ma0xLn2YyN+KAfE= github.com/aws/aws-sdk-go-v2/service/ecr v1.0.0/go.mod h1:Fv2B7z+Tqd9g9jL4Ovci0rRHIRxCkULrUZwOcGnDIMc= github.com/aws/aws-sdk-go-v2/service/eks v1.0.0 h1:6W2OA2mfmr8P8taz5zCsODVPZUk/+w7I3DS1R+a1YvM= @@ -128,8 +131,9 @@ github.com/aws/aws-sdk-go-v2/service/iam v1.0.0 h1:hbMu6cCgLxEYyhrba9RqkxewyfxrU github.com/aws/aws-sdk-go-v2/service/iam v1.0.0/go.mod h1:2Q65VwdiZuvBXXmr45Velx3g5sEgqQomdwJKu2+413Q= github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.0.0 h1:jjZzz89+Uii7XKlgWXNHiLVtJfvCG8oVoMLpiWsjnt8= github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.0.0/go.mod h1:cZbnzYflIuoRkuKp4BB4q/R4xklYIwpLYs26vS3/Sac= -github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.0.0 h1:IAutMPSrynpvKOpHG6HyWHmh1xmxWAmYOK84NrQVqVQ= github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.0.0/go.mod h1:3jExOmpbjgPnz2FJaMOfbSk1heTkZ66aD3yNtVhnjvI= +github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.2.0 h1:g2npzssI/6XsoQaPYCxliMFeC5iNKKvO0aC+/wWOE0A= +github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.2.0/go.mod h1:a7XLWNKuVgOxjssEF019IiHPv35k8KHBaWv/wJAfi2A= github.com/aws/aws-sdk-go-v2/service/internal/s3shared v1.0.0 h1:Cg1XFRo41piOIT8Qp9RPQxfwLac5ddwGQxTPM8lowGk= github.com/aws/aws-sdk-go-v2/service/internal/s3shared v1.0.0/go.mod h1:ElU0+utGClu2dFpCf1NIFxFAG+xO4n5b5RBuIiVaCY0= github.com/aws/aws-sdk-go-v2/service/kms v1.0.0 h1:RWmKjqHuZ3s72FNxosKd3JpvWrozdS0x67kTvjfB0nY= @@ -140,8 +144,9 @@ github.com/aws/aws-sdk-go-v2/service/ssm v1.0.0 h1:6kOQZ2+aazkPflMg+hsycxObxaRG0 github.com/aws/aws-sdk-go-v2/service/ssm v1.0.0/go.mod h1:AEGyxPnsQBqbeGRhLN7b4au2PbLzXWR9WXhmfKEeiRc= github.com/aws/aws-sdk-go-v2/service/sts v1.0.0 h1:6XCgxNfE4L/Fnq+InhVNd16DKc6Ue1f3dJl3IwwJRUQ= github.com/aws/aws-sdk-go-v2/service/sts v1.0.0/go.mod h1:5f+cELGATgill5Pu3/vK3Ebuigstc+qYEHW5MvGWZO4= -github.com/aws/smithy-go v1.0.0 h1:hkhcRKG9rJ4Fn+RbfXY7Tz7b3ITLDyolBnLLBhwbg/c= github.com/aws/smithy-go v1.0.0/go.mod h1:EzMw8dbp/YJL4A5/sbhGddag+NPT7q084agLbB9LgIw= +github.com/aws/smithy-go v1.5.0 h1:2grDq7LxZlo8BZUDeqRfQnQWLZpInmh2TLPPkJku3YM= +github.com/aws/smithy-go v1.5.0/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/bazelbuild/bazel-gazelle v0.18.2/go.mod h1:D0ehMSbS+vesFsLGiD6JXu3mVEzOlfUl8wNnq+x/9p0= github.com/bazelbuild/bazel-gazelle v0.19.1-0.20191105222053-70208cbdc798/go.mod h1:rPwzNHUqEzngx1iVBfO/2X2npKaT3tqPqqHW6rVsn/A= github.com/bazelbuild/buildtools v0.0.0-20190731111112-f720930ceb60/go.mod h1:5JP0TXzWDHXv8qvxRC4InIazwdyDseBDbzESUMKk1yU= diff --git a/vendor/github.com/aws/aws-sdk-go-v2/.gitignore b/vendor/github.com/aws/aws-sdk-go-v2/.gitignore new file mode 100644 index 000000000..18719daa8 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go-v2/.gitignore @@ -0,0 +1,11 @@ +dist +/doc +/doc-staging +.yardoc +Gemfile.lock +/internal/awstesting/integration/smoke/**/importmarker__.go +/internal/awstesting/integration/smoke/_test/ +/vendor +/private/model/cli/gen-api/gen-api +.gradle/ +build/ diff --git a/vendor/github.com/aws/aws-sdk-go-v2/.travis.yml b/vendor/github.com/aws/aws-sdk-go-v2/.travis.yml new file mode 100644 index 000000000..4b498a7a2 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go-v2/.travis.yml @@ -0,0 +1,31 @@ +language: go +sudo: true +dist: bionic + +branches: + only: + - main + +os: + - linux + - osx + # Travis doesn't work with windows and Go tip + #- windows + +go: + - tip + +matrix: + allow_failures: + - go: tip + +before_install: + - if [ "$TRAVIS_OS_NAME" = "windows" ]; then choco install make; fi + - (cd /tmp/; go get golang.org/x/lint/golint) + +env: + - EACHMODULE_CONCURRENCY=4 + +script: + - make ci-test-no-generate; + diff --git a/vendor/github.com/aws/aws-sdk-go-v2/CHANGELOG.md b/vendor/github.com/aws/aws-sdk-go-v2/CHANGELOG.md new file mode 100644 index 000000000..b581a404a --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go-v2/CHANGELOG.md @@ -0,0 +1,1131 @@ +# Release (2021-06-25) + +## General Highlights +* **Feature**: Updated `github.com/aws/smithy-go` to latest version +* **Dependency Update**: Updated to the latest SDK module versions + +## Module Highlights +* `github.com/aws/aws-sdk-go-v2`: v1.7.0 + * **Feature**: Adds configuration values for enabling endpoint discovery. + * **Bug Fix**: Keep Object-Lock headers a header when presigning Sigv4 signing requests +* `github.com/aws/aws-sdk-go-v2/config`: [v1.4.0](config/CHANGELOG.md#v140-2021-06-25) + * **Feature**: Adds configuration setting for enabling endpoint discovery. +* `github.com/aws/aws-sdk-go-v2/credentials`: [v1.3.0](credentials/CHANGELOG.md#v130-2021-06-25) + * **Bug Fix**: Fixed example usages of aws.CredentialsCache ([#1275](https://github.com/aws/aws-sdk-go-v2/pull/1275)) +* `github.com/aws/aws-sdk-go-v2/feature/cloudfront/sign`: [v1.2.0](feature/cloudfront/sign/CHANGELOG.md#v120-2021-06-25) + * **Feature**: Add UnmarshalJSON for AWSEpochTime to correctly unmarshal AWSEpochTime, ([#1298](https://github.com/aws/aws-sdk-go-v2/pull/1298)) +* `github.com/aws/aws-sdk-go-v2/internal/configsources`: [v1.0.0](internal/configsources/CHANGELOG.md#v100-2021-06-25) + * **Release**: Release new modules +* `github.com/aws/aws-sdk-go-v2/service/amp`: [v1.2.0](service/amp/CHANGELOG.md#v120-2021-06-25) + * **Feature**: API client updated +* `github.com/aws/aws-sdk-go-v2/service/amplify`: [v1.3.0](service/amplify/CHANGELOG.md#v130-2021-06-25) + * **Feature**: API client updated +* `github.com/aws/aws-sdk-go-v2/service/amplifybackend`: [v1.2.0](service/amplifybackend/CHANGELOG.md#v120-2021-06-25) + * **Feature**: API client updated +* `github.com/aws/aws-sdk-go-v2/service/appflow`: [v1.5.0](service/appflow/CHANGELOG.md#v150-2021-06-25) + * **Feature**: API client updated +* `github.com/aws/aws-sdk-go-v2/service/appmesh`: [v1.4.0](service/appmesh/CHANGELOG.md#v140-2021-06-25) + * **Feature**: API client updated +* `github.com/aws/aws-sdk-go-v2/service/chime`: [v1.5.0](service/chime/CHANGELOG.md#v150-2021-06-25) + * **Feature**: API client updated +* `github.com/aws/aws-sdk-go-v2/service/cloud9`: [v1.5.0](service/cloud9/CHANGELOG.md#v150-2021-06-25) + * **Feature**: API client updated +* `github.com/aws/aws-sdk-go-v2/service/cloudformation`: [v1.6.0](service/cloudformation/CHANGELOG.md#v160-2021-06-25) + * **Feature**: API client updated +* `github.com/aws/aws-sdk-go-v2/service/cloudfront`: [v1.6.0](service/cloudfront/CHANGELOG.md#v160-2021-06-25) + * **Feature**: API client updated +* `github.com/aws/aws-sdk-go-v2/service/cloudsearch`: [v1.4.0](service/cloudsearch/CHANGELOG.md#v140-2021-06-25) + * **Feature**: API client updated +* `github.com/aws/aws-sdk-go-v2/service/cloudwatch`: [v1.5.0](service/cloudwatch/CHANGELOG.md#v150-2021-06-25) + * **Feature**: API client updated +* `github.com/aws/aws-sdk-go-v2/service/cloudwatchevents`: [v1.5.0](service/cloudwatchevents/CHANGELOG.md#v150-2021-06-25) + * **Feature**: API client updated +* `github.com/aws/aws-sdk-go-v2/service/codebuild`: [v1.5.0](service/codebuild/CHANGELOG.md#v150-2021-06-25) + * **Feature**: API client updated +* `github.com/aws/aws-sdk-go-v2/service/codegurureviewer`: [v1.5.0](service/codegurureviewer/CHANGELOG.md#v150-2021-06-25) + * **Feature**: API client updated +* `github.com/aws/aws-sdk-go-v2/service/cognitoidentity`: [v1.4.0](service/cognitoidentity/CHANGELOG.md#v140-2021-06-25) + * **Feature**: API client updated +* `github.com/aws/aws-sdk-go-v2/service/cognitoidentityprovider`: [v1.4.0](service/cognitoidentityprovider/CHANGELOG.md#v140-2021-06-25) + * **Feature**: API client updated +* `github.com/aws/aws-sdk-go-v2/service/connect`: [v1.5.0](service/connect/CHANGELOG.md#v150-2021-06-25) + * **Feature**: API client updated +* `github.com/aws/aws-sdk-go-v2/service/dax`: [v1.3.0](service/dax/CHANGELOG.md#v130-2021-06-25) + * **Feature**: API client updated +* `github.com/aws/aws-sdk-go-v2/service/docdb`: [v1.7.0](service/docdb/CHANGELOG.md#v170-2021-06-25) + * **Feature**: API client updated +* `github.com/aws/aws-sdk-go-v2/service/dynamodb`: [v1.4.0](service/dynamodb/CHANGELOG.md#v140-2021-06-25) + * **Feature**: Adds support for endpoint discovery. +* `github.com/aws/aws-sdk-go-v2/service/ec2`: [v1.10.0](service/ec2/CHANGELOG.md#v1100-2021-06-25) + * **Feature**: API client updated +* `github.com/aws/aws-sdk-go-v2/service/elasticache`: [v1.7.0](service/elasticache/CHANGELOG.md#v170-2021-06-25) + * **Feature**: API client updated +* `github.com/aws/aws-sdk-go-v2/service/elasticbeanstalk`: [v1.4.0](service/elasticbeanstalk/CHANGELOG.md#v140-2021-06-25) + * **Feature**: API client updated +* `github.com/aws/aws-sdk-go-v2/service/elasticloadbalancing`: [v1.4.0](service/elasticloadbalancing/CHANGELOG.md#v140-2021-06-25) + * **Feature**: API client updated +* `github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2`: [v1.4.0](service/elasticloadbalancingv2/CHANGELOG.md#v140-2021-06-25) + * **Feature**: API client updated +* `github.com/aws/aws-sdk-go-v2/service/eventbridge`: [v1.5.0](service/eventbridge/CHANGELOG.md#v150-2021-06-25) + * **Feature**: API client updated +* `github.com/aws/aws-sdk-go-v2/service/greengrass`: [v1.5.0](service/greengrass/CHANGELOG.md#v150-2021-06-25) + * **Feature**: API client updated +* `github.com/aws/aws-sdk-go-v2/service/greengrassv2`: [v1.4.0](service/greengrassv2/CHANGELOG.md#v140-2021-06-25) + * **Feature**: API client updated +* `github.com/aws/aws-sdk-go-v2/service/iam`: [v1.6.0](service/iam/CHANGELOG.md#v160-2021-06-25) + * **Feature**: API client updated +* `github.com/aws/aws-sdk-go-v2/service/internal/endpoint-discovery`: [v1.0.0](service/internal/endpoint-discovery/CHANGELOG.md#v100-2021-06-25) + * **Release**: Release new modules + * **Feature**: Module supporting endpoint-discovery across all service clients. +* `github.com/aws/aws-sdk-go-v2/service/iot`: [v1.7.0](service/iot/CHANGELOG.md#v170-2021-06-25) + * **Feature**: API client updated +* `github.com/aws/aws-sdk-go-v2/service/iotanalytics`: [v1.3.0](service/iotanalytics/CHANGELOG.md#v130-2021-06-25) + * **Feature**: API client updated +* `github.com/aws/aws-sdk-go-v2/service/kendra`: [v1.7.0](service/kendra/CHANGELOG.md#v170-2021-06-25) + * **Feature**: API client updated +* `github.com/aws/aws-sdk-go-v2/service/kms`: [v1.4.0](service/kms/CHANGELOG.md#v140-2021-06-25) + * **Feature**: API client updated +* `github.com/aws/aws-sdk-go-v2/service/lexmodelsv2`: [v1.3.0](service/lexmodelsv2/CHANGELOG.md#v130-2021-06-25) + * **Feature**: API client updated +* `github.com/aws/aws-sdk-go-v2/service/lexruntimev2`: [v1.2.0](service/lexruntimev2/CHANGELOG.md#v120-2021-06-25) + * **Feature**: API client updated +* `github.com/aws/aws-sdk-go-v2/service/licensemanager`: [v1.5.0](service/licensemanager/CHANGELOG.md#v150-2021-06-25) + * **Feature**: API client updated +* `github.com/aws/aws-sdk-go-v2/service/lookoutmetrics`: [v1.2.0](service/lookoutmetrics/CHANGELOG.md#v120-2021-06-25) + * **Feature**: API client updated +* `github.com/aws/aws-sdk-go-v2/service/managedblockchain`: [v1.4.0](service/managedblockchain/CHANGELOG.md#v140-2021-06-25) + * **Feature**: API client updated +* `github.com/aws/aws-sdk-go-v2/service/mediaconnect`: [v1.6.0](service/mediaconnect/CHANGELOG.md#v160-2021-06-25) + * **Feature**: API client updated +* `github.com/aws/aws-sdk-go-v2/service/medialive`: [v1.7.0](service/medialive/CHANGELOG.md#v170-2021-06-25) + * **Feature**: API client updated +* `github.com/aws/aws-sdk-go-v2/service/mediatailor`: [v1.4.0](service/mediatailor/CHANGELOG.md#v140-2021-06-25) + * **Feature**: API client updated +* `github.com/aws/aws-sdk-go-v2/service/neptune`: [v1.6.0](service/neptune/CHANGELOG.md#v160-2021-06-25) + * **Feature**: API client updated +* `github.com/aws/aws-sdk-go-v2/service/proton`: [v1.1.0](service/proton/CHANGELOG.md#v110-2021-06-25) + * **Feature**: API client updated +* `github.com/aws/aws-sdk-go-v2/service/quicksight`: [v1.6.0](service/quicksight/CHANGELOG.md#v160-2021-06-25) + * **Feature**: API client updated +* `github.com/aws/aws-sdk-go-v2/service/ram`: [v1.5.0](service/ram/CHANGELOG.md#v150-2021-06-25) + * **Feature**: API client updated +* `github.com/aws/aws-sdk-go-v2/service/rds`: [v1.5.0](service/rds/CHANGELOG.md#v150-2021-06-25) + * **Feature**: API client updated +* `github.com/aws/aws-sdk-go-v2/service/redshift`: [v1.7.0](service/redshift/CHANGELOG.md#v170-2021-06-25) + * **Feature**: API client updated +* `github.com/aws/aws-sdk-go-v2/service/redshiftdata`: [v1.4.0](service/redshiftdata/CHANGELOG.md#v140-2021-06-25) + * **Feature**: API client updated +* `github.com/aws/aws-sdk-go-v2/service/route53`: [v1.7.0](service/route53/CHANGELOG.md#v170-2021-06-25) + * **Feature**: API client updated +* `github.com/aws/aws-sdk-go-v2/service/sagemaker`: [v1.8.0](service/sagemaker/CHANGELOG.md#v180-2021-06-25) + * **Feature**: API client updated +* `github.com/aws/aws-sdk-go-v2/service/sagemakerfeaturestoreruntime`: [v1.4.0](service/sagemakerfeaturestoreruntime/CHANGELOG.md#v140-2021-06-25) + * **Feature**: API client updated +* `github.com/aws/aws-sdk-go-v2/service/securityhub`: [v1.7.0](service/securityhub/CHANGELOG.md#v170-2021-06-25) + * **Feature**: API client updated +* `github.com/aws/aws-sdk-go-v2/service/ses`: [v1.4.0](service/ses/CHANGELOG.md#v140-2021-06-25) + * **Feature**: API client updated +* `github.com/aws/aws-sdk-go-v2/service/snowball`: [v1.5.0](service/snowball/CHANGELOG.md#v150-2021-06-25) + * **Feature**: API client updated +* `github.com/aws/aws-sdk-go-v2/service/sns`: [v1.6.0](service/sns/CHANGELOG.md#v160-2021-06-25) + * **Feature**: API client updated +* `github.com/aws/aws-sdk-go-v2/service/sqs`: [v1.5.0](service/sqs/CHANGELOG.md#v150-2021-06-25) + * **Feature**: API client updated +* `github.com/aws/aws-sdk-go-v2/service/sts`: [v1.5.0](service/sts/CHANGELOG.md#v150-2021-06-25) + * **Feature**: API client updated +* `github.com/aws/aws-sdk-go-v2/service/timestreamquery`: [v1.3.0](service/timestreamquery/CHANGELOG.md#v130-2021-06-25) + * **Feature**: Adds support for endpoint discovery. +* `github.com/aws/aws-sdk-go-v2/service/timestreamwrite`: [v1.3.0](service/timestreamwrite/CHANGELOG.md#v130-2021-06-25) + * **Feature**: Adds support for endpoint discovery. +* `github.com/aws/aws-sdk-go-v2/service/transfer`: [v1.5.0](service/transfer/CHANGELOG.md#v150-2021-06-25) + * **Feature**: API client updated +* `github.com/aws/aws-sdk-go-v2/service/waf`: [v1.3.0](service/waf/CHANGELOG.md#v130-2021-06-25) + * **Feature**: API client updated +* `github.com/aws/aws-sdk-go-v2/service/wafv2`: [v1.6.0](service/wafv2/CHANGELOG.md#v160-2021-06-25) + * **Feature**: API client updated + +# Release (2021-06-11) + +## Module Highlights +* `github.com/aws/aws-sdk-go-v2/service/autoscaling`: [v1.7.0](service/autoscaling/CHANGELOG.md#v170-2021-06-11) + * **Feature**: Updated to latest API model. +* `github.com/aws/aws-sdk-go-v2/service/cloudtrail`: [v1.3.2](service/cloudtrail/CHANGELOG.md#v132-2021-06-11) + * **Documentation**: Updated to latest API model. +* `github.com/aws/aws-sdk-go-v2/service/cognitoidentityprovider`: [v1.3.3](service/cognitoidentityprovider/CHANGELOG.md#v133-2021-06-11) + * **Documentation**: Updated to latest API model. +* `github.com/aws/aws-sdk-go-v2/service/eks`: [v1.6.0](service/eks/CHANGELOG.md#v160-2021-06-11) + * **Feature**: Updated to latest API model. +* `github.com/aws/aws-sdk-go-v2/service/fsx`: [v1.6.0](service/fsx/CHANGELOG.md#v160-2021-06-11) + * **Feature**: Updated to latest API model. +* `github.com/aws/aws-sdk-go-v2/service/glue`: [v1.6.0](service/glue/CHANGELOG.md#v160-2021-06-11) + * **Feature**: Updated to latest API model. +* `github.com/aws/aws-sdk-go-v2/service/kendra`: [v1.6.0](service/kendra/CHANGELOG.md#v160-2021-06-11) + * **Feature**: Updated to latest API model. +* `github.com/aws/aws-sdk-go-v2/service/macie2`: [v1.7.0](service/macie2/CHANGELOG.md#v170-2021-06-11) + * **Feature**: Updated to latest API model. +* `github.com/aws/aws-sdk-go-v2/service/medialive`: [v1.6.0](service/medialive/CHANGELOG.md#v160-2021-06-11) + * **Feature**: Updated to latest API model. +* `github.com/aws/aws-sdk-go-v2/service/pi`: [v1.4.0](service/pi/CHANGELOG.md#v140-2021-06-11) + * **Feature**: Updated to latest API model. +* `github.com/aws/aws-sdk-go-v2/service/proton`: [v1.0.0](service/proton/CHANGELOG.md#v100-2021-06-11) + * **Release**: New AWS service client module +* `github.com/aws/aws-sdk-go-v2/service/qldb`: [v1.3.1](service/qldb/CHANGELOG.md#v131-2021-06-11) + * **Documentation**: Updated to latest API model. +* `github.com/aws/aws-sdk-go-v2/service/rds`: [v1.4.2](service/rds/CHANGELOG.md#v142-2021-06-11) + * **Documentation**: Updated to latest API model. +* `github.com/aws/aws-sdk-go-v2/service/sagemaker`: [v1.7.0](service/sagemaker/CHANGELOG.md#v170-2021-06-11) + * **Feature**: Updated to latest API model. +* `github.com/aws/aws-sdk-go-v2/service/transfer`: [v1.4.1](service/transfer/CHANGELOG.md#v141-2021-06-11) + * **Documentation**: Updated to latest API model. + +# Release (2021-06-04) + +## General Highlights +* **Dependency Update**: Updated to the latest SDK module versions + +## Module Highlights +* `github.com/aws/aws-sdk-go-v2/service/acmpca`: [v1.5.0](service/acmpca/CHANGELOG.md#v150-2021-06-04) + * **Feature**: Updated service client to latest API model. +* `github.com/aws/aws-sdk-go-v2/service/autoscaling`: [v1.6.0](service/autoscaling/CHANGELOG.md#v160-2021-06-04) + * **Feature**: Updated service client to latest API model. +* `github.com/aws/aws-sdk-go-v2/service/braket`: [v1.4.0](service/braket/CHANGELOG.md#v140-2021-06-04) + * **Feature**: Updated service client to latest API model. +* `github.com/aws/aws-sdk-go-v2/service/cloudfront`: [v1.5.2](service/cloudfront/CHANGELOG.md#v152-2021-06-04) + * **Documentation**: Updated service client to latest API model. +* `github.com/aws/aws-sdk-go-v2/service/datasync`: [v1.4.0](service/datasync/CHANGELOG.md#v140-2021-06-04) + * **Feature**: Updated service client to latest API model. +* `github.com/aws/aws-sdk-go-v2/service/devicefarm`: [v1.3.0](service/devicefarm/CHANGELOG.md#v130-2021-06-04) + * **Feature**: Updated service client to latest API model. +* `github.com/aws/aws-sdk-go-v2/service/docdb`: [v1.6.0](service/docdb/CHANGELOG.md#v160-2021-06-04) + * **Feature**: Updated service client to latest API model. +* `github.com/aws/aws-sdk-go-v2/service/ec2`: [v1.9.0](service/ec2/CHANGELOG.md#v190-2021-06-04) + * **Feature**: Updated service client to latest API model. +* `github.com/aws/aws-sdk-go-v2/service/ecs`: [v1.5.0](service/ecs/CHANGELOG.md#v150-2021-06-04) + * **Feature**: Updated service client to latest API model. +* `github.com/aws/aws-sdk-go-v2/service/forecast`: [v1.7.0](service/forecast/CHANGELOG.md#v170-2021-06-04) + * **Feature**: Updated service client to latest API model. +* `github.com/aws/aws-sdk-go-v2/service/fsx`: [v1.5.0](service/fsx/CHANGELOG.md#v150-2021-06-04) + * **Feature**: Updated service client to latest API model. +* `github.com/aws/aws-sdk-go-v2/service/iam`: [v1.5.1](service/iam/CHANGELOG.md#v151-2021-06-04) + * **Documentation**: Updated service client to latest API model. +* `github.com/aws/aws-sdk-go-v2/service/internal/s3shared`: [v1.4.0](service/internal/s3shared/CHANGELOG.md#v140-2021-06-04) + * **Feature**: The handling of AccessPoint and Outpost ARNs have been updated. +* `github.com/aws/aws-sdk-go-v2/service/iotevents`: [v1.4.0](service/iotevents/CHANGELOG.md#v140-2021-06-04) + * **Feature**: Updated service client to latest API model. +* `github.com/aws/aws-sdk-go-v2/service/ioteventsdata`: [v1.3.0](service/ioteventsdata/CHANGELOG.md#v130-2021-06-04) + * **Feature**: Updated service client to latest API model. +* `github.com/aws/aws-sdk-go-v2/service/iotsitewise`: [v1.6.0](service/iotsitewise/CHANGELOG.md#v160-2021-06-04) + * **Feature**: Updated service client to latest API model. +* `github.com/aws/aws-sdk-go-v2/service/iotwireless`: [v1.6.0](service/iotwireless/CHANGELOG.md#v160-2021-06-04) + * **Feature**: Updated service client to latest API model. +* `github.com/aws/aws-sdk-go-v2/service/kendra`: [v1.5.0](service/kendra/CHANGELOG.md#v150-2021-06-04) + * **Feature**: Updated service client to latest API model. +* `github.com/aws/aws-sdk-go-v2/service/lightsail`: [v1.6.1](service/lightsail/CHANGELOG.md#v161-2021-06-04) + * **Documentation**: Updated service client to latest API model. +* `github.com/aws/aws-sdk-go-v2/service/location`: [v1.2.0](service/location/CHANGELOG.md#v120-2021-06-04) + * **Feature**: Updated service client to latest API model. +* `github.com/aws/aws-sdk-go-v2/service/mwaa`: [v1.2.0](service/mwaa/CHANGELOG.md#v120-2021-06-04) + * **Feature**: Updated service client to latest API model. +* `github.com/aws/aws-sdk-go-v2/service/outposts`: [v1.4.0](service/outposts/CHANGELOG.md#v140-2021-06-04) + * **Feature**: Updated service client to latest API model. +* `github.com/aws/aws-sdk-go-v2/service/polly`: [v1.3.0](service/polly/CHANGELOG.md#v130-2021-06-04) + * **Feature**: Updated service client to latest API model. +* `github.com/aws/aws-sdk-go-v2/service/qldb`: [v1.3.0](service/qldb/CHANGELOG.md#v130-2021-06-04) + * **Feature**: Updated service client to latest API model. +* `github.com/aws/aws-sdk-go-v2/service/resourcegroups`: [v1.3.2](service/resourcegroups/CHANGELOG.md#v132-2021-06-04) + * **Documentation**: Updated service client to latest API model. +* `github.com/aws/aws-sdk-go-v2/service/route53`: [v1.6.2](service/route53/CHANGELOG.md#v162-2021-06-04) + * **Documentation**: Updated service client to latest API model. +* `github.com/aws/aws-sdk-go-v2/service/route53resolver`: [v1.4.2](service/route53resolver/CHANGELOG.md#v142-2021-06-04) + * **Documentation**: Updated service client to latest API model. +* `github.com/aws/aws-sdk-go-v2/service/s3`: [v1.10.0](service/s3/CHANGELOG.md#v1100-2021-06-04) + * **Feature**: The handling of AccessPoint and Outpost ARNs have been updated. + * **Feature**: Updated service client to latest API model. +* `github.com/aws/aws-sdk-go-v2/service/s3control`: [v1.7.0](service/s3control/CHANGELOG.md#v170-2021-06-04) + * **Feature**: The handling of AccessPoint and Outpost ARNs have been updated. + * **Feature**: Updated service client to latest API model. +* `github.com/aws/aws-sdk-go-v2/service/servicediscovery`: [v1.5.0](service/servicediscovery/CHANGELOG.md#v150-2021-06-04) + * **Feature**: Updated service client to latest API model. +* `github.com/aws/aws-sdk-go-v2/service/sns`: [v1.5.0](service/sns/CHANGELOG.md#v150-2021-06-04) + * **Feature**: Updated service client to latest API model. +* `github.com/aws/aws-sdk-go-v2/service/sqs`: [v1.4.2](service/sqs/CHANGELOG.md#v142-2021-06-04) + * **Documentation**: Updated service client to latest API model. +* `github.com/aws/aws-sdk-go-v2/service/ssm`: [v1.6.2](service/ssm/CHANGELOG.md#v162-2021-06-04) + * **Documentation**: Updated service client to latest API model. + +# Release (2021-05-25) + +## General Highlights +* **Dependency Update**: Updated to the latest SDK module versions + +## Module Highlights +* `github.com/aws/aws-sdk-go-v2/service/cloudwatchlogs`: [v1.4.0](service/cloudwatchlogs/CHANGELOG.md#v140-2021-05-25) + * **Feature**: API client updated +* `github.com/aws/aws-sdk-go-v2/service/commander`: [v1.1.0](service/commander/CHANGELOG.md#v110-2021-05-25) + * **Feature**: Deprecated module. The API client was incorrectly named. Use AWS Systems Manager Incident Manager (ssmincidents) instead. +* `github.com/aws/aws-sdk-go-v2/service/computeoptimizer`: [v1.5.0](service/computeoptimizer/CHANGELOG.md#v150-2021-05-25) + * **Feature**: API client updated +* `github.com/aws/aws-sdk-go-v2/service/costexplorer`: [v1.6.0](service/costexplorer/CHANGELOG.md#v160-2021-05-25) + * **Feature**: API client updated +* `github.com/aws/aws-sdk-go-v2/service/ec2`: [v1.8.0](service/ec2/CHANGELOG.md#v180-2021-05-25) + * **Feature**: API client updated +* `github.com/aws/aws-sdk-go-v2/service/efs`: [v1.4.0](service/efs/CHANGELOG.md#v140-2021-05-25) + * **Feature**: API client updated +* `github.com/aws/aws-sdk-go-v2/service/forecast`: [v1.6.0](service/forecast/CHANGELOG.md#v160-2021-05-25) + * **Feature**: API client updated +* `github.com/aws/aws-sdk-go-v2/service/iot`: [v1.6.0](service/iot/CHANGELOG.md#v160-2021-05-25) + * **Feature**: API client updated +* `github.com/aws/aws-sdk-go-v2/service/opsworkscm`: [v1.4.0](service/opsworkscm/CHANGELOG.md#v140-2021-05-25) + * **Feature**: API client updated +* `github.com/aws/aws-sdk-go-v2/service/quicksight`: [v1.5.0](service/quicksight/CHANGELOG.md#v150-2021-05-25) + * **Feature**: API client updated +* `github.com/aws/aws-sdk-go-v2/service/s3`: [v1.9.0](service/s3/CHANGELOG.md#v190-2021-05-25) + * **Feature**: API client updated +* `github.com/aws/aws-sdk-go-v2/service/ssmincidents`: [v1.0.0](service/ssmincidents/CHANGELOG.md#v100-2021-05-25) + * **Release**: New AWS service client module +* `github.com/aws/aws-sdk-go-v2/service/transfer`: [v1.4.0](service/transfer/CHANGELOG.md#v140-2021-05-25) + * **Feature**: API client updated +* `github.com/aws/aws-sdk-go-v2/service/workspaces`: [v1.4.0](service/workspaces/CHANGELOG.md#v140-2021-05-25) + * **Feature**: API client updated + +# Release (2021-05-20) + +## General Highlights +* **Dependency Update**: Updated to the latest SDK module versions + +## Module Highlights +* `github.com/aws/aws-sdk-go-v2`: v1.6.0 + * **Feature**: `internal/ini`: This package has been migrated to a separate module at `github.com/aws/aws-sdk-go-v2/internal/ini`. +* `github.com/aws/aws-sdk-go-v2/config`: [v1.3.0](config/CHANGELOG.md#v130-2021-05-20) + * **Feature**: SSO credentials can now be defined alongside other credential providers within the same configuration profile. + * **Bug Fix**: Profile names were incorrectly normalized to lower-case, which could result in unexpected profile configurations. +* `github.com/aws/aws-sdk-go-v2/internal/ini`: [v1.0.0](internal/ini/CHANGELOG.md#v100-2021-05-20) + * **Release**: The `github.com/aws/aws-sdk-go-v2/internal/ini` package is now a Go Module. +* `github.com/aws/aws-sdk-go-v2/service/applicationcostprofiler`: [v1.0.0](service/applicationcostprofiler/CHANGELOG.md#v100-2021-05-20) + * **Release**: New AWS service client module + * **Feature**: API client updated +* `github.com/aws/aws-sdk-go-v2/service/apprunner`: [v1.0.0](service/apprunner/CHANGELOG.md#v100-2021-05-20) + * **Release**: New AWS service client module + * **Feature**: API client updated +* `github.com/aws/aws-sdk-go-v2/service/autoscaling`: [v1.5.0](service/autoscaling/CHANGELOG.md#v150-2021-05-20) + * **Feature**: API client updated +* `github.com/aws/aws-sdk-go-v2/service/computeoptimizer`: [v1.4.0](service/computeoptimizer/CHANGELOG.md#v140-2021-05-20) + * **Feature**: API client updated +* `github.com/aws/aws-sdk-go-v2/service/detective`: [v1.6.0](service/detective/CHANGELOG.md#v160-2021-05-20) + * **Feature**: API client updated +* `github.com/aws/aws-sdk-go-v2/service/eks`: [v1.5.0](service/eks/CHANGELOG.md#v150-2021-05-20) + * **Feature**: API client updated +* `github.com/aws/aws-sdk-go-v2/service/elasticache`: [v1.6.0](service/elasticache/CHANGELOG.md#v160-2021-05-20) + * **Feature**: API client updated +* `github.com/aws/aws-sdk-go-v2/service/elasticsearchservice`: [v1.4.0](service/elasticsearchservice/CHANGELOG.md#v140-2021-05-20) + * **Feature**: API client updated +* `github.com/aws/aws-sdk-go-v2/service/iam`: [v1.5.0](service/iam/CHANGELOG.md#v150-2021-05-20) + * **Feature**: API client updated +* `github.com/aws/aws-sdk-go-v2/service/imagebuilder`: [v1.5.0](service/imagebuilder/CHANGELOG.md#v150-2021-05-20) + * **Feature**: API client updated +* `github.com/aws/aws-sdk-go-v2/service/iot`: [v1.5.0](service/iot/CHANGELOG.md#v150-2021-05-20) + * **Feature**: API client updated +* `github.com/aws/aws-sdk-go-v2/service/iotdeviceadvisor`: [v1.4.0](service/iotdeviceadvisor/CHANGELOG.md#v140-2021-05-20) + * **Feature**: API client updated +* `github.com/aws/aws-sdk-go-v2/service/iotsitewise`: [v1.5.0](service/iotsitewise/CHANGELOG.md#v150-2021-05-20) + * **Feature**: API client updated +* `github.com/aws/aws-sdk-go-v2/service/kinesis`: [v1.4.0](service/kinesis/CHANGELOG.md#v140-2021-05-20) + * **Feature**: API client updated +* `github.com/aws/aws-sdk-go-v2/service/kinesisanalytics`: [v1.3.0](service/kinesisanalytics/CHANGELOG.md#v130-2021-05-20) + * **Feature**: API client updated +* `github.com/aws/aws-sdk-go-v2/service/kinesisanalyticsv2`: [v1.4.0](service/kinesisanalyticsv2/CHANGELOG.md#v140-2021-05-20) + * **Feature**: API client updated +* `github.com/aws/aws-sdk-go-v2/service/lexmodelsv2`: [v1.2.0](service/lexmodelsv2/CHANGELOG.md#v120-2021-05-20) + * **Feature**: API client updated +* `github.com/aws/aws-sdk-go-v2/service/licensemanager`: [v1.4.0](service/licensemanager/CHANGELOG.md#v140-2021-05-20) + * **Feature**: API client updated +* `github.com/aws/aws-sdk-go-v2/service/lightsail`: [v1.6.0](service/lightsail/CHANGELOG.md#v160-2021-05-20) + * **Feature**: API client updated +* `github.com/aws/aws-sdk-go-v2/service/macie`: [v1.4.0](service/macie/CHANGELOG.md#v140-2021-05-20) + * **Feature**: API client updated +* `github.com/aws/aws-sdk-go-v2/service/macie2`: [v1.6.0](service/macie2/CHANGELOG.md#v160-2021-05-20) + * **Feature**: API client updated +* `github.com/aws/aws-sdk-go-v2/service/mediaconnect`: [v1.5.0](service/mediaconnect/CHANGELOG.md#v150-2021-05-20) + * **Feature**: API client updated +* `github.com/aws/aws-sdk-go-v2/service/neptune`: [v1.5.0](service/neptune/CHANGELOG.md#v150-2021-05-20) + * **Feature**: API client updated +* `github.com/aws/aws-sdk-go-v2/service/personalize`: [v1.5.0](service/personalize/CHANGELOG.md#v150-2021-05-20) + * **Feature**: API client updated +* `github.com/aws/aws-sdk-go-v2/service/quicksight`: [v1.4.0](service/quicksight/CHANGELOG.md#v140-2021-05-20) + * **Feature**: API client updated +* `github.com/aws/aws-sdk-go-v2/service/rekognition`: [v1.5.0](service/rekognition/CHANGELOG.md#v150-2021-05-20) + * **Feature**: API client updated +* `github.com/aws/aws-sdk-go-v2/service/s3`: [v1.8.0](service/s3/CHANGELOG.md#v180-2021-05-20) + * **Feature**: API client updated +* `github.com/aws/aws-sdk-go-v2/service/sagemaker`: [v1.6.0](service/sagemaker/CHANGELOG.md#v160-2021-05-20) + * **Feature**: API client updated +* `github.com/aws/aws-sdk-go-v2/service/sagemakera2iruntime`: [v1.3.0](service/sagemakera2iruntime/CHANGELOG.md#v130-2021-05-20) + * **Feature**: API client updated +* `github.com/aws/aws-sdk-go-v2/service/securityhub`: [v1.6.0](service/securityhub/CHANGELOG.md#v160-2021-05-20) + * **Feature**: API client updated +* `github.com/aws/aws-sdk-go-v2/service/support`: [v1.3.0](service/support/CHANGELOG.md#v130-2021-05-20) + * **Feature**: API client updated +* `github.com/aws/aws-sdk-go-v2/service/transcribe`: [v1.4.0](service/transcribe/CHANGELOG.md#v140-2021-05-20) + * **Feature**: API client updated + +# Release (2021-05-14) + +## General Highlights +* **Feature**: Constant has been added to modules to enable runtime version inspection for reporting. +* **Dependency Update**: Updated to the latest SDK module versions + +## Module Highlights +* `github.com/aws/aws-sdk-go-v2`: v1.5.0 + * **Feature**: `AddSDKAgentKey` and `AddSDKAgentKeyValue` in `aws/middleware` package have been updated to direct metadata to `User-Agent` HTTP header. +* `github.com/aws/aws-sdk-go-v2/service/codeartifact`: [v1.3.0](service/codeartifact/CHANGELOG.md#v130-2021-05-14) + * **Feature**: Updated to latest service API model. +* `github.com/aws/aws-sdk-go-v2/service/commander`: [v1.0.0](service/commander/CHANGELOG.md#v100-2021-05-14) + * **Release**: New AWS service client module + * **Feature**: Updated to latest service API model. +* `github.com/aws/aws-sdk-go-v2/service/configservice`: [v1.5.0](service/configservice/CHANGELOG.md#v150-2021-05-14) + * **Feature**: Updated to latest service API model. +* `github.com/aws/aws-sdk-go-v2/service/connect`: [v1.4.0](service/connect/CHANGELOG.md#v140-2021-05-14) + * **Feature**: Updated to latest service API model. +* `github.com/aws/aws-sdk-go-v2/service/ec2`: [v1.7.0](service/ec2/CHANGELOG.md#v170-2021-05-14) + * **Feature**: Updated to latest service API model. +* `github.com/aws/aws-sdk-go-v2/service/ecs`: [v1.4.0](service/ecs/CHANGELOG.md#v140-2021-05-14) + * **Feature**: Updated to latest service API model. +* `github.com/aws/aws-sdk-go-v2/service/eks`: [v1.4.0](service/eks/CHANGELOG.md#v140-2021-05-14) + * **Feature**: Updated to latest service API model. +* `github.com/aws/aws-sdk-go-v2/service/finspace`: [v1.0.0](service/finspace/CHANGELOG.md#v100-2021-05-14) + * **Release**: New AWS service client module + * **Feature**: Updated to latest service API model. +* `github.com/aws/aws-sdk-go-v2/service/finspacedata`: [v1.0.0](service/finspacedata/CHANGELOG.md#v100-2021-05-14) + * **Release**: New AWS service client module + * **Feature**: Updated to latest service API model. +* `github.com/aws/aws-sdk-go-v2/service/iot`: [v1.4.0](service/iot/CHANGELOG.md#v140-2021-05-14) + * **Feature**: Updated to latest service API model. +* `github.com/aws/aws-sdk-go-v2/service/iotwireless`: [v1.5.0](service/iotwireless/CHANGELOG.md#v150-2021-05-14) + * **Feature**: Updated to latest service API model. +* `github.com/aws/aws-sdk-go-v2/service/kinesis`: [v1.3.0](service/kinesis/CHANGELOG.md#v130-2021-05-14) + * **Feature**: Updated to latest service API model. +* `github.com/aws/aws-sdk-go-v2/service/kinesisanalytics`: [v1.2.0](service/kinesisanalytics/CHANGELOG.md#v120-2021-05-14) + * **Feature**: Updated to latest service API model. +* `github.com/aws/aws-sdk-go-v2/service/kinesisanalyticsv2`: [v1.3.0](service/kinesisanalyticsv2/CHANGELOG.md#v130-2021-05-14) + * **Feature**: Updated to latest service API model. +* `github.com/aws/aws-sdk-go-v2/service/lakeformation`: [v1.3.0](service/lakeformation/CHANGELOG.md#v130-2021-05-14) + * **Feature**: Updated to latest service API model. +* `github.com/aws/aws-sdk-go-v2/service/lookoutmetrics`: [v1.1.0](service/lookoutmetrics/CHANGELOG.md#v110-2021-05-14) + * **Feature**: Updated to latest service API model. +* `github.com/aws/aws-sdk-go-v2/service/mediaconvert`: [v1.5.0](service/mediaconvert/CHANGELOG.md#v150-2021-05-14) + * **Feature**: Updated to latest service API model. +* `github.com/aws/aws-sdk-go-v2/service/route53`: [v1.6.0](service/route53/CHANGELOG.md#v160-2021-05-14) + * **Feature**: Updated to latest service API model. +* `github.com/aws/aws-sdk-go-v2/service/s3`: [v1.7.0](service/s3/CHANGELOG.md#v170-2021-05-14) + * **Feature**: Updated to latest service API model. +* `github.com/aws/aws-sdk-go-v2/service/s3control`: [v1.6.0](service/s3control/CHANGELOG.md#v160-2021-05-14) + * **Feature**: Updated to latest service API model. +* `github.com/aws/aws-sdk-go-v2/service/ssm`: [v1.6.0](service/ssm/CHANGELOG.md#v160-2021-05-14) + * **Feature**: Updated to latest service API model. +* `github.com/aws/aws-sdk-go-v2/service/ssmcontacts`: [v1.0.0](service/ssmcontacts/CHANGELOG.md#v100-2021-05-14) + * **Release**: New AWS service client module + * **Feature**: Updated to latest service API model. + +# Release 2021-05-06 + +## Breaking change +* `service/ec2` - v1.6.0 + * This release contains a breaking change to the Amazon EC2 API client. API number(int/int64/etc) and boolean members were changed from value, to pointer type. Your applications using the EC2 API client will fail to compile after upgrading for all members that were updated. To migrate to this module you'll need to update your application to use pointers for all number and boolean members in the API client module. The SDK provides helper utilities to convert between value and pointer types. For example the [aws.Bool](https://pkg.go.dev/github.com/aws/aws-sdk-go-v2/aws#Bool) function to get the address from a bool literal. Similar utilities are available for all other primitive types in the [aws](https://pkg.go.dev/github.com/aws/aws-sdk-go-v2/aws) package. + +## Service Client Highlights +* `service/acmpca` - v1.3.0 + * Feature: API client updated +* `service/apigateway` - v1.3.0 + * Feature: API client updated +* `service/auditmanager` - v1.4.0 + * Feature: API client updated +* `service/chime` - v1.3.0 + * Feature: API client updated +* `service/cloudformation` - v1.4.0 + * Feature: API client updated +* `service/cloudfront` - v1.4.0 + * Feature: API client updated +* `service/codegurureviewer` - v1.3.0 + * Feature: API client updated +* `service/connect` - v1.3.0 + * Feature: API client updated +* `service/customerprofiles` - v1.5.0 + * Feature: API client updated +* `service/devopsguru` - v1.3.0 + * Feature: API client updated +* `service/docdb` - v1.4.0 + * Feature: API client updated +* `service/ec2` - v1.6.0 + * Bug Fix: Fix incorrectly modeled Amazon EC2 number and boolean members in structures. The Amazon EC2 API client has been updated with a breaking change to fix all structure number and boolean members to be pointer types instead of value types. Fixes [#1107](https://github.com/aws/aws-sdk-go-v2/issues/1107), [#1178](https://github.com/aws/aws-sdk-go-v2/issues/1178), and [#1190](https://github.com/aws/aws-sdk-go-v2/issues/1190). This breaking change is made within the major version of the client' module, because the client operations failed and were unusable with value type number and boolean members with the EC2 API. + * Feature: API client updated +* `service/ecs` - v1.3.0 + * Feature: API client updated +* `service/eks` - v1.3.0 + * Feature: API client updated +* `service/forecast` - v1.4.0 + * Feature: API client updated +* `service/glue` - v1.4.0 + * Feature: API client updated +* `service/health` - v1.3.0 + * Feature: API client updated +* `service/iotsitewise` - v1.3.0 + * Feature: API client updated +* `service/iotwireless` - v1.4.0 + * Feature: API client updated +* `service/kafka` - v1.3.0 + * Feature: API client updated +* `service/kinesisanalyticsv2` - v1.2.0 + * Feature: API client updated +* `service/macie2` - v1.4.0 + * Feature: API client updated +* `service/marketplacecatalog` - v1.2.0 + * Feature: API client updated +* `service/mediaconvert` - v1.4.0 + * Feature: API client updated +* `service/mediapackage` - v1.4.0 + * Feature: API client updated +* `service/mediapackagevod` - v1.3.0 + * Feature: API client updated +* `service/mturk` - v1.2.0 + * Feature: API client updated +* `service/nimble` - v1.0.0 + * Feature: API client updated +* `service/organizations` - v1.3.0 + * Feature: API client updated +* `service/personalize` - v1.3.0 + * Feature: API client updated +* `service/robomaker` - v1.4.0 + * Feature: API client updated +* `service/route53` - v1.5.0 + * Feature: API client updated +* `service/s3` - v1.6.0 + * Bug Fix: Fix PutObject and UploadPart unseekable stream documentation link to point to the correct location. + * Feature: API client updated +* `service/sagemaker` - v1.4.0 + * Feature: API client updated +* `service/securityhub` - v1.4.0 + * Feature: API client updated +* `service/servicediscovery` - v1.3.0 + * Feature: API client updated +* `service/snowball` - v1.3.0 + * Feature: API client updated +* `service/sns` - v1.3.0 + * Feature: API client updated +* `service/ssm` - v1.5.0 + * Feature: API client updated +## Core SDK Highlights +* Dependency Update: Update smithy-go dependency to v1.4.0 +* Dependency Update: Updated SDK dependencies to their latest versions. +* `aws` - v1.4.0 + * Feature: Add support for FIPS global partition endpoints ([#1242](https://github.com/aws/aws-sdk-go-v2/pull/1242)) + +# Release 2021-04-23 +## Service Client Highlights +* `service/cloudformation` - v1.3.2 + * Documentation: Service Documentation Updates +* `service/cognitoidentityprovider` - v1.2.3 + * Documentation: Service Documentation Updates +* `service/costexplorer` - v1.4.0 + * Feature: Service API Updates +* `service/databasemigrationservice` - v1.3.0 + * Feature: Service API Updates +* `service/detective` - v1.4.0 + * Feature: Service API Updates +* `service/elasticache` - v1.4.0 + * Feature: Service API Updates +* `service/forecast` - v1.3.0 + * Feature: Service API Updates +* `service/groundstation` - v1.3.0 + * Feature: Service API Updates +* `service/kendra` - v1.3.0 + * Feature: Service API Updates +* `service/redshift` - v1.5.0 + * Feature: Service API Updates +* `service/savingsplans` - v1.2.0 + * Feature: Service API Updates +* `service/securityhub` - v1.3.0 + * Feature: Service API Updates +## Core SDK Highlights +* Dependency Update: Updated SDK dependencies to their latest versions. +* `feature/rds/auth` - v1.0.0 + * Feature: Add Support for Amazon RDS IAM Authentication + +# Release 2021-04-14 +## Service Client Highlights +* `service/codebuild` - v1.3.0 + * Feature: API client updated +* `service/codestarconnections` - v1.2.0 + * Feature: API client updated +* `service/comprehendmedical` - v1.2.0 + * Feature: API client updated +* `service/configservice` - v1.4.0 + * Feature: API client updated +* `service/ec2` - v1.5.0 + * Feature: API client updated +* `service/fsx` - v1.3.0 + * Feature: API client updated +* `service/lightsail` - v1.4.0 + * Feature: API client updated +* `service/mediaconnect` - v1.3.0 + * Feature: API client updated +* `service/rds` - v1.3.0 + * Feature: API client updated +* `service/redshift` - v1.4.0 + * Feature: API client updated +* `service/shield` - v1.3.0 + * Feature: API client updated +* `service/sts` - v1.3.0 + * Feature: API client updated +## Core SDK Highlights +* Dependency Update: Updated SDK dependencies to their latest versions. + +# Release 2021-04-08 +## Service Client Highlights +* Feature: API model sync +* `service/lookoutequipment` - v1.0.0 + * v1 Release: new service client +* `service/mgn` - v1.0.0 + * v1 Release: new service client +## Core SDK Highlights +* Dependency Update: smithy-go version bump +* Dependency Update: Updated SDK dependencies to their latest versions. + +# Release 2021-04-01 +## Service Client Highlights +* Bug Fix: Fix URL Path and RawQuery of resolved endpoint being ignored by the API client's request serialization. + * Fixes [issue#1191](https://github.com/aws/aws-sdk-go-v2/issues/1191) +* Refactored internal endpoints model for accessors +* Feature: updated to latest models +* New services + * `service/location` - v1.0.0 + * `service/lookoutmetrics` - v1.0.0 +## Core SDK Highlights +* Dependency Update: update smithy-go module +* Dependency Update: Updated SDK dependencies to their latest versions. + +# Release 2021-03-18 +## Service Client Highlights +* Bug Fix: Updated presign URLs to no longer include the X-Amz-User-Agent header +* Feature: Update API model +* Add New supported API +* `service/internal/s3shared` - v1.2.0 + * Feature: Support for S3 Object Lambda +* `service/s3` - v1.3.0 + * Bug Fix: Adds documentation to the PutObject and UploadPart operations Body member how to upload unseekable objects to an Amazon S3 Bucket. + * Feature: S3 Object Lambda is a new S3 feature that enables users to apply their own custom code to process the output of a standard S3 GET request by automatically invoking a Lambda function with a GET request +* `service/s3control` - v1.3.0 + * Feature: S3 Object Lambda is a new S3 feature that enables users to apply their own custom code to process the output of a standard S3 GET request by automatically invoking a Lambda function with a GET request +## Core SDK Highlights +* Dependency Update: Updated SDK dependencies to their latest versions. +* `aws` - v1.3.0 + * Feature: Add helper to V4 signer package to swap compute payload hash middleware with unsigned payload middleware +* `feature/s3/manager` - v1.1.0 + * Bug Fix: Add support for Amazon S3 Object Lambda feature. + * Feature: Updates for S3 Object Lambda feature + +# Release 2021-03-12 +## Service Client Highlights +* Bug Fix: Fixed a bug that could union shape types to be deserialized incorrectly +* Bug Fix: Fixed a bug where unboxed shapes that were marked as required were not serialized and sent over the wire, causing an API error from the service. +* Bug Fix: Fixed a bug with generated API Paginators' handling of nil input parameters causing a panic. +* Dependency Update: update smithy-go dependency +* `service/detective` - v1.1.2 + * Bug Fix: Fix deserialization of API response timestamp member. +* `service/docdb` - v1.2.0 + * Feature: Client now support presigned URL generation for CopyDBClusterSnapshot and CreateDBCluster operations by specifying the target SourceRegion +* `service/neptune` - v1.2.0 + * Feature: Client now support presigned URL generation for CopyDBClusterSnapshot and CreateDBCluster operations by specifying the target SourceRegion +* `service/s3` - v1.2.1 + * Bug Fix: Fixed an issue where ListObjectsV2 and ListParts paginators could loop infinitely + * Bug Fix: Fixed key encoding when addressing S3 Access Points +## Core SDK Highlights +* Dependency Update: Updated SDK dependencies to their latest versions. +* `config` - v1.1.2 + * Bug Fix: Fixed a panic when using WithEC2IMDSRegion without a specified IMDS client + +# Release 2021-02-09 +## Service Client Highlights +* `service/s3` - v1.2.0 + * Feature: adds support for s3 vpc endpoint interface [#1113](https://github.com/aws/aws-sdk-go-v2/pull/1113) +* `service/s3control` - v1.2.0 + * Feature: adds support for s3 vpc endpoint interface [#1113](https://github.com/aws/aws-sdk-go-v2/pull/1113) +## Core SDK Highlights +* Dependency Update: Updated SDK dependencies to their latest versions. +* `aws` - v1.2.0 + * Feature: support to add endpoint source on context. Adds getter/setter for the endpoint source [#1113](https://github.com/aws/aws-sdk-go-v2/pull/1113) +* `config` - v1.1.1 + * Bug Fix: Only Validate SSO profile configuration when attempting to use SSO credentials [#1103](https://github.com/aws/aws-sdk-go-v2/pull/1103) + * Bug Fix: Environment credentials were not taking precedence over AWS_PROFILE [#1103](https://github.com/aws/aws-sdk-go-v2/pull/1103) + +# Release 2021-01-29 +## Service Client Highlights +* Bug Fix: A serialization bug has been fixed that caused some service operations with empty inputs to not be serialized correctly ([#1071](https://github.com/aws/aws-sdk-go-v2/pull/1071)) +* Bug Fix: Fixes a bug that could cause a waiter to fail when comparing types ([#1083](https://github.com/aws/aws-sdk-go-v2/pull/1083)) +## Core SDK Highlights +* Feature: EndpointResolverFromURL helpers have been added for constructing a service EndpointResolver type ([#1066](https://github.com/aws/aws-sdk-go-v2/pull/1066)) +* Dependency Update: Updated SDK dependencies to their latest versions. +* `aws` - v1.1.0 + * Feature: Add support for specifying the EndpointSource on aws.Endpoint types ([#1070](https://github.com/aws/aws-sdk-go-v2/pull/1070/)) +* `config` - v1.1.0 + * Feature: Add Support for AWS Single Sign-On (SSO) credential provider ([#1072](https://github.com/aws/aws-sdk-go-v2/pull/1072)) +* `credentials` - v1.1.0 + * Feature: Add AWS Single Sign-On (SSO) credential provider ([#1072](https://github.com/aws/aws-sdk-go-v2/pull/1072)) + +# Release 2021-01-19 + +We are excited to announce the [General Availability](https://aws.amazon.com/blogs/developer/aws-sdk-for-go-version-2-general-availability/) +(GA) release of the [AWS SDK for Go version 2 (v2)](https://github.com/aws/aws-sdk-go-v2). +This release follows the [Release candidate](https://aws.amazon.com/blogs/developer/aws-sdk-for-go-version-2-v2-release-candidate) +of the AWS SDK for Go v2. Version 2 incorporates customer feedback from version 1 and takes advantage of modern Go language features. + +## Breaking Changes +* `aws`: Updated Config.Retryer member to be a func that returns aws.Retryer ([#1033](https://github.com/aws/aws-sdk-go-v2/pull/1033)) + * Updates the SDK's references to Config.Retryer to be a function that returns aws.Retryer value. This ensures that custom retry options specified in the `aws.Config` are scoped to individual client instances. + * All API clients created with the config will call the `Config.Retryer` function to get an aws.Retryer. + * Removes duplicate `Retryer` interface from `retry` package. Single definition is `aws.Retryer` now. +* `aws/middleware`: Updates `AddAttemptClockSkewMiddleware` to use appropriate `AddRecordResponseTiming` naming ([#1031](https://github.com/aws/aws-sdk-go-v2/pull/1031)) + * Removes `ResponseMetadata` struct type, and adds its members to middleware metadata directly, to improve discoverability. +* `config`: Updated the `WithRetryer` helper to take a function that returns an aws.Retryer ([#1033](https://github.com/aws/aws-sdk-go-v2/pull/1033)) + * All API clients created with the config will call the `Config.Retryer` function to get an aws.Retryer. +* `API Clients`: Fix SDK's API client enum constant name generation to have expected casing ([#1020](https://github.com/aws/aws-sdk-go-v2/pull/1020)) + * This updates of the generated enum const value names in API client's `types` package to have the expected casing. Prior to this, enum names were being generated with lowercase names instead of camel case. +* `API Clients`: Updates SDK's API client request middleware stack values to be scoped to individual operation call ([#1019](https://github.com/aws/aws-sdk-go-v2/pull/1019)) + * The API client request middleware stack values were mistakenly allowed to escape to nested API operation calls. This broke the SDK's presigners. + * Stack values that should not escape are not scoped to the individual operation call. +* `Multiple API Clients`: Unexported the API client's `WithEndpointResolver` this type wasn't intended to be exported ([#1051](https://github.com/aws/aws-sdk-go-v2/pull/1051)) + * Using the `aws.Config.EndpointResolver` member for setting custom endpoint resolver instead. + +## New Features +* `service/sts`: Add support for presigning GetCallerIdentity operation ([#1030](https://github.com/aws/aws-sdk-go-v2/pull/1030)) + * Adds a PresignClient to the `sts` API client module. Use PresignGetCallerIdentity to obtain presigned URLs for the create presigned URLs for the GetCallerIdentity operation. + * Fixes [#1021](https://github.com/aws/aws-sdk-go-v2/issues/1021) +* `aws/retry`: Add package documentation for retry package ([#1033](https://github.com/aws/aws-sdk-go-v2/pull/1033)) + * Adds documentation for the retry package + +## Bug Fixes +* `Multiple API Clients`: Fix SDK's generated serde for unmodeled operation input/output ([#1050](https://github.com/aws/aws-sdk-go-v2/pull/1050)) + * Fixes [#1047](https://github.com/aws/aws-sdk-go-v2/issues/1047) by fixing the how the SDKs generated serialization and deserialization of API operations that did not have modeled input or output types. This caused the SDK to incorrectly attempt to deserialize response documents that were either empty, or contained unexpected data. +* `service/s3`: Fix Tagging parameter not serialized correctly for presigned PutObject requests ([#1017](https://github.com/aws/aws-sdk-go-v2/pull/1017)) + * Fixes the Tagging parameter incorrectly being serialized to the URL's query string instead of being signed as a HTTP request header. + * When using PresignPutObject make sure to add all signed headers returned by the method to your down stream's HTTP client's request. These headers must be included in the request, or the request will fail with signature errors. + * Fixes [#1016](https://github.com/aws/aws-sdk-go-v2/issues/1016) +* `service/s3`: Fix Unmarshaling `GetObjectAcl` operation's Grantee type response ([#1034](https://github.com/aws/aws-sdk-go-v2/pull/1034)) + * Updates the SDK's codegen for correctly deserializing XML attributes in tags with XML namespaces. + * Fixes [#1013](https://github.com/aws/aws-sdk-go-v2/issues/1013) +* `service/s3`: Fix Unmarshaling `GetBucketLocation` operation's response ([#1027](https://github.com/aws/aws-sdk-go-v2/pull/1027)) + * Fixes [#908](https://github.com/aws/aws-sdk-go-v2/issues/908) + +## Migrating from v2 preview SDK's v0.31.0 to v1.0.0 + +### aws.Config Retryer member + +If your application sets the `Config.Retryer` member the application will need +to be updated to set a function that returns an `aws.Retryer`. In addition, if +your application used the `config.WithRetryer` helper a function that returns +an `aws.Retryer` needs to be used. + +If your application used the `retry.Retryer` type, update to using the +`aws.Retryer` type instead. + +### API Client enum value names + +If your application used the enum values in the API Client's `types` package between v0.31.0 and the latest version of the client module you may need to update the naming of the enum value. The enum value name casing were updated to camel case instead lowercased. + +# Release 2020-12-23 + +We’re happy to announce the Release Candidate (RC) of the AWS SDK for Go v2. +This RC follows the developer preview release of the AWS SDK for Go v2. The SDK +has undergone a major rewrite from the v1 code base to incorporate your +feedback and to take advantage of modern Go language features. + +## Documentation +* Developer Guide: https://aws.github.io/aws-sdk-go-v2/docs/ +* API Reference docs: https://pkg.go.dev/github.com/aws/aws-sdk-go-v2 +* Migration Guide: https://aws.github.io/aws-sdk-go-v2/docs/migrating/ + +## Breaking Changes +* Dependency `github.com/awslabs/smithy-go` has been relocated to `github.com/aws/smithy-go` + * The `smithy-go` repository was moved from the `awslabs` GitHub organization to `aws`. + * `xml`, `httpbinding`, and `json` package relocated under `encoding` package. +* The module `ec2imds` moved to `feature/ec2/imds` path ([#984](https://github.com/aws/aws-sdk-go-v2/pull/984)) + * Moves the `ec2imds` feature module to be in common location as other SDK features. +* `aws/signer/v4`: Refactor AWS Sigv4 Signer and options types to allow function options ([#955](https://github.com/aws/aws-sdk-go-v2/pull/955)) + * Fixes [#917](https://github.com/aws/aws-sdk-go-v2/issues/917), [#960](https://github.com/aws/aws-sdk-go-v2/issues/960), [#958](https://github.com/aws/aws-sdk-go-v2/issues/958) +* `aws`: CredentialCache type updated to require constructor function ([#946](https://github.com/aws/aws-sdk-go-v2/pull/946)) + * Fixes [#940](https://github.com/aws/aws-sdk-go-v2/issues/940) +* `credentials`: ExpiryWindow and Jitter moved from credential provider to `CredentialCache` ([#946](https://github.com/aws/aws-sdk-go-v2/pull/946)) + * Moves ExpiryWindow and Jitter options to common option of the `CredentialCache` instead of duplicated across providers. + * Fixes [#940](https://github.com/aws/aws-sdk-go-v2/issues/940) +* `config`: Ensure shared credentials file has precedence over shared config file ([#990](https://github.com/aws/aws-sdk-go-v2/pull/990)) + * The shared config file was incorrectly overriding the shared credentials file when merging values. +* `config`: Add `context.Context` to `LoadDefaultConfig` ([#951](https://github.com/aws/aws-sdk-go-v2/pull/951)) + * Updates `config#LoadDefaultConfig` function to take `context.Context` as well as functional options for the `config#LoadOptions` type. + * Fixes [#926](https://github.com/aws/aws-sdk-go-v2/issues/926), [#819](https://github.com/aws/aws-sdk-go-v2/issues/819) +* `aws`: Rename `NoOpRetryer` to `NopRetryer` to have consistent naming with rest of SDK ([#987](https://github.com/aws/aws-sdk-go-v2/pull/987)) + * Fixes [#878](https://github.com/aws/aws-sdk-go-v2/issues/878) +* `service/s3control`: Change `S3InitiateRestoreObjectOperation.ExpirationInDays` from value to pointer type ([#988](https://github.com/aws/aws-sdk-go-v2/pull/988)) +* `aws`: `ReaderSeekerCloser` and `WriteAtBuffer` have been relocated to `feature/s3/manager`. + +## New Features +* *Waiters*: Add Waiter utilities for API clients ([aws/smithy-go#237](https://github.com/aws/smithy-go/pull/237)) + * Your application can now use Waiter utilities to wait for AWS resources. +* `feature/dynamodb/attributevalue`: Add Amazon DynamoDB Attribute value marshaler utility ([#948](https://github.com/aws/aws-sdk-go-v2/pull/948)) + * Adds a utility for marshaling Go types too and from Amazon DynamoDB AttributeValues. + * Also includes utility for converting from Amazon DynamoDB Streams AttributeValues to Amazon DynamoDB AttributeValues. +* `feature/dynamodbstreams/attributevalue`: Add Amazon DynamoDB Streams Attribute value marshaler utility ([#948](https://github.com/aws/aws-sdk-go-v2/pull/948)) + * Adds a utility for marshaling Go types too and from Amazon DynamoDB Streams AttributeValues. + * Also includes utility for converting from Amazon DynamoDB AttributeValues to Amazon DynamoDB Streams AttributeValues. +* `feature/dynamodb/expression`: Add Amazon DynamoDB expression utility ([#981](https://github.com/aws/aws-sdk-go-v2/pull/981)) + * Adds the expression utility to the SDK for easily building Amazon DynamoDB operation expressions in code. + +## Bug Fixes +* `service/s3`: Fix Presigner to configure client correctly for Amazon S3 ([#969](https://github.com/aws/aws-sdk-go-v2/pull/969)) +* service/s3: Fix deserialization of CompleteMultipartUpload ([#965](https://github.com/aws/aws-sdk-go-v2/pull/965) + * Fixes [#927](https://github.com/aws/aws-sdk-go-v2/issues/927) +* `codegen`: Fix API client union serialization ([#979](https://github.com/aws/aws-sdk-go-v2/pull/979)) + * Fixes [#978](https://github.com/aws/aws-sdk-go-v2/issues/978) + +## Service Client Highlights +* API Clients have been bumped to version `v0.31.0` +* Regenerate API Clients from updated API models adding waiter utilities, and union parameters. +* `codegen`: + * Add documentation to union API parameters describing valid member types, and usage example ([aws/smithy-go#239](https://github.com/aws/smithy-go/pull/239)) + * Normalize Metadata header map keys to be lower case ([aws/smithy-go#241](https://github.com/aws/smithy-go/pull/241)), ([#982](https://github.com/aws/aws-sdk-go-v2/pull/982)) + * Fixes [#376](https://github.com/aws/aws-sdk-go-v2/issues/376) Amazon S3 Metadata parameters keys are always returned as lower case. + * Fix API client deserialization of XML based responses ([aws/smithy-go#245](https://github.com/aws/smithy-go/pull/245)), ([#992](https://github.com/aws/aws-sdk-go-v2/pull/992)) + * Fixes [#910](https://github.com/aws/aws-sdk-go-v2/issues/910) +* `service/s3`, `service/s3control`: + * Add support for reading `s3_use_arn_region` from shared config file ([#991](https://github.com/aws/aws-sdk-go-v2/pull/991)) + * Add Utility for getting RequestID and HostID of response ([#983](https://github.com/aws/aws-sdk-go-v2/pull/983)) + + +## Other changes +* Updates branch `HEAD` points from `master` to `main`. + * This should not impact your application, but if you have pull requests or forks of the SDK you may need to update the upstream branch your fork is based off of. + +## Migrating from v2 preview SDK's v0.30.0 to v0.31.0 release candidate + +### smithy-go module relocation + +If your application uses `smithy-go` utilities for request pipeline your application will need to be updated to refer to the new import path of `github.com/aws/smithy-go`. If you application did *not* use `smithy-go` utilities directly, your application will update automatically. + +### EC2 IMDS module relocation + +If your application used the `ec2imds` module, it has been relocated to `feature/ec2/imds`. Your application will need to update to the new import path, `github.com/aws/aws-sdk-go-v2/feature/ec2/imds`. + +### CredentialsCache Constructor and ExpiryWindow Options + +The `aws#CredentialsCache` type was updated, and a new constructor function, `NewCredentialsCache` was added. This function needs to be used to initialize the `CredentialCache`. The constructor also has function options to specify additional configuration, e.g. ExpiryWindow and Jitter. + +If your application was specifying the `ExpiryWindow` with the `credentials/stscreds#AssumeRoleOptions`, `credentials/stscreds#WebIdentityRoleOptions`, `credentials/processcreds#Options`, or `credentials/ec2rolecrds#Options` types the `ExpiryWindow` option will need to specified on the `CredentialsCache` constructor instead. + +### AWS Sigv4 Signer Refactor + +The `aws/signer/v4` package's `Signer.SignHTTP` and `Signer.PresignHTTP` methods were updated to take functional options. If your application provided a custom implementation for API client's `HTTPSignerV4` or `HTTPPresignerV4` interfaces, that implementation will need to be updated for the new function signature. + +### Configuration Loading + +The `config#LoadDefaultConfig` function has been updated to require a `context.Context` as the first parameter, with additional optional function options as variadic additional arguments. Your application will need to update its usage of `LoadDefaultConfig` to pass in `context.Context` as the first parameter. If your application used the `With...` helpers those should continue to work without issue. + +The v2 SDK corrects its behavior to be inline with the AWS CLI and other AWS SDKs. Refer to https://docs.aws.amazon.com/credref/latest/refdocs/overview.html for more information how to use the shared config and credentials files. + + +# Release 2020-11-30 + +## Breaking Change +* `codegen`: Add support for slice and maps generated with value members instead of pointer ([#887](https://github.com/aws/aws-sdk-go-v2/pull/887)) + * This update allow the SDK's code generation to be aware of API shapes and members that are not nullable, and can be rendered as value types by the code generation instead of pointer types. + * Several API client parameter types will change from pointer members to value members for slice, map, number and bool member types. + * See Migration notes for migrating to v0.30.0 with this change. +* `aws/transport/http`: Move aws.BuildableHTTPClient to HTTP transport package ([#898](https://github.com/aws/aws-sdk-go-v2/pull/898)) + * Moves the `BuildableHTTPClient` from the SDK's `aws` package to the `aws/transport/http` package as `BuildableClient` to with other HTTP specific utilities. +* `feature/cloudfront/sign`: Add CloudFront sign feature as module ([#884](https://github.com/aws/aws-sdk-go-v2/pull/884)) + * Moves `service/cloudfront/sign` package out of the `cloudfront` module, and into its own module as `github.com/aws/aws-sdk-go-v2/feature/cloudfront/sign`. + +## New Features +* `config`: Add a WithRetryer provider helper to the config loader ([#897](https://github.com/aws/aws-sdk-go-v2/pull/897)) + * Adds a `WithRetryer` configuration provider to the config loader as a convenience helper to set the `Retryer` on the `aws.Config` when its being loaded. +* `config`: Default to TLS 1.2 for HTTPS requests ([#892](https://github.com/aws/aws-sdk-go-v2/pull/892)) + * Updates the SDK's default HTTP client to use TLS 1.2 as the minimum TLS version for all HTTPS requests by default. + +## Bug Fixes +* `config`: Fix AWS_CA_BUNDLE usage while loading default config ([#912](https://github.com/aws/aws-sdk-go-v2/pull/)) + * Fixes the `LoadDefaultConfig`'s configuration provider order to correctly load a custom HTTP client prior to configuring the client for `AWS_CA_BUNDLE` environment variable. +* `service/s3`: Fix signature mismatch error for s3 ([#913](https://github.com/aws/aws-sdk-go-v2/pull/913)) + * Fixes ([#883](https://github.com/aws/aws-sdk-go-v2/issues/883)) +* `service/s3control`: + * Fix HostPrefix addition behavior for s3control ([#882](https://github.com/aws/aws-sdk-go-v2/pull/882)) + * Fixes ([#863](https://github.com/aws/aws-sdk-go-v2/issues/863)) + * Fix s3control error deserializer ([#875](https://github.com/aws/aws-sdk-go-v2/pull/875)) + * Fixes ([#864](https://github.com/aws/aws-sdk-go-v2/issues/864)) + +## Service Client Highlights +* Pagination support has been added to supported APIs. See [Using Operation Paginators](https://aws.github.io/aws-sdk-go-v2/docs/making-requests/#using-operation-paginators) in the Developer Guide. ([#885](https://github.com/aws/aws-sdk-go-v2/pull/885)) +* Logging support has been added to service clients. See [Logging](https://aws.github.io/aws-sdk-go-v2/docs/configuring-sdk/logging/) in the Developer Guide. ([#872](https://github.com/aws/aws-sdk-go-v2/pull/872)) +* `service`: Add support for pre-signed URL clients for S3, RDS, EC2 service ([#888](https://github.com/aws/aws-sdk-go-v2/pull/888)) + * `service/s3`: operations `PutObject` and `GetObject` are now supported with s3 pre-signed url client. + * `service/ec2`: operation `CopySnapshot` is now supported with ec2 pre-signed url client. + * `service/rds`: operations `CopyDBSnapshot`, `CreateDBInstanceReadReplica`, `CopyDBClusterSnapshot`, `CreateDBCluster` are now supported with rds pre-signed url client. +* `service/s3`: Add support for S3 access point and S3 on outposts access point ARNs ([#870](https://github.com/aws/aws-sdk-go-v2/pull/870)) +* `service/s3control`: Adds support for S3 on outposts access point and S3 on outposts bucket ARNs ([#870](https://github.com/aws/aws-sdk-go-v2/pull/870)) + +## Migrating from v2 preview SDK's v0.29.0 to v0.30.0 + +### aws.BuildableHTTPClient move +The `aws`'s `BuildableHTTPClient` HTTP client implementation was moved to `aws/transport/http` as `BuildableClient`. If your application used the `aws.BuildableHTTPClient` type, update it to use the `BuildableClient` in the `aws/transport/http` package. + +### Slice and Map API member types +This release includes several code generation updates for API client's slice map members. Using API modeling metadata the Slice and map members are now generated as value types instead of pointer types. For your application this means that for these types, the SDK no longer will have pointer member types, and have value member types. + +To migrate to this change you'll need to remove the pointer handling for slice and map members, and instead use value type handling of the member values. + +### Boolean and Number API member types +Similar to the slice and map API member types being generated as value, the SDK's code generation now has metadata where the SDK can generate boolean and number members as value type instead of pointer types. + +To migrate to this change you'll need to remove the pointer handling for numbers and boolean member types, and instead use value handling. + +# Release 2020-10-30 + +## New Features +* Adds HostnameImmutable flag on aws.Endpoint to direct SDK if the associated endpoint is modifiable.([#848](https://github.com/aws/aws-sdk-go-v2/pull/848)) + +## Bug Fixes +* Fix SDK handling of xml based services - xml namespaces ([#858](https://github.com/aws/aws-sdk-go-v2/pull/858)) + * Fixes ([#850](https://github.com/aws/aws-sdk-go-v2/issues/850)) + +## Service Client Highlights +* API Clients have been bumped to version `v0.29.0` + * Regenerate API Clients from update API models. +* Improve client doc generation. + +## Core SDK Highlights +* Dependency Update: Updated SDK dependencies to their latest versions. + +## Migrating from v2 preview SDK's v0.28.0 to v0.29.0 +* API Clients ResolverOptions type renamed to EndpointResolverOptions + +# Release 2020-10-26 + +## New Features +* `service/s3`: Add support for Accelerate, and Dualstack ([#836](https://github.com/aws/aws-sdk-go-v2/pull/836)) +* `service/s3control`: Add support for Dualstack ([#836](https://github.com/aws/aws-sdk-go-v2/pull/836)) + +## Service Client Highlights +* API Clients have been bumped to version `v0.28.0` + * Regenerate API Clients from update API models. +* `service/s3`: Add support for Accelerate, and Dualstack ([#836](https://github.com/aws/aws-sdk-go-v2/pull/836)) +* `service/s3control`: Add support for Dualstack ([#836](https://github.com/aws/aws-sdk-go-v2/pull/836)) +* `service/route53`: Fix sanitizeURL customization to handle leading slash(`/`) [#846](https://github.com/aws/aws-sdk-go-v2/pull/846) + * Fixes [#843](https://github.com/aws/aws-sdk-go-v2/issues/843) +* `service/route53`: Fix codegen to correctly look for operations that need sanitize url ([#851](https://github.com/aws/aws-sdk-go-v2/pull/851)) + +## Core SDK Highlights +* `aws/protocol/restjson`: Fix unexpected JSON error response deserialization ([#837](https://github.com/aws/aws-sdk-go-v2/pull/837)) + * Fixes [#832](https://github.com/aws/aws-sdk-go-v2/issues/832) +* `example/service/s3/listobjects`: Add example for Amazon S3 ListObjectsV2 ([#838](https://github.com/aws/aws-sdk-go-v2/pull/838)) + +# Release 2020-10-16 + +## New Features +* `feature/s3/manager`: + * Initial `v0.1.0` release + * Add the Amazon S3 Upload and Download transfer manager ([#802](https://github.com/aws/aws-sdk-go-v2/pull/802)) + +## Service Client Highlights +* Clients have been bumped to version `v0.27.0` +* `service/machinelearning`: Add customization for setting client endpoint with PredictEndpoint value if set ([#782](https://github.com/aws/aws-sdk-go-v2/pull/782)) +* `service/s3`: Fix empty response body deserialization in case of error response ([#801](https://github.com/aws/aws-sdk-go-v2/pull/801)) + * Fixes xml deserialization util to correctly handle empty response body in case of an error response. +* `service/s3`: Add customization to auto fill Content-Md5 request header for Amazon S3 operations ([#812](https://github.com/aws/aws-sdk-go-v2/pull/812)) +* `service/s3`: Add fallback to using HTTP status code for error code ([#818](https://github.com/aws/aws-sdk-go-v2/pull/818)) + * Adds falling back to using the HTTP status code to create a API Error code when not error code is received from the service, such as HeadObject. +* `service/route53`: Add support for deserialzing `InvalidChangeBatch` API error ([#792](https://github.com/aws/aws-sdk-go-v2/pull/792)) +* `codegen`: Remove API client `Options` getter methods ([#788](https://github.com/aws/aws-sdk-go-v2/pull/788)) +* `codegen`: Regenerate API Client modeled endpoints ([#791](https://github.com/aws/aws-sdk-go-v2/pull/791)) +* `codegen`: Sort API Client struct member paramaters by required and alphabetical ([#787](https://github.com/aws/aws-sdk-go-v2/pull/787)) +* `codegen`: Add package docs to API client modules ([#821](https://github.com/aws/aws-sdk-go-v2/pull/821)) +* `codegen`: Rename `smithy-go`'s `smithy.OperationError` to `smithy.OperationInvokeError`. + +## Core SDK Highlights +* `config`: + * Bumped to `v0.2.0` + * Refactor Config Module, Add Config Package Documentation and Examples, Improve Overall SDK Readme ([#822](https://github.com/aws/aws-sdk-go-v2/pull/822)) +* `credentials`: + * Bumped to `v0.1.2` + * Strip Monotonic Clock Readings when Comparing Credential Expiry Time ([#789](https://github.com/aws/aws-sdk-go-v2/pull/789)) +* `ec2imds`: + * Bumped to `v0.1.2` + * Fix refreshing API token if expired ([#789](https://github.com/aws/aws-sdk-go-v2/pull/789)) + +## Migrating from v0.26.0 to v0.27.0 + +#### Configuration + +The `config` module's exported types were trimmed down to add clarity and reduce confusion. Additional changes to the `config` module' helpers. + +* Refactored `WithCredentialsProvider`, `WithHTTPClient`, and `WithEndpointResolver` to functions instead of structs. +* Removed `MFATokenFuncProvider`, use `AssumeRoleCredentialOptionsProvider` for setting options for `stscreds.AssumeRoleOptions`. +* Renamed `WithWebIdentityCredentialProviderOptions` to `WithWebIdentityRoleCredentialOptions` +* Renamed `AssumeRoleCredentialProviderOptions` to `AssumeRoleCredentialOptionsProvider` +* Renamed `EndpointResolverFuncProvider` to `EndpointResolverProvider` + +#### API Client +* API Client `Options` type getter methods have been removed. Use the struct members instead. +* The error returned by API Client operations was renamed from `smithy.OperationError` to `smithy.OperationInvokeError`. + +# Release 2020-09-30 + +## Service Client Highlights +* Service clients have been bumped to `v0.26.0` simplify the documentation experience when using [pkg.go.dev](https://pkg.go.dev/github.com/aws/aws-sdk-go-v2). +* `service/s3`: Disable automatic decompression of getting Amazon S3 objects with the `Content-Encoding: gzip` metadata header. ([#748](https://github.com/aws/aws-sdk-go-v2/pull/748)) + * This changes the SDK's default behavior with regard to making S3 API calls. The client will no longer automatically set the `Accept-Encoding` HTTP request header, nor will it automatically decompress the gzipped response when the `Content-Encoding: gzip` response header was received. + * If you'd like the client to sent the `Accept-Encoding: gzip` request header, you can add this header to the API operation method call with the [SetHeaderValue](https://pkg.go.dev/github.com/awslabs/smithy-go/transport/http#SetHeaderValue). middleware helper. +* `service/cloudfront/sign`: Fix cloudfront example usage of SignWithPolicy ([#673](https://github.com/aws/aws-sdk-go-v2/pull/673)) + * Fixes [#671](https://github.com/aws/aws-sdk-go-v2/issues/671) documentation typo by correcting the usage of `SignWithPolicy`. + +## Core SDK Highlights +* SDK core module released at `v0.26.0` +* `config` module released at `v0.1.1` +* `credentials` module released at `v0.1.1` +* `ec2imds` module released at `v0.1.1` + + +# Release 2020-09-28 +## Announcements +We’re happy to share the updated clients for the v0.25.0 preview version of the AWS SDK for Go V2. + +The updated clients leverage new developments and advancements within AWS and the Go software ecosystem at large since +our original preview announcement. Using the new clients will be a bit different than before. The key differences are: +simplified API operation invocation, performance improvements, support for error wrapping, and a new middleware architecture. +So below we have a guided walkthrough to help try it out and share your feedback in order to better influence the features +you’d like to see in the GA version. + +See [Announcement Blog Post](https://aws.amazon.com/blogs/developer/client-updates-in-the-preview-version-of-the-aws-sdk-for-go-v2/) for more details. + +## Service Client Highlights +* Initial service clients released at version `v0.1.0` +## Core SDK Highlights +* SDK core module released at `v0.25.0` +* `config` module released at `v0.1.0` +* `credentials` module released at `v0.1.0` +* `ec2imds` module released at `v0.1.0` + +## Migrating from v2 preview SDK's v0.24.0 to v0.25.0 + +#### Design changes + +The v2 preview SDK `v0.25.0` release represents a significant stepping stone bringing the v2 SDK closer to its target design and usability. This release includes significant breaking changes to the v2 preview SDK. The updates in the `v0.25.0` release focus on refactoring and modularization of the SDK’s API clients to use the new [client design](https://github.com/aws/aws-sdk-go-v2/issues/438), updated request pipeline (aka [middleware](https://pkg.go.dev/github.com/awslabs/smithy-go/middleware)), refactored [credential providers](https://pkg.go.dev/github.com/aws/aws-sdk-go-v2/credentials), and [configuration loading](https://pkg.go.dev/github.com/aws/aws-sdk-go-v2/config) packages. + +We've also bumped the minimum supported Go version with this release. Starting with v0.25.0 the SDK requires a minimum version of Go `v1.15`. + +As a part of the refactoring done to v2 preview SDK some components have not been included in this update. The following is a non exhaustive list of features that are not available. + +* API Paginators - [#439](https://github.com/aws/aws-sdk-go-v2/issues/439) +* API Waiters - [#442](https://github.com/aws/aws-sdk-go-v2/issues/442) +* Presign URL - [#794](https://github.com/aws/aws-sdk-go-v2/issues/794) +* Amazon S3 Upload and Download manager - [#802](https://github.com/aws/aws-sdk-go-v2/pull/802) +* Amazon DynamoDB's AttributeValue marshaler, and Expression package - [#790](https://github.com/aws/aws-sdk-go-v2/issues/790) +* Debug Logging - [#594](https://github.com/aws/aws-sdk-go-v2/issues/594) + +We expect additional breaking changes to the v2 preview SDK in the coming releases. We expect these changes to focus on organizational, naming, and hardening the SDK's design for future feature capabilities after it is released for general availability. + + +#### Relocated Packages + +In this release packages within the SDK were relocated, and in some cases those packages were converted to Go modules. The following is a list of packages have were relocated. + +* `github.com/aws/aws-sdk-go-v2/aws/external` => `github.com/aws/aws-sdk-go-v2/config` module +* `github.com/aws/aws-sdk-go-v2/aws/ec2metadata` => `github.com/aws/aws-sdk-go-v2/ec2imds` module + +The `github.com/aws/aws-sdk-go-v2/credentials` module contains refactored credentials providers. + +* `github.com/aws/aws-sdk-go-v2/ec2rolecreds` => `github.com/aws/aws-sdk-go-v2/credentials/ec2rolecreds` +* `github.com/aws/aws-sdk-go-v2/endpointcreds` => `github.com/aws/aws-sdk-go-v2/credentials/endpointcreds` +* `github.com/aws/aws-sdk-go-v2/processcreds` => `github.com/aws/aws-sdk-go-v2/credentials/processcreds` +* `github.com/aws/aws-sdk-go-v2/stscreds` => `github.com/aws/aws-sdk-go-v2/credentials/stscreds` + + +#### Modularization + +New modules were added to the v2 preview SDK to allow the components to be versioned independently from each other. This allows your application to depend on specific versions of an API client module, and take discrete updates from the SDK core and other API client modules as desired. + +* [github.com/aws/aws-sdk-go-v2/config](https://pkg.go.dev/github.com/aws/aws-sdk-go-v2/config) +* [github.com/aws/aws-sdk-go-v2/credentials](https://pkg.go.dev/github.com/aws/aws-sdk-go-v2/credentials) +* Module for each API client, e.g. [github.com/aws/aws-sdk-go-v2/service/s3](https://pkg.go.dev/github.com/aws/aws-sdk-go-v2/service/s3) + + +#### API Clients + +The following is a list of the major changes to the API client modules + +* Removed paginators: we plan to add these back once they are implemented to integrate with the SDK's new API client design. +* Removed waiters: we need to further investigate how the V2 SDK should expose waiters, and how their behavior should be modeled. +* API Clients are now Go modules. When migrating to the v2 preview SDK `v0.25.0`, you'll need to add the API client's module to your application's go.mod file. +* API parameter nested types have been moved to a `types` package within the API client's module, e.g. `github.com/aws/aws-sdk-go-v2/service/s3/types` These types were moved to improve documentation and discovery of the API client, operation, and input/output types. For example Amazon S3's ListObject's operation [ListObjectOutput.Contents](https://pkg.go.dev/github.com/aws/aws-sdk-go-v2/service/s3/#ListObjectsOutput) input parameter is a slice of [types.Object](https://pkg.go.dev/github.com/aws/aws-sdk-go-v2/service/s3/types#Object). +* The client operation method has been renamed, removing the `Request` suffix. The method now invokes the operation instead of constructing a request, which needed to be invoked separately. The operation methods were also expanded to include functional options for providing operation specific configuration, such as modifying the request pipeline. + +```go +result, err := client.Scan(context.TODO(), &dynamodb.ScanInput{ + TableName: aws.String("exampleTable"), +}, func(o *Options) { + // Limit operation calls to only 1 attempt. + o.Retryer = retry.AddWithMaxAttempts(o.Retryer, 1) +}) +``` + + +#### Configuration + +In addition to the `github.com/aws/aws-sdk-go-v2/aws/external` package being made a module at `github.com/aws/aws-sdk-go-v2/config`, the `LoadDefaultAWSConfig` function was renamed to `LoadDefaultConfig`. + +The `github.com/aws/aws-sdk-go-v2/aws/defaults` package has been removed. Its components have been migrated to the `github.com/aws/aws-sdk-go-v2/aws` package, and `github.com/aws/aws-sdk-go-v2/config` module. + + +#### Error Handling + +The `github.com/aws/aws-sdk-go-v2/aws/awserr` package was removed as a part of the SDK error handling refactor. The SDK now uses typed errors built around [Go v1.13](https://golang.org/doc/go1.13#error_wrapping)'s [errors.As](https://pkg.go.dev/errors#As) and [errors.Unwrap](https://pkg.go.dev/errors#Unwrap) features. All SDK error types that wrap other errors implement the `Unwrap` method. Generic v2 preview SDK errors created with `fmt.Errorf` use `%w` to wrap the underlying error. + +The SDK API clients now include generated public error types for errors modeled for an API. The SDK will automatically deserialize the error response from the API into the appropriate error type. Your application should use `errors.As` to check if the returned error matches one it is interested in. Your application can also use the generic interface [smithy.APIError](https://pkg.go.dev/github.com/awslabs/smithy-go/#APIError) to test if the API client's operation method returned an API error, but not check against a specific error. + +API client errors returned to the caller will use error wrapping to layer the error values. This allows underlying error types to be specific to their use case, and the SDK's more generic error types to wrap the underlying error. + +For example, if an [Amazon DynamoDB](https://aws.amazon.com/dynamodb/) [Scan](https://pkg.go.dev/github.com/aws/aws-sdk-go-v2/service/dynamodb#Scan) operation call cannot find the `TableName` requested, the error returned will contain [dynamodb.ResourceNotFoundException](https://pkg.go.dev/github.com/aws/aws-sdk-go-v2/service/dynamodb/types#ResourceNotFoundException). The SDK will return this error value wrapped in a couple layers, with each layer adding additional contextual information such as [ResponseError](https://pkg.go.dev/github.com/aws/aws-sdk-go-v2/aws/transport/http#ResponseError) for AWS HTTP response error metadata , and [smithy.OperationError](https://pkg.go.dev/github.com/awslabs/smithy-go/#OperationError) for API operation call metadata. + +```go +result, err := client.Scan(context.TODO(), params) +if err != nil { + // To get a specific API error + var notFoundErr *types.ResourceNotFoundException + if errors.As(err, ¬FoundErr) { + log.Printf("scan failed because the table was not found, %v", + notFoundErr.ErrorMessage()) + } + + // To get any API error + var apiErr smithy.APIError + if errors.As(err, &apiErr) { + log.Printf("scan failed because of an API error, Code: %v, Message: %v", + apiErr.ErrorCode(), apiErr.ErrorMessage()) + } + + // To get the AWS response metadata, such as RequestID + var respErr *awshttp.ResponseError // Using import alias "awshttp" for package github.com/aws/aws-sdk-go-v2/aws/transport/http + if errors.As(err, &respErr) { + log.Printf("scan failed with HTTP status code %v, Request ID %v and error %v", + respErr.HTTPStatusCode(), respErr.ServiceRequestID(), respErr) + } + + return err +} +``` + +Logging an error value will include information from each wrapped error. For example, the following is a mock error logged for a Scan operation call that failed because the table was not found. + +> 2020/10/15 16:03:37 operation error DynamoDB: Scan, https response error StatusCode: 400, RequestID: ABCREQUESTID123, ResourceNotFoundException: Requested resource not found + + +#### Endpoints + +The `github.com/aws/aws-sdk-go-v2/aws/endpoints` has been removed from the SDK, along with all exported endpoint definitions and iteration behavior. Each generated API client now includes its own endpoint definition internally to the module. + +API clients can optionally be configured with a generic [aws.EndpointResolver](https://pkg.go.dev/github.com/aws/aws-sdk-go-v2/aws#EndpointResolver) via the [aws.Config.EndpointResolver](https://pkg.go.dev/github.com/aws/aws-sdk-go-v2/aws#Config.EndpointResolver). If the API client is not configured with a custom endpoint resolver it will defer to the endpoint resolver the client module was generated with. diff --git a/vendor/github.com/aws/aws-sdk-go-v2/CODE_OF_CONDUCT.md b/vendor/github.com/aws/aws-sdk-go-v2/CODE_OF_CONDUCT.md new file mode 100644 index 000000000..3b6446687 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go-v2/CODE_OF_CONDUCT.md @@ -0,0 +1,4 @@ +## Code of Conduct +This project has adopted the [Amazon Open Source Code of Conduct](https://aws.github.io/code-of-conduct). +For more information see the [Code of Conduct FAQ](https://aws.github.io/code-of-conduct-faq) or contact +opensource-codeofconduct@amazon.com with any additional questions or comments. diff --git a/vendor/github.com/aws/aws-sdk-go-v2/CONTRIBUTING.md b/vendor/github.com/aws/aws-sdk-go-v2/CONTRIBUTING.md new file mode 100644 index 000000000..c2fc3b8f5 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go-v2/CONTRIBUTING.md @@ -0,0 +1,178 @@ +# Contributing to the AWS SDK for Go + +Thank you for your interest in contributing to the AWS SDK for Go! +We work hard to provide a high-quality and useful SDK, and we greatly value +feedback and contributions from our community. Whether it's a bug report, +new feature, correction, or additional documentation, we welcome your issues +and pull requests. Please read through this document before submitting any +[issues] or [pull requests][pr] to ensure we have all the necessary information to +effectively respond to your bug report or contribution. + +Jump To: + +* [Bug Reports](#bug-reports) +* [Feature Requests](#feature-requests) +* [Code Contributions](#code-contributions) + + +## How to contribute + +*Before you send us a pull request, please be sure that:* + +1. You're working from the latest source on the master branch. +2. You check existing open, and recently closed, pull requests to be sure + that someone else hasn't already addressed the problem. +3. You create an issue before working on a contribution that will take a + significant amount of your time. + +*Creating a Pull Request* + +1. Fork the repository. +2. In your fork, make your change in a branch that's based on this repo's master branch. +3. Commit the change to your fork, using a clear and descriptive commit message. +4. Create a pull request, answering any questions in the pull request form. + +For contributions that will take a significant amount of time, open a new +issue to pitch your idea before you get started. Explain the problem and +describe the content you want to see added to the documentation. Let us know +if you'll write it yourself or if you'd like us to help. We'll discuss your +proposal with you and let you know whether we're likely to accept it. + +## Bug Reports + +You can file bug reports against the SDK on the [GitHub issues][issues] page. + +If you are filing a report for a bug or regression in the SDK, it's extremely +helpful to provide as much information as possible when opening the original +issue. This helps us reproduce and investigate the possible bug without having +to wait for this extra information to be provided. Please read the following +guidelines prior to filing a bug report. + +1. Search through existing [issues][] to ensure that your specific issue has + not yet been reported. If it is a common issue, it is likely there is + already a bug report for your problem. + +2. Ensure that you have tested the latest version of the SDK. Although you + may have an issue against an older version of the SDK, we cannot provide + bug fixes for old versions. It's also possible that the bug may have been + fixed in the latest release. + +3. Provide as much information about your environment, SDK version, and + relevant dependencies as possible. For example, let us know what version + of Go you are using, which and version of the operating system, and the + the environment your code is running in. e.g Container. + +4. Provide a minimal test case that reproduces your issue or any error + information you related to your problem. We can provide feedback much + more quickly if we know what operations you are calling in the SDK. If + you cannot provide a full test case, provide as much code as you can + to help us diagnose the problem. Any relevant information should be provided + as well, like whether this is a persistent issue, or if it only occurs + some of the time. + +## Feature Requests + +Open an [issue][issues] with the following: + +* A short, descriptive title. Ideally, other community members should be able + to get a good idea of the feature just from reading the title. +* A detailed description of the the proposed feature. + * Why it should be added to the SDK. + * If possible, example code to illustrate how it should work. +* Use Markdown to make the request easier to read; +* If you intend to implement this feature, indicate that you'd like to the issue to be assigned to you. + +## Code Contributions + +We are always happy to receive code and documentation contributions to the SDK. +Please be aware of the following notes prior to opening a pull request: + +1. The SDK is released under the [Apache license][license]. Any code you submit + will be released under that license. For substantial contributions, we may + ask you to sign a [Contributor License Agreement (CLA)][cla]. + +2. If you would like to implement support for a significant feature that is not + yet available in the SDK, please talk to us beforehand to avoid any + duplication of effort. + +3. Wherever possible, pull requests should contain tests as appropriate. + Bugfixes should contain tests that exercise the corrected behavior (i.e., the + test should fail without the bugfix and pass with it), and new features + should be accompanied by tests exercising the feature. + +4. Pull requests that contain failing tests will not be merged until the test + failures are addressed. Pull requests that cause a significant drop in the + SDK's test coverage percentage are unlikely to be merged until tests have + been added. + +5. The JSON files under the SDK's `models` folder are sourced from outside the SDK. + Such as `models/apis/ec2/2016-11-15/api.json`. We will not accept pull requests + directly on these models. If you discover an issue with the models please + create a [GitHub issue][issues] describing the issue. + +### Testing + +To run the tests locally, running the `make unit` command will `go get` the +SDK's testing dependencies, and run vet, link and unit tests for the SDK. + +``` +make unit +``` + +Standard go testing functionality is supported as well. To test SDK code that +is tagged with `codegen` you'll need to set the build tag in the go test +command. The `make unit` command will do this automatically. + +``` +go test -tags codegen ./private/... +``` + +See the `Makefile` for additional testing tags that can be used in testing. + +To test on multiple platform the SDK includes several DockerFiles under the +`awstesting/sandbox` folder, and associated make recipes to to execute +unit testing within environments configured for specific Go versions. + +``` +make sandbox-test-go18 +``` + +To run all sandbox environments use the following make recipe + +``` +# Optionally update the Go tip that will be used during the batch testing +make update-aws-golang-tip + +# Run all SDK tests for supported Go versions in sandboxes +make sandbox-test +``` + +In addition the sandbox environment include make recipes for interactive modes +so you can run command within the Docker container and context of the SDK. + +``` +make sandbox-go18 +``` + +### Changelog Documents + +You can see all release changes in the `CHANGELOG.md` file at the root of the +repository. The release notes added to this file will contain service client +updates, and major SDK changes. When submitting a pull request please include an entry in `CHANGELOG_PENDING.md` under the appropriate changelog type so your changelog entry is included on the following release. + +#### Changelog Types + +* `SDK Features` - For major additive features, internal changes that have +outward impact, or updates to the SDK foundations. This will result in a minor +version change. +* `SDK Enhancements` - For minor additive features or incremental sized changes. +This will result in a patch version change. +* `SDK Bugs` - For minor changes that resolve an issue. This will result in a +patch version change. + +[issues]: https://github.com/aws/aws-sdk-go/issues +[pr]: https://github.com/aws/aws-sdk-go/pulls +[license]: http://aws.amazon.com/apache2.0/ +[cla]: http://en.wikipedia.org/wiki/Contributor_License_Agreement +[releasenotes]: https://github.com/aws/aws-sdk-go/releases + diff --git a/vendor/github.com/aws/aws-sdk-go-v2/DESIGN.md b/vendor/github.com/aws/aws-sdk-go-v2/DESIGN.md new file mode 100644 index 000000000..8490c7d67 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go-v2/DESIGN.md @@ -0,0 +1,15 @@ +Open Discussions +--- +The following issues are currently open for community feedback. +All discourse must adhere to the [Code of Conduct] policy. + +* [Refactoring API Client Paginators](https://github.com/aws/aws-sdk-go-v2/issues/439) +* [Refactoring API Client Waiters](https://github.com/aws/aws-sdk-go-v2/issues/442) +* [Refactoring API Client Enums and Types to Discrete Packages](https://github.com/aws/aws-sdk-go-v2/issues/445) +* [SDK Modularization](https://github.com/aws/aws-sdk-go-v2/issues/444) + +Past Discussions +--- +The issues listed here are for documentation purposes, and is used to capture issues and their associated discussions. + +[Code of Conduct]: https://github.com/aws/aws-sdk-go-v2/blob/master/CODE_OF_CONDUCT.md diff --git a/vendor/github.com/aws/aws-sdk-go-v2/Makefile b/vendor/github.com/aws/aws-sdk-go-v2/Makefile new file mode 100644 index 000000000..9e59bd5e9 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go-v2/Makefile @@ -0,0 +1,442 @@ +# Lint rules to ignore +LINTIGNORESINGLEFIGHT='internal/sync/singleflight/singleflight.go:.+error should be the last type' + +UNIT_TEST_TAGS= +BUILD_TAGS=-tags "example,codegen,integration,ec2env,perftest" + +SMITHY_GO_SRC ?= $(shell pwd)/../smithy-go + +SDK_MIN_GO_VERSION ?= 1.15 + +EACHMODULE_FAILFAST ?= true +EACHMODULE_FAILFAST_FLAG=-fail-fast=${EACHMODULE_FAILFAST} + +EACHMODULE_CONCURRENCY ?= 1 +EACHMODULE_CONCURRENCY_FLAG=-c ${EACHMODULE_CONCURRENCY} + +EACHMODULE_SKIP ?= +EACHMODULE_SKIP_FLAG=-skip="${EACHMODULE_SKIP}" + +EACHMODULE_FLAGS=${EACHMODULE_CONCURRENCY_FLAG} ${EACHMODULE_FAILFAST_FLAG} ${EACHMODULE_SKIP_FLAG} + +# SDK's Core and client packages that are compatable with Go 1.9+. +SDK_CORE_PKGS=./aws/... ./internal/... +SDK_CLIENT_PKGS=./service/... +SDK_COMPA_PKGS=${SDK_CORE_PKGS} ${SDK_CLIENT_PKGS} + +# SDK additional packages that are used for development of the SDK. +SDK_EXAMPLES_PKGS= +SDK_ALL_PKGS=${SDK_COMPA_PKGS} ${SDK_EXAMPLES_PKGS} + +RUN_NONE=-run NONE +RUN_INTEG=-run '^TestInteg_' + +CODEGEN_RESOURCES_PATH=$(shell pwd)/codegen/smithy-aws-go-codegen/src/main/resources/software/amazon/smithy/aws/go/codegen +CODEGEN_API_MODELS_PATH=$(shell pwd)/codegen/sdk-codegen/aws-models +ENDPOINTS_JSON=${CODEGEN_RESOURCES_PATH}/endpoints.json +ENDPOINT_PREFIX_JSON=${CODEGEN_RESOURCES_PATH}/endpoint-prefix.json + +LICENSE_FILE=$(shell pwd)/LICENSE.txt + +RELEASE_MANIFEST_FILE ?= +RELEASE_CHGLOG_DESC_FILE ?= + +.PHONY: all +all: generate unit + +################### +# Code Generation # +################### +.PHONY: generate smithy-generate smithy-build smithy-build-% smithy-clean smithy-go-publish-local format \ +gen-config-asserts gen-repo-mod-replace gen-mod-replace-smithy gen-mod-dropreplace-smithy gen-aws-ptrs tidy-modules-% \ +add-module-license-files sync-models sync-endpoints-model sync-endpoints.json clone-v1-models gen-endpoint-prefix.json \ +sync-api-models copy-attributevalue-feature min-go-version-% update-requires smithy-annotate-stable \ +update-module-metadata + +generate: smithy-generate update-requires gen-repo-mod-replace update-module-metadata smithy-annotate-stable \ +gen-config-asserts copy-attributevalue-feature gen-mod-dropreplace-smithy min-go-version-. tidy-modules-. \ +add-module-license-files gen-aws-ptrs format + +smithy-generate: + cd codegen && ./gradlew clean build -Plog-tests && ./gradlew clean + +smithy-build: gen-repo-mod-replace + cd codegen && ./gradlew clean build -Plog-tests + +smithy-build-%: gen-repo-mod-replace + @# smithy-build- command that uses the pattern to define build filter that + @# the smithy API model service id starts with. Strips off the + @# "smithy-build-". + @# + @# e.g. smithy-build-com.amazonaws.rds + @# e.g. smithy-build-com.amazonaws.rds#AmazonRDSv19 + cd codegen && \ + SMITHY_GO_BUILD_API="$(subst smithy-build-,,$@)" ./gradlew clean build -Plog-tests + +smithy-annotate-stable: + cd ./internal/repotools && \ + go run ./cmd/annotatestablegen + +smithy-clean: + cd codegen && ./gradlew clean + +smithy-go-publish-local: + rm -rf /tmp/smithy-go-local + git clone https://github.com/aws/smithy-go /tmp/smithy-go-local + make -C /tmp/smithy-go-local smithy-clean smithy-publish-local + +format: + gofmt -w -s . + +gen-config-asserts: + @echo "Generating SDK config package implementor assertions" + cd config \ + && go mod tidy \ + && go generate + +gen-repo-mod-replace: + @echo "Generating go.mod replace for repo modules" + cd internal/repotools/cmd/makerelative && go run ./ + +gen-mod-replace-smithy: + cd ./internal/repotools/cmd/eachmodule \ + && go run . "go mod edit -replace github.com/aws/smithy-go=${SMITHY_GO_SRC}" + +gen-mod-dropreplace-smithy: + cd ./internal/repotools/cmd/eachmodule \ + && go run . "go mod edit -dropreplace github.com/aws/smithy-go" + +gen-aws-ptrs: + cd aws && go generate + +tidy-modules-%: + @# tidy command that uses the pattern to define the root path that the + @# module testing will start from. Strips off the "tidy-modules-" and + @# replaces all "_" with "/". + @# + @# e.g. tidy-modules-internal_protocoltest + cd ./internal/repotools/cmd/eachmodule \ + && go run . -p $(subst _,/,$(subst tidy-modules-,,$@)) ${EACHMODULE_FLAGS} \ + "go mod tidy" + +add-module-license-files: + cd internal/repotools/cmd/eachmodule && \ + go run . -skip-root \ + "cp $(LICENSE_FILE) ." + +sync-models: sync-endpoints-model sync-api-models + +sync-endpoints-model: sync-endpoints.json gen-endpoint-prefix.json + +sync-endpoints.json: + [[ ! -z "${ENDPOINTS_MODEL}" ]] && cp ${ENDPOINTS_MODEL} ${ENDPOINTS_JSON} || echo "ENDPOINTS_MODEL not set, must not be empty" + +clone-v1-models: + rm -rf /tmp/aws-sdk-go-model-sync + git clone https://github.com/aws/aws-sdk-go.git --depth 1 /tmp/aws-sdk-go-model-sync + +gen-endpoint-prefix.json: clone-v1-models + cd internal/repotools/cmd/endpointPrefix && \ + go run . \ + -m '/tmp/aws-sdk-go-model-sync/models/apis/*/*/api-2.json' \ + -o ${ENDPOINT_PREFIX_JSON} + +sync-api-models: + cd internal/repotools/cmd/syncAPIModels && \ + go run . \ + -m ${API_MODELS} \ + -o ${CODEGEN_API_MODELS_PATH} + +copy-attributevalue-feature: + cd ./feature/dynamodbstreams/attributevalue && \ + find . -name "*.go" | grep -v "doc.go" | xargs -I % rm % && \ + find ../../dynamodb/attributevalue -name "*.go" | grep -v "doc.go" | xargs -I % cp % . && \ + ls *.go | grep -v "convert.go" | grep -v "doc.go" | \ + xargs -I % sed -i.bk -E 's:github.com/aws/aws-sdk-go-v2/(service|feature)/dynamodb:github.com/aws/aws-sdk-go-v2/\1/dynamodbstreams:g' % && \ + ls *.go | grep -v "convert.go" | grep -v "doc.go" | \ + xargs -I % sed -i.bk 's:DynamoDB:DynamoDBStreams:g' % && \ + ls *.go | grep -v "doc.go" | \ + xargs -I % sed -i.bk 's:dynamodb\.:dynamodbstreams.:g' % && \ + sed -i.bk 's:streams\.:ddbtypes.:g' "convert.go" && \ + sed -i.bk 's:ddb\.:streams.:g' "convert.go" && \ + sed -i.bk 's:ddbtypes\.:ddb.:g' "convert.go" &&\ + sed -i.bk 's:Streams::g' "convert.go" && \ + rm -rf ./*.bk && \ + go mod tidy && \ + gofmt -w -s . && \ + go test . + +min-go-version-%: + cd ./internal/repotools/cmd/eachmodule \ + && go run . -p $(subst _,/,$(subst min-go-version-,,$@)) ${EACHMODULE_FLAGS} \ + "go mod edit -go=${SDK_MIN_GO_VERSION}" + +update-requires: + cd ./internal/repotools && \ + go run ./cmd/updaterequires + +update-module-metadata: + cd ./internal/repotools && \ + go run ./cmd/updatemodulemeta + +################ +# Unit Testing # +################ +.PHONY: unit unit-race unit-test unit-race-test unit-race-modules-% unit-modules-% build build-modules-% \ +go-build-modules-% test test-race-modules-% test-modules-% cachedep cachedep-modules-% api-diff-modules-% + +unit: lint unit-modules-. +unit-race: lint unit-race-modules-. + +unit-test: test-modules-. +unit-race-test: test-race-modules-. + +unit-race-modules-%: + @# unit command that uses the pattern to define the root path that the + @# module testing will start from. Strips off the "unit-race-modules-" and + @# replaces all "_" with "/". + @# + @# e.g. unit-race-modules-internal_protocoltest + cd ./internal/repotools/cmd/eachmodule \ + && go run . -p $(subst _,/,$(subst unit-race-modules-,,$@)) ${EACHMODULE_FLAGS} \ + "go vet ${BUILD_TAGS} --all ./..." \ + "go test ${BUILD_TAGS} ${RUN_NONE} ./..." \ + "go test -timeout=1m ${UNIT_TEST_TAGS} -race -cpu=4 ./..." + + +unit-modules-%: + @# unit command that uses the pattern to define the root path that the + @# module testing will start from. Strips off the "unit-modules-" and + @# replaces all "_" with "/". + @# + @# e.g. unit-modules-internal_protocoltest + cd ./internal/repotools/cmd/eachmodule \ + && go run . -p $(subst _,/,$(subst unit-modules-,,$@)) ${EACHMODULE_FLAGS} \ + "go vet ${BUILD_TAGS} --all ./..." \ + "go test ${BUILD_TAGS} ${RUN_NONE} ./..." \ + "go test -timeout=1m ${UNIT_TEST_TAGS} ./..." + +build: build-modules-. + +build-modules-%: + @# build command that uses the pattern to define the root path that the + @# module testing will start from. Strips off the "build-modules-" and + @# replaces all "_" with "/". + @# + @# e.g. build-modules-internal_protocoltest + cd ./internal/repotools/cmd/eachmodule \ + && go run . -p $(subst _,/,$(subst build-modules-,,$@)) ${EACHMODULE_FLAGS} \ + "go test ${BUILD_TAGS} ${RUN_NONE} ./..." + +go-build-modules-%: + @# build command that uses the pattern to define the root path that the + @# module testing will start from. Strips off the "build-modules-" and + @# replaces all "_" with "/". + @# + @# Validates that all modules in the repo have buildable Go files. + @# + @# e.g. go-build-modules-internal_protocoltest + cd ./internal/repotools/cmd/eachmodule \ + && go run . -p $(subst _,/,$(subst go-build-modules-,,$@)) ${EACHMODULE_FLAGS} \ + "go build ${BUILD_TAGS} ./..." + +test: test-modules-. + +test-race-modules-%: + @# Test command that uses the pattern to define the root path that the + @# module testing will start from. Strips off the "test-race-modules-" and + @# replaces all "_" with "/". + @# + @# e.g. test-race-modules-internal_protocoltest + cd ./internal/repotools/cmd/eachmodule \ + && go run . -p $(subst _,/,$(subst test-race-modules-,,$@)) ${EACHMODULE_FLAGS} \ + "go test -timeout=1m ${UNIT_TEST_TAGS} -race -cpu=4 ./..." + +test-modules-%: + @# Test command that uses the pattern to define the root path that the + @# module testing will start from. Strips off the "test-modules-" and + @# replaces all "_" with "/". + @# + @# e.g. test-modules-internal_protocoltest + cd ./internal/repotools/cmd/eachmodule \ + && go run . -p $(subst _,/,$(subst test-modules-,,$@)) ${EACHMODULE_FLAGS} \ + "go test -timeout=1m ${UNIT_TEST_TAGS} ./..." + +cachedep: cachedep-modules-. + +cachedep-modules-%: + @# build command that uses the pattern to define the root path that the + @# module caching will start from. Strips off the "cachedep-modules-" and + @# replaces all "_" with "/". + @# + @# e.g. cachedep-modules-internal_protocoltest + cd ./internal/repotools/cmd/eachmodule \ + && go run . -p $(subst _,/,$(subst cachedep-modules-,,$@)) ${EACHMODULE_FLAGS} \ + "go mod download" + +api-diff-modules-%: + @# Command that uses the pattern to define the root path that the + @# module testing will start from. Strips off the "api-diff-modules-" and + @# replaces all "_" with "/". + @# + @# Requires golang.org/x/exp/cmd/gorelease to be available in the GOPATH. + @# + @# e.g. api-diff-modules-internal_protocoltest + cd ./internal/repotools/cmd/eachmodule \ + && go run . -p $(subst _,/,$(subst api-diff-modules-,,$@)) \ + -fail-fast=true \ + -c 1 \ + -skip="internal/repotools" \ + "$$(go env GOPATH)/bin/gorelease" + +############## +# CI Testing # +############## +.PHONY: ci-test ci-test-no-generate ci-test-generate-validate + +ci-test: generate unit-race ci-test-generate-validate +ci-test-no-generate: unit-race + +ci-test-generate-validate: + @echo "CI test validate no generated code changes" + git update-index --assume-unchanged go.mod go.sum + git add . -A + gitstatus=`git diff --cached --ignore-space-change`; \ + echo "$$gitstatus"; \ + if [ "$$gitstatus" != "" ] && [ "$$gitstatus" != "skipping validation" ]; then echo "$$gitstatus"; exit 1; fi + git update-index --no-assume-unchanged go.mod go.sum + +####################### +# Integration Testing # +####################### +.PHONY: integration integ-modules-% cleanup-integ-buckets + +integration: integ-modules-service + +integ-modules-%: + @# integration command that uses the pattern to define the root path that + @# the module testing will start from. Strips off the "integ-modules-" and + @# replaces all "_" with "/". + @# + @# e.g. test-modules-service_dynamodb + cd ./internal/repotools/cmd/eachmodule \ + && go run . -p $(subst _,/,$(subst integ-modules-,,$@)) ${EACHMODULE_FLAGS} \ + "go test -timeout=10m -tags "integration" -v ${RUN_INTEG} -count 1 ./..." + +cleanup-integ-buckets: + @echo "Cleaning up SDK integration resources" + go run -tags "integration" ./internal/awstesting/cmd/bucket_cleanup/main.go "aws-sdk-go-integration" + +############## +# Benchmarks # +############## +.PHONY: bench bench-modules-% + +bench: bench-modules-. + +bench-modules-%: + @# benchmark command that uses the pattern to define the root path that + @# the module testing will start from. Strips off the "bench-modules-" and + @# replaces all "_" with "/". + @# + @# e.g. bench-modules-service_dynamodb + cd ./internal/repotools/cmd/eachmodule \ + && go run . -p $(subst _,/,$(subst bench-modules-,,$@)) ${EACHMODULE_FLAGS} \ + "go test -timeout=10m -bench . --benchmem ${BUILD_TAGS} ${RUN_NONE} ./..." + + +##################### +# Release Process # +##################### +.PHONY: preview-release pre-release-validation release + +preview-release: + @cd ./internal/repotools && \ + go run ./cmd/calculaterelease + +pre-release-validation: + @if [[ -z "${RELEASE_MANIFEST_FILE}" ]]; then \ + echo "RELEASE_MANIFEST_FILE is required to specify the file to write the release manifest" && false; \ + fi + @if [[ -z "${RELEASE_CHGLOG_DESC_FILE}" ]]; then \ + echo "RELEASE_CHGLOG_DESC_FILE is required to specify the file to write the release notes" && false; \ + fi + +release: pre-release-validation + cd ./internal/repotools && \ + go run ./cmd/calculaterelease -o ${RELEASE_MANIFEST_FILE} && \ + go run ./cmd/updaterequires -release ${RELEASE_MANIFEST_FILE} && \ + go run ./cmd/updatemodulemeta -release ${RELEASE_MANIFEST_FILE} && \ + go run ./cmd/generatechangelog -release ${RELEASE_MANIFEST_FILE} -o ${RELEASE_CHGLOG_DESC_FILE} && \ + go run ./cmd/changelog rm -all && \ + go run ./cmd/tagrelease -release ${RELEASE_MANIFEST_FILE} + +############## +# Repo Tools # +############## +.PHONY: install-repotools + +install-repotools: + cd ./internal/repotools && \ + go install ./cmd/changelog + +################## +# Linting/Verify # +################## +.PHONY: verify lint vet vet-modules-% sdkv1check + +verify: lint vet sdkv1check + +lint: + @echo "go lint SDK and vendor packages" + @lint=`golint ./...`; \ + dolint=`echo "$$lint" | grep -E -v \ + -e ${LINTIGNORESINGLEFIGHT}`; \ + echo "$$dolint"; \ + if [ "$$dolint" != "" ]; then exit 1; fi + +vet: vet-modules-. + +vet-modules-%: + cd ./internal/repotools/cmd/eachmodule \ + && go run . -p $(subst _,/,$(subst vet-modules-,,$@)) ${EACHMODULE_FLAGS} \ + "go vet ${BUILD_TAGS} --all ./..." + +sdkv1check: + @echo "Checking for usage of AWS SDK for Go v1" + @sdkv1usage=`go list -test -f '''{{ if not .Standard }}{{ range $$_, $$name := .Imports }} * {{ $$.ImportPath }} -> {{ $$name }}{{ print "\n" }}{{ end }}{{ range $$_, $$name := .TestImports }} *: {{ $$.ImportPath }} -> {{ $$name }}{{ print "\n" }}{{ end }}{{ end}}''' ./... | sort -u | grep '''/aws-sdk-go/'''`; \ + echo "$$sdkv1usage"; \ + if [ "$$sdkv1usage" != "" ]; then exit 1; fi + +################### +# Sandbox Testing # +################### +.PHONY: sandbox-tests sandbox-build-go1.15 sandbox-go1.15 sandbox-test-go1.15 sandbox-build-go1.16 \ +sandbox-go1.16 sandbox-test-go1.16 sandbox-build-gotip sandbox-gotip sandbox-test-gotip update-aws-golang-tip + +sandbox-tests: sandbox-test-go1.15 sandbox-test-go1.16 sandbox-test-gotip + +sandbox-build-go1.15: + docker build -f ./internal/awstesting/sandbox/Dockerfile.test.go1.15 -t "aws-sdk-go-v2-1.15" . +sandbox-go1.15: sandbox-build-go1.15 + docker run -i -t aws-sdk-go-v2-1.15 bash +sandbox-test-go1.15: sandbox-build-go1.15 + docker run -t aws-sdk-go-v2-1.15 + +sandbox-build-go1.16: + docker build -f ./internal/awstesting/sandbox/Dockerfile.test.go1.16 -t "aws-sdk-go-v2-1.16" . +sandbox-go1.16: sandbox-build-go1.16 + docker run -i -t aws-sdk-go-v2-1.16 bash +sandbox-test-go1.16: sandbox-build-go1.16 + docker run -t aws-sdk-go-v2-1.16 + +sandbox-build-gotip: + @echo "Run make update-aws-golang-tip, if this test fails because missing aws-golang:tip container" + docker build -f ./internal/awstesting/sandbox/Dockerfile.test.gotip -t "aws-sdk-go-v2-tip" . +sandbox-gotip: sandbox-build-gotip + docker run -i -t aws-sdk-go-v2-tip bash +sandbox-test-gotip: sandbox-build-gotip + docker run -t aws-sdk-go-v2-tip + +update-aws-golang-tip: + docker build --no-cache=true -f ./internal/awstesting/sandbox/Dockerfile.golang-tip -t "aws-golang:tip" . diff --git a/vendor/github.com/aws/aws-sdk-go-v2/README.md b/vendor/github.com/aws/aws-sdk-go-v2/README.md new file mode 100644 index 000000000..bb4349fea --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go-v2/README.md @@ -0,0 +1,155 @@ +# AWS SDK for Go v2 + +[![Go Build status](https://github.com/aws/aws-sdk-go-v2/actions/workflows/go.yml/badge.svg?branch=main)](https://github.com/aws/aws-sdk-go-v2/actions/workflows/go.yml)[![Codegen Build status](https://github.com/aws/aws-sdk-go-v2/actions/workflows/codegen.yml/badge.svg?branch=main)](https://github.com/aws/aws-sdk-go-v2/actions/workflows/codegen.yml) [![SDK Documentation](https://img.shields.io/badge/SDK-Documentation-blue)](https://aws.github.io/aws-sdk-go-v2/docs/) [![Migration Guide](https://img.shields.io/badge/Migration-Guide-blue)](https://aws.github.io/aws-sdk-go-v2/docs/migrating/) [![API Reference](https://img.shields.io/badge/api-reference-blue.svg)](https://pkg.go.dev/mod/github.com/aws/aws-sdk-go-v2) [![Apache V2 License](https://img.shields.io/badge/license-Apache%20V2-blue.svg)](https://github.com/aws/aws-sdk-go/blob/master/LICENSE.txt) + + +`aws-sdk-go-v2` is the v2 AWS SDK for the Go programming language. + +The v2 SDK requires a minimum version of `Go 1.15`. + +Checkout out the [release notes](https://github.com/aws/aws-sdk-go-v2/blob/main/CHANGELOG.md) for information about the latest bug +fixes, updates, and features added to the SDK. + +Jump To: +* [Getting Started](#getting-started) +* [Getting Help](#getting-help) +* [Contributing](#feedback-and-contributing) +* [More Resources](#resources) + +## Maintenance and support for SDK major versions + +For information about maintenance and support for SDK major versions and their underlying dependencies, see the +following in the AWS SDKs and Tools Shared Configuration and Credentials Reference Guide: + +* [AWS SDKs and Tools Maintenance Policy](https://docs.aws.amazon.com/credref/latest/refdocs/maint-policy.html) +* [AWS SDKs and Tools Version Support Matrix](https://docs.aws.amazon.com/credref/latest/refdocs/version-support-matrix.html) + +## Getting started +To get started working with the SDK setup your project for Go modules, and retrieve the SDK dependencies with `go get`. +This example shows how you can use the v2 SDK to make an API request using the SDK's [Amazon DynamoDB] client. + +###### Initialize Project +```sh +$ mkdir ~/helloaws +$ cd ~/helloaws +$ go mod init helloaws +``` +###### Add SDK Dependencies +```sh +$ go get github.com/aws/aws-sdk-go-v2/aws +$ go get github.com/aws/aws-sdk-go-v2/config +$ go get github.com/aws/aws-sdk-go-v2/service/dynamodb +``` + +###### Write Code +In your preferred editor add the following content to `main.go` + +```go +package main + +import ( + "context" + "fmt" + "log" + + "github.com/aws/aws-sdk-go-v2/aws" + "github.com/aws/aws-sdk-go-v2/config" + "github.com/aws/aws-sdk-go-v2/service/dynamodb" +) + +func main() { + // Using the SDK's default configuration, loading additional config + // and credentials values from the environment variables, shared + // credentials, and shared configuration files + cfg, err := config.LoadDefaultConfig(context.TODO(), config.WithRegion("us-west-2")) + if err != nil { + log.Fatalf("unable to load SDK config, %v", err) + } + + // Using the Config value, create the DynamoDB client + svc := dynamodb.NewFromConfig(cfg) + + // Build the request with its input parameters + resp, err := svc.ListTables(context.TODO(), &dynamodb.ListTablesInput{ + Limit: aws.Int32(5), + }) + if err != nil { + log.Fatalf("failed to list tables, %v", err) + } + + fmt.Println("Tables:") + for _, tableName := range resp.TableNames { + fmt.Println(tableName) + } +} +``` + +###### Compile and Execute +```sh +$ go run . +Table: +tableOne +tableTwo +``` + +## Getting Help + +Please use these community resources for getting help. We use the GitHub issues +for tracking bugs and feature requests. + +* Ask a question on [StackOverflow](http://stackoverflow.com/) and tag it with the [`aws-sdk-go`](http://stackoverflow.com/questions/tagged/aws-sdk-go) tag. +* Open a support ticket with [AWS Support](http://docs.aws.amazon.com/awssupport/latest/user/getting-started.html). +* If you think you may have found a bug, please open an [issue](https://github.com/aws/aws-sdk-go-v2/issues/new/choose). + +This SDK implements AWS service APIs. For general issues regarding the AWS services and their limitations, you may also take a look at the [Amazon Web Services Discussion Forums](https://forums.aws.amazon.com/). + +### Opening Issues + +If you encounter a bug with the AWS SDK for Go we would like to hear about it. +Search the [existing issues][Issues] and see +if others are also experiencing the issue before opening a new issue. Please +include the version of AWS SDK for Go, Go language, and OS you’re using. Please +also include reproduction case when appropriate. + +The GitHub issues are intended for bug reports and feature requests. For help +and questions with using AWS SDK for Go please make use of the resources listed +in the [Getting Help](#getting-help) section. +Keeping the list of open issues lean will help us respond in a timely manner. + +## Feedback and contributing + +The v2 SDK will use GitHub [Issues] to track feature requests and issues with the SDK. In addition, we'll use GitHub [Projects] to track large tasks spanning multiple pull requests, such as refactoring the SDK's internal request lifecycle. You can provide feedback to us in several ways. + +**GitHub issues**. To provide feedback or report bugs, file GitHub [Issues] on the SDK. This is the preferred mechanism to give feedback so that other users can engage in the conversation, +1 issues, etc. Issues you open will be evaluated, and included in our roadmap for the GA launch. + +**Contributing**. You can open pull requests for fixes or additions to the AWS SDK for Go 2.0. All pull requests must be submitted under the Apache 2.0 license and will be reviewed by an SDK team member before being merged in. Accompanying unit tests, where possible, are appreciated. + +## Resources + +[SDK Developer Guide](https://aws.github.io/aws-sdk-go-v2/docs/) - Use this document to learn how to get started and +use the AWS SDK for Go V2. + +[SDK API Reference Documentation](https://pkg.go.dev/mod/github.com/aws/aws-sdk-go-v2) - Use this +document to look up all API operation input and output parameters for AWS +services supported by the SDK. The API reference also includes documentation of +the SDK, and examples how to using the SDK, service client API operations, and +API operation require parameters. + +[Service Documentation](https://aws.amazon.com/documentation/) - Use this +documentation to learn how to interface with AWS services. These guides are +great for getting started with a service, or when looking for more +information about a service. While this document is not required for coding, +services may supply helpful samples to look out for. + +[Forum](https://forums.aws.amazon.com/forum.jspa?forumID=293) - Ask questions, get help, and give feedback + +[Issues] - Report issues, submit pull requests, and get involved + (see [Apache 2.0 License][license]) + +[Dep]: https://github.com/golang/dep +[Issues]: https://github.com/aws/aws-sdk-go-v2/issues +[Projects]: https://github.com/aws/aws-sdk-go-v2/projects +[CHANGELOG]: https://github.com/aws/aws-sdk-go-v2/blob/master/CHANGELOG.md +[Amazon DynamoDB]: https://aws.amazon.com/dynamodb/ +[design]: https://github.com/aws/aws-sdk-go-v2/blob/master/DESIGN.md +[license]: http://aws.amazon.com/apache2.0/ diff --git a/vendor/github.com/aws/aws-sdk-go-v2/aws/config.go b/vendor/github.com/aws/aws-sdk-go-v2/aws/config.go index 481aa1563..8b3a8512f 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/aws/config.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/aws/config.go @@ -86,3 +86,34 @@ func (c Config) Copy() Config { cp := c return cp } + +// EndpointDiscoveryEnableState indicates if endpoint discovery is +// enabled, disabled, auto or unset state. +// +// Default behavior (Auto or Unset) indicates operations that require endpoint +// discovery will use Endpoint Discovery by default. Operations that +// optionally use Endpoint Discovery will not use Endpoint Discovery +// unless EndpointDiscovery is explicitly enabled. +type EndpointDiscoveryEnableState uint + +// Enumeration values for EndpointDiscoveryEnableState +const ( + // EndpointDiscoveryUnset represents EndpointDiscoveryEnableState is unset. + // Users do not need to use this value explicitly. The behavior for unset + // is the same as for EndpointDiscoveryAuto. + EndpointDiscoveryUnset EndpointDiscoveryEnableState = iota + + // EndpointDiscoveryAuto represents an AUTO state that allows endpoint + // discovery only when required by the api. This is the default + // configuration resolved by the client if endpoint discovery is neither + // enabled or disabled. + EndpointDiscoveryAuto // default state + + // EndpointDiscoveryDisabled indicates client MUST not perform endpoint + // discovery even when required. + EndpointDiscoveryDisabled + + // EndpointDiscoveryEnabled indicates client MUST always perform endpoint + // discovery if supported for the operation. + EndpointDiscoveryEnabled +) diff --git a/vendor/github.com/aws/aws-sdk-go-v2/aws/doc.go b/vendor/github.com/aws/aws-sdk-go-v2/aws/doc.go index 6ec6efb5d..befc3bee1 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/aws/doc.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/aws/doc.go @@ -26,7 +26,7 @@ // strPtr = aws.String("my string") // // // Convert *string to string value -// str = aws.StringValue(strPtr) +// str = aws.ToString(strPtr) // // In addition to scalars the aws package also includes conversion utilities for // map and slice for commonly types used in API parameters. The map and slice @@ -40,7 +40,7 @@ // strPtrs = aws.StringSlice(strs) // // // Convert []*string to []string -// strs = aws.StringValueSlice(strPtrs) +// strs = aws.ToStringSlice(strPtrs) // // SDK Default HTTP Client // diff --git a/vendor/github.com/aws/aws-sdk-go-v2/aws/endpoints.go b/vendor/github.com/aws/aws-sdk-go-v2/aws/endpoints.go index fdea51add..dadb2b407 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/aws/endpoints.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/aws/endpoints.go @@ -54,8 +54,27 @@ type Endpoint struct { // The signing method that should be used for signing the requests to the // endpoint. SigningMethod string + + // The source of the Endpoint. By default, this will be EndpointSourceServiceMetadata. + // When providing a custom endpoint, you should set the source as EndpointSourceCustom. + // If source is not provided when providing a custom endpoint, the SDK may not + // perform required host mutations correctly. Source should be used along with + // HostnameImmutable property as per the usage requirement. + Source EndpointSource } +// EndpointSource is the endpoint source type. +type EndpointSource int + +const ( + // EndpointSourceServiceMetadata denotes service modeled endpoint metadata is used as Endpoint Source. + EndpointSourceServiceMetadata EndpointSource = iota + + // EndpointSourceCustom denotes endpoint is a custom endpoint. This source should be used when + // user provides a custom endpoint to be used by the SDK. + EndpointSourceCustom +) + // EndpointNotFoundError is a sentinel error to indicate that the // EndpointResolver implementation was unable to resolve an endpoint for the // given service and region. Resolvers should use this to indicate that an API diff --git a/vendor/github.com/aws/aws-sdk-go-v2/aws/from_ptr.go b/vendor/github.com/aws/aws-sdk-go-v2/aws/from_ptr.go index a84eaad23..72e29c354 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/aws/from_ptr.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/aws/from_ptr.go @@ -1,4 +1,5 @@ // Code generated by aws/generate.go DO NOT EDIT. + package aws import ( diff --git a/vendor/github.com/aws/aws-sdk-go-v2/aws/go_module_metadata.go b/vendor/github.com/aws/aws-sdk-go-v2/aws/go_module_metadata.go new file mode 100644 index 000000000..84b09f409 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go-v2/aws/go_module_metadata.go @@ -0,0 +1,6 @@ +// Code generated by internal/repotools/cmd/updatemodulemeta DO NOT EDIT. + +package aws + +// goModuleVersion is the tagged release for this module +const goModuleVersion = "1.7.0" diff --git a/vendor/github.com/aws/aws-sdk-go-v2/aws/logging.go b/vendor/github.com/aws/aws-sdk-go-v2/aws/logging.go index 7cc5d744f..f6abb0a63 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/aws/logging.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/aws/logging.go @@ -1,4 +1,5 @@ // Code generated by aws/logging_generate.go DO NOT EDIT. + package aws // ClientLogMode represents the logging mode of SDK clients. The client logging mode is a bit-field where diff --git a/vendor/github.com/aws/aws-sdk-go-v2/aws/logging_generate.go b/vendor/github.com/aws/aws-sdk-go-v2/aws/logging_generate.go index bff9d728a..522bbadea 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/aws/logging_generate.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/aws/logging_generate.go @@ -27,6 +27,7 @@ var tmpl = template.Must(template.New("ClientLogMode").Funcs(map[string]interfac return "Log" + name }, }).Parse(`// Code generated by aws/logging_generate.go DO NOT EDIT. + package aws // ClientLogMode represents the logging mode of SDK clients. The client logging mode is a bit-field where diff --git a/vendor/github.com/aws/aws-sdk-go-v2/aws/middleware/metadata.go b/vendor/github.com/aws/aws-sdk-go-v2/aws/middleware/metadata.go index f8e6a98f7..282012174 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/aws/middleware/metadata.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/aws/middleware/metadata.go @@ -2,6 +2,7 @@ package middleware import ( "context" + "github.com/aws/aws-sdk-go-v2/aws" "github.com/aws/smithy-go/middleware" ) @@ -150,3 +151,17 @@ func setOperationName(ctx context.Context, value string) context.Context { func SetPartitionID(ctx context.Context, value string) context.Context { return middleware.WithStackValue(ctx, partitionIDKey{}, value) } + +// EndpointSource key +type endpointSourceKey struct{} + +// GetEndpointSource returns an endpoint source if set on context +func GetEndpointSource(ctx context.Context) (v aws.EndpointSource) { + v, _ = middleware.GetStackValue(ctx, endpointSourceKey{}).(aws.EndpointSource) + return v +} + +// SetEndpointSource sets endpoint source on context +func SetEndpointSource(ctx context.Context, value aws.EndpointSource) context.Context { + return middleware.WithStackValue(ctx, endpointSourceKey{}, value) +} diff --git a/vendor/github.com/aws/aws-sdk-go-v2/aws/middleware/middleware.go b/vendor/github.com/aws/aws-sdk-go-v2/aws/middleware/middleware.go index 2e324cb3c..9bd0dfb15 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/aws/middleware/middleware.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/aws/middleware/middleware.go @@ -3,11 +3,11 @@ package middleware import ( "context" "fmt" - "net/http" "time" "github.com/aws/aws-sdk-go-v2/internal/rand" "github.com/aws/aws-sdk-go-v2/internal/sdk" + "github.com/aws/smithy-go/logging" "github.com/aws/smithy-go/middleware" smithyrand "github.com/aws/smithy-go/rand" smithyhttp "github.com/aws/smithy-go/transport/http" @@ -67,10 +67,10 @@ func (a RecordResponseTiming) HandleDeserialize(ctx context.Context, in middlewa break } var parseErr error - serverTime, parseErr = http.ParseTime(respDateHeader) + serverTime, parseErr = smithyhttp.ParseTime(respDateHeader) if parseErr != nil { logger := middleware.GetLogger(ctx) - logger.Logf("failed to parse response Date Header value, got %v", + logger.Logf(logging.Warn, "failed to parse response Date header value, got %v", parseErr.Error()) break } diff --git a/vendor/github.com/aws/aws-sdk-go-v2/aws/middleware/osname.go b/vendor/github.com/aws/aws-sdk-go-v2/aws/middleware/osname.go new file mode 100644 index 000000000..910936a96 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go-v2/aws/middleware/osname.go @@ -0,0 +1,23 @@ +// +build go1.16 + +package middleware + +import "runtime" + +func getNormalizedOSName() (os string) { + switch runtime.GOOS { + case "android": + os = "android" + case "linux": + os = "linux" + case "windows": + os = "windows" + case "darwin": + os = "macos" + case "ios": + os = "ios" + default: + os = "other" + } + return os +} diff --git a/vendor/github.com/aws/aws-sdk-go-v2/aws/middleware/osname_go115.go b/vendor/github.com/aws/aws-sdk-go-v2/aws/middleware/osname_go115.go new file mode 100644 index 000000000..d93f9c7f7 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go-v2/aws/middleware/osname_go115.go @@ -0,0 +1,23 @@ +// +build !go1.16 + +package middleware + +import "runtime" + +func getNormalizedOSName() (os string) { + switch runtime.GOOS { + case "android": + os = "android" + case "linux": + os = "linux" + case "windows": + os = "windows" + case "darwin": + // Due to Apple M1 we can't distinguish between macOS and iOS when GOOS/GOARCH is darwin/amd64 + // For now declare this as "other" until we have a better detection mechanism. + fallthrough + default: + os = "other" + } + return os +} diff --git a/vendor/github.com/aws/aws-sdk-go-v2/aws/middleware/user_agent.go b/vendor/github.com/aws/aws-sdk-go-v2/aws/middleware/user_agent.go index 80418d72a..d5adfec90 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/aws/middleware/user_agent.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/aws/middleware/user_agent.go @@ -87,24 +87,6 @@ func newRequestUserAgent() *requestUserAgent { return r } -func getNormalizedOSName() (os string) { - switch runtime.GOOS { - case "android": - os = "android" - case "linux": - os = "linux" - case "windows": - os = "windows" - case "darwin": - // Due to Apple M1 we can't distinguish between macOS and iOS when GOOS/GOARCH is darwin/amd64 - // For now declare this as "other" until we have a better detection mechanism. - fallthrough - default: - os = "other" - } - return os -} - func addSDKMetadata(r *requestUserAgent) { r.AddSDKAgentKey(OperatingSystemMetadata, getNormalizedOSName()) r.AddSDKAgentKeyValue(LanguageMetadata, "go", languageVersion) @@ -204,12 +186,14 @@ func (u *requestUserAgent) AddUserAgentKeyValue(key, value string) { // AddUserAgentKey adds the component identified by name to the User-Agent string. func (u *requestUserAgent) AddSDKAgentKey(keyType SDKAgentKeyType, key string) { - u.sdkAgent.AddKey(keyType.string() + "/" + key) + // TODO: should target sdkAgent + u.userAgent.AddKey(keyType.string() + "/" + key) } // AddUserAgentKeyValue adds the key identified by the given name and value to the User-Agent string. func (u *requestUserAgent) AddSDKAgentKeyValue(keyType SDKAgentKeyType, key, value string) { - u.sdkAgent.AddKeyValue(keyType.string()+"/"+key, value) + // TODO: should target sdkAgent + u.userAgent.AddKeyValue(keyType.string()+"/"+key, value) } // ID the name of the middleware. @@ -224,7 +208,8 @@ func (u *requestUserAgent) HandleBuild(ctx context.Context, in middleware.BuildI switch req := in.Request.(type) { case *smithyhttp.Request: u.addHTTPUserAgent(req) - u.addHTTPSDKAgent(req) + // TODO: To be re-enabled + // u.addHTTPSDKAgent(req) default: return out, metadata, fmt.Errorf("unknown transport type %T", in) } diff --git a/vendor/github.com/aws/aws-sdk-go-v2/aws/signer/internal/v4/header_rules.go b/vendor/github.com/aws/aws-sdk-go-v2/aws/signer/internal/v4/header_rules.go index 5e5953c73..c61955ad5 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/aws/signer/internal/v4/header_rules.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/aws/signer/internal/v4/header_rules.go @@ -34,23 +34,23 @@ func (m MapRule) IsValid(value string) bool { return ok } -// Whitelist is a generic Rule for whitelisting -type Whitelist struct { +// AllowList is a generic Rule for include listing +type AllowList struct { Rule } -// IsValid for Whitelist checks if the value is within the Whitelist -func (w Whitelist) IsValid(value string) bool { +// IsValid for AllowList checks if the value is within the AllowList +func (w AllowList) IsValid(value string) bool { return w.Rule.IsValid(value) } -// Blacklist is a generic Rule for blacklisting -type Blacklist struct { +// ExcludeList is a generic Rule for exclude listing +type ExcludeList struct { Rule } -// IsValid for Whitelist checks if the value is within the Whitelist -func (b Blacklist) IsValid(value string) bool { +// IsValid for AllowList checks if the value is within the AllowList +func (b ExcludeList) IsValid(value string) bool { return !b.Rule.IsValid(value) } diff --git a/vendor/github.com/aws/aws-sdk-go-v2/aws/signer/internal/v4/headers.go b/vendor/github.com/aws/aws-sdk-go-v2/aws/signer/internal/v4/headers.go index b62d985cc..85a1d8f03 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/aws/signer/internal/v4/headers.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/aws/signer/internal/v4/headers.go @@ -2,7 +2,7 @@ package v4 // IgnoredHeaders is a list of headers that are ignored during signing var IgnoredHeaders = Rules{ - Blacklist{ + ExcludeList{ MapRule{ "Authorization": struct{}{}, "User-Agent": struct{}{}, @@ -11,9 +11,9 @@ var IgnoredHeaders = Rules{ }, } -// RequiredSignedHeaders is a whitelist for Build canonical headers. +// RequiredSignedHeaders is a allow list for Build canonical headers. var RequiredSignedHeaders = Rules{ - Whitelist{ + AllowList{ MapRule{ "Cache-Control": struct{}{}, "Content-Disposition": struct{}{}, @@ -56,12 +56,13 @@ var RequiredSignedHeaders = Rules{ "X-Amz-Tagging": struct{}{}, }, }, + Patterns{"X-Amz-Object-Lock-"}, Patterns{"X-Amz-Meta-"}, } -// AllowedQueryHoisting is a whitelist for Build query headers. The boolean value +// AllowedQueryHoisting is a allowed list for Build query headers. The boolean value // represents whether or not it is a pattern. var AllowedQueryHoisting = InclusiveRules{ - Blacklist{RequiredSignedHeaders}, + ExcludeList{RequiredSignedHeaders}, Patterns{"X-Amz-"}, } diff --git a/vendor/github.com/aws/aws-sdk-go-v2/aws/signer/v4/middleware.go b/vendor/github.com/aws/aws-sdk-go-v2/aws/signer/v4/middleware.go index ffa297668..b6e28b4bd 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/aws/signer/v4/middleware.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/aws/signer/v4/middleware.go @@ -156,6 +156,16 @@ func (m *computePayloadSHA256) HandleBuild( return next.HandleBuild(ctx, in) } +// SwapComputePayloadSHA256ForUnsignedPayloadMiddleware replaces the +// ComputePayloadSHA256 middleware with the UnsignedPayload middleware. +// +// Use this to disable computing the Payload SHA256 checksum and instead use +// UNSIGNED-PAYLOAD for the SHA256 value. +func SwapComputePayloadSHA256ForUnsignedPayloadMiddleware(stack *middleware.Stack) error { + _, err := stack.Build.Swap(computePayloadHashMiddlewareID, &unsignedPayload{}) + return err +} + // contentSHA256Header sets the X-Amz-Content-Sha256 header value to // the Payload hash stored in the context. type contentSHA256Header struct{} diff --git a/vendor/github.com/aws/aws-sdk-go-v2/aws/signer/v4/v4.go b/vendor/github.com/aws/aws-sdk-go-v2/aws/signer/v4/v4.go index b77558c89..61c669843 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/aws/signer/v4/v4.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/aws/signer/v4/v4.go @@ -130,9 +130,6 @@ type httpSigner struct { KeyDerivator keyDerivator IsPreSign bool - // PayloadHash is the hex encoded SHA-256 hash of the request payload - // If len(PayloadHash) == 0 the signer will attempt to send the request - // as an unsigned payload. Note: Unsigned payloads only work for a subset of services. PayloadHash string DisableHeaderHoisting bool @@ -250,6 +247,19 @@ func buildAuthorizationHeader(credentialStr, signedHeadersStr, signingSignature // you to specify that a request is signed for the future, and cannot be // used until then. // +// The payloadHash is the hex encoded SHA-256 hash of the request payload, and +// must be provided. Even if the request has no payload (aka body). If the +// request has no payload you should use the hex encoded SHA-256 of an empty +// string as the payloadHash value. +// +// "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855" +// +// Some services such as Amazon S3 accept alternative values for the payload +// hash, such as "UNSIGNED-PAYLOAD" for requests where the body will not be +// included in the request signature. +// +// https://docs.aws.amazon.com/AmazonS3/latest/API/sig-v4-header-based-auth.html +// // Sign differs from Presign in that it will sign the request using HTTP // header values. This type of signing is intended for http.Request values that // will not be shared, or are shared in a way the header values on the request @@ -296,6 +306,19 @@ func (s Signer) SignHTTP(ctx context.Context, credentials aws.Credentials, r *ht // is made. This is helpful to know what header values need to be shared with // the party the presigned request will be distributed to. // +// The payloadHash is the hex encoded SHA-256 hash of the request payload, and +// must be provided. Even if the request has no payload (aka body). If the +// request has no payload you should use the hex encoded SHA-256 of an empty +// string as the payloadHash value. +// +// "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855" +// +// Some services such as Amazon S3 accept alternative values for the payload +// hash, such as "UNSIGNED-PAYLOAD" for requests where the body will not be +// included in the request signature. +// +// https://docs.aws.amazon.com/AmazonS3/latest/API/sig-v4-header-based-auth.html +// // PresignHTTP differs from SignHTTP in that it will sign the request using // query string instead of header values. This allows you to share the // Presigned Request's URL with third parties, or distribute it throughout your diff --git a/vendor/github.com/aws/aws-sdk-go-v2/aws/to_ptr.go b/vendor/github.com/aws/aws-sdk-go-v2/aws/to_ptr.go index 2f9daf3d1..28a193b8a 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/aws/to_ptr.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/aws/to_ptr.go @@ -1,4 +1,5 @@ // Code generated by aws/generate.go DO NOT EDIT. + package aws import ( diff --git a/vendor/github.com/aws/aws-sdk-go-v2/aws/version.go b/vendor/github.com/aws/aws-sdk-go-v2/aws/version.go index cdc25a767..5f729d45e 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/aws/version.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/aws/version.go @@ -5,4 +5,4 @@ package aws const SDKName = "aws-sdk-go-v2" // SDKVersion is the version of this SDK -const SDKVersion = "1.0.0" +const SDKVersion = goModuleVersion diff --git a/vendor/github.com/aws/aws-sdk-go-v2/buildspec.yml b/vendor/github.com/aws/aws-sdk-go-v2/buildspec.yml new file mode 100644 index 000000000..b11df5082 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go-v2/buildspec.yml @@ -0,0 +1,12 @@ +version: 0.2 + +phases: + build: + commands: + - echo Build started on `date` + - export GOPATH=/go + - export SDK_CODEBUILD_ROOT=`pwd` + - make ci-test-no-generate + post_build: + commands: + - echo Build completed on `date` diff --git a/vendor/github.com/aws/aws-sdk-go-v2/doc.go b/vendor/github.com/aws/aws-sdk-go-v2/doc.go new file mode 100644 index 000000000..509c01e5b --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go-v2/doc.go @@ -0,0 +1,58 @@ +// Package sdk is the official AWS SDK v2 for the Go programming language. +// +// aws-sdk-go-v2 is the the v2 of the AWS SDK for the Go programming language. +// +// Getting started +// +// The best way to get started working with the SDK is to use `go get` to add the +// SDK and desired service clients to your Go dependencies explicitly. +// +// go get github.com/aws/aws-sdk-go-v2 +// go get github.com/aws/aws-sdk-go-v2/config +// go get github.com/aws/aws-sdk-go-v2/service/dynamodb +// +// Hello AWS +// +// This example shows how you can use the v2 SDK to make an API request using the +// SDK's Amazon DynamoDB client. +// +// package main +// +// import ( +// "context" +// "fmt" +// "log" +// +// "github.com/aws/aws-sdk-go-v2/aws" +// "github.com/aws/aws-sdk-go-v2/config" +// "github.com/aws/aws-sdk-go-v2/service/dynamodb" +// ) +// +// func main() { +// // Using the SDK's default configuration, loading additional config +// // and credentials values from the environment variables, shared +// // credentials, and shared configuration files +// cfg, err := config.LoadDefaultConfig(context.TODO(), +// config.WithRegion("us-west-2"), +// ) +// if err != nil { +// log.Fatalf("unable to load SDK config, %v", err) +// } +// +// // Using the Config value, create the DynamoDB client +// svc := dynamodb.NewFromConfig(cfg) +// +// // Build the request with its input parameters +// resp, err := svc.ListTables(context.TODO(), &dynamodb.ListTablesInput{ +// Limit: aws.Int32(5), +// }) +// if err != nil { +// log.Fatalf("failed to list tables, %v", err) +// } +// +// fmt.Println("Tables:") +// for _, tableName := range resp.TableNames { +// fmt.Println(aws.ToString(tableName)) +// } +// } +package sdk diff --git a/vendor/github.com/aws/aws-sdk-go-v2/go.mod b/vendor/github.com/aws/aws-sdk-go-v2/go.mod new file mode 100644 index 000000000..51745a870 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go-v2/go.mod @@ -0,0 +1,9 @@ +module github.com/aws/aws-sdk-go-v2 + +require ( + github.com/aws/smithy-go v1.5.0 + github.com/google/go-cmp v0.5.4 + github.com/jmespath/go-jmespath v0.4.0 +) + +go 1.15 diff --git a/vendor/github.com/aws/aws-sdk-go-v2/go.sum b/vendor/github.com/aws/aws-sdk-go-v2/go.sum new file mode 100644 index 000000000..81b599cfb --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go-v2/go.sum @@ -0,0 +1,19 @@ +github.com/aws/smithy-go v1.5.0 h1:2grDq7LxZlo8BZUDeqRfQnQWLZpInmh2TLPPkJku3YM= +github.com/aws/smithy-go v1.5.0/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= +github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= +github.com/google/go-cmp v0.5.4 h1:L8R9j+yAqZuZjsqh/z+F1NCffTKKLShY6zXTItVIZ8M= +github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/jmespath/go-jmespath v0.4.0 h1:BEgLn5cpjn8UN1mAw4NjwDrS35OdebyEtFe+9YPoQUg= +github.com/jmespath/go-jmespath v0.4.0/go.mod h1:T8mJZnbsbmF+m6zOOFylbeCJqk5+pHWvzYPziyZiYoo= +github.com/jmespath/go-jmespath/internal/testify v1.5.1 h1:shLQSRRSCCPj3f2gpwzGwWFoC7ycTf1rcQZHOlsJ6N8= +github.com/jmespath/go-jmespath/internal/testify v1.5.1/go.mod h1:L3OGu8Wl2/fWfCI6z80xFu9LTZmf1ZRjMHUOPmWr69U= +github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= +github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= +github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= +golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543 h1:E7g+9GITq07hpfrRu66IVDexMakfv52eLZ2CXBWiKr4= +golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= +gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM= +gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= +gopkg.in/yaml.v2 v2.2.8 h1:obN1ZagJSUGI0Ek/LBmuj4SNLPfIny3KsKFopxRdj10= +gopkg.in/yaml.v2 v2.2.8/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= diff --git a/vendor/github.com/aws/aws-sdk-go-v2/internal/endpoints/endpoints.go b/vendor/github.com/aws/aws-sdk-go-v2/internal/endpoints/endpoints.go index 92635a1bb..745d3e086 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/internal/endpoints/endpoints.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/internal/endpoints/endpoints.go @@ -72,14 +72,14 @@ func (p Partition) ResolveEndpoint(region string, options Options) (resolved aws } func (p Partition) endpointForRegion(region string) (Endpoint, bool) { - if !p.IsRegionalized { - return p.Endpoints[p.PartitionEndpoint], region == p.PartitionEndpoint - } - if e, ok := p.Endpoints[region]; ok { return e, true } + if !p.IsRegionalized { + return p.Endpoints[p.PartitionEndpoint], region == p.PartitionEndpoint + } + // Unable to find any matching endpoint, return // blank that will be used for generic endpoint creation. return Endpoint{}, false diff --git a/vendor/github.com/aws/aws-sdk-go-v2/internal/ini/CHANGELOG.md b/vendor/github.com/aws/aws-sdk-go-v2/internal/ini/CHANGELOG.md new file mode 100644 index 000000000..a25f321e3 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go-v2/internal/ini/CHANGELOG.md @@ -0,0 +1,13 @@ +# v1.1.0 (2021-07-01) + +* **Feature**: Support for `:`, `=`, `[`, `]` being present in expression values. + +# v1.0.1 (2021-06-25) + +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.0.0 (2021-05-20) + +* **Release**: The `github.com/aws/aws-sdk-go-v2/internal/ini` package is now a Go Module. +* **Dependency Update**: Updated to the latest SDK module versions + diff --git a/vendor/github.com/aws/aws-sdk-go-v2/internal/ini/LICENSE.txt b/vendor/github.com/aws/aws-sdk-go-v2/internal/ini/LICENSE.txt new file mode 100644 index 000000000..d64569567 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go-v2/internal/ini/LICENSE.txt @@ -0,0 +1,202 @@ + + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/vendor/github.com/aws/aws-sdk-go-v2/internal/ini/dependency.go b/vendor/github.com/aws/aws-sdk-go-v2/internal/ini/dependency.go new file mode 100644 index 000000000..f5ebe52e1 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go-v2/internal/ini/dependency.go @@ -0,0 +1,6 @@ +package ini + +import ( + // internal/ini module was carved out of this module + _ "github.com/aws/aws-sdk-go-v2" +) diff --git a/vendor/github.com/aws/aws-sdk-go-v2/internal/ini/doc.go b/vendor/github.com/aws/aws-sdk-go-v2/internal/ini/doc.go index 25ce0fe13..1e55bbd07 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/internal/ini/doc.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/internal/ini/doc.go @@ -13,17 +13,30 @@ // } // // Below is the BNF that describes this parser -// Grammar: -// stmt -> value stmt' -// stmt' -> epsilon | op stmt -// value -> number | string | boolean | quoted_string +// Grammar: +// stmt -> section | stmt' +// stmt' -> epsilon | expr +// expr -> value (stmt)* | equal_expr (stmt)* +// equal_expr -> value ( ':' | '=' ) equal_expr' +// equal_expr' -> number | string | quoted_string +// quoted_string -> " quoted_string' +// quoted_string' -> string quoted_string_end +// quoted_string_end -> " // -// section -> [ section' -// section' -> value section_close -// section_close -> ] +// section -> [ section' +// section' -> section_value section_close +// section_value -> number | string_subset | boolean | quoted_string_subset +// quoted_string_subset -> " quoted_string_subset' +// quoted_string_subset' -> string_subset quoted_string_end +// quoted_string_subset -> " +// section_close -> ] // -// SkipState will skip (NL WS)+ +// value -> number | string_subset | boolean +// string -> ? UTF-8 Code-Points except '\n' (U+000A) and '\r\n' (U+000D U+000A) ? +// string_subset -> ? Code-points excepted by grammar except ':' (U+003A), '=' (U+003D), '[' (U+005B), and ']' (U+005D) ? // -// comment -> # comment' | ; comment' -// comment' -> epsilon | value +// SkipState will skip (NL WS)+ +// +// comment -> # comment' | ; comment' +// comment' -> epsilon | value package ini diff --git a/vendor/github.com/aws/aws-sdk-go-v2/internal/ini/go.mod b/vendor/github.com/aws/aws-sdk-go-v2/internal/ini/go.mod new file mode 100644 index 000000000..377e7c48a --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go-v2/internal/ini/go.mod @@ -0,0 +1,7 @@ +module github.com/aws/aws-sdk-go-v2/internal/ini + +go 1.15 + +require github.com/aws/aws-sdk-go-v2 v1.7.0 + +replace github.com/aws/aws-sdk-go-v2 => ../../ diff --git a/vendor/github.com/aws/aws-sdk-go-v2/internal/ini/go.sum b/vendor/github.com/aws/aws-sdk-go-v2/internal/ini/go.sum new file mode 100644 index 000000000..5d05a0ff7 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go-v2/internal/ini/go.sum @@ -0,0 +1,10 @@ +github.com/aws/smithy-go v1.5.0/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= +github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= +github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/jmespath/go-jmespath v0.4.0/go.mod h1:T8mJZnbsbmF+m6zOOFylbeCJqk5+pHWvzYPziyZiYoo= +github.com/jmespath/go-jmespath/internal/testify v1.5.1/go.mod h1:L3OGu8Wl2/fWfCI6z80xFu9LTZmf1ZRjMHUOPmWr69U= +github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= +github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= +golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= +gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= +gopkg.in/yaml.v2 v2.2.8/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= diff --git a/vendor/github.com/aws/aws-sdk-go-v2/internal/ini/go_module_metadata.go b/vendor/github.com/aws/aws-sdk-go-v2/internal/ini/go_module_metadata.go new file mode 100644 index 000000000..74ea720ba --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go-v2/internal/ini/go_module_metadata.go @@ -0,0 +1,6 @@ +// Code generated by internal/repotools/cmd/updatemodulemeta DO NOT EDIT. + +package ini + +// goModuleVersion is the tagged release for this module +const goModuleVersion = "1.1.0" diff --git a/vendor/github.com/aws/aws-sdk-go-v2/internal/ini/ini_parser.go b/vendor/github.com/aws/aws-sdk-go-v2/internal/ini/ini_parser.go index 643fbe467..12fc7d5aa 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/internal/ini/ini_parser.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/internal/ini/ini_parser.go @@ -5,9 +5,12 @@ import ( "io" ) +// ParseState represents the current state of the parser. +type ParseState uint + // State enums for the parse table const ( - InvalidState = iota + InvalidState ParseState = iota // stmt -> value stmt' StatementState // stmt' -> MarkComplete | op stmt @@ -36,7 +39,7 @@ const ( ) // parseTable is a state machine to dictate the grammar above. -var parseTable = map[ASTKind]map[TokenType]int{ +var parseTable = map[ASTKind]map[TokenType]ParseState{ ASTKindStart: { TokenLit: StatementState, TokenSep: OpenScopeState, @@ -64,6 +67,8 @@ var parseTable = map[ASTKind]map[TokenType]int{ }, ASTKindEqualExpr: { TokenLit: ValueState, + TokenSep: ValueState, + TokenOp: ValueState, TokenWS: SkipTokenState, TokenNL: SkipState, }, @@ -77,7 +82,7 @@ var parseTable = map[ASTKind]map[TokenType]int{ }, ASTKindExprStatement: { TokenLit: ValueState, - TokenSep: OpenScopeState, + TokenSep: ValueState, TokenOp: ValueState, TokenWS: ValueState, TokenNL: MarkCompleteState, @@ -204,18 +209,6 @@ loop: case ValueState: // ValueState requires the previous state to either be an equal expression // or an expression statement. - // - // This grammar occurs when the RHS is a number, word, or quoted string. - // equal_expr -> lit op equal_expr' - // equal_expr' -> number | string | quoted_string - // quoted_string -> " quoted_string' - // quoted_string' -> string quoted_string_end - // quoted_string_end -> " - // - // otherwise - // expr_stmt -> equal_expr (expr_stmt')* - // expr_stmt' -> ws S | op S | MarkComplete - // S -> equal_expr' expr_stmt' switch k.Kind { case ASTKindEqualExpr: // assigning a value to some key @@ -242,7 +235,7 @@ loop: } children[len(children)-1] = rhs - k.SetChildren(children) + root.SetChildren(children) stack.Push(k) } diff --git a/vendor/github.com/aws/aws-sdk-go-v2/internal/ini/visitor.go b/vendor/github.com/aws/aws-sdk-go-v2/internal/ini/visitor.go index cfd6fe4d6..a07a63738 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/internal/ini/visitor.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/internal/ini/visitor.go @@ -63,7 +63,10 @@ func (v *DefaultVisitor) VisitExpr(expr AST) error { rhs := children[1] - if rhs.Root.Type() != TokenLit { + // The right-hand value side the equality expression is allowed to contain '[', ']', ':', '=' in the values. + // If the token is not either a literal or one of the token types that identifies those four additional + // tokens then error. + if !(rhs.Root.Type() == TokenLit || rhs.Root.Type() == TokenOp || rhs.Root.Type() == TokenSep) { return NewParseError("unexpected token type") } @@ -120,8 +123,6 @@ func (v *DefaultVisitor) VisitStatement(stmt AST) error { name = names[0] + " " + strings.TrimLeft(names[1], " ") } - // lower casing name to handle duplicates correctly. - name = strings.ToLower(name) // attach profile name on section if !v.Sections.HasSection(name) { v.Sections.container[name] = NewSection(name) diff --git a/vendor/github.com/aws/aws-sdk-go-v2/internal/sdk/time.go b/vendor/github.com/aws/aws-sdk-go-v2/internal/sdk/time.go index 7b1e5d927..8e8dabad5 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/internal/sdk/time.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/internal/sdk/time.go @@ -61,3 +61,14 @@ func TestingUseNopSleep() func() { Sleep = time.Sleep } } + +// TestingUseReferenceTime is a utility for swapping the time function across the SDK to return a specific reference time +// for testing purposes. +func TestingUseReferenceTime(referenceTime time.Time) func() { + NowTime = func() time.Time { + return referenceTime + } + return func() { + NowTime = time.Now + } +} diff --git a/vendor/github.com/aws/aws-sdk-go-v2/internal/sdkio/ringbuffer.go b/vendor/github.com/aws/aws-sdk-go-v2/internal/sdkio/ringbuffer.go deleted file mode 100644 index 1389bf0bc..000000000 --- a/vendor/github.com/aws/aws-sdk-go-v2/internal/sdkio/ringbuffer.go +++ /dev/null @@ -1,72 +0,0 @@ -package sdkio - -import "io" - -// RingBuffer struct satisfies io.ReadWrite interface. -// -// ReadBuffer is a revolving buffer data structure, which can be used to store snapshots of data in a -// revolving window. -type RingBuffer struct { - slice []byte - start int - end int - size int -} - -// NewRingBuffer method takes in a byte slice as an input and returns a RingBuffer. -func NewRingBuffer(slice []byte) *RingBuffer { - ringBuf := RingBuffer{ - slice: slice, - } - return &ringBuf -} - -// Write method inserts the elements in a byte slice, and returns the number of bytes written along with an error. -func (r *RingBuffer) Write(p []byte) (int, error) { - for _, b := range p { - // check if end points to invalid index, we need to circle back - if r.end == len(r.slice) { - r.end = 0 - } - // check if start points to invalid index, we need to circle back - if r.start == len(r.slice) { - r.start = 0 - } - // if ring buffer is filled, increment the start index - if r.size == len(r.slice) { - r.size-- - r.start++ - } - - r.slice[r.end] = b - r.end++ - r.size++ - } - return r.size, nil -} - -// Read copies the data on the ring buffer into the byte slice provided to the method. -// Returns the read count along with Error encountered while reading -func (r *RingBuffer) Read(p []byte) (int, error) { - // readCount keeps track of the number of bytes read - var readCount int - for j := 0; j < len(p); j++ { - // if ring buffer is empty or completely read - // return EOF error. - if r.size == 0 { - return readCount, io.EOF - } - - p[j] = r.slice[r.start] - readCount++ - // increment the start pointer for ring buffer - r.start++ - // decrement the size of ring buffer - r.size-- - - if r.start == len(r.slice) { - r.start = 0 - } - } - return readCount, nil -} diff --git a/vendor/github.com/aws/aws-sdk-go-v2/local-mod-replace.sh b/vendor/github.com/aws/aws-sdk-go-v2/local-mod-replace.sh new file mode 100644 index 000000000..8a2aea99e --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go-v2/local-mod-replace.sh @@ -0,0 +1,39 @@ +#1/usr/bin/env bash + +PROJECT_DIR="" +SDK_SOURCE_DIR=$(cd `dirname $0` && pwd) + +usage() { + echo "Usage: $0 [-s SDK_SOURCE_DIR] [-d PROJECT_DIR]" 1>&2 + exit 1 +} + +while getopts "hs:d:" options; do + case "${options}" in + s) + SDK_SOURCE_DIR=${OPTARG} + if [ "$SDK_SOURCE_DIR" == "" ]; then + echo "path to SDK source directory is required" || exit + usage + fi + ;; + d) + PROJECT_DIR=${OPTARG} + ;; + h) + usage + ;; + *) + usage + ;; + esac +done + +if [ "$PROJECT_DIR" != "" ]; then + cd $PROJECT_DIR || exit +fi + +go mod graph | awk '{print $1}' | cut -d '@' -f 1 | sort | uniq | grep "github.com/aws/aws-sdk-go-v2" | while read x; do + repPath=${x/github.com\/aws\/aws-sdk-go-v2/${SDK_SOURCE_DIR}} + echo -replace $x=$repPath +done | xargs go mod edit diff --git a/vendor/github.com/aws/aws-sdk-go-v2/modman.toml b/vendor/github.com/aws/aws-sdk-go-v2/modman.toml new file mode 100644 index 000000000..82d1ef693 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go-v2/modman.toml @@ -0,0 +1,52 @@ +[dependencies] +"github.com/aws/smithy-go" = "v1.5.0" +"github.com/google/go-cmp" = "v0.5.4" +"github.com/jmespath/go-jmespath" = "v0.4.0" + +[modules."."] +metadata_package = "aws" + +[modules."example/service/s3/listObjects"] +no_tag = true + +[modules."example/service/s3/usingPrivateLink"] +no_tag = true + +[modules."internal/configsources/configtesting"] +no_tag = true + +[modules."internal/repotools"] +no_tag = true + +[modules."internal/repotools/changes"] +no_tag = true + +[modules."internal/protocoltest/awsrestjson"] +no_tag = true + +[modules."internal/protocoltest/ec2query"] +no_tag = true + +[modules."internal/protocoltest/jsonrpc"] +no_tag = true + +[modules."internal/protocoltest/jsonrpc10"] +no_tag = true + +[modules."internal/protocoltest/query"] +no_tag = true + +[modules."internal/protocoltest/restxml"] +no_tag = true + +[modules."internal/protocoltest/restxmlwithnamespace"] +no_tag = true + +[modules."service/internal/benchmark"] +no_tag = true + +[modules."service/internal/integrationtest"] +no_tag = true + +[modules."service/s3/internal/configtesting"] +no_tag = true 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 new file mode 100644 index 000000000..e69631e6b --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/CHANGELOG.md @@ -0,0 +1,28 @@ +# v1.11.0 (2021-07-01) + +* **Feature**: API client updated + +# v1.10.0 (2021-06-25) + +* **Feature**: API client updated +* **Feature**: Updated `github.com/aws/smithy-go` to latest version +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.9.0 (2021-06-04) + +* **Feature**: Updated service client to latest API model. + +# v1.8.0 (2021-05-25) + +* **Feature**: API client updated + +# v1.7.1 (2021-05-20) + +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.7.0 (2021-05-14) + +* **Feature**: Constant has been added to modules to enable runtime version inspection for reporting. +* **Feature**: Updated to latest service API model. +* **Dependency Update**: Updated to the latest SDK module versions + diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_client.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_client.go index 02b561bf7..88b377cc3 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_client.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_client.go @@ -107,6 +107,14 @@ func WithAPIOptions(optFns ...func(*middleware.Stack) error) func(*Options) { } } +// WithEndpointResolver returns a functional option for setting the Client's +// EndpointResolver option. +func WithEndpointResolver(v EndpointResolver) func(*Options) { + return func(o *Options) { + o.EndpointResolver = v + } +} + type HTTPClient interface { Do(*http.Request) (*http.Response, error) } @@ -205,7 +213,7 @@ func resolveAWSEndpointResolver(cfg aws.Config, o *Options) { } func addClientUserAgent(stack *middleware.Stack) error { - return awsmiddleware.AddRequestUserAgentMiddleware(stack) + return awsmiddleware.AddSDKAgentKeyValue(awsmiddleware.APIMetadata, "ec2", goModuleVersion)(stack) } func addHTTPSignerV4Middleware(stack *middleware.Stack, o Options) error { @@ -339,6 +347,7 @@ func (c presignConverter) convertToPresignMiddleware(stack *middleware.Stack, op stack.Finalize.Clear() stack.Deserialize.Clear() stack.Build.Remove((*awsmiddleware.ClientRequestID)(nil).ID()) + stack.Build.Remove("UserAgent") pmw := v4.NewPresignHTTPRequestMiddleware(v4.PresignHTTPRequestMiddlewareOptions{ CredentialsProvider: options.Credentials, Presigner: c.Presigner, diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AcceptReservedInstancesExchangeQuote.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AcceptReservedInstancesExchangeQuote.go index 776c60da8..56cda1389 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AcceptReservedInstancesExchangeQuote.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AcceptReservedInstancesExchangeQuote.go @@ -18,7 +18,7 @@ func (c *Client) AcceptReservedInstancesExchangeQuote(ctx context.Context, param params = &AcceptReservedInstancesExchangeQuoteInput{} } - result, metadata, err := c.invokeOperation(ctx, "AcceptReservedInstancesExchangeQuote", params, optFns, addOperationAcceptReservedInstancesExchangeQuoteMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "AcceptReservedInstancesExchangeQuote", params, optFns, c.addOperationAcceptReservedInstancesExchangeQuoteMiddlewares) if err != nil { return nil, err } @@ -41,7 +41,7 @@ type AcceptReservedInstancesExchangeQuoteInput struct { // 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 + DryRun *bool // The configuration of the target Convertible Reserved Instance to exchange for // your current Convertible Reserved Instances. @@ -58,7 +58,7 @@ type AcceptReservedInstancesExchangeQuoteOutput struct { ResultMetadata middleware.Metadata } -func addOperationAcceptReservedInstancesExchangeQuoteMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationAcceptReservedInstancesExchangeQuoteMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpAcceptReservedInstancesExchangeQuote{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AcceptTransitGatewayMulticastDomainAssociations.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AcceptTransitGatewayMulticastDomainAssociations.go index 2a85e0d50..f4fdece01 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AcceptTransitGatewayMulticastDomainAssociations.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AcceptTransitGatewayMulticastDomainAssociations.go @@ -17,7 +17,7 @@ func (c *Client) AcceptTransitGatewayMulticastDomainAssociations(ctx context.Con params = &AcceptTransitGatewayMulticastDomainAssociationsInput{} } - result, metadata, err := c.invokeOperation(ctx, "AcceptTransitGatewayMulticastDomainAssociations", params, optFns, addOperationAcceptTransitGatewayMulticastDomainAssociationsMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "AcceptTransitGatewayMulticastDomainAssociations", params, optFns, c.addOperationAcceptTransitGatewayMulticastDomainAssociationsMiddlewares) if err != nil { return nil, err } @@ -33,7 +33,7 @@ type AcceptTransitGatewayMulticastDomainAssociationsInput struct { // 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 + DryRun *bool // The IDs of the subnets to associate with the transit gateway multicast domain. SubnetIds []string @@ -54,7 +54,7 @@ type AcceptTransitGatewayMulticastDomainAssociationsOutput struct { ResultMetadata middleware.Metadata } -func addOperationAcceptTransitGatewayMulticastDomainAssociationsMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationAcceptTransitGatewayMulticastDomainAssociationsMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpAcceptTransitGatewayMulticastDomainAssociations{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AcceptTransitGatewayPeeringAttachment.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AcceptTransitGatewayPeeringAttachment.go index e54ad260f..9c32c66c0 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AcceptTransitGatewayPeeringAttachment.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AcceptTransitGatewayPeeringAttachment.go @@ -18,7 +18,7 @@ func (c *Client) AcceptTransitGatewayPeeringAttachment(ctx context.Context, para params = &AcceptTransitGatewayPeeringAttachmentInput{} } - result, metadata, err := c.invokeOperation(ctx, "AcceptTransitGatewayPeeringAttachment", params, optFns, addOperationAcceptTransitGatewayPeeringAttachmentMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "AcceptTransitGatewayPeeringAttachment", params, optFns, c.addOperationAcceptTransitGatewayPeeringAttachmentMiddlewares) if err != nil { return nil, err } @@ -39,7 +39,7 @@ type AcceptTransitGatewayPeeringAttachmentInput struct { // 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 + DryRun *bool } type AcceptTransitGatewayPeeringAttachmentOutput struct { @@ -51,7 +51,7 @@ type AcceptTransitGatewayPeeringAttachmentOutput struct { ResultMetadata middleware.Metadata } -func addOperationAcceptTransitGatewayPeeringAttachmentMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationAcceptTransitGatewayPeeringAttachmentMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpAcceptTransitGatewayPeeringAttachment{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AcceptTransitGatewayVpcAttachment.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AcceptTransitGatewayVpcAttachment.go index 85698ae10..b366d5665 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AcceptTransitGatewayVpcAttachment.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AcceptTransitGatewayVpcAttachment.go @@ -20,7 +20,7 @@ func (c *Client) AcceptTransitGatewayVpcAttachment(ctx context.Context, params * params = &AcceptTransitGatewayVpcAttachmentInput{} } - result, metadata, err := c.invokeOperation(ctx, "AcceptTransitGatewayVpcAttachment", params, optFns, addOperationAcceptTransitGatewayVpcAttachmentMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "AcceptTransitGatewayVpcAttachment", params, optFns, c.addOperationAcceptTransitGatewayVpcAttachmentMiddlewares) if err != nil { return nil, err } @@ -41,7 +41,7 @@ type AcceptTransitGatewayVpcAttachmentInput struct { // 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 + DryRun *bool } type AcceptTransitGatewayVpcAttachmentOutput struct { @@ -53,7 +53,7 @@ type AcceptTransitGatewayVpcAttachmentOutput struct { ResultMetadata middleware.Metadata } -func addOperationAcceptTransitGatewayVpcAttachmentMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationAcceptTransitGatewayVpcAttachmentMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpAcceptTransitGatewayVpcAttachment{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AcceptVpcEndpointConnections.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AcceptVpcEndpointConnections.go index 77042f8ac..d9cfca045 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AcceptVpcEndpointConnections.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AcceptVpcEndpointConnections.go @@ -18,7 +18,7 @@ func (c *Client) AcceptVpcEndpointConnections(ctx context.Context, params *Accep params = &AcceptVpcEndpointConnectionsInput{} } - result, metadata, err := c.invokeOperation(ctx, "AcceptVpcEndpointConnections", params, optFns, addOperationAcceptVpcEndpointConnectionsMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "AcceptVpcEndpointConnections", params, optFns, c.addOperationAcceptVpcEndpointConnectionsMiddlewares) if err != nil { return nil, err } @@ -44,7 +44,7 @@ type AcceptVpcEndpointConnectionsInput struct { // 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 + DryRun *bool } type AcceptVpcEndpointConnectionsOutput struct { @@ -56,7 +56,7 @@ type AcceptVpcEndpointConnectionsOutput struct { ResultMetadata middleware.Metadata } -func addOperationAcceptVpcEndpointConnectionsMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationAcceptVpcEndpointConnectionsMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpAcceptVpcEndpointConnections{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AcceptVpcPeeringConnection.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AcceptVpcPeeringConnection.go index c393fdf20..1a9e9e4e8 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AcceptVpcPeeringConnection.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AcceptVpcPeeringConnection.go @@ -21,7 +21,7 @@ func (c *Client) AcceptVpcPeeringConnection(ctx context.Context, params *AcceptV params = &AcceptVpcPeeringConnectionInput{} } - result, metadata, err := c.invokeOperation(ctx, "AcceptVpcPeeringConnection", params, optFns, addOperationAcceptVpcPeeringConnectionMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "AcceptVpcPeeringConnection", params, optFns, c.addOperationAcceptVpcPeeringConnectionMiddlewares) if err != nil { return nil, err } @@ -37,7 +37,7 @@ type AcceptVpcPeeringConnectionInput struct { // 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 + DryRun *bool // The ID of the VPC peering connection. You must specify this parameter in the // request. @@ -53,7 +53,7 @@ type AcceptVpcPeeringConnectionOutput struct { ResultMetadata middleware.Metadata } -func addOperationAcceptVpcPeeringConnectionMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationAcceptVpcPeeringConnectionMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpAcceptVpcPeeringConnection{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AdvertiseByoipCidr.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AdvertiseByoipCidr.go index 179eb8cbd..85c4cc4d7 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AdvertiseByoipCidr.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AdvertiseByoipCidr.go @@ -12,21 +12,23 @@ import ( ) // Advertises an IPv4 or IPv6 address range that is provisioned for use with your -// AWS resources through bring your own IP addresses (BYOIP). You can perform this -// operation at most once every 10 seconds, even if you specify different address -// ranges each time. We recommend that you stop advertising the BYOIP CIDR from -// other locations when you advertise it from AWS. To minimize down time, you can -// configure your AWS resources to use an address from a BYOIP CIDR before it is -// advertised, and then simultaneously stop advertising it from the current -// location and start advertising it through AWS. It can take a few minutes before -// traffic to the specified addresses starts routing to AWS because of BGP -// propagation delays. To stop advertising the BYOIP CIDR, use WithdrawByoipCidr. +// Amazon Web Services resources through bring your own IP addresses (BYOIP). You +// can perform this operation at most once every 10 seconds, even if you specify +// different address ranges each time. We recommend that you stop advertising the +// BYOIP CIDR from other locations when you advertise it from Amazon Web Services. +// To minimize down time, you can configure your Amazon Web Services resources to +// use an address from a BYOIP CIDR before it is advertised, and then +// simultaneously stop advertising it from the current location and start +// advertising it through Amazon Web Services. It can take a few minutes before +// traffic to the specified addresses starts routing to Amazon Web Services because +// of BGP propagation delays. To stop advertising the BYOIP CIDR, use +// WithdrawByoipCidr. func (c *Client) AdvertiseByoipCidr(ctx context.Context, params *AdvertiseByoipCidrInput, optFns ...func(*Options)) (*AdvertiseByoipCidrOutput, error) { if params == nil { params = &AdvertiseByoipCidrInput{} } - result, metadata, err := c.invokeOperation(ctx, "AdvertiseByoipCidr", params, optFns, addOperationAdvertiseByoipCidrMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "AdvertiseByoipCidr", params, optFns, c.addOperationAdvertiseByoipCidrMiddlewares) if err != nil { return nil, err } @@ -48,7 +50,7 @@ type AdvertiseByoipCidrInput struct { // 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 + DryRun *bool } type AdvertiseByoipCidrOutput struct { @@ -60,7 +62,7 @@ type AdvertiseByoipCidrOutput struct { ResultMetadata middleware.Metadata } -func addOperationAdvertiseByoipCidrMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationAdvertiseByoipCidrMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpAdvertiseByoipCidr{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AllocateAddress.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AllocateAddress.go index 6832e33fd..492cfd282 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AllocateAddress.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AllocateAddress.go @@ -11,24 +11,24 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Allocates an Elastic IP address to your AWS account. After you allocate the -// Elastic IP address you can associate it with an instance or network interface. -// After you release an Elastic IP address, it is released to the IP address pool -// and can be allocated to a different AWS account. You can allocate an Elastic IP -// address from an address pool owned by AWS or from an address pool created from a -// public IPv4 address range that you have brought to AWS for use with your AWS -// resources using bring your own IP addresses (BYOIP). For more information, see -// Bring Your Own IP Addresses (BYOIP) +// Allocates an Elastic IP address to your account. After you allocate the Elastic +// IP address you can associate it with an instance or network interface. After you +// release an Elastic IP address, it is released to the IP address pool and can be +// allocated to a different account. You can allocate an Elastic IP address from an +// address pool owned by Amazon Web Services or from an address pool created from a +// public IPv4 address range that you have brought to Amazon Web Services for use +// with your Amazon Web Services resources using bring your own IP addresses +// (BYOIP). For more information, see Bring Your Own IP Addresses (BYOIP) // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-byoip.html) in the // Amazon Elastic Compute Cloud User Guide. [EC2-VPC] If you release an Elastic IP // address, you might be able to recover it. You cannot recover an Elastic IP -// address that you released after it is allocated to another AWS account. You -// cannot recover an Elastic IP address for EC2-Classic. To attempt to recover an -// Elastic IP address that you released, specify it in this operation. An Elastic -// IP address is for use either in the EC2-Classic platform or in a VPC. By -// default, you can allocate 5 Elastic IP addresses for EC2-Classic per Region and -// 5 Elastic IP addresses for EC2-VPC per Region. For more information, see Elastic -// IP Addresses +// address that you released after it is allocated to another account. You cannot +// recover an Elastic IP address for EC2-Classic. To attempt to recover an Elastic +// IP address that you released, specify it in this operation. An Elastic IP +// address is for use either in the EC2-Classic platform or in a VPC. By default, +// you can allocate 5 Elastic IP addresses for EC2-Classic per Region and 5 Elastic +// IP addresses for EC2-VPC per Region. For more information, see Elastic IP +// Addresses // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/elastic-ip-addresses-eip.html) // in the Amazon Elastic Compute Cloud User Guide. You can allocate a carrier IP // address which is a public IP address from a telecommunication carrier, to a @@ -39,7 +39,7 @@ func (c *Client) AllocateAddress(ctx context.Context, params *AllocateAddressInp params = &AllocateAddressInput{} } - result, metadata, err := c.invokeOperation(ctx, "AllocateAddress", params, optFns, addOperationAllocateAddressMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "AllocateAddress", params, optFns, c.addOperationAllocateAddressMiddlewares) if err != nil { return nil, err } @@ -69,7 +69,7 @@ type AllocateAddressInput struct { // 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 + DryRun *bool // A unique set of Availability Zones, Local Zones, or Wavelength Zones from which // AWS advertises IP addresses. Use this parameter to limit the IP address to this @@ -93,8 +93,8 @@ type AllocateAddressInput struct { type AllocateAddressOutput struct { - // [EC2-VPC] The ID that AWS assigns to represent the allocation of the Elastic IP - // address for use with instances in a VPC. + // [EC2-VPC] The ID that Amazon Web Services assigns to represent the allocation of + // the Elastic IP address for use with instances in a VPC. AllocationId *string // The carrier IP address. This option is only available for network interfaces @@ -125,7 +125,7 @@ type AllocateAddressOutput struct { ResultMetadata middleware.Metadata } -func addOperationAllocateAddressMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationAllocateAddressMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpAllocateAddress{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AllocateHosts.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AllocateHosts.go index a1aeee261..59d70bf31 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AllocateHosts.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AllocateHosts.go @@ -19,7 +19,7 @@ func (c *Client) AllocateHosts(ctx context.Context, params *AllocateHostsInput, params = &AllocateHostsInput{} } - result, metadata, err := c.invokeOperation(ctx, "AllocateHosts", params, optFns, addOperationAllocateHostsMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "AllocateHosts", params, optFns, c.addOperationAllocateHostsMiddlewares) if err != nil { return nil, err } @@ -39,25 +39,25 @@ type AllocateHostsInput struct { // The number of Dedicated Hosts to allocate to your account with these parameters. // // This member is required. - Quantity int32 + Quantity *int32 // Indicates whether the host accepts any untargeted instance launches that match // its instance type configuration, or if it only accepts Host tenancy instance // launches that specify its unique host ID. For more information, see - // Understanding Instance Placement and Host Affinity + // Understanding auto-placement and affinity // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/how-dedicated-hosts-work.html#dedicated-hosts-understanding) - // in the Amazon EC2 User Guide for Linux Instances. Default: on + // in the Amazon EC2 User Guide. Default: on AutoPlacement types.AutoPlacement // Unique, case-sensitive identifier that you provide to ensure the idempotency of - // the request. For more information, see How to Ensure Idempotency + // the request. For more information, see Ensuring Idempotency // (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html). ClientToken *string // Indicates whether to enable or disable host recovery for the Dedicated Host. - // Host recovery is disabled by default. For more information, see Host Recovery + // Host recovery is disabled by default. For more information, see Host recovery // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/dedicated-hosts-recovery.html) - // in the Amazon Elastic Compute Cloud User Guide. Default: off + // in the Amazon EC2 User Guide. Default: off HostRecovery types.HostRecovery // Specifies the instance family to be supported by the Dedicated Hosts. If you @@ -90,7 +90,7 @@ type AllocateHostsOutput struct { ResultMetadata middleware.Metadata } -func addOperationAllocateHostsMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationAllocateHostsMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpAllocateHosts{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ApplySecurityGroupsToClientVpnTargetNetwork.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ApplySecurityGroupsToClientVpnTargetNetwork.go index f46bed461..739b79a60 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ApplySecurityGroupsToClientVpnTargetNetwork.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ApplySecurityGroupsToClientVpnTargetNetwork.go @@ -18,7 +18,7 @@ func (c *Client) ApplySecurityGroupsToClientVpnTargetNetwork(ctx context.Context params = &ApplySecurityGroupsToClientVpnTargetNetworkInput{} } - result, metadata, err := c.invokeOperation(ctx, "ApplySecurityGroupsToClientVpnTargetNetwork", params, optFns, addOperationApplySecurityGroupsToClientVpnTargetNetworkMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "ApplySecurityGroupsToClientVpnTargetNetwork", params, optFns, c.addOperationApplySecurityGroupsToClientVpnTargetNetworkMiddlewares) if err != nil { return nil, err } @@ -50,7 +50,7 @@ type ApplySecurityGroupsToClientVpnTargetNetworkInput struct { // 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 + DryRun *bool } type ApplySecurityGroupsToClientVpnTargetNetworkOutput struct { @@ -62,7 +62,7 @@ type ApplySecurityGroupsToClientVpnTargetNetworkOutput struct { ResultMetadata middleware.Metadata } -func addOperationApplySecurityGroupsToClientVpnTargetNetworkMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationApplySecurityGroupsToClientVpnTargetNetworkMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpApplySecurityGroupsToClientVpnTargetNetwork{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AssignIpv6Addresses.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AssignIpv6Addresses.go index 294bd70a3..336d7a6fa 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AssignIpv6Addresses.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AssignIpv6Addresses.go @@ -24,7 +24,7 @@ func (c *Client) AssignIpv6Addresses(ctx context.Context, params *AssignIpv6Addr params = &AssignIpv6AddressesInput{} } - result, metadata, err := c.invokeOperation(ctx, "AssignIpv6Addresses", params, optFns, addOperationAssignIpv6AddressesMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "AssignIpv6Addresses", params, optFns, c.addOperationAssignIpv6AddressesMiddlewares) if err != nil { return nil, err } @@ -41,10 +41,12 @@ type AssignIpv6AddressesInput struct { // This member is required. NetworkInterfaceId *string - // The number of IPv6 addresses to assign to the network interface. Amazon EC2 + // The number of additional IPv6 addresses to assign to the network interface. The + // specified number of IPv6 addresses are assigned in addition to the existing IPv6 + // addresses that are already assigned to the network interface. Amazon EC2 // automatically selects the IPv6 addresses from the subnet range. You can't use // this option if specifying specific IPv6 addresses. - Ipv6AddressCount int32 + Ipv6AddressCount *int32 // One or more specific IPv6 addresses to be assigned to the network interface. You // can't use this option if you're specifying a number of IPv6 addresses. @@ -53,7 +55,9 @@ type AssignIpv6AddressesInput struct { type AssignIpv6AddressesOutput struct { - // The IPv6 addresses assigned to the network interface. + // The new IPv6 addresses assigned to the network interface. Existing IPv6 + // addresses that were assigned to the network interface before the request are not + // included. AssignedIpv6Addresses []string // The ID of the network interface. @@ -63,7 +67,7 @@ type AssignIpv6AddressesOutput struct { ResultMetadata middleware.Metadata } -func addOperationAssignIpv6AddressesMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationAssignIpv6AddressesMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpAssignIpv6Addresses{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AssignPrivateIpAddresses.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AssignPrivateIpAddresses.go index 8ab803bcb..41135b58c 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AssignPrivateIpAddresses.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AssignPrivateIpAddresses.go @@ -33,7 +33,7 @@ func (c *Client) AssignPrivateIpAddresses(ctx context.Context, params *AssignPri params = &AssignPrivateIpAddressesInput{} } - result, metadata, err := c.invokeOperation(ctx, "AssignPrivateIpAddresses", params, optFns, addOperationAssignPrivateIpAddressesMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "AssignPrivateIpAddresses", params, optFns, c.addOperationAssignPrivateIpAddressesMiddlewares) if err != nil { return nil, err } @@ -54,7 +54,7 @@ type AssignPrivateIpAddressesInput struct { // Indicates whether to allow an IP address that is already assigned to another // network interface or instance to be reassigned to the specified network // interface. - AllowReassignment bool + AllowReassignment *bool // One or more IP addresses to be assigned as a secondary private IP address to the // network interface. You can't specify this parameter when also specifying a @@ -64,7 +64,7 @@ type AssignPrivateIpAddressesInput struct { // The number of secondary IP addresses to assign to the network interface. You // can't specify this parameter when also specifying private IP addresses. - SecondaryPrivateIpAddressCount int32 + SecondaryPrivateIpAddressCount *int32 } type AssignPrivateIpAddressesOutput struct { @@ -79,7 +79,7 @@ type AssignPrivateIpAddressesOutput struct { ResultMetadata middleware.Metadata } -func addOperationAssignPrivateIpAddressesMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationAssignPrivateIpAddressesMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpAssignPrivateIpAddresses{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AssociateAddress.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AssociateAddress.go index 018253296..8bf2dbf8f 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AssociateAddress.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AssociateAddress.go @@ -40,7 +40,7 @@ func (c *Client) AssociateAddress(ctx context.Context, params *AssociateAddressI params = &AssociateAddressInput{} } - result, metadata, err := c.invokeOperation(ctx, "AssociateAddress", params, optFns, addOperationAssociateAddressMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "AssociateAddress", params, optFns, c.addOperationAssociateAddressMiddlewares) if err != nil { return nil, err } @@ -61,18 +61,18 @@ type AssociateAddressInput struct { // operation fails. In a VPC in an EC2-VPC-only account, reassociation is // automatic, therefore you can specify false to ensure the operation fails if the // Elastic IP address is already associated with another resource. - AllowReassociation bool + AllowReassociation *bool // 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 + DryRun *bool - // The ID of the instance. This is required for EC2-Classic. For EC2-VPC, you can - // specify either the instance ID or the network interface ID, but not both. The - // operation fails if you specify an instance ID unless exactly one network - // interface is attached. + // The ID of the instance. The instance must have exactly one attached network + // interface. For EC2-VPC, you can specify either the instance ID or the network + // interface ID, but not both. For EC2-Classic, you must specify an instance ID and + // the instance must be in the running state. InstanceId *string // [EC2-VPC] The ID of the network interface. If the instance has more than one @@ -85,8 +85,8 @@ type AssociateAddressInput struct { // address is associated with the primary private IP address. PrivateIpAddress *string - // The Elastic IP address to associate with the instance. This is required for - // EC2-Classic. + // [EC2-Classic] The Elastic IP address to associate with the instance. This is + // required for EC2-Classic. PublicIp *string } @@ -100,7 +100,7 @@ type AssociateAddressOutput struct { ResultMetadata middleware.Metadata } -func addOperationAssociateAddressMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationAssociateAddressMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpAssociateAddress{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AssociateClientVpnTargetNetwork.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AssociateClientVpnTargetNetwork.go index 968d344ee..669e579e9 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AssociateClientVpnTargetNetwork.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AssociateClientVpnTargetNetwork.go @@ -26,7 +26,7 @@ func (c *Client) AssociateClientVpnTargetNetwork(ctx context.Context, params *As params = &AssociateClientVpnTargetNetworkInput{} } - result, metadata, err := c.invokeOperation(ctx, "AssociateClientVpnTargetNetwork", params, optFns, addOperationAssociateClientVpnTargetNetworkMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "AssociateClientVpnTargetNetwork", params, optFns, c.addOperationAssociateClientVpnTargetNetworkMiddlewares) if err != nil { return nil, err } @@ -57,7 +57,7 @@ type AssociateClientVpnTargetNetworkInput struct { // 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 + DryRun *bool } type AssociateClientVpnTargetNetworkOutput struct { @@ -72,7 +72,7 @@ type AssociateClientVpnTargetNetworkOutput struct { ResultMetadata middleware.Metadata } -func addOperationAssociateClientVpnTargetNetworkMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationAssociateClientVpnTargetNetworkMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpAssociateClientVpnTargetNetwork{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AssociateDhcpOptions.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AssociateDhcpOptions.go index aa6861eec..dc2e607e3 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AssociateDhcpOptions.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AssociateDhcpOptions.go @@ -25,7 +25,7 @@ func (c *Client) AssociateDhcpOptions(ctx context.Context, params *AssociateDhcp params = &AssociateDhcpOptionsInput{} } - result, metadata, err := c.invokeOperation(ctx, "AssociateDhcpOptions", params, optFns, addOperationAssociateDhcpOptionsMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "AssociateDhcpOptions", params, optFns, c.addOperationAssociateDhcpOptionsMiddlewares) if err != nil { return nil, err } @@ -52,7 +52,7 @@ type AssociateDhcpOptionsInput struct { // 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 + DryRun *bool } type AssociateDhcpOptionsOutput struct { @@ -60,7 +60,7 @@ type AssociateDhcpOptionsOutput struct { ResultMetadata middleware.Metadata } -func addOperationAssociateDhcpOptionsMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationAssociateDhcpOptionsMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpAssociateDhcpOptions{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AssociateEnclaveCertificateIamRole.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AssociateEnclaveCertificateIamRole.go index b9e655f8c..a19acf18e 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AssociateEnclaveCertificateIamRole.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AssociateEnclaveCertificateIamRole.go @@ -16,14 +16,14 @@ import ( // information, see AWS Certificate Manager for Nitro Enclaves // (https://docs.aws.amazon.com/enclaves/latest/user/nitro-enclave-refapp.html) in // the AWS Nitro Enclaves User Guide. When the IAM role is associated with the ACM -// certificate, places the certificate, certificate chain, and encrypted private -// key in an Amazon S3 bucket that only the associated IAM role can access. The +// certificate, the certificate, certificate chain, and encrypted private key are +// placed in an Amazon S3 bucket that only the associated IAM role can access. The // private key of the certificate is encrypted with an AWS-managed KMS customer // master (CMK) that has an attached attestation-based CMK policy. To enable the // IAM role to access the Amazon S3 object, you must grant it permission to call // s3:GetObject on the Amazon S3 bucket returned by the command. To enable the IAM // role to access the AWS KMS CMK, you must grant it permission to call kms:Decrypt -// on AWS KMS CMK returned by the command. For more information, see Grant the +// on the AWS KMS CMK returned by the command. For more information, see Grant the // role permission to access the certificate and encryption key // (https://docs.aws.amazon.com/enclaves/latest/user/nitro-enclave-refapp.html#add-policy) // in the AWS Nitro Enclaves User Guide. @@ -32,7 +32,7 @@ func (c *Client) AssociateEnclaveCertificateIamRole(ctx context.Context, params params = &AssociateEnclaveCertificateIamRoleInput{} } - result, metadata, err := c.invokeOperation(ctx, "AssociateEnclaveCertificateIamRole", params, optFns, addOperationAssociateEnclaveCertificateIamRoleMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "AssociateEnclaveCertificateIamRole", params, optFns, c.addOperationAssociateEnclaveCertificateIamRoleMiddlewares) if err != nil { return nil, err } @@ -51,7 +51,7 @@ type AssociateEnclaveCertificateIamRoleInput struct { // 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 + DryRun *bool // The ARN of the IAM role to associate with the ACM certificate. You can associate // up to 16 IAM roles with an ACM certificate. @@ -65,7 +65,7 @@ type AssociateEnclaveCertificateIamRoleOutput struct { // The Amazon S3 object key where the certificate, certificate chain, and encrypted // private key bundle are stored. The object key is formatted as follows: - // certificate_arn/role_arn. + // role_arn/certificate_arn. CertificateS3ObjectKey *string // The ID of the AWS KMS CMK used to encrypt the private key of the certificate. @@ -75,7 +75,7 @@ type AssociateEnclaveCertificateIamRoleOutput struct { ResultMetadata middleware.Metadata } -func addOperationAssociateEnclaveCertificateIamRoleMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationAssociateEnclaveCertificateIamRoleMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpAssociateEnclaveCertificateIamRole{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AssociateIamInstanceProfile.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AssociateIamInstanceProfile.go index 88e6778ca..44bdeb882 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AssociateIamInstanceProfile.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AssociateIamInstanceProfile.go @@ -18,7 +18,7 @@ func (c *Client) AssociateIamInstanceProfile(ctx context.Context, params *Associ params = &AssociateIamInstanceProfileInput{} } - result, metadata, err := c.invokeOperation(ctx, "AssociateIamInstanceProfile", params, optFns, addOperationAssociateIamInstanceProfileMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "AssociateIamInstanceProfile", params, optFns, c.addOperationAssociateIamInstanceProfileMiddlewares) if err != nil { return nil, err } @@ -50,7 +50,7 @@ type AssociateIamInstanceProfileOutput struct { ResultMetadata middleware.Metadata } -func addOperationAssociateIamInstanceProfileMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationAssociateIamInstanceProfileMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpAssociateIamInstanceProfile{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AssociateRouteTable.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AssociateRouteTable.go index 0dd54d411..e54034978 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AssociateRouteTable.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AssociateRouteTable.go @@ -24,7 +24,7 @@ func (c *Client) AssociateRouteTable(ctx context.Context, params *AssociateRoute params = &AssociateRouteTableInput{} } - result, metadata, err := c.invokeOperation(ctx, "AssociateRouteTable", params, optFns, addOperationAssociateRouteTableMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "AssociateRouteTable", params, optFns, c.addOperationAssociateRouteTableMiddlewares) if err != nil { return nil, err } @@ -45,7 +45,7 @@ type AssociateRouteTableInput struct { // 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 + DryRun *bool // The ID of the internet gateway or virtual private gateway. GatewayId *string @@ -67,7 +67,7 @@ type AssociateRouteTableOutput struct { ResultMetadata middleware.Metadata } -func addOperationAssociateRouteTableMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationAssociateRouteTableMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpAssociateRouteTable{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AssociateSubnetCidrBlock.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AssociateSubnetCidrBlock.go index 72dabbd43..90a53d268 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AssociateSubnetCidrBlock.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AssociateSubnetCidrBlock.go @@ -19,7 +19,7 @@ func (c *Client) AssociateSubnetCidrBlock(ctx context.Context, params *Associate params = &AssociateSubnetCidrBlockInput{} } - result, metadata, err := c.invokeOperation(ctx, "AssociateSubnetCidrBlock", params, optFns, addOperationAssociateSubnetCidrBlockMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "AssociateSubnetCidrBlock", params, optFns, c.addOperationAssociateSubnetCidrBlockMiddlewares) if err != nil { return nil, err } @@ -54,7 +54,7 @@ type AssociateSubnetCidrBlockOutput struct { ResultMetadata middleware.Metadata } -func addOperationAssociateSubnetCidrBlockMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationAssociateSubnetCidrBlockMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpAssociateSubnetCidrBlock{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AssociateTransitGatewayMulticastDomain.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AssociateTransitGatewayMulticastDomain.go index 768c8b2f8..981dce57f 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AssociateTransitGatewayMulticastDomain.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AssociateTransitGatewayMulticastDomain.go @@ -22,7 +22,7 @@ func (c *Client) AssociateTransitGatewayMulticastDomain(ctx context.Context, par params = &AssociateTransitGatewayMulticastDomainInput{} } - result, metadata, err := c.invokeOperation(ctx, "AssociateTransitGatewayMulticastDomain", params, optFns, addOperationAssociateTransitGatewayMulticastDomainMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "AssociateTransitGatewayMulticastDomain", params, optFns, c.addOperationAssociateTransitGatewayMulticastDomainMiddlewares) if err != nil { return nil, err } @@ -38,7 +38,7 @@ type AssociateTransitGatewayMulticastDomainInput struct { // 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 + DryRun *bool // The IDs of the subnets to associate with the transit gateway multicast domain. SubnetIds []string @@ -60,7 +60,7 @@ type AssociateTransitGatewayMulticastDomainOutput struct { ResultMetadata middleware.Metadata } -func addOperationAssociateTransitGatewayMulticastDomainMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationAssociateTransitGatewayMulticastDomainMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpAssociateTransitGatewayMulticastDomain{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AssociateTransitGatewayRouteTable.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AssociateTransitGatewayRouteTable.go index c4d832e57..1958a426b 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AssociateTransitGatewayRouteTable.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AssociateTransitGatewayRouteTable.go @@ -18,7 +18,7 @@ func (c *Client) AssociateTransitGatewayRouteTable(ctx context.Context, params * params = &AssociateTransitGatewayRouteTableInput{} } - result, metadata, err := c.invokeOperation(ctx, "AssociateTransitGatewayRouteTable", params, optFns, addOperationAssociateTransitGatewayRouteTableMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "AssociateTransitGatewayRouteTable", params, optFns, c.addOperationAssociateTransitGatewayRouteTableMiddlewares) if err != nil { return nil, err } @@ -44,7 +44,7 @@ type AssociateTransitGatewayRouteTableInput struct { // 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 + DryRun *bool } type AssociateTransitGatewayRouteTableOutput struct { @@ -56,7 +56,7 @@ type AssociateTransitGatewayRouteTableOutput struct { ResultMetadata middleware.Metadata } -func addOperationAssociateTransitGatewayRouteTableMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationAssociateTransitGatewayRouteTableMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpAssociateTransitGatewayRouteTable{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AssociateTrunkInterface.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AssociateTrunkInterface.go new file mode 100644 index 000000000..bc4d91a28 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AssociateTrunkInterface.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/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/ec2/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Associates a branch network interface with a trunk network interface. Before you +// create the association, run the create-network-interface +// (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateNetworkInterface.html) +// command and set --interface-type to trunk. You must also create a network +// interface for each branch network interface that you want to associate with the +// trunk network interface. For more information, see Network interface trunking +// (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/eni-trunking.html) in the +// Amazon Elastic Compute Cloud User Guide. +func (c *Client) AssociateTrunkInterface(ctx context.Context, params *AssociateTrunkInterfaceInput, optFns ...func(*Options)) (*AssociateTrunkInterfaceOutput, error) { + if params == nil { + params = &AssociateTrunkInterfaceInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "AssociateTrunkInterface", params, optFns, c.addOperationAssociateTrunkInterfaceMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*AssociateTrunkInterfaceOutput) + out.ResultMetadata = metadata + return out, nil +} + +type AssociateTrunkInterfaceInput struct { + + // The ID of the branch network interface. + // + // This member is required. + BranchInterfaceId *string + + // The ID of the trunk network interface. + // + // This member is required. + TrunkInterfaceId *string + + // Unique, case-sensitive identifier that you provide to ensure the idempotency of + // the request. For more information, see How to Ensure Idempotency + // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Run_Instance_Idempotency.html). + ClientToken *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 application key. This applies to the GRE protocol. + GreKey *int32 + + // The ID of the VLAN. This applies to the VLAN protocol. + VlanId *int32 +} + +type AssociateTrunkInterfaceOutput struct { + + // Unique, case-sensitive identifier that you provide to ensure the idempotency of + // the request. For more information, see How to Ensure Idempotency + // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Run_Instance_Idempotency.html). + ClientToken *string + + // Information about the association between the trunk network interface and branch + // network interface. + InterfaceAssociation *types.TrunkInterfaceAssociation + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata +} + +func (c *Client) addOperationAssociateTrunkInterfaceMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsEc2query_serializeOpAssociateTrunkInterface{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsEc2query_deserializeOpAssociateTrunkInterface{}, middleware.After) + if err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = addHTTPSignerV4Middleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addIdempotencyToken_opAssociateTrunkInterfaceMiddleware(stack, options); err != nil { + return err + } + if err = addOpAssociateTrunkInterfaceValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opAssociateTrunkInterface(options.Region), middleware.Before); 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 + } + return nil +} + +type idempotencyToken_initializeOpAssociateTrunkInterface struct { + tokenProvider IdempotencyTokenProvider +} + +func (*idempotencyToken_initializeOpAssociateTrunkInterface) ID() string { + return "OperationIdempotencyTokenAutoFill" +} + +func (m *idempotencyToken_initializeOpAssociateTrunkInterface) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + if m.tokenProvider == nil { + return next.HandleInitialize(ctx, in) + } + + input, ok := in.Parameters.(*AssociateTrunkInterfaceInput) + if !ok { + return out, metadata, fmt.Errorf("expected middleware input to be of type *AssociateTrunkInterfaceInput ") + } + + if input.ClientToken == nil { + t, err := m.tokenProvider.GetIdempotencyToken() + if err != nil { + return out, metadata, err + } + input.ClientToken = &t + } + return next.HandleInitialize(ctx, in) +} +func addIdempotencyToken_opAssociateTrunkInterfaceMiddleware(stack *middleware.Stack, cfg Options) error { + return stack.Initialize.Add(&idempotencyToken_initializeOpAssociateTrunkInterface{tokenProvider: cfg.IdempotencyTokenProvider}, middleware.Before) +} + +func newServiceMetadataMiddleware_opAssociateTrunkInterface(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "ec2", + OperationName: "AssociateTrunkInterface", + } +} diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AssociateVpcCidrBlock.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AssociateVpcCidrBlock.go index 9026f4f81..422182b00 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AssociateVpcCidrBlock.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AssociateVpcCidrBlock.go @@ -26,7 +26,7 @@ func (c *Client) AssociateVpcCidrBlock(ctx context.Context, params *AssociateVpc params = &AssociateVpcCidrBlockInput{} } - result, metadata, err := c.invokeOperation(ctx, "AssociateVpcCidrBlock", params, optFns, addOperationAssociateVpcCidrBlockMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "AssociateVpcCidrBlock", params, optFns, c.addOperationAssociateVpcCidrBlockMiddlewares) if err != nil { return nil, err } @@ -46,7 +46,7 @@ type AssociateVpcCidrBlockInput struct { // Requests an Amazon-provided IPv6 CIDR block with a /56 prefix length for the // VPC. You cannot specify the range of IPv6 addresses, or the size of the CIDR // block. - AmazonProvidedIpv6CidrBlock bool + AmazonProvidedIpv6CidrBlock *bool // An IPv4 CIDR block to associate with the VPC. CidrBlock *string @@ -81,7 +81,7 @@ type AssociateVpcCidrBlockOutput struct { ResultMetadata middleware.Metadata } -func addOperationAssociateVpcCidrBlockMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationAssociateVpcCidrBlockMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpAssociateVpcCidrBlock{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AttachClassicLinkVpc.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AttachClassicLinkVpc.go index 1f064675e..7c655c034 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AttachClassicLinkVpc.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AttachClassicLinkVpc.go @@ -24,7 +24,7 @@ func (c *Client) AttachClassicLinkVpc(ctx context.Context, params *AttachClassic params = &AttachClassicLinkVpcInput{} } - result, metadata, err := c.invokeOperation(ctx, "AttachClassicLinkVpc", params, optFns, addOperationAttachClassicLinkVpcMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "AttachClassicLinkVpc", params, optFns, c.addOperationAttachClassicLinkVpcMiddlewares) if err != nil { return nil, err } @@ -56,19 +56,19 @@ type AttachClassicLinkVpcInput struct { // 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 + DryRun *bool } type AttachClassicLinkVpcOutput struct { // Returns true if the request succeeds; otherwise, it returns an error. - Return bool + Return *bool // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata } -func addOperationAttachClassicLinkVpcMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationAttachClassicLinkVpcMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpAttachClassicLinkVpc{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AttachInternetGateway.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AttachInternetGateway.go index 35836b867..a487a3042 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AttachInternetGateway.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AttachInternetGateway.go @@ -19,7 +19,7 @@ func (c *Client) AttachInternetGateway(ctx context.Context, params *AttachIntern params = &AttachInternetGatewayInput{} } - result, metadata, err := c.invokeOperation(ctx, "AttachInternetGateway", params, optFns, addOperationAttachInternetGatewayMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "AttachInternetGateway", params, optFns, c.addOperationAttachInternetGatewayMiddlewares) if err != nil { return nil, err } @@ -45,7 +45,7 @@ type AttachInternetGatewayInput struct { // 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 + DryRun *bool } type AttachInternetGatewayOutput struct { @@ -53,7 +53,7 @@ type AttachInternetGatewayOutput struct { ResultMetadata middleware.Metadata } -func addOperationAttachInternetGatewayMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationAttachInternetGatewayMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpAttachInternetGateway{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AttachNetworkInterface.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AttachNetworkInterface.go index 8cbcf46c6..1bbc8c11c 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AttachNetworkInterface.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AttachNetworkInterface.go @@ -16,7 +16,7 @@ func (c *Client) AttachNetworkInterface(ctx context.Context, params *AttachNetwo params = &AttachNetworkInterfaceInput{} } - result, metadata, err := c.invokeOperation(ctx, "AttachNetworkInterface", params, optFns, addOperationAttachNetworkInterfaceMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "AttachNetworkInterface", params, optFns, c.addOperationAttachNetworkInterfaceMiddlewares) if err != nil { return nil, err } @@ -32,7 +32,7 @@ type AttachNetworkInterfaceInput struct { // The index of the device for the network interface attachment. // // This member is required. - DeviceIndex int32 + DeviceIndex *int32 // The ID of the instance. // @@ -48,12 +48,12 @@ type AttachNetworkInterfaceInput struct { // 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 + DryRun *bool // The index of the network card. Some instance types support multiple network // cards. The primary network interface must be assigned to network card index 0. // The default is network card index 0. - NetworkCardIndex int32 + NetworkCardIndex *int32 } // Contains the output of AttachNetworkInterface. @@ -63,13 +63,13 @@ type AttachNetworkInterfaceOutput struct { AttachmentId *string // The index of the network card. - NetworkCardIndex int32 + NetworkCardIndex *int32 // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata } -func addOperationAttachNetworkInterfaceMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationAttachNetworkInterfaceMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpAttachNetworkInterface{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AttachVolume.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AttachVolume.go index 7db1ceb96..382927b69 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AttachVolume.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AttachVolume.go @@ -44,7 +44,7 @@ func (c *Client) AttachVolume(ctx context.Context, params *AttachVolumeInput, op params = &AttachVolumeInput{} } - result, metadata, err := c.invokeOperation(ctx, "AttachVolume", params, optFns, addOperationAttachVolumeMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "AttachVolume", params, optFns, c.addOperationAttachVolumeMiddlewares) if err != nil { return nil, err } @@ -76,7 +76,7 @@ type AttachVolumeInput struct { // 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 + DryRun *bool } // Describes volume attachment details. @@ -86,7 +86,7 @@ type AttachVolumeOutput struct { AttachTime *time.Time // Indicates whether the EBS volume is deleted on instance termination. - DeleteOnTermination bool + DeleteOnTermination *bool // The device name. Device *string @@ -104,7 +104,7 @@ type AttachVolumeOutput struct { ResultMetadata middleware.Metadata } -func addOperationAttachVolumeMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationAttachVolumeMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpAttachVolume{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AttachVpnGateway.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AttachVpnGateway.go index 383df7002..380e2ca0a 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AttachVpnGateway.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AttachVpnGateway.go @@ -20,7 +20,7 @@ func (c *Client) AttachVpnGateway(ctx context.Context, params *AttachVpnGatewayI params = &AttachVpnGatewayInput{} } - result, metadata, err := c.invokeOperation(ctx, "AttachVpnGateway", params, optFns, addOperationAttachVpnGatewayMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "AttachVpnGateway", params, optFns, c.addOperationAttachVpnGatewayMiddlewares) if err != nil { return nil, err } @@ -47,7 +47,7 @@ type AttachVpnGatewayInput struct { // 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 + DryRun *bool } // Contains the output of AttachVpnGateway. @@ -60,7 +60,7 @@ type AttachVpnGatewayOutput struct { ResultMetadata middleware.Metadata } -func addOperationAttachVpnGatewayMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationAttachVpnGatewayMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpAttachVpnGateway{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AuthorizeClientVpnIngress.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AuthorizeClientVpnIngress.go index 5ec94629b..39680e716 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AuthorizeClientVpnIngress.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AuthorizeClientVpnIngress.go @@ -21,7 +21,7 @@ func (c *Client) AuthorizeClientVpnIngress(ctx context.Context, params *Authoriz params = &AuthorizeClientVpnIngressInput{} } - result, metadata, err := c.invokeOperation(ctx, "AuthorizeClientVpnIngress", params, optFns, addOperationAuthorizeClientVpnIngressMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "AuthorizeClientVpnIngress", params, optFns, c.addOperationAuthorizeClientVpnIngressMiddlewares) if err != nil { return nil, err } @@ -52,7 +52,7 @@ type AuthorizeClientVpnIngressInput struct { // Indicates whether to grant access to all clients. Specify true to grant all // clients who successfully establish a VPN connection access to the network. Must // be set to true if AccessGroupId is not specified. - AuthorizeAllGroups bool + AuthorizeAllGroups *bool // Unique, case-sensitive identifier that you provide to ensure the idempotency of // the request. For more information, see How to Ensure Idempotency @@ -66,7 +66,7 @@ type AuthorizeClientVpnIngressInput struct { // 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 + DryRun *bool } type AuthorizeClientVpnIngressOutput struct { @@ -78,7 +78,7 @@ type AuthorizeClientVpnIngressOutput struct { ResultMetadata middleware.Metadata } -func addOperationAuthorizeClientVpnIngressMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationAuthorizeClientVpnIngressMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpAuthorizeClientVpnIngress{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AuthorizeSecurityGroupEgress.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AuthorizeSecurityGroupEgress.go index 448e8c33f..393cfd787 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AuthorizeSecurityGroupEgress.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AuthorizeSecurityGroupEgress.go @@ -27,7 +27,7 @@ func (c *Client) AuthorizeSecurityGroupEgress(ctx context.Context, params *Autho params = &AuthorizeSecurityGroupEgressInput{} } - result, metadata, err := c.invokeOperation(ctx, "AuthorizeSecurityGroupEgress", params, optFns, addOperationAuthorizeSecurityGroupEgressMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "AuthorizeSecurityGroupEgress", params, optFns, c.addOperationAuthorizeSecurityGroupEgressMiddlewares) if err != nil { return nil, err } @@ -51,10 +51,10 @@ type AuthorizeSecurityGroupEgressInput struct { // 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 + DryRun *bool // Not supported. Use a set of IP permissions to specify the port. - FromPort int32 + FromPort *int32 // The sets of IP permissions. You can't specify a destination security group and a // CIDR IP address range in the same set of permissions. @@ -73,7 +73,7 @@ type AuthorizeSecurityGroupEgressInput struct { SourceSecurityGroupOwnerId *string // Not supported. Use a set of IP permissions to specify the port. - ToPort int32 + ToPort *int32 } type AuthorizeSecurityGroupEgressOutput struct { @@ -81,7 +81,7 @@ type AuthorizeSecurityGroupEgressOutput struct { ResultMetadata middleware.Metadata } -func addOperationAuthorizeSecurityGroupEgressMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationAuthorizeSecurityGroupEgressMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpAuthorizeSecurityGroupEgress{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AuthorizeSecurityGroupIngress.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AuthorizeSecurityGroupIngress.go index c895d01bb..eac770bba 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AuthorizeSecurityGroupIngress.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AuthorizeSecurityGroupIngress.go @@ -26,7 +26,7 @@ func (c *Client) AuthorizeSecurityGroupIngress(ctx context.Context, params *Auth params = &AuthorizeSecurityGroupIngressInput{} } - result, metadata, err := c.invokeOperation(ctx, "AuthorizeSecurityGroupIngress", params, optFns, addOperationAuthorizeSecurityGroupIngressMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "AuthorizeSecurityGroupIngress", params, optFns, c.addOperationAuthorizeSecurityGroupIngressMiddlewares) if err != nil { return nil, err } @@ -48,13 +48,13 @@ type AuthorizeSecurityGroupIngressInput struct { // 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 + DryRun *bool // The start of port range for the TCP and UDP protocols, or an ICMP type number. // For the ICMP type number, use -1 to specify all types. If you specify all ICMP // types, you must specify all codes. Alternatively, use a set of IP permissions to // specify multiple rules and a description for the rule. - FromPort int32 + FromPort *int32 // The ID of the security group. You must specify either the security group ID or // the security group name in the request. For security groups in a nondefault VPC, @@ -97,7 +97,7 @@ type AuthorizeSecurityGroupIngressInput struct { // the ICMP code number, use -1 to specify all codes. If you specify all ICMP // types, you must specify all codes. Alternatively, use a set of IP permissions to // specify multiple rules and a description for the rule. - ToPort int32 + ToPort *int32 } type AuthorizeSecurityGroupIngressOutput struct { @@ -105,7 +105,7 @@ type AuthorizeSecurityGroupIngressOutput struct { ResultMetadata middleware.Metadata } -func addOperationAuthorizeSecurityGroupIngressMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationAuthorizeSecurityGroupIngressMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpAuthorizeSecurityGroupIngress{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_BundleInstance.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_BundleInstance.go index 4c3606a99..183c25f66 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_BundleInstance.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_BundleInstance.go @@ -20,7 +20,7 @@ func (c *Client) BundleInstance(ctx context.Context, params *BundleInstanceInput params = &BundleInstanceInput{} } - result, metadata, err := c.invokeOperation(ctx, "BundleInstance", params, optFns, addOperationBundleInstanceMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "BundleInstance", params, optFns, c.addOperationBundleInstanceMiddlewares) if err != nil { return nil, err } @@ -49,7 +49,7 @@ type BundleInstanceInput struct { // 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 + DryRun *bool } // Contains the output of BundleInstance. @@ -62,7 +62,7 @@ type BundleInstanceOutput struct { ResultMetadata middleware.Metadata } -func addOperationBundleInstanceMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationBundleInstanceMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpBundleInstance{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CancelBundleTask.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CancelBundleTask.go index e29f5b424..e4665d0d9 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CancelBundleTask.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CancelBundleTask.go @@ -17,7 +17,7 @@ func (c *Client) CancelBundleTask(ctx context.Context, params *CancelBundleTaskI params = &CancelBundleTaskInput{} } - result, metadata, err := c.invokeOperation(ctx, "CancelBundleTask", params, optFns, addOperationCancelBundleTaskMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "CancelBundleTask", params, optFns, c.addOperationCancelBundleTaskMiddlewares) if err != nil { return nil, err } @@ -39,7 +39,7 @@ type CancelBundleTaskInput struct { // 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 + DryRun *bool } // Contains the output of CancelBundleTask. @@ -52,7 +52,7 @@ type CancelBundleTaskOutput struct { ResultMetadata middleware.Metadata } -func addOperationCancelBundleTaskMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationCancelBundleTaskMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpCancelBundleTask{}, middleware.After) if err != nil { return err 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 21bfe5fa0..ff30dc12b 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 @@ -22,7 +22,7 @@ func (c *Client) CancelCapacityReservation(ctx context.Context, params *CancelCa params = &CancelCapacityReservationInput{} } - result, metadata, err := c.invokeOperation(ctx, "CancelCapacityReservation", params, optFns, addOperationCancelCapacityReservationMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "CancelCapacityReservation", params, optFns, c.addOperationCancelCapacityReservationMiddlewares) if err != nil { return nil, err } @@ -43,19 +43,19 @@ type CancelCapacityReservationInput struct { // 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 + DryRun *bool } type CancelCapacityReservationOutput struct { // Returns true if the request succeeds; otherwise, it returns an error. - Return bool + Return *bool // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata } -func addOperationCancelCapacityReservationMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationCancelCapacityReservationMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpCancelCapacityReservation{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CancelConversionTask.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CancelConversionTask.go index 269815ff4..f0d405f5e 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CancelConversionTask.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CancelConversionTask.go @@ -22,7 +22,7 @@ func (c *Client) CancelConversionTask(ctx context.Context, params *CancelConvers params = &CancelConversionTaskInput{} } - result, metadata, err := c.invokeOperation(ctx, "CancelConversionTask", params, optFns, addOperationCancelConversionTaskMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "CancelConversionTask", params, optFns, c.addOperationCancelConversionTaskMiddlewares) if err != nil { return nil, err } @@ -43,7 +43,7 @@ type CancelConversionTaskInput struct { // 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 + DryRun *bool // The reason for canceling the conversion task. ReasonMessage *string @@ -54,7 +54,7 @@ type CancelConversionTaskOutput struct { ResultMetadata middleware.Metadata } -func addOperationCancelConversionTaskMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationCancelConversionTaskMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpCancelConversionTask{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CancelExportTask.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CancelExportTask.go index fab9b3001..51e3e98a3 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CancelExportTask.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CancelExportTask.go @@ -19,7 +19,7 @@ func (c *Client) CancelExportTask(ctx context.Context, params *CancelExportTaskI params = &CancelExportTaskInput{} } - result, metadata, err := c.invokeOperation(ctx, "CancelExportTask", params, optFns, addOperationCancelExportTaskMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "CancelExportTask", params, optFns, c.addOperationCancelExportTaskMiddlewares) if err != nil { return nil, err } @@ -42,7 +42,7 @@ type CancelExportTaskOutput struct { ResultMetadata middleware.Metadata } -func addOperationCancelExportTaskMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationCancelExportTaskMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpCancelExportTask{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CancelImportTask.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CancelImportTask.go index 93c722289..e7e1a5917 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CancelImportTask.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CancelImportTask.go @@ -16,7 +16,7 @@ func (c *Client) CancelImportTask(ctx context.Context, params *CancelImportTaskI params = &CancelImportTaskInput{} } - result, metadata, err := c.invokeOperation(ctx, "CancelImportTask", params, optFns, addOperationCancelImportTaskMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "CancelImportTask", params, optFns, c.addOperationCancelImportTaskMiddlewares) if err != nil { return nil, err } @@ -35,7 +35,7 @@ type CancelImportTaskInput struct { // 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 + DryRun *bool // The ID of the import image or import snapshot task to be canceled. ImportTaskId *string @@ -56,7 +56,7 @@ type CancelImportTaskOutput struct { ResultMetadata middleware.Metadata } -func addOperationCancelImportTaskMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationCancelImportTaskMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpCancelImportTask{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CancelReservedInstancesListing.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CancelReservedInstancesListing.go index 7e1eb72f2..88fd23c7e 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CancelReservedInstancesListing.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CancelReservedInstancesListing.go @@ -14,13 +14,13 @@ import ( // Cancels the specified Reserved Instance listing in the Reserved Instance // Marketplace. For more information, see Reserved Instance Marketplace // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ri-market-general.html) in -// the Amazon Elastic Compute Cloud User Guide. +// the Amazon EC2 User Guide. func (c *Client) CancelReservedInstancesListing(ctx context.Context, params *CancelReservedInstancesListingInput, optFns ...func(*Options)) (*CancelReservedInstancesListingOutput, error) { if params == nil { params = &CancelReservedInstancesListingInput{} } - result, metadata, err := c.invokeOperation(ctx, "CancelReservedInstancesListing", params, optFns, addOperationCancelReservedInstancesListingMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "CancelReservedInstancesListing", params, optFns, c.addOperationCancelReservedInstancesListingMiddlewares) if err != nil { return nil, err } @@ -49,7 +49,7 @@ type CancelReservedInstancesListingOutput struct { ResultMetadata middleware.Metadata } -func addOperationCancelReservedInstancesListingMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationCancelReservedInstancesListingMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpCancelReservedInstancesListing{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CancelSpotFleetRequests.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CancelSpotFleetRequests.go index 58cbef62b..d8cb5fee9 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CancelSpotFleetRequests.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CancelSpotFleetRequests.go @@ -23,7 +23,7 @@ func (c *Client) CancelSpotFleetRequests(ctx context.Context, params *CancelSpot params = &CancelSpotFleetRequestsInput{} } - result, metadata, err := c.invokeOperation(ctx, "CancelSpotFleetRequests", params, optFns, addOperationCancelSpotFleetRequestsMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "CancelSpotFleetRequests", params, optFns, c.addOperationCancelSpotFleetRequestsMiddlewares) if err != nil { return nil, err } @@ -45,13 +45,13 @@ type CancelSpotFleetRequestsInput struct { // canceled successfully. // // This member is required. - TerminateInstances bool + TerminateInstances *bool // 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 + DryRun *bool } // Contains the output of CancelSpotFleetRequests. @@ -67,7 +67,7 @@ type CancelSpotFleetRequestsOutput struct { ResultMetadata middleware.Metadata } -func addOperationCancelSpotFleetRequestsMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationCancelSpotFleetRequestsMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpCancelSpotFleetRequests{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CancelSpotInstanceRequests.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CancelSpotInstanceRequests.go index 4462835cf..e9a9b7a3c 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CancelSpotInstanceRequests.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CancelSpotInstanceRequests.go @@ -18,7 +18,7 @@ func (c *Client) CancelSpotInstanceRequests(ctx context.Context, params *CancelS params = &CancelSpotInstanceRequestsInput{} } - result, metadata, err := c.invokeOperation(ctx, "CancelSpotInstanceRequests", params, optFns, addOperationCancelSpotInstanceRequestsMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "CancelSpotInstanceRequests", params, optFns, c.addOperationCancelSpotInstanceRequestsMiddlewares) if err != nil { return nil, err } @@ -40,7 +40,7 @@ type CancelSpotInstanceRequestsInput struct { // 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 + DryRun *bool } // Contains the output of CancelSpotInstanceRequests. @@ -53,7 +53,7 @@ type CancelSpotInstanceRequestsOutput struct { ResultMetadata middleware.Metadata } -func addOperationCancelSpotInstanceRequestsMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationCancelSpotInstanceRequestsMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpCancelSpotInstanceRequests{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ConfirmProductInstance.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ConfirmProductInstance.go index 5c695aa06..812ed723d 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ConfirmProductInstance.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ConfirmProductInstance.go @@ -18,7 +18,7 @@ func (c *Client) ConfirmProductInstance(ctx context.Context, params *ConfirmProd params = &ConfirmProductInstanceInput{} } - result, metadata, err := c.invokeOperation(ctx, "ConfirmProductInstance", params, optFns, addOperationConfirmProductInstanceMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "ConfirmProductInstance", params, optFns, c.addOperationConfirmProductInstanceMiddlewares) if err != nil { return nil, err } @@ -44,24 +44,24 @@ type ConfirmProductInstanceInput struct { // 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 + DryRun *bool } type ConfirmProductInstanceOutput struct { - // The AWS account ID of the instance owner. This is only present if the product - // code is attached to the instance. + // The account ID of the instance owner. This is only present if the product code + // is attached to the instance. OwnerId *string // The return value of the request. Returns true if the specified product code is // owned by the requester and associated with the specified instance. - Return bool + Return *bool // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata } -func addOperationConfirmProductInstanceMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationConfirmProductInstanceMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpConfirmProductInstance{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CopyFpgaImage.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CopyFpgaImage.go index 521e6c5e1..1579cfe8b 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CopyFpgaImage.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CopyFpgaImage.go @@ -16,7 +16,7 @@ func (c *Client) CopyFpgaImage(ctx context.Context, params *CopyFpgaImageInput, params = &CopyFpgaImageInput{} } - result, metadata, err := c.invokeOperation(ctx, "CopyFpgaImage", params, optFns, addOperationCopyFpgaImageMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "CopyFpgaImage", params, optFns, c.addOperationCopyFpgaImageMiddlewares) if err != nil { return nil, err } @@ -50,7 +50,7 @@ type CopyFpgaImageInput struct { // 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 + DryRun *bool // The name for the new AFI. The default is the name of the source AFI. Name *string @@ -65,7 +65,7 @@ type CopyFpgaImageOutput struct { ResultMetadata middleware.Metadata } -func addOperationCopyFpgaImageMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationCopyFpgaImageMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpCopyFpgaImage{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CopyImage.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CopyImage.go index 09cca8bff..2d068ce00 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CopyImage.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CopyImage.go @@ -10,13 +10,30 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Initiates the copy of an AMI from the specified source Region to the current -// Region. You specify the destination Region by using its endpoint when making the -// request. Copies of encrypted backing snapshots for the AMI are encrypted. Copies -// of unencrypted backing snapshots remain unencrypted, unless you set Encrypted -// during the copy operation. You cannot create an unencrypted copy of an encrypted -// backing snapshot. For more information about the prerequisites and limits when -// copying an AMI, see Copying an AMI +// Initiates the copy of an AMI. You can copy an AMI from one Region to another, or +// from a Region to an AWS Outpost. You can't copy an AMI from an Outpost to a +// Region, from one Outpost to another, or within the same Outpost. To copy an AMI +// to another partition, see CreateStoreImageTask +// (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateStoreImageTask.html). +// To copy an AMI from one Region to another, specify the source Region using +// the +// +// SourceRegion parameter, and specify the destination Region using its +// endpoint. Copies of encrypted backing snapshots for the AMI are encrypted. +// Copies of unencrypted backing snapshots remain unencrypted, unless you set +// Encrypted during the copy operation. You cannot create an unencrypted copy of an +// encrypted backing snapshot. To copy an AMI from a Region to an Outpost, specify +// the source Region using the +// +// SourceRegion parameter, and specify the ARN of the +// destination Outpost using DestinationOutpostArn. Backing snapshots copied to an +// Outpost are encrypted by default using the default encryption key for the +// Region, or a different key that you specify in the request using KmsKeyId. +// Outposts do not support unencrypted snapshots. For more information, Amazon EBS +// local snapshots on Outposts +// (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/snapshots-outposts.html#ami) +// in the Amazon Elastic Compute Cloud User Guide. For more information about the +// prerequisites and limits when copying an AMI, see Copying an AMI // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/CopyingAMIs.html) in the // Amazon Elastic Compute Cloud User Guide. func (c *Client) CopyImage(ctx context.Context, params *CopyImageInput, optFns ...func(*Options)) (*CopyImageOutput, error) { @@ -24,7 +41,7 @@ func (c *Client) CopyImage(ctx context.Context, params *CopyImageInput, optFns . params = &CopyImageInput{} } - result, metadata, err := c.invokeOperation(ctx, "CopyImage", params, optFns, addOperationCopyImageMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "CopyImage", params, optFns, c.addOperationCopyImageMiddlewares) if err != nil { return nil, err } @@ -53,21 +70,29 @@ type CopyImageInput struct { SourceRegion *string // Unique, case-sensitive identifier you provide to ensure idempotency of the - // request. For more information, see How to Ensure Idempotency - // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Run_Instance_Idempotency.html) - // in the Amazon Elastic Compute Cloud User Guide. + // request. For more information, see Ensuring idempotency + // (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html) + // in the Amazon EC2 API Reference. ClientToken *string // A description for the new AMI in the destination Region. Description *string + // The Amazon Resource Name (ARN) of the Outpost to which to copy the AMI. Only + // specify this parameter when copying an AMI from an AWS Region to an Outpost. The + // AMI must be in the Region of the destination Outpost. You cannot copy an AMI + // from an Outpost to a Region, from one Outpost to another, or within the same + // Outpost. For more information, see Copying AMIs from an AWS Region to an + // Outpost + // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/snapshots-outposts.html#copy-amis) + // in the Amazon Elastic Compute Cloud User Guide. DestinationOutpostArn *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 + DryRun *bool // Specifies whether the destination snapshots of the copied image should be // encrypted. You can encrypt a copy of an unencrypted snapshot, but you cannot @@ -76,7 +101,7 @@ type CopyImageInput struct { // using KmsKeyId. For more information, see Amazon EBS Encryption // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSEncryption.html) in the // Amazon Elastic Compute Cloud User Guide. - Encrypted bool + Encrypted *bool // The identifier of the symmetric AWS Key Management Service (AWS KMS) customer // master key (CMK) to use when creating encrypted volumes. If this parameter is @@ -113,7 +138,7 @@ type CopyImageOutput struct { ResultMetadata middleware.Metadata } -func addOperationCopyImageMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationCopyImageMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpCopyImage{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CopySnapshot.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CopySnapshot.go index ad27f13e7..aad040776 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CopySnapshot.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CopySnapshot.go @@ -14,17 +14,24 @@ import ( ) // Copies a point-in-time snapshot of an EBS volume and stores it in Amazon S3. You -// can copy the snapshot within the same Region or from one Region to another. You -// can use the snapshot to create EBS volumes or Amazon Machine Images (AMIs). -// Copies of encrypted EBS snapshots remain encrypted. Copies of unencrypted -// snapshots remain unencrypted, unless you enable encryption for the snapshot copy -// operation. By default, encrypted snapshot copies use the default AWS Key -// Management Service (AWS KMS) customer master key (CMK); however, you can specify -// a different CMK. To copy an encrypted snapshot that has been shared from another -// account, you must have permissions for the CMK used to encrypt the snapshot. -// Snapshots created by copying another snapshot have an arbitrary volume ID that -// should not be used for any purpose. For more information, see Copying an Amazon -// EBS snapshot +// can copy a snapshot within the same Region, from one Region to another, or from +// a Region to an Outpost. You can't copy a snapshot from an Outpost to a Region, +// from one Outpost to another, or within the same Outpost. You can use the +// snapshot to create EBS volumes or Amazon Machine Images (AMIs). When copying +// snapshots to a Region, copies of encrypted EBS snapshots remain encrypted. +// Copies of unencrypted snapshots remain unencrypted, unless you enable encryption +// for the snapshot copy operation. By default, encrypted snapshot copies use the +// default AWS Key Management Service (AWS KMS) customer master key (CMK); however, +// you can specify a different CMK. To copy an encrypted snapshot that has been +// shared from another account, you must have permissions for the CMK used to +// encrypt the snapshot. Snapshots copied to an Outpost are encrypted by default +// using the default encryption key for the Region, or a different key that you +// specify in the request using KmsKeyId. Outposts do not support unencrypted +// snapshots. For more information, Amazon EBS local snapshots on Outposts +// (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/snapshots-outposts.html#ami) +// in the Amazon Elastic Compute Cloud User Guide. Snapshots created by copying +// another snapshot have an arbitrary volume ID that should not be used for any +// purpose. For more information, see Copying an Amazon EBS snapshot // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-copy-snapshot.html) in // the Amazon Elastic Compute Cloud User Guide. func (c *Client) CopySnapshot(ctx context.Context, params *CopySnapshotInput, optFns ...func(*Options)) (*CopySnapshotOutput, error) { @@ -32,7 +39,7 @@ func (c *Client) CopySnapshot(ctx context.Context, params *CopySnapshotInput, op params = &CopySnapshotInput{} } - result, metadata, err := c.invokeOperation(ctx, "CopySnapshot", params, optFns, addOperationCopySnapshotMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "CopySnapshot", params, optFns, c.addOperationCopySnapshotMiddlewares) if err != nil { return nil, err } @@ -57,11 +64,21 @@ type CopySnapshotInput struct { // A description for the EBS snapshot. Description *string + // The Amazon Resource Name (ARN) of the Outpost to which to copy the snapshot. + // Only specify this parameter when copying a snapshot from an AWS Region to an + // Outpost. The snapshot must be in the Region for the destination Outpost. You + // cannot copy a snapshot from an Outpost to a Region, from one Outpost to another, + // or within the same Outpost. For more information, see Copying snapshots from an + // AWS Region to an Outpost + // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/snapshots-outposts.html#copy-snapshots) + // in the Amazon Elastic Compute Cloud User Guide. + DestinationOutpostArn *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 + DryRun *bool // To encrypt a copy of an unencrypted snapshot if encryption by default is not // enabled, enable encryption using this parameter. Otherwise, omit this parameter. @@ -70,7 +87,7 @@ type CopySnapshotInput struct { // For more information, see Amazon EBS encryption // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSEncryption.html) in the // Amazon Elastic Compute Cloud User Guide. - Encrypted bool + Encrypted *bool // The identifier of the AWS Key Management Service (AWS KMS) customer master key // (CMK) to use for Amazon EBS encryption. If this parameter is not specified, your @@ -131,7 +148,7 @@ type CopySnapshotOutput struct { ResultMetadata middleware.Metadata } -func addOperationCopySnapshotMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationCopySnapshotMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpCopySnapshot{}, middleware.After) if err != nil { return err @@ -298,7 +315,7 @@ func (c *PresignClient) PresignCopySnapshot(ctx context.Context, params *CopySna clientOptFns := append(options.ClientOptions, withNopHTTPClientAPIOption) result, _, err := c.client.invokeOperation(ctx, "CopySnapshot", params, clientOptFns, - addOperationCopySnapshotMiddlewares, + c.client.addOperationCopySnapshotMiddlewares, presignConverter(options).convertToPresignMiddleware, ) if err != nil { 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 eba59dd72..5f1a82543 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 @@ -20,25 +20,25 @@ import ( // have access to Amazon EC2 capacity when you need it, for as long as you need it. // For more information, see Capacity Reservations // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-capacity-reservations.html) -// in the Amazon Elastic Compute Cloud User Guide. 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. 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 Limits +// in the Amazon EC2 User Guide. 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. 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 // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-resource-limits.html) -// in the Amazon Elastic Compute Cloud User Guide. +// in the Amazon EC2 User Guide. func (c *Client) CreateCapacityReservation(ctx context.Context, params *CreateCapacityReservationInput, optFns ...func(*Options)) (*CreateCapacityReservationOutput, error) { if params == nil { params = &CreateCapacityReservationInput{} } - result, metadata, err := c.invokeOperation(ctx, "CreateCapacityReservation", params, optFns, addOperationCreateCapacityReservationMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "CreateCapacityReservation", params, optFns, c.addOperationCreateCapacityReservationMiddlewares) if err != nil { return nil, err } @@ -53,7 +53,7 @@ type CreateCapacityReservationInput struct { // The number of instances for which to reserve capacity. // // This member is required. - InstanceCount int32 + InstanceCount *int32 // The type of operating system for which to reserve capacity. // @@ -61,9 +61,9 @@ type CreateCapacityReservationInput struct { InstancePlatform types.CapacityReservationInstancePlatform // The instance type for which to reserve capacity. For more information, see - // Instance Types + // Instance types // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html) in the - // Amazon Elastic Compute Cloud User Guide. + // Amazon EC2 User Guide. // // This member is required. InstanceType *string @@ -75,7 +75,7 @@ type CreateCapacityReservationInput struct { AvailabilityZoneId *string // Unique, case-sensitive identifier that you provide to ensure the idempotency of - // the request. For more information, see How to Ensure Idempotency + // the request. For more information, see Ensure Idempotency // (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html). ClientToken *string @@ -83,14 +83,14 @@ type CreateCapacityReservationInput struct { // 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 + DryRun *bool // 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 // available with all instance types. Additional usage charges apply when using an // EBS- optimized instance. - EbsOptimized bool + EbsOptimized *bool // The date and time at which the Capacity Reservation expires. When a Capacity // Reservation expires, the reserved capacity is released and you can no longer @@ -117,7 +117,7 @@ type CreateCapacityReservationInput struct { // Indicates whether the Capacity Reservation supports instances with temporary, // block-level storage. - EphemeralStorage bool + EphemeralStorage *bool // Indicates the type of instance launches that the Capacity Reservation accepts. // The options include: @@ -136,6 +136,10 @@ type CreateCapacityReservationInput struct { // Default: open InstanceMatchCriteria types.InstanceMatchCriteria + // The Amazon Resource Name (ARN) of the Outpost on which to create the Capacity + // Reservation. + OutpostArn *string + // The tags to apply to the Capacity Reservation during launch. TagSpecifications []types.TagSpecification @@ -143,11 +147,11 @@ type CreateCapacityReservationInput struct { // have one of the following tenancy settings: // // * default - The Capacity - // Reservation is created on hardware that is shared with other AWS accounts. + // Reservation is created on hardware that is shared with other accounts. // // * // dedicated - The Capacity Reservation is created on single-tenant hardware that - // is dedicated to a single AWS account. + // is dedicated to a single account. Tenancy types.CapacityReservationTenancy } @@ -160,7 +164,7 @@ type CreateCapacityReservationOutput struct { ResultMetadata middleware.Metadata } -func addOperationCreateCapacityReservationMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationCreateCapacityReservationMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpCreateCapacityReservation{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateCarrierGateway.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateCarrierGateway.go index 36311f321..23c9c3712 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateCarrierGateway.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateCarrierGateway.go @@ -21,7 +21,7 @@ func (c *Client) CreateCarrierGateway(ctx context.Context, params *CreateCarrier params = &CreateCarrierGatewayInput{} } - result, metadata, err := c.invokeOperation(ctx, "CreateCarrierGateway", params, optFns, addOperationCreateCarrierGatewayMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "CreateCarrierGateway", params, optFns, c.addOperationCreateCarrierGatewayMiddlewares) if err != nil { return nil, err } @@ -47,7 +47,7 @@ type CreateCarrierGatewayInput struct { // 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 + DryRun *bool // The tags to associate with the carrier gateway. TagSpecifications []types.TagSpecification @@ -62,7 +62,7 @@ type CreateCarrierGatewayOutput struct { ResultMetadata middleware.Metadata } -func addOperationCreateCarrierGatewayMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationCreateCarrierGatewayMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpCreateCarrierGateway{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateClientVpnEndpoint.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateClientVpnEndpoint.go index 43f19b3c4..93f3b0ca9 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateClientVpnEndpoint.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateClientVpnEndpoint.go @@ -20,7 +20,7 @@ func (c *Client) CreateClientVpnEndpoint(ctx context.Context, params *CreateClie params = &CreateClientVpnEndpointInput{} } - result, metadata, err := c.invokeOperation(ctx, "CreateClientVpnEndpoint", params, optFns, addOperationCreateClientVpnEndpointMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "CreateClientVpnEndpoint", params, optFns, c.addOperationCreateClientVpnEndpointMiddlewares) if err != nil { return nil, err } @@ -90,7 +90,7 @@ type CreateClientVpnEndpointInput struct { // 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 + DryRun *bool // The IDs of one or more security groups to apply to the target network. You must // also specify the ID of the VPC that contains the security groups. @@ -105,7 +105,7 @@ type CreateClientVpnEndpointInput struct { // split-tunnel VPN endpoints, see Split-Tunnel AWS Client VPN Endpoint // (https://docs.aws.amazon.com/vpn/latest/clientvpn-admin/split-tunnel-vpn.html) // in the AWS Client VPN Administrator Guide. - SplitTunnel bool + SplitTunnel *bool // The tags to apply to the Client VPN endpoint during creation. TagSpecifications []types.TagSpecification @@ -120,7 +120,7 @@ type CreateClientVpnEndpointInput struct { // The port number to assign to the Client VPN endpoint for TCP and UDP traffic. // Valid Values: 443 | 1194 Default Value: 443 - VpnPort int32 + VpnPort *int32 } type CreateClientVpnEndpointOutput struct { @@ -138,7 +138,7 @@ type CreateClientVpnEndpointOutput struct { ResultMetadata middleware.Metadata } -func addOperationCreateClientVpnEndpointMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationCreateClientVpnEndpointMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpCreateClientVpnEndpoint{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateClientVpnRoute.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateClientVpnRoute.go index f71516513..d64f5ddd1 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateClientVpnRoute.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateClientVpnRoute.go @@ -21,7 +21,7 @@ func (c *Client) CreateClientVpnRoute(ctx context.Context, params *CreateClientV params = &CreateClientVpnRouteInput{} } - result, metadata, err := c.invokeOperation(ctx, "CreateClientVpnRoute", params, optFns, addOperationCreateClientVpnRouteMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "CreateClientVpnRoute", params, optFns, c.addOperationCreateClientVpnRouteMiddlewares) if err != nil { return nil, err } @@ -74,7 +74,7 @@ type CreateClientVpnRouteInput struct { // 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 + DryRun *bool } type CreateClientVpnRouteOutput struct { @@ -86,7 +86,7 @@ type CreateClientVpnRouteOutput struct { ResultMetadata middleware.Metadata } -func addOperationCreateClientVpnRouteMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationCreateClientVpnRouteMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpCreateClientVpnRoute{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateCustomerGateway.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateCustomerGateway.go index 4ab9c6120..8fc9f2263 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateCustomerGateway.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateCustomerGateway.go @@ -44,7 +44,7 @@ func (c *Client) CreateCustomerGateway(ctx context.Context, params *CreateCustom params = &CreateCustomerGatewayInput{} } - result, metadata, err := c.invokeOperation(ctx, "CreateCustomerGateway", params, optFns, addOperationCreateCustomerGatewayMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "CreateCustomerGateway", params, optFns, c.addOperationCreateCustomerGatewayMiddlewares) if err != nil { return nil, err } @@ -60,7 +60,7 @@ type CreateCustomerGatewayInput struct { // For devices that support BGP, the customer gateway's BGP ASN. Default: 65000 // // This member is required. - BgpAsn int32 + BgpAsn *int32 // The type of VPN connection that this customer gateway supports (ipsec.1). // @@ -78,7 +78,7 @@ type CreateCustomerGatewayInput struct { // 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 + DryRun *bool // The Internet-routable IP address for the customer gateway's outside interface. // The address must be static. @@ -98,7 +98,7 @@ type CreateCustomerGatewayOutput struct { ResultMetadata middleware.Metadata } -func addOperationCreateCustomerGatewayMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationCreateCustomerGatewayMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpCreateCustomerGateway{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateDefaultSubnet.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateDefaultSubnet.go index 660ba34ba..c66b2a885 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateDefaultSubnet.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateDefaultSubnet.go @@ -21,7 +21,7 @@ func (c *Client) CreateDefaultSubnet(ctx context.Context, params *CreateDefaultS params = &CreateDefaultSubnetInput{} } - result, metadata, err := c.invokeOperation(ctx, "CreateDefaultSubnet", params, optFns, addOperationCreateDefaultSubnetMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "CreateDefaultSubnet", params, optFns, c.addOperationCreateDefaultSubnetMiddlewares) if err != nil { return nil, err } @@ -42,7 +42,7 @@ type CreateDefaultSubnetInput struct { // 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 + DryRun *bool } type CreateDefaultSubnetOutput struct { @@ -54,7 +54,7 @@ type CreateDefaultSubnetOutput struct { ResultMetadata middleware.Metadata } -func addOperationCreateDefaultSubnetMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationCreateDefaultSubnetMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpCreateDefaultSubnet{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateDefaultVpc.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateDefaultVpc.go index a1694947e..50b99a6af 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateDefaultVpc.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateDefaultVpc.go @@ -28,7 +28,7 @@ func (c *Client) CreateDefaultVpc(ctx context.Context, params *CreateDefaultVpcI params = &CreateDefaultVpcInput{} } - result, metadata, err := c.invokeOperation(ctx, "CreateDefaultVpc", params, optFns, addOperationCreateDefaultVpcMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "CreateDefaultVpc", params, optFns, c.addOperationCreateDefaultVpcMiddlewares) if err != nil { return nil, err } @@ -44,7 +44,7 @@ type CreateDefaultVpcInput struct { // 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 + DryRun *bool } type CreateDefaultVpcOutput struct { @@ -56,7 +56,7 @@ type CreateDefaultVpcOutput struct { ResultMetadata middleware.Metadata } -func addOperationCreateDefaultVpcMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationCreateDefaultVpcMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpCreateDefaultVpc{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateDhcpOptions.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateDhcpOptions.go index c331fff75..f77f0bdbd 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateDhcpOptions.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateDhcpOptions.go @@ -60,7 +60,7 @@ func (c *Client) CreateDhcpOptions(ctx context.Context, params *CreateDhcpOption params = &CreateDhcpOptionsInput{} } - result, metadata, err := c.invokeOperation(ctx, "CreateDhcpOptions", params, optFns, addOperationCreateDhcpOptionsMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "CreateDhcpOptions", params, optFns, c.addOperationCreateDhcpOptionsMiddlewares) if err != nil { return nil, err } @@ -81,7 +81,7 @@ type CreateDhcpOptionsInput struct { // 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 + DryRun *bool // The tags to assign to the DHCP option. TagSpecifications []types.TagSpecification @@ -96,7 +96,7 @@ type CreateDhcpOptionsOutput struct { ResultMetadata middleware.Metadata } -func addOperationCreateDhcpOptionsMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationCreateDhcpOptionsMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpCreateDhcpOptions{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateEgressOnlyInternetGateway.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateEgressOnlyInternetGateway.go index d17872474..4d09c6991 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateEgressOnlyInternetGateway.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateEgressOnlyInternetGateway.go @@ -20,7 +20,7 @@ func (c *Client) CreateEgressOnlyInternetGateway(ctx context.Context, params *Cr params = &CreateEgressOnlyInternetGatewayInput{} } - result, metadata, err := c.invokeOperation(ctx, "CreateEgressOnlyInternetGateway", params, optFns, addOperationCreateEgressOnlyInternetGatewayMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "CreateEgressOnlyInternetGateway", params, optFns, c.addOperationCreateEgressOnlyInternetGatewayMiddlewares) if err != nil { return nil, err } @@ -46,7 +46,7 @@ type CreateEgressOnlyInternetGatewayInput struct { // 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 + DryRun *bool // The tags to assign to the egress-only internet gateway. TagSpecifications []types.TagSpecification @@ -65,7 +65,7 @@ type CreateEgressOnlyInternetGatewayOutput struct { ResultMetadata middleware.Metadata } -func addOperationCreateEgressOnlyInternetGatewayMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationCreateEgressOnlyInternetGatewayMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpCreateEgressOnlyInternetGateway{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateFleet.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateFleet.go index 32f30527a..a93d38bd5 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateFleet.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateFleet.go @@ -16,13 +16,13 @@ import ( // launch specifications that vary by instance type, AMI, Availability Zone, or // subnet. For more information, see Launching an EC2 Fleet // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-fleet.html) in the -// Amazon Elastic Compute Cloud User Guide. +// Amazon EC2 User Guide. func (c *Client) CreateFleet(ctx context.Context, params *CreateFleetInput, optFns ...func(*Options)) (*CreateFleetOutput, error) { if params == nil { params = &CreateFleetInput{} } - result, metadata, err := c.invokeOperation(ctx, "CreateFleet", params, optFns, addOperationCreateFleetMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "CreateFleet", params, optFns, c.addOperationCreateFleetMiddlewares) if err != nil { return nil, err } @@ -49,11 +49,14 @@ type CreateFleetInput struct { // (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html). ClientToken *string + // Reserved. + Context *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 + DryRun *bool // Indicates whether running instances should be terminated if the total target // capacity of the EC2 Fleet is decreased below the current size of the EC2 Fleet. @@ -62,28 +65,35 @@ type CreateFleetInput struct { // Describes the configuration of On-Demand Instances in an EC2 Fleet. OnDemandOptions *types.OnDemandOptionsRequest - // Indicates whether EC2 Fleet should replace unhealthy instances. - ReplaceUnhealthyInstances bool + // Indicates whether EC2 Fleet should replace unhealthy Spot Instances. Supported + // only for fleets of type maintain. For more information, see EC2 Fleet health + // checks + // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/manage-ec2-fleet.html#ec2-fleet-health-checks) + // in the Amazon EC2 User Guide. + ReplaceUnhealthyInstances *bool // Describes the configuration of Spot Instances in an EC2 Fleet. SpotOptions *types.SpotOptionsRequest - // The key-value pair for tagging the EC2 Fleet request on creation. The value for - // ResourceType must be fleet, otherwise the fleet request fails. To tag instances - // at launch, specify the tags in the launch template - // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-launch-templates.html#create-launch-template). - // For information about tagging after launch, see Tagging your resources + // The key-value pair for tagging the EC2 Fleet request on creation. For more + // information, see Tagging your resources // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Using_Tags.html#tag-resources). + // If the fleet type is instant, specify a resource type of fleet to tag the fleet + // or instance to tag the instances at launch. If the fleet type is maintain or + // request, specify a resource type of fleet to tag the fleet. You cannot specify a + // resource type of instance. To tag instances at launch, specify the tags in a + // launch template + // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-launch-templates.html#create-launch-template). TagSpecifications []types.TagSpecification // Indicates whether running instances should be terminated when the EC2 Fleet // expires. - TerminateInstancesWithExpiration bool + TerminateInstancesWithExpiration *bool - // The type of request. The default value is maintain. + // The fleet type. The default value is maintain. // // * maintain - The EC2 Fleet - // plaees an asynchronous request for your desired capacity, and continues to + // places an asynchronous request for your desired capacity, and continues to // maintain your desired Spot capacity by replenishing interrupted Spot // Instances. // @@ -98,7 +108,7 @@ type CreateFleetInput struct { // // For more information, see EC2 Fleet request types // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-fleet-configuration-strategies.html#ec2-fleet-request-type) - // in the Amazon Elastic Compute Cloud User Guide. + // in the Amazon EC2 User Guide. Type types.FleetType // The start date and time of the request, in UTC format (for example, @@ -115,22 +125,22 @@ type CreateFleetInput struct { type CreateFleetOutput struct { - // Information about the instances that could not be launched by the fleet. Valid - // only when Type is set to instant. + // Information about the instances that could not be launched by the fleet. + // Supported only for fleets of type instant. Errors []types.CreateFleetError // The ID of the EC2 Fleet. FleetId *string - // Information about the instances that were launched by the fleet. Valid only when - // Type is set to instant. + // Information about the instances that were launched by the fleet. Supported only + // for fleets of type instant. Instances []types.CreateFleetInstance // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata } -func addOperationCreateFleetMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationCreateFleetMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpCreateFleet{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateFlowLogs.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateFlowLogs.go index 6d2e8214a..1ccf097af 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateFlowLogs.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateFlowLogs.go @@ -30,7 +30,7 @@ func (c *Client) CreateFlowLogs(ctx context.Context, params *CreateFlowLogsInput params = &CreateFlowLogsInput{} } - result, metadata, err := c.invokeOperation(ctx, "CreateFlowLogs", params, optFns, addOperationCreateFlowLogsMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "CreateFlowLogs", params, optFns, c.addOperationCreateFlowLogsMiddlewares) if err != nil { return nil, err } @@ -74,7 +74,7 @@ type CreateFlowLogsInput struct { // 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 + DryRun *bool // Specifies the destination to which the flow log data is to be published. Flow // log data can be published to a CloudWatch Logs log group or an Amazon S3 bucket. @@ -120,7 +120,7 @@ type CreateFlowLogsInput struct { // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html#ec2-nitro-instances), // the aggregation interval is always 60 seconds or less, regardless of the value // that you specify. Default: 600 - MaxAggregationInterval int32 + MaxAggregationInterval *int32 // The tags to apply to the flow logs. TagSpecifications []types.TagSpecification @@ -142,7 +142,7 @@ type CreateFlowLogsOutput struct { ResultMetadata middleware.Metadata } -func addOperationCreateFlowLogsMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationCreateFlowLogsMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpCreateFlowLogs{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateFpgaImage.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateFpgaImage.go index 39f7e3be1..df7aeaddd 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateFpgaImage.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateFpgaImage.go @@ -22,7 +22,7 @@ func (c *Client) CreateFpgaImage(ctx context.Context, params *CreateFpgaImageInp params = &CreateFpgaImageInput{} } - result, metadata, err := c.invokeOperation(ctx, "CreateFpgaImage", params, optFns, addOperationCreateFpgaImageMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "CreateFpgaImage", params, optFns, c.addOperationCreateFpgaImageMiddlewares) if err != nil { return nil, err } @@ -52,7 +52,7 @@ type CreateFpgaImageInput struct { // 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 + DryRun *bool // The location in Amazon S3 for the output logs. LogsStorageLocation *types.StorageLocation @@ -76,7 +76,7 @@ type CreateFpgaImageOutput struct { ResultMetadata middleware.Metadata } -func addOperationCreateFpgaImageMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationCreateFpgaImageMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpCreateFpgaImage{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateImage.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateImage.go index 3b9338cb1..8cb231c3f 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateImage.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateImage.go @@ -25,7 +25,7 @@ func (c *Client) CreateImage(ctx context.Context, params *CreateImageInput, optF params = &CreateImageInput{} } - result, metadata, err := c.invokeOperation(ctx, "CreateImage", params, optFns, addOperationCreateImageMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "CreateImage", params, optFns, c.addOperationCreateImageMiddlewares) if err != nil { return nil, err } @@ -61,15 +61,13 @@ type CreateImageInput struct { // 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 + DryRun *bool // By default, Amazon EC2 attempts to shut down and reboot the instance before // creating the image. If the No Reboot option is set, Amazon EC2 doesn't shut down // the instance before creating the image. When this option is used, file system // integrity on the created image can't be guaranteed. - NoReboot bool - - OutpostArn *string + NoReboot *bool // The tags to apply to the AMI and snapshots on creation. You can tag the AMI, the // snapshots, or both. @@ -97,7 +95,7 @@ type CreateImageOutput struct { ResultMetadata middleware.Metadata } -func addOperationCreateImageMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationCreateImageMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpCreateImage{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateInstanceExportTask.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateInstanceExportTask.go index f5e36a544..6116fac71 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateInstanceExportTask.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateInstanceExportTask.go @@ -13,7 +13,7 @@ import ( // Exports a running or stopped instance to an Amazon S3 bucket. For information // about the supported operating systems, image formats, and known limitations for -// the types of instances you can export, see Exporting an Instance as a VM Using +// the types of instances you can export, see Exporting an instance as a VM Using // VM Import/Export // (https://docs.aws.amazon.com/vm-import/latest/userguide/vmexport.html) in the VM // Import/Export User Guide. @@ -22,7 +22,7 @@ func (c *Client) CreateInstanceExportTask(ctx context.Context, params *CreateIns params = &CreateInstanceExportTaskInput{} } - result, metadata, err := c.invokeOperation(ctx, "CreateInstanceExportTask", params, optFns, addOperationCreateInstanceExportTaskMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "CreateInstanceExportTask", params, optFns, c.addOperationCreateInstanceExportTaskMiddlewares) if err != nil { return nil, err } @@ -34,7 +34,7 @@ func (c *Client) CreateInstanceExportTask(ctx context.Context, params *CreateIns type CreateInstanceExportTaskInput struct { - // The format and location for an instance export task. + // The format and location for an export instance task. // // This member is required. ExportToS3Task *types.ExportToS3TaskSpecification @@ -53,20 +53,20 @@ type CreateInstanceExportTaskInput struct { // maximum length is 255 characters. Description *string - // The tags to apply to the instance export task during creation. + // The tags to apply to the export instance task during creation. TagSpecifications []types.TagSpecification } type CreateInstanceExportTaskOutput struct { - // Information about the instance export task. + // Information about the export instance task. ExportTask *types.ExportTask // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata } -func addOperationCreateInstanceExportTaskMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationCreateInstanceExportTaskMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpCreateInstanceExportTask{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateInternetGateway.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateInternetGateway.go index cf48e8eed..fbd097766 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateInternetGateway.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateInternetGateway.go @@ -20,7 +20,7 @@ func (c *Client) CreateInternetGateway(ctx context.Context, params *CreateIntern params = &CreateInternetGatewayInput{} } - result, metadata, err := c.invokeOperation(ctx, "CreateInternetGateway", params, optFns, addOperationCreateInternetGatewayMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "CreateInternetGateway", params, optFns, c.addOperationCreateInternetGatewayMiddlewares) if err != nil { return nil, err } @@ -36,7 +36,7 @@ type CreateInternetGatewayInput struct { // 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 + DryRun *bool // The tags to assign to the internet gateway. TagSpecifications []types.TagSpecification @@ -51,7 +51,7 @@ type CreateInternetGatewayOutput struct { ResultMetadata middleware.Metadata } -func addOperationCreateInternetGatewayMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationCreateInternetGatewayMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpCreateInternetGateway{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateKeyPair.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateKeyPair.go index 0501e4ee0..483c32701 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateKeyPair.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateKeyPair.go @@ -26,7 +26,7 @@ func (c *Client) CreateKeyPair(ctx context.Context, params *CreateKeyPairInput, params = &CreateKeyPairInput{} } - result, metadata, err := c.invokeOperation(ctx, "CreateKeyPair", params, optFns, addOperationCreateKeyPairMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "CreateKeyPair", params, optFns, c.addOperationCreateKeyPairMiddlewares) if err != nil { return nil, err } @@ -47,7 +47,7 @@ type CreateKeyPairInput struct { // 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 + DryRun *bool // The tags to apply to the new key pair. TagSpecifications []types.TagSpecification @@ -75,7 +75,7 @@ type CreateKeyPairOutput struct { ResultMetadata middleware.Metadata } -func addOperationCreateKeyPairMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationCreateKeyPairMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpCreateKeyPair{}, middleware.After) if err != nil { return err 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 c7fdaf36c..89c4a7844 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 @@ -22,7 +22,7 @@ func (c *Client) CreateLaunchTemplate(ctx context.Context, params *CreateLaunchT params = &CreateLaunchTemplateInput{} } - result, metadata, err := c.invokeOperation(ctx, "CreateLaunchTemplate", params, optFns, addOperationCreateLaunchTemplateMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "CreateLaunchTemplate", params, optFns, c.addOperationCreateLaunchTemplateMiddlewares) if err != nil { return nil, err } @@ -54,7 +54,7 @@ type CreateLaunchTemplateInput struct { // 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 + DryRun *bool // The tags to apply to the launch template during creation. TagSpecifications []types.TagSpecification @@ -77,7 +77,7 @@ type CreateLaunchTemplateOutput struct { ResultMetadata middleware.Metadata } -func addOperationCreateLaunchTemplateMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationCreateLaunchTemplateMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpCreateLaunchTemplate{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateLaunchTemplateVersion.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateLaunchTemplateVersion.go index b1f9eb6b4..af410bed5 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateLaunchTemplateVersion.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateLaunchTemplateVersion.go @@ -23,7 +23,7 @@ func (c *Client) CreateLaunchTemplateVersion(ctx context.Context, params *Create params = &CreateLaunchTemplateVersionInput{} } - result, metadata, err := c.invokeOperation(ctx, "CreateLaunchTemplateVersion", params, optFns, addOperationCreateLaunchTemplateVersionMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "CreateLaunchTemplateVersion", params, optFns, c.addOperationCreateLaunchTemplateVersionMiddlewares) if err != nil { return nil, err } @@ -50,7 +50,7 @@ type CreateLaunchTemplateVersionInput struct { // 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 + DryRun *bool // The ID of the launch template. You must specify either the launch template ID or // launch template name in the request. @@ -85,7 +85,7 @@ type CreateLaunchTemplateVersionOutput struct { ResultMetadata middleware.Metadata } -func addOperationCreateLaunchTemplateVersionMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationCreateLaunchTemplateVersionMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpCreateLaunchTemplateVersion{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateLocalGatewayRoute.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateLocalGatewayRoute.go index 88db3adc1..a49348a4e 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateLocalGatewayRoute.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateLocalGatewayRoute.go @@ -17,7 +17,7 @@ func (c *Client) CreateLocalGatewayRoute(ctx context.Context, params *CreateLoca params = &CreateLocalGatewayRouteInput{} } - result, metadata, err := c.invokeOperation(ctx, "CreateLocalGatewayRoute", params, optFns, addOperationCreateLocalGatewayRouteMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "CreateLocalGatewayRoute", params, optFns, c.addOperationCreateLocalGatewayRouteMiddlewares) if err != nil { return nil, err } @@ -49,7 +49,7 @@ type CreateLocalGatewayRouteInput struct { // 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 + DryRun *bool } type CreateLocalGatewayRouteOutput struct { @@ -61,7 +61,7 @@ type CreateLocalGatewayRouteOutput struct { ResultMetadata middleware.Metadata } -func addOperationCreateLocalGatewayRouteMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationCreateLocalGatewayRouteMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpCreateLocalGatewayRoute{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateLocalGatewayRouteTableVpcAssociation.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateLocalGatewayRouteTableVpcAssociation.go index 97608d228..620c1682e 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateLocalGatewayRouteTableVpcAssociation.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateLocalGatewayRouteTableVpcAssociation.go @@ -17,7 +17,7 @@ func (c *Client) CreateLocalGatewayRouteTableVpcAssociation(ctx context.Context, params = &CreateLocalGatewayRouteTableVpcAssociationInput{} } - result, metadata, err := c.invokeOperation(ctx, "CreateLocalGatewayRouteTableVpcAssociation", params, optFns, addOperationCreateLocalGatewayRouteTableVpcAssociationMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "CreateLocalGatewayRouteTableVpcAssociation", params, optFns, c.addOperationCreateLocalGatewayRouteTableVpcAssociationMiddlewares) if err != nil { return nil, err } @@ -43,7 +43,7 @@ type CreateLocalGatewayRouteTableVpcAssociationInput struct { // 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 + DryRun *bool // The tags to assign to the local gateway route table VPC association. TagSpecifications []types.TagSpecification @@ -58,7 +58,7 @@ type CreateLocalGatewayRouteTableVpcAssociationOutput struct { ResultMetadata middleware.Metadata } -func addOperationCreateLocalGatewayRouteTableVpcAssociationMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationCreateLocalGatewayRouteTableVpcAssociationMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpCreateLocalGatewayRouteTableVpcAssociation{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateManagedPrefixList.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateManagedPrefixList.go index 55b0b7a97..4034da682 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateManagedPrefixList.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateManagedPrefixList.go @@ -21,7 +21,7 @@ func (c *Client) CreateManagedPrefixList(ctx context.Context, params *CreateMana params = &CreateManagedPrefixListInput{} } - result, metadata, err := c.invokeOperation(ctx, "CreateManagedPrefixList", params, optFns, addOperationCreateManagedPrefixListMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "CreateManagedPrefixList", params, optFns, c.addOperationCreateManagedPrefixListMiddlewares) if err != nil { return nil, err } @@ -41,7 +41,7 @@ type CreateManagedPrefixListInput struct { // The maximum number of entries for the prefix list. // // This member is required. - MaxEntries int32 + MaxEntries *int32 // A name for the prefix list. Constraints: Up to 255 characters in length. The // name cannot start with com.amazonaws. @@ -59,7 +59,7 @@ type CreateManagedPrefixListInput struct { // 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 + DryRun *bool // One or more entries for the prefix list. Entries []types.AddPrefixListEntry @@ -77,7 +77,7 @@ type CreateManagedPrefixListOutput struct { ResultMetadata middleware.Metadata } -func addOperationCreateManagedPrefixListMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationCreateManagedPrefixListMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpCreateManagedPrefixList{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateNatGateway.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateNatGateway.go index efc6740aa..97fe3e56d 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateNatGateway.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateNatGateway.go @@ -12,19 +12,24 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Creates a NAT gateway in the specified public subnet. This action creates a -// network interface in the specified subnet with a private IP address from the IP -// address range of the subnet. Internet-bound traffic from a private subnet can be -// routed to the NAT gateway, therefore enabling instances in the private subnet to -// connect to the internet. For more information, see NAT Gateways -// (https://docs.aws.amazon.com/vpc/latest/userguide/vpc-nat-gateway.html) in the -// Amazon Virtual Private Cloud User Guide. +// Creates a NAT gateway in the specified subnet. This action creates a network +// interface in the specified subnet with a private IP address from the IP address +// range of the subnet. You can create either a public NAT gateway or a private NAT +// gateway. With a public NAT gateway, internet-bound traffic from a private subnet +// can be routed to the NAT gateway, so that instances in a private subnet can +// connect to the internet. With a private NAT gateway, private communication is +// routed across VPCs and on-premises networks through a transit gateway or virtual +// private gateway. Common use cases include running large workloads behind a small +// pool of allowlisted IPv4 addresses, preserving private IPv4 addresses, and +// communicating between overlapping networks. For more information, see NAT +// Gateways (https://docs.aws.amazon.com/vpc/latest/userguide/vpc-nat-gateway.html) +// in the Amazon Virtual Private Cloud User Guide. func (c *Client) CreateNatGateway(ctx context.Context, params *CreateNatGatewayInput, optFns ...func(*Options)) (*CreateNatGatewayOutput, error) { if params == nil { params = &CreateNatGatewayInput{} } - result, metadata, err := c.invokeOperation(ctx, "CreateNatGateway", params, optFns, addOperationCreateNatGatewayMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "CreateNatGateway", params, optFns, c.addOperationCreateNatGatewayMiddlewares) if err != nil { return nil, err } @@ -36,29 +41,32 @@ func (c *Client) CreateNatGateway(ctx context.Context, params *CreateNatGatewayI type CreateNatGatewayInput struct { - // The allocation ID of an Elastic IP address to associate with the NAT gateway. If - // the Elastic IP address is associated with another resource, you must first - // disassociate it. - // - // This member is required. - AllocationId *string - // The subnet in which to create the NAT gateway. // // This member is required. SubnetId *string + // [Public NAT gateways only] The allocation ID of an Elastic IP address to + // associate with the NAT gateway. You cannot specify an Elastic IP address with a + // private NAT gateway. If the Elastic IP address is associated with another + // resource, you must first disassociate it. + AllocationId *string + // Unique, case-sensitive identifier that you provide to ensure the idempotency of // the request. For more information, see How to Ensure Idempotency // (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html). // Constraint: Maximum 64 ASCII characters. ClientToken *string + // Indicates whether the NAT gateway supports public or private connectivity. The + // default is public connectivity. + ConnectivityType types.ConnectivityType + // 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 + DryRun *bool // The tags to assign to the NAT gateway. TagSpecifications []types.TagSpecification @@ -77,7 +85,7 @@ type CreateNatGatewayOutput struct { ResultMetadata middleware.Metadata } -func addOperationCreateNatGatewayMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationCreateNatGatewayMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpCreateNatGateway{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateNetworkAcl.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateNetworkAcl.go index 4e71b8464..7a7acd262 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateNetworkAcl.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateNetworkAcl.go @@ -21,7 +21,7 @@ func (c *Client) CreateNetworkAcl(ctx context.Context, params *CreateNetworkAclI params = &CreateNetworkAclInput{} } - result, metadata, err := c.invokeOperation(ctx, "CreateNetworkAcl", params, optFns, addOperationCreateNetworkAclMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "CreateNetworkAcl", params, optFns, c.addOperationCreateNetworkAclMiddlewares) if err != nil { return nil, err } @@ -42,7 +42,7 @@ type CreateNetworkAclInput struct { // 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 + DryRun *bool // The tags to assign to the network ACL. TagSpecifications []types.TagSpecification @@ -57,7 +57,7 @@ type CreateNetworkAclOutput struct { ResultMetadata middleware.Metadata } -func addOperationCreateNetworkAclMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationCreateNetworkAclMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpCreateNetworkAcl{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateNetworkAclEntry.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateNetworkAclEntry.go index 998a67b7c..96a15641c 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateNetworkAclEntry.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateNetworkAclEntry.go @@ -30,7 +30,7 @@ func (c *Client) CreateNetworkAclEntry(ctx context.Context, params *CreateNetwor params = &CreateNetworkAclEntryInput{} } - result, metadata, err := c.invokeOperation(ctx, "CreateNetworkAclEntry", params, optFns, addOperationCreateNetworkAclEntryMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "CreateNetworkAclEntry", params, optFns, c.addOperationCreateNetworkAclEntryMiddlewares) if err != nil { return nil, err } @@ -46,7 +46,7 @@ type CreateNetworkAclEntryInput struct { // subnet). // // This member is required. - Egress bool + Egress *bool // The ID of the network ACL. // @@ -74,7 +74,7 @@ type CreateNetworkAclEntryInput struct { // The range 32767 to 65535 is reserved for internal use. // // This member is required. - RuleNumber int32 + RuleNumber *int32 // The IPv4 network range to allow or deny, in CIDR notation (for example // 172.16.0.0/24). We modify the specified CIDR block to its canonical form; for @@ -85,7 +85,7 @@ type CreateNetworkAclEntryInput struct { // 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 + DryRun *bool // ICMP protocol: The ICMP or ICMPv6 type and code. Required if specifying protocol // 1 (ICMP) or protocol 58 (ICMPv6) with an IPv6 CIDR block. @@ -105,7 +105,7 @@ type CreateNetworkAclEntryOutput struct { ResultMetadata middleware.Metadata } -func addOperationCreateNetworkAclEntryMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationCreateNetworkAclEntryMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpCreateNetworkAclEntry{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateNetworkInsightsPath.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateNetworkInsightsPath.go index 20392a75b..4ead0c63e 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateNetworkInsightsPath.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateNetworkInsightsPath.go @@ -21,7 +21,7 @@ func (c *Client) CreateNetworkInsightsPath(ctx context.Context, params *CreateNe params = &CreateNetworkInsightsPathInput{} } - result, metadata, err := c.invokeOperation(ctx, "CreateNetworkInsightsPath", params, optFns, addOperationCreateNetworkInsightsPathMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "CreateNetworkInsightsPath", params, optFns, c.addOperationCreateNetworkInsightsPathMiddlewares) if err != nil { return nil, err } @@ -59,13 +59,13 @@ type CreateNetworkInsightsPathInput struct { DestinationIp *string // The destination port. - DestinationPort int32 + DestinationPort *int32 // 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 + DryRun *bool // The IP address of the AWS resource that is the source of the path. SourceIp *string @@ -83,7 +83,7 @@ type CreateNetworkInsightsPathOutput struct { ResultMetadata middleware.Metadata } -func addOperationCreateNetworkInsightsPathMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationCreateNetworkInsightsPathMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpCreateNetworkInsightsPath{}, middleware.After) if err != nil { return err 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 cae398e79..235d556f5 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 @@ -4,6 +4,7 @@ package ec2 import ( "context" + "fmt" awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" "github.com/aws/aws-sdk-go-v2/aws/signer/v4" "github.com/aws/aws-sdk-go-v2/service/ec2/types" @@ -20,7 +21,7 @@ func (c *Client) CreateNetworkInterface(ctx context.Context, params *CreateNetwo params = &CreateNetworkInterfaceInput{} } - result, metadata, err := c.invokeOperation(ctx, "CreateNetworkInterface", params, optFns, addOperationCreateNetworkInterfaceMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "CreateNetworkInterface", params, optFns, c.addOperationCreateNetworkInterfaceMiddlewares) if err != nil { return nil, err } @@ -38,6 +39,11 @@ type CreateNetworkInterfaceInput struct { // This member is required. SubnetId *string + // Unique, case-sensitive identifier that you provide to ensure the idempotency of + // the request. For more information, see Ensuring Idempotency + // (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html). + ClientToken *string + // A description for the network interface. Description *string @@ -45,7 +51,7 @@ type CreateNetworkInterfaceInput struct { // 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 + DryRun *bool // The IDs of one or more security groups. Groups []string @@ -53,7 +59,10 @@ type CreateNetworkInterfaceInput struct { // Indicates the type of network interface. To create an Elastic Fabric Adapter // (EFA), specify efa. For more information, see Elastic Fabric Adapter // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/efa.html) in the Amazon - // Elastic Compute Cloud User Guide. + // Elastic Compute Cloud User Guide. To create a trunk network interface, specify + // efa. For more information, see Network interface trunking + // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/eni-trunking.html) in the + // Amazon Elastic Compute Cloud User Guide. InterfaceType types.NetworkInterfaceCreationType // The number of IPv6 addresses to assign to a network interface. Amazon EC2 @@ -61,7 +70,7 @@ type CreateNetworkInterfaceInput struct { // this option if specifying specific IPv6 addresses. If your subnet has the // AssignIpv6AddressOnCreation attribute set to true, you can specify 0 to override // this setting. - Ipv6AddressCount int32 + Ipv6AddressCount *int32 // One or more specific IPv6 addresses from the IPv6 CIDR block range of your // subnet. You can't use this option if you're specifying a number of IPv6 @@ -86,7 +95,7 @@ type CreateNetworkInterfaceInput struct { // type. For more information, see IP Addresses Per ENI Per Instance Type // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-eni.html#AvailableIpPerENI) // in the Amazon Virtual Private Cloud User Guide. - SecondaryPrivateIpAddressCount int32 + SecondaryPrivateIpAddressCount *int32 // The tags to apply to the new network interface. TagSpecifications []types.TagSpecification @@ -95,6 +104,10 @@ type CreateNetworkInterfaceInput struct { // Contains the output of CreateNetworkInterface. type CreateNetworkInterfaceOutput struct { + // The token to use to retrieve the next page of results. This value is null when + // there are no more results to return. + ClientToken *string + // Information about the network interface. NetworkInterface *types.NetworkInterface @@ -102,7 +115,7 @@ type CreateNetworkInterfaceOutput struct { ResultMetadata middleware.Metadata } -func addOperationCreateNetworkInterfaceMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationCreateNetworkInterfaceMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpCreateNetworkInterface{}, middleware.After) if err != nil { return err @@ -147,6 +160,9 @@ func addOperationCreateNetworkInterfaceMiddlewares(stack *middleware.Stack, opti if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { return err } + if err = addIdempotencyToken_opCreateNetworkInterfaceMiddleware(stack, options); err != nil { + return err + } if err = addOpCreateNetworkInterfaceValidationMiddleware(stack); err != nil { return err } @@ -165,6 +181,39 @@ func addOperationCreateNetworkInterfaceMiddlewares(stack *middleware.Stack, opti return nil } +type idempotencyToken_initializeOpCreateNetworkInterface struct { + tokenProvider IdempotencyTokenProvider +} + +func (*idempotencyToken_initializeOpCreateNetworkInterface) ID() string { + return "OperationIdempotencyTokenAutoFill" +} + +func (m *idempotencyToken_initializeOpCreateNetworkInterface) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + if m.tokenProvider == nil { + return next.HandleInitialize(ctx, in) + } + + input, ok := in.Parameters.(*CreateNetworkInterfaceInput) + if !ok { + return out, metadata, fmt.Errorf("expected middleware input to be of type *CreateNetworkInterfaceInput ") + } + + if input.ClientToken == nil { + t, err := m.tokenProvider.GetIdempotencyToken() + if err != nil { + return out, metadata, err + } + input.ClientToken = &t + } + return next.HandleInitialize(ctx, in) +} +func addIdempotencyToken_opCreateNetworkInterfaceMiddleware(stack *middleware.Stack, cfg Options) error { + return stack.Initialize.Add(&idempotencyToken_initializeOpCreateNetworkInterface{tokenProvider: cfg.IdempotencyTokenProvider}, middleware.Before) +} + func newServiceMetadataMiddleware_opCreateNetworkInterface(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateNetworkInterfacePermission.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateNetworkInterfacePermission.go index 442f17a11..6a3d45c7c 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateNetworkInterfacePermission.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateNetworkInterfacePermission.go @@ -11,15 +11,15 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Grants an AWS-authorized account permission to attach the specified network -// interface to an instance in their account. You can grant permission to a single -// AWS account only, and only one account at a time. +// Grants an Amazon Web Services-authorized account permission to attach the +// specified network interface to an instance in their account. You can grant +// permission to a single account only, and only one account at a time. func (c *Client) CreateNetworkInterfacePermission(ctx context.Context, params *CreateNetworkInterfacePermissionInput, optFns ...func(*Options)) (*CreateNetworkInterfacePermissionOutput, error) { if params == nil { params = &CreateNetworkInterfacePermissionInput{} } - result, metadata, err := c.invokeOperation(ctx, "CreateNetworkInterfacePermission", params, optFns, addOperationCreateNetworkInterfacePermissionMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "CreateNetworkInterfacePermission", params, optFns, c.addOperationCreateNetworkInterfacePermissionMiddlewares) if err != nil { return nil, err } @@ -42,17 +42,17 @@ type CreateNetworkInterfacePermissionInput struct { // This member is required. Permission types.InterfacePermissionType - // The AWS account ID. + // The account ID. AwsAccountId *string - // The AWS service. Currently not supported. + // The Amazon Web Service. Currently not supported. AwsService *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 + DryRun *bool } // Contains the output of CreateNetworkInterfacePermission. @@ -65,7 +65,7 @@ type CreateNetworkInterfacePermissionOutput struct { ResultMetadata middleware.Metadata } -func addOperationCreateNetworkInterfacePermissionMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationCreateNetworkInterfacePermissionMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpCreateNetworkInterfacePermission{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreatePlacementGroup.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreatePlacementGroup.go index 6de5d614b..c2f79bd79 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreatePlacementGroup.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreatePlacementGroup.go @@ -20,13 +20,13 @@ import ( // where instances in one partition do not share the same hardware with instances // in another partition. For more information, see Placement groups // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/placement-groups.html) in -// the Amazon Elastic Compute Cloud User Guide. +// the Amazon EC2 User Guide. func (c *Client) CreatePlacementGroup(ctx context.Context, params *CreatePlacementGroupInput, optFns ...func(*Options)) (*CreatePlacementGroupOutput, error) { if params == nil { params = &CreatePlacementGroupInput{} } - result, metadata, err := c.invokeOperation(ctx, "CreatePlacementGroup", params, optFns, addOperationCreatePlacementGroupMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "CreatePlacementGroup", params, optFns, c.addOperationCreatePlacementGroupMiddlewares) if err != nil { return nil, err } @@ -42,14 +42,14 @@ type CreatePlacementGroupInput struct { // 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 + DryRun *bool // A name for the placement group. Must be unique within the scope of your account // for the Region. Constraints: Up to 255 ASCII characters GroupName *string // The number of partitions. Valid only when Strategy is set to partition. - PartitionCount int32 + PartitionCount *int32 // The placement strategy. Strategy types.PlacementStrategy @@ -67,7 +67,7 @@ type CreatePlacementGroupOutput struct { ResultMetadata middleware.Metadata } -func addOperationCreatePlacementGroupMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationCreatePlacementGroupMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpCreatePlacementGroup{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateReplaceRootVolumeTask.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateReplaceRootVolumeTask.go new file mode 100644 index 000000000..4308bd8bb --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateReplaceRootVolumeTask.go @@ -0,0 +1,177 @@ +// 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/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/ec2/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Creates a root volume replacement task for an Amazon EC2 instance. The root +// volume can either be restored to its initial launch state, or it can be restored +// using a specific snapshot. For more information, see Replace a root volume +// (https://docs.aws.amazon.com/) in the Amazon Elastic Compute Cloud User Guide. +func (c *Client) CreateReplaceRootVolumeTask(ctx context.Context, params *CreateReplaceRootVolumeTaskInput, optFns ...func(*Options)) (*CreateReplaceRootVolumeTaskOutput, error) { + if params == nil { + params = &CreateReplaceRootVolumeTaskInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "CreateReplaceRootVolumeTask", params, optFns, c.addOperationCreateReplaceRootVolumeTaskMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*CreateReplaceRootVolumeTaskOutput) + out.ResultMetadata = metadata + return out, nil +} + +type CreateReplaceRootVolumeTaskInput struct { + + // The ID of the instance for which to replace the root volume. + // + // This member is required. + InstanceId *string + + // Unique, case-sensitive identifier you provide to ensure the idempotency of the + // request. If you do not specify a client token, a randomly generated token is + // used for the request to ensure idempotency. For more information, see Ensuring + // Idempotency + // (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html). + ClientToken *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 ID of the snapshot from which to restore the replacement root volume. If you + // want to restore the volume to the initial launch state, omit this parameter. + SnapshotId *string + + // The tags to apply to the root volume replacement task. + TagSpecifications []types.TagSpecification +} + +type CreateReplaceRootVolumeTaskOutput struct { + + // Information about the root volume replacement task. + ReplaceRootVolumeTask *types.ReplaceRootVolumeTask + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata +} + +func (c *Client) addOperationCreateReplaceRootVolumeTaskMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsEc2query_serializeOpCreateReplaceRootVolumeTask{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsEc2query_deserializeOpCreateReplaceRootVolumeTask{}, middleware.After) + if err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = addHTTPSignerV4Middleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addIdempotencyToken_opCreateReplaceRootVolumeTaskMiddleware(stack, options); err != nil { + return err + } + if err = addOpCreateReplaceRootVolumeTaskValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCreateReplaceRootVolumeTask(options.Region), middleware.Before); 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 + } + return nil +} + +type idempotencyToken_initializeOpCreateReplaceRootVolumeTask struct { + tokenProvider IdempotencyTokenProvider +} + +func (*idempotencyToken_initializeOpCreateReplaceRootVolumeTask) ID() string { + return "OperationIdempotencyTokenAutoFill" +} + +func (m *idempotencyToken_initializeOpCreateReplaceRootVolumeTask) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + if m.tokenProvider == nil { + return next.HandleInitialize(ctx, in) + } + + input, ok := in.Parameters.(*CreateReplaceRootVolumeTaskInput) + if !ok { + return out, metadata, fmt.Errorf("expected middleware input to be of type *CreateReplaceRootVolumeTaskInput ") + } + + if input.ClientToken == nil { + t, err := m.tokenProvider.GetIdempotencyToken() + if err != nil { + return out, metadata, err + } + input.ClientToken = &t + } + return next.HandleInitialize(ctx, in) +} +func addIdempotencyToken_opCreateReplaceRootVolumeTaskMiddleware(stack *middleware.Stack, cfg Options) error { + return stack.Initialize.Add(&idempotencyToken_initializeOpCreateReplaceRootVolumeTask{tokenProvider: cfg.IdempotencyTokenProvider}, middleware.Before) +} + +func newServiceMetadataMiddleware_opCreateReplaceRootVolumeTask(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "ec2", + OperationName: "CreateReplaceRootVolumeTask", + } +} diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateReservedInstancesListing.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateReservedInstancesListing.go index 6a00d144e..c59a5a071 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateReservedInstancesListing.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateReservedInstancesListing.go @@ -29,13 +29,13 @@ import ( // can use the DescribeReservedInstancesListings operation. For more information, // see Reserved Instance Marketplace // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ri-market-general.html) in -// the Amazon Elastic Compute Cloud User Guide. +// the Amazon EC2 User Guide. func (c *Client) CreateReservedInstancesListing(ctx context.Context, params *CreateReservedInstancesListingInput, optFns ...func(*Options)) (*CreateReservedInstancesListingOutput, error) { if params == nil { params = &CreateReservedInstancesListingInput{} } - result, metadata, err := c.invokeOperation(ctx, "CreateReservedInstancesListing", params, optFns, addOperationCreateReservedInstancesListingMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "CreateReservedInstancesListing", params, optFns, c.addOperationCreateReservedInstancesListingMiddlewares) if err != nil { return nil, err } @@ -62,7 +62,7 @@ type CreateReservedInstancesListingInput struct { // in this call. // // This member is required. - InstanceCount int32 + InstanceCount *int32 // A list specifying the price of the Standard Reserved Instance for each month // remaining in the Reserved Instance term. @@ -86,7 +86,7 @@ type CreateReservedInstancesListingOutput struct { ResultMetadata middleware.Metadata } -func addOperationCreateReservedInstancesListingMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationCreateReservedInstancesListingMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpCreateReservedInstancesListing{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateRestoreImageTask.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateRestoreImageTask.go new file mode 100644 index 000000000..d69a20979 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateRestoreImageTask.go @@ -0,0 +1,152 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package ec2 + +import ( + "context" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/ec2/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Starts a task that restores an AMI from an S3 object that was previously created +// by using CreateStoreImageTask +// (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateStoreImageTask.html). +// To use this API, you must have the required permissions. For more information, +// see Permissions for storing and restoring AMIs using S3 +// (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ami-store-restore.html#ami-s3-permissions) +// in the Amazon Elastic Compute Cloud User Guide. For more information, see Store +// and restore an AMI using S3 +// (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ami-store-restore.html) in +// the Amazon Elastic Compute Cloud User Guide. +func (c *Client) CreateRestoreImageTask(ctx context.Context, params *CreateRestoreImageTaskInput, optFns ...func(*Options)) (*CreateRestoreImageTaskOutput, error) { + if params == nil { + params = &CreateRestoreImageTaskInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "CreateRestoreImageTask", params, optFns, c.addOperationCreateRestoreImageTaskMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*CreateRestoreImageTaskOutput) + out.ResultMetadata = metadata + return out, nil +} + +type CreateRestoreImageTaskInput struct { + + // The name of the S3 bucket that contains the stored AMI object. + // + // This member is required. + Bucket *string + + // The name of the stored AMI object in the bucket. + // + // This member is required. + ObjectKey *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 name for the restored AMI. The name must be unique for AMIs in the Region + // for this account. If you do not provide a name, the new AMI gets the same name + // as the original AMI. + Name *string + + // The tags to apply to the AMI and snapshots on restoration. You can tag the AMI, + // the snapshots, or both. + // + // * To tag the AMI, the value for ResourceType must be + // image. + // + // * To tag the snapshots, the value for ResourceType must be snapshot. The + // same tag is applied to all of the snapshots that are created. + TagSpecifications []types.TagSpecification +} + +type CreateRestoreImageTaskOutput struct { + + // The AMI ID. + ImageId *string + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata +} + +func (c *Client) addOperationCreateRestoreImageTaskMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsEc2query_serializeOpCreateRestoreImageTask{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsEc2query_deserializeOpCreateRestoreImageTask{}, middleware.After) + if err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = addHTTPSignerV4Middleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addOpCreateRestoreImageTaskValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCreateRestoreImageTask(options.Region), middleware.Before); 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 + } + return nil +} + +func newServiceMetadataMiddleware_opCreateRestoreImageTask(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "ec2", + OperationName: "CreateRestoreImageTask", + } +} diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateRoute.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateRoute.go index c1e3864f4..87b20fdac 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateRoute.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateRoute.go @@ -34,7 +34,7 @@ func (c *Client) CreateRoute(ctx context.Context, params *CreateRouteInput, optF params = &CreateRouteInput{} } - result, metadata, err := c.invokeOperation(ctx, "CreateRoute", params, optFns, addOperationCreateRouteMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "CreateRoute", params, optFns, c.addOperationCreateRouteMiddlewares) if err != nil { return nil, err } @@ -72,7 +72,7 @@ type CreateRouteInput struct { // 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 + DryRun *bool // [IPv6 traffic only] The ID of an egress-only internet gateway. EgressOnlyInternetGatewayId *string @@ -106,13 +106,13 @@ type CreateRouteInput struct { type CreateRouteOutput struct { // Returns true if the request succeeds; otherwise, it returns an error. - Return bool + Return *bool // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata } -func addOperationCreateRouteMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationCreateRouteMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpCreateRoute{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateRouteTable.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateRouteTable.go index f0d554bce..bd3c1bec8 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateRouteTable.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateRouteTable.go @@ -21,7 +21,7 @@ func (c *Client) CreateRouteTable(ctx context.Context, params *CreateRouteTableI params = &CreateRouteTableInput{} } - result, metadata, err := c.invokeOperation(ctx, "CreateRouteTable", params, optFns, addOperationCreateRouteTableMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "CreateRouteTable", params, optFns, c.addOperationCreateRouteTableMiddlewares) if err != nil { return nil, err } @@ -42,7 +42,7 @@ type CreateRouteTableInput struct { // 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 + DryRun *bool // The tags to assign to the route table. TagSpecifications []types.TagSpecification @@ -57,7 +57,7 @@ type CreateRouteTableOutput struct { ResultMetadata middleware.Metadata } -func addOperationCreateRouteTableMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationCreateRouteTableMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpCreateRouteTable{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateSecurityGroup.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateSecurityGroup.go index e590d23bd..62487fa2c 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateSecurityGroup.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateSecurityGroup.go @@ -37,7 +37,7 @@ func (c *Client) CreateSecurityGroup(ctx context.Context, params *CreateSecurity params = &CreateSecurityGroupInput{} } - result, metadata, err := c.invokeOperation(ctx, "CreateSecurityGroup", params, optFns, addOperationCreateSecurityGroupMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "CreateSecurityGroup", params, optFns, c.addOperationCreateSecurityGroupMiddlewares) if err != nil { return nil, err } @@ -67,7 +67,7 @@ type CreateSecurityGroupInput struct { // 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 + DryRun *bool // The tags to assign to the security group. TagSpecifications []types.TagSpecification @@ -88,7 +88,7 @@ type CreateSecurityGroupOutput struct { ResultMetadata middleware.Metadata } -func addOperationCreateSecurityGroupMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationCreateSecurityGroupMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpCreateSecurityGroup{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateSnapshot.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateSnapshot.go index 14504e56e..2a91eac10 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateSnapshot.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateSnapshot.go @@ -14,23 +14,28 @@ import ( // Creates a snapshot of an EBS volume and stores it in Amazon S3. You can use // snapshots for backups, to make copies of EBS volumes, and to save data before -// shutting down an instance. When a snapshot is created, any AWS Marketplace -// product codes that are associated with the source volume are propagated to the -// snapshot. You can take a snapshot of an attached volume that is in use. However, -// snapshots only capture data that has been written to your EBS volume at the time -// the snapshot command is issued; this might exclude any data that has been cached -// by any applications or the operating system. If you can pause any file systems -// on the volume long enough to take a snapshot, your snapshot should be complete. -// However, if you cannot pause all file writes to the volume, you should unmount -// the volume from within the instance, issue the snapshot command, and then -// remount the volume to ensure a consistent and complete snapshot. You may remount -// and use your volume while the snapshot status is pending. To create a snapshot -// for EBS volumes that serve as root devices, you should stop the instance before -// taking the snapshot. Snapshots that are taken from encrypted volumes are -// automatically encrypted. Volumes that are created from encrypted snapshots are -// also automatically encrypted. Your encrypted volumes and any associated -// snapshots always remain protected. You can tag your snapshots during creation. -// For more information, see Tagging your Amazon EC2 resources +// shutting down an instance. You can create snapshots of volumes in a Region and +// volumes on an Outpost. If you create a snapshot of a volume in a Region, the +// snapshot must be stored in the same Region as the volume. If you create a +// snapshot of a volume on an Outpost, the snapshot can be stored on the same +// Outpost as the volume, or in the Region for that Outpost. When a snapshot is +// created, any AWS Marketplace product codes that are associated with the source +// volume are propagated to the snapshot. You can take a snapshot of an attached +// volume that is in use. However, snapshots only capture data that has been +// written to your EBS volume at the time the snapshot command is issued; this +// might exclude any data that has been cached by any applications or the operating +// system. If you can pause any file systems on the volume long enough to take a +// snapshot, your snapshot should be complete. However, if you cannot pause all +// file writes to the volume, you should unmount the volume from within the +// instance, issue the snapshot command, and then remount the volume to ensure a +// consistent and complete snapshot. You may remount and use your volume while the +// snapshot status is pending. To create a snapshot for EBS volumes that serve as +// root devices, you should stop the instance before taking the snapshot. Snapshots +// that are taken from encrypted volumes are automatically encrypted. Volumes that +// are created from encrypted snapshots are also automatically encrypted. Your +// encrypted volumes and any associated snapshots always remain protected. You can +// tag your snapshots during creation. For more information, see Tagging your +// Amazon EC2 resources // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Using_Tags.html) in the // Amazon Elastic Compute Cloud User Guide. For more information, see Amazon // Elastic Block Store @@ -43,7 +48,7 @@ func (c *Client) CreateSnapshot(ctx context.Context, params *CreateSnapshotInput params = &CreateSnapshotInput{} } - result, metadata, err := c.invokeOperation(ctx, "CreateSnapshot", params, optFns, addOperationCreateSnapshotMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "CreateSnapshot", params, optFns, c.addOperationCreateSnapshotMiddlewares) if err != nil { return nil, err } @@ -67,7 +72,28 @@ type CreateSnapshotInput struct { // 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 + DryRun *bool + + // The Amazon Resource Name (ARN) of the AWS Outpost on which to create a local + // snapshot. + // + // * To create a snapshot of a volume in a Region, omit this parameter. + // The snapshot is created in the same Region as the volume. + // + // * To create a + // snapshot of a volume on an Outpost and store the snapshot in the Region, omit + // this parameter. The snapshot is created in the Region for the Outpost. + // + // * To + // create a snapshot of a volume on an Outpost and store the snapshot on an + // Outpost, specify the ARN of the destination Outpost. The snapshot must be + // created on the same Outpost as the volume. + // + // For more information, see Creating + // local snapshots from volumes on an Outpost + // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/snapshots-outposts.html#create-snapshot) + // in the Amazon Elastic Compute Cloud User Guide. + OutpostArn *string // The tags to apply to the snapshot during creation. TagSpecifications []types.TagSpecification @@ -88,13 +114,19 @@ type CreateSnapshotOutput struct { Description *string // Indicates whether the snapshot is encrypted. - Encrypted bool + Encrypted *bool // The Amazon Resource Name (ARN) of the AWS Key Management Service (AWS KMS) // customer master key (CMK) that was used to protect the volume encryption key for // the parent volume. KmsKeyId *string + // The ARN of the AWS Outpost on which the snapshot is stored. For more + // information, see EBS Local Snapshot on Outposts + // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/snapshots-outposts.html) in + // the Amazon Elastic Compute Cloud User Guide. + OutpostArn *string + // The AWS owner alias, from an Amazon-maintained list (amazon). This is not the // user-configured AWS account alias set using the IAM console. OwnerAlias *string @@ -131,13 +163,13 @@ type CreateSnapshotOutput struct { VolumeId *string // The size of the volume, in GiB. - VolumeSize int32 + VolumeSize *int32 // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata } -func addOperationCreateSnapshotMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationCreateSnapshotMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpCreateSnapshot{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateSnapshots.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateSnapshots.go index c21c8dc10..9e68fe1ae 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateSnapshots.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateSnapshots.go @@ -14,13 +14,18 @@ import ( // Creates crash-consistent snapshots of multiple EBS volumes and stores the data // in S3. Volumes are chosen by specifying an instance. Any attached volumes will // produce one snapshot each that is crash-consistent across the instance. Boot -// volumes can be excluded by changing the parameters. +// volumes can be excluded by changing the parameters. You can create multi-volume +// snapshots of instances in a Region and instances on an Outpost. If you create +// snapshots from an instance in a Region, the snapshots must be stored in the same +// Region as the instance. If you create snapshots from an instance on an Outpost, +// the snapshots can be stored on the same Outpost as the instance, or in the +// Region for that Outpost. func (c *Client) CreateSnapshots(ctx context.Context, params *CreateSnapshotsInput, optFns ...func(*Options)) (*CreateSnapshotsOutput, error) { if params == nil { params = &CreateSnapshotsInput{} } - result, metadata, err := c.invokeOperation(ctx, "CreateSnapshots", params, optFns, addOperationCreateSnapshotsMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "CreateSnapshots", params, optFns, c.addOperationCreateSnapshotsMiddlewares) if err != nil { return nil, err } @@ -47,7 +52,29 @@ type CreateSnapshotsInput struct { // 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 + DryRun *bool + + // The Amazon Resource Name (ARN) of the AWS Outpost on which to create the local + // snapshots. + // + // * To create snapshots from an instance in a Region, omit this + // parameter. The snapshots are created in the same Region as the instance. + // + // * To + // create snapshots from an instance on an Outpost and store the snapshots in the + // Region, omit this parameter. The snapshots are created in the Region for the + // Outpost. + // + // * To create snapshots from an instance on an Outpost and store the + // snapshots on an Outpost, specify the ARN of the destination Outpost. The + // snapshots must be created on the same Outpost as the instance. + // + // For more + // information, see Creating multi-volume local snapshots from instances on an + // Outpost + // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/snapshots-outposts.html#create-multivol-snapshot) + // in the Amazon Elastic Compute Cloud User Guide. + OutpostArn *string // Tags to apply to every snapshot specified by the instance. TagSpecifications []types.TagSpecification @@ -62,7 +89,7 @@ type CreateSnapshotsOutput struct { ResultMetadata middleware.Metadata } -func addOperationCreateSnapshotsMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationCreateSnapshotsMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpCreateSnapshots{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateSpotDatafeedSubscription.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateSpotDatafeedSubscription.go index d21d9d97a..62cad80da 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateSpotDatafeedSubscription.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateSpotDatafeedSubscription.go @@ -12,8 +12,8 @@ import ( ) // Creates a data feed for Spot Instances, enabling you to view Spot Instance usage -// logs. You can create one data feed per AWS account. For more information, see -// Spot Instance data feed +// logs. You can create one data feed per account. For more information, see Spot +// Instance data feed // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-data-feeds.html) in // the Amazon EC2 User Guide for Linux Instances. func (c *Client) CreateSpotDatafeedSubscription(ctx context.Context, params *CreateSpotDatafeedSubscriptionInput, optFns ...func(*Options)) (*CreateSpotDatafeedSubscriptionOutput, error) { @@ -21,7 +21,7 @@ func (c *Client) CreateSpotDatafeedSubscription(ctx context.Context, params *Cre params = &CreateSpotDatafeedSubscriptionInput{} } - result, metadata, err := c.invokeOperation(ctx, "CreateSpotDatafeedSubscription", params, optFns, addOperationCreateSpotDatafeedSubscriptionMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "CreateSpotDatafeedSubscription", params, optFns, c.addOperationCreateSpotDatafeedSubscriptionMiddlewares) if err != nil { return nil, err } @@ -46,7 +46,7 @@ type CreateSpotDatafeedSubscriptionInput struct { // 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 + DryRun *bool // The prefix for the data feed file names. Prefix *string @@ -62,7 +62,7 @@ type CreateSpotDatafeedSubscriptionOutput struct { ResultMetadata middleware.Metadata } -func addOperationCreateSpotDatafeedSubscriptionMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationCreateSpotDatafeedSubscriptionMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpCreateSpotDatafeedSubscription{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateStoreImageTask.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateStoreImageTask.go new file mode 100644 index 000000000..2689cae55 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateStoreImageTask.go @@ -0,0 +1,140 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package ec2 + +import ( + "context" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/ec2/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Stores an AMI as a single object in an S3 bucket. To use this API, you must have +// the required permissions. For more information, see Permissions for storing and +// restoring AMIs using S3 +// (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ami-store-restore.html#ami-s3-permissions) +// in the Amazon Elastic Compute Cloud User Guide. For more information, see Store +// and restore an AMI using S3 +// (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ami-store-restore.html) in +// the Amazon Elastic Compute Cloud User Guide. +func (c *Client) CreateStoreImageTask(ctx context.Context, params *CreateStoreImageTaskInput, optFns ...func(*Options)) (*CreateStoreImageTaskOutput, error) { + if params == nil { + params = &CreateStoreImageTaskInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "CreateStoreImageTask", params, optFns, c.addOperationCreateStoreImageTaskMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*CreateStoreImageTaskOutput) + out.ResultMetadata = metadata + return out, nil +} + +type CreateStoreImageTaskInput struct { + + // The name of the S3 bucket in which the AMI object will be stored. The bucket + // must be in the Region in which the request is being made. The AMI object appears + // in the bucket only after the upload task has completed. + // + // This member is required. + Bucket *string + + // The ID of the AMI. + // + // This member is required. + ImageId *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 tags to apply to the AMI object that will be stored in the S3 bucket. + S3ObjectTags []types.S3ObjectTag +} + +type CreateStoreImageTaskOutput struct { + + // The name of the stored AMI object in the S3 bucket. + ObjectKey *string + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata +} + +func (c *Client) addOperationCreateStoreImageTaskMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsEc2query_serializeOpCreateStoreImageTask{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsEc2query_deserializeOpCreateStoreImageTask{}, middleware.After) + if err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = addHTTPSignerV4Middleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addOpCreateStoreImageTaskValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCreateStoreImageTask(options.Region), middleware.Before); 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 + } + return nil +} + +func newServiceMetadataMiddleware_opCreateStoreImageTask(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "ec2", + OperationName: "CreateStoreImageTask", + } +} diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateSubnet.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateSubnet.go index 770496b58..d8f254b4a 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateSubnet.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateSubnet.go @@ -31,7 +31,7 @@ func (c *Client) CreateSubnet(ctx context.Context, params *CreateSubnetInput, op params = &CreateSubnetInput{} } - result, metadata, err := c.invokeOperation(ctx, "CreateSubnet", params, optFns, addOperationCreateSubnetMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "CreateSubnet", params, optFns, c.addOperationCreateSubnetMiddlewares) if err != nil { return nil, err } @@ -73,7 +73,7 @@ type CreateSubnetInput struct { // 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 + DryRun *bool // The IPv6 network range for the subnet, in CIDR notation. The subnet size must // use a /64 prefix length. @@ -96,7 +96,7 @@ type CreateSubnetOutput struct { ResultMetadata middleware.Metadata } -func addOperationCreateSubnetMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationCreateSubnetMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpCreateSubnet{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateTags.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateTags.go index c07b52089..992199c75 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateTags.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateTags.go @@ -27,7 +27,7 @@ func (c *Client) CreateTags(ctx context.Context, params *CreateTagsInput, optFns params = &CreateTagsInput{} } - result, metadata, err := c.invokeOperation(ctx, "CreateTags", params, optFns, addOperationCreateTagsMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "CreateTags", params, optFns, c.addOperationCreateTagsMiddlewares) if err != nil { return nil, err } @@ -56,7 +56,7 @@ type CreateTagsInput struct { // 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 + DryRun *bool } type CreateTagsOutput struct { @@ -64,7 +64,7 @@ type CreateTagsOutput struct { ResultMetadata middleware.Metadata } -func addOperationCreateTagsMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationCreateTagsMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpCreateTags{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateTrafficMirrorFilter.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateTrafficMirrorFilter.go index c5aa2a786..803531985 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateTrafficMirrorFilter.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateTrafficMirrorFilter.go @@ -25,7 +25,7 @@ func (c *Client) CreateTrafficMirrorFilter(ctx context.Context, params *CreateTr params = &CreateTrafficMirrorFilterInput{} } - result, metadata, err := c.invokeOperation(ctx, "CreateTrafficMirrorFilter", params, optFns, addOperationCreateTrafficMirrorFilterMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "CreateTrafficMirrorFilter", params, optFns, c.addOperationCreateTrafficMirrorFilterMiddlewares) if err != nil { return nil, err } @@ -49,7 +49,7 @@ type CreateTrafficMirrorFilterInput struct { // 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 + DryRun *bool // The tags to assign to a Traffic Mirror filter. TagSpecifications []types.TagSpecification @@ -69,7 +69,7 @@ type CreateTrafficMirrorFilterOutput struct { ResultMetadata middleware.Metadata } -func addOperationCreateTrafficMirrorFilterMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationCreateTrafficMirrorFilterMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpCreateTrafficMirrorFilter{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateTrafficMirrorFilterRule.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateTrafficMirrorFilterRule.go index d14bffe3d..ddd48ed30 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateTrafficMirrorFilterRule.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateTrafficMirrorFilterRule.go @@ -20,7 +20,7 @@ func (c *Client) CreateTrafficMirrorFilterRule(ctx context.Context, params *Crea params = &CreateTrafficMirrorFilterRuleInput{} } - result, metadata, err := c.invokeOperation(ctx, "CreateTrafficMirrorFilterRule", params, optFns, addOperationCreateTrafficMirrorFilterRuleMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "CreateTrafficMirrorFilterRule", params, optFns, c.addOperationCreateTrafficMirrorFilterRuleMiddlewares) if err != nil { return nil, err } @@ -47,7 +47,7 @@ type CreateTrafficMirrorFilterRuleInput struct { // order by rule number. // // This member is required. - RuleNumber int32 + RuleNumber *int32 // The source CIDR block to assign to the Traffic Mirror rule. // @@ -79,13 +79,13 @@ type CreateTrafficMirrorFilterRuleInput struct { // 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 + DryRun *bool // The protocol, for example UDP, to assign to the Traffic Mirror rule. For // information about the protocol value, see Protocol Numbers // (https://www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml) on // the Internet Assigned Numbers Authority (IANA) website. - Protocol int32 + Protocol *int32 // The source port range. SourcePortRange *types.TrafficMirrorPortRangeRequest @@ -105,7 +105,7 @@ type CreateTrafficMirrorFilterRuleOutput struct { ResultMetadata middleware.Metadata } -func addOperationCreateTrafficMirrorFilterRuleMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationCreateTrafficMirrorFilterRuleMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpCreateTrafficMirrorFilterRule{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateTrafficMirrorSession.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateTrafficMirrorSession.go index 6ae79b6a9..04596ea10 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateTrafficMirrorSession.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateTrafficMirrorSession.go @@ -26,7 +26,7 @@ func (c *Client) CreateTrafficMirrorSession(ctx context.Context, params *CreateT params = &CreateTrafficMirrorSessionInput{} } - result, metadata, err := c.invokeOperation(ctx, "CreateTrafficMirrorSession", params, optFns, addOperationCreateTrafficMirrorSessionMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "CreateTrafficMirrorSession", params, optFns, c.addOperationCreateTrafficMirrorSessionMiddlewares) if err != nil { return nil, err } @@ -48,7 +48,7 @@ type CreateTrafficMirrorSessionInput struct { // is the one that mirrors the packets. Valid values are 1-32766. // // This member is required. - SessionNumber int32 + SessionNumber *int32 // The ID of the Traffic Mirror filter. // @@ -72,7 +72,7 @@ type CreateTrafficMirrorSessionInput struct { // 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 + DryRun *bool // The number of bytes in each packet to mirror. These are bytes after the VXLAN // header. Do not specify this parameter when you want to mirror the entire packet. @@ -81,7 +81,7 @@ type CreateTrafficMirrorSessionInput struct { // bytes that meet the filter criteria are copied to the target. If you do not want // to mirror the entire packet, use the PacketLength parameter to specify the // number of bytes in each packet to mirror. - PacketLength int32 + PacketLength *int32 // The tags to assign to a Traffic Mirror session. TagSpecifications []types.TagSpecification @@ -89,7 +89,7 @@ type CreateTrafficMirrorSessionInput struct { // The VXLAN ID for the Traffic Mirror session. For more information about the // VXLAN protocol, see RFC 7348 (https://tools.ietf.org/html/rfc7348). If you do // not specify a VirtualNetworkId, an account-wide unique id is chosen at random. - VirtualNetworkId int32 + VirtualNetworkId *int32 } type CreateTrafficMirrorSessionOutput struct { @@ -106,7 +106,7 @@ type CreateTrafficMirrorSessionOutput struct { ResultMetadata middleware.Metadata } -func addOperationCreateTrafficMirrorSessionMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationCreateTrafficMirrorSessionMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpCreateTrafficMirrorSession{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateTrafficMirrorTarget.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateTrafficMirrorTarget.go index 724b8f40f..b70df8681 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateTrafficMirrorTarget.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateTrafficMirrorTarget.go @@ -24,7 +24,7 @@ func (c *Client) CreateTrafficMirrorTarget(ctx context.Context, params *CreateTr params = &CreateTrafficMirrorTargetInput{} } - result, metadata, err := c.invokeOperation(ctx, "CreateTrafficMirrorTarget", params, optFns, addOperationCreateTrafficMirrorTargetMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "CreateTrafficMirrorTarget", params, optFns, c.addOperationCreateTrafficMirrorTargetMiddlewares) if err != nil { return nil, err } @@ -48,7 +48,7 @@ type CreateTrafficMirrorTargetInput struct { // 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 + DryRun *bool // The network interface ID that is associated with the target. NetworkInterfaceId *string @@ -75,7 +75,7 @@ type CreateTrafficMirrorTargetOutput struct { ResultMetadata middleware.Metadata } -func addOperationCreateTrafficMirrorTargetMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationCreateTrafficMirrorTargetMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpCreateTrafficMirrorTarget{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateTransitGateway.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateTransitGateway.go index 77177556f..c5afff29d 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateTransitGateway.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateTransitGateway.go @@ -32,7 +32,7 @@ func (c *Client) CreateTransitGateway(ctx context.Context, params *CreateTransit params = &CreateTransitGatewayInput{} } - result, metadata, err := c.invokeOperation(ctx, "CreateTransitGateway", params, optFns, addOperationCreateTransitGatewayMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "CreateTransitGateway", params, optFns, c.addOperationCreateTransitGatewayMiddlewares) if err != nil { return nil, err } @@ -51,7 +51,7 @@ type CreateTransitGatewayInput struct { // 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 + DryRun *bool // The transit gateway options. Options *types.TransitGatewayRequestOptions @@ -69,7 +69,7 @@ type CreateTransitGatewayOutput struct { ResultMetadata middleware.Metadata } -func addOperationCreateTransitGatewayMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationCreateTransitGatewayMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpCreateTransitGateway{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateTransitGatewayConnect.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateTransitGatewayConnect.go index 25907320c..1bc9aaa30 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateTransitGatewayConnect.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateTransitGatewayConnect.go @@ -21,7 +21,7 @@ func (c *Client) CreateTransitGatewayConnect(ctx context.Context, params *Create params = &CreateTransitGatewayConnectInput{} } - result, metadata, err := c.invokeOperation(ctx, "CreateTransitGatewayConnect", params, optFns, addOperationCreateTransitGatewayConnectMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "CreateTransitGatewayConnect", params, optFns, c.addOperationCreateTransitGatewayConnectMiddlewares) if err != nil { return nil, err } @@ -48,7 +48,7 @@ type CreateTransitGatewayConnectInput struct { // 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 + DryRun *bool // The tags to apply to the Connect attachment. TagSpecifications []types.TagSpecification @@ -63,7 +63,7 @@ type CreateTransitGatewayConnectOutput struct { ResultMetadata middleware.Metadata } -func addOperationCreateTransitGatewayConnectMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationCreateTransitGatewayConnectMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpCreateTransitGatewayConnect{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateTransitGatewayConnectPeer.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateTransitGatewayConnectPeer.go index 2ec92aa1c..f81c1c9c2 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateTransitGatewayConnectPeer.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateTransitGatewayConnectPeer.go @@ -22,7 +22,7 @@ func (c *Client) CreateTransitGatewayConnectPeer(ctx context.Context, params *Cr params = &CreateTransitGatewayConnectPeerInput{} } - result, metadata, err := c.invokeOperation(ctx, "CreateTransitGatewayConnectPeer", params, optFns, addOperationCreateTransitGatewayConnectPeerMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "CreateTransitGatewayConnectPeer", params, optFns, c.addOperationCreateTransitGatewayConnectPeerMiddlewares) if err != nil { return nil, err } @@ -60,7 +60,7 @@ type CreateTransitGatewayConnectPeerInput struct { // 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 + DryRun *bool // The tags to apply to the Connect peer. TagSpecifications []types.TagSpecification @@ -81,7 +81,7 @@ type CreateTransitGatewayConnectPeerOutput struct { ResultMetadata middleware.Metadata } -func addOperationCreateTransitGatewayConnectPeerMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationCreateTransitGatewayConnectPeerMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpCreateTransitGatewayConnectPeer{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateTransitGatewayMulticastDomain.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateTransitGatewayMulticastDomain.go index 91ede349b..02039ab49 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateTransitGatewayMulticastDomain.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateTransitGatewayMulticastDomain.go @@ -21,7 +21,7 @@ func (c *Client) CreateTransitGatewayMulticastDomain(ctx context.Context, params params = &CreateTransitGatewayMulticastDomainInput{} } - result, metadata, err := c.invokeOperation(ctx, "CreateTransitGatewayMulticastDomain", params, optFns, addOperationCreateTransitGatewayMulticastDomainMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "CreateTransitGatewayMulticastDomain", params, optFns, c.addOperationCreateTransitGatewayMulticastDomainMiddlewares) if err != nil { return nil, err } @@ -42,7 +42,7 @@ type CreateTransitGatewayMulticastDomainInput struct { // 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 + DryRun *bool // The options for the transit gateway multicast domain. Options *types.CreateTransitGatewayMulticastDomainRequestOptions @@ -60,7 +60,7 @@ type CreateTransitGatewayMulticastDomainOutput struct { ResultMetadata middleware.Metadata } -func addOperationCreateTransitGatewayMulticastDomainMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationCreateTransitGatewayMulticastDomainMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpCreateTransitGatewayMulticastDomain{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateTransitGatewayPeeringAttachment.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateTransitGatewayPeeringAttachment.go index c035bf215..0da7cb71e 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateTransitGatewayPeeringAttachment.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateTransitGatewayPeeringAttachment.go @@ -21,7 +21,7 @@ func (c *Client) CreateTransitGatewayPeeringAttachment(ctx context.Context, para params = &CreateTransitGatewayPeeringAttachmentInput{} } - result, metadata, err := c.invokeOperation(ctx, "CreateTransitGatewayPeeringAttachment", params, optFns, addOperationCreateTransitGatewayPeeringAttachmentMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "CreateTransitGatewayPeeringAttachment", params, optFns, c.addOperationCreateTransitGatewayPeeringAttachmentMiddlewares) if err != nil { return nil, err } @@ -57,7 +57,7 @@ type CreateTransitGatewayPeeringAttachmentInput struct { // 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 + DryRun *bool // The tags to apply to the transit gateway peering attachment. TagSpecifications []types.TagSpecification @@ -72,7 +72,7 @@ type CreateTransitGatewayPeeringAttachmentOutput struct { ResultMetadata middleware.Metadata } -func addOperationCreateTransitGatewayPeeringAttachmentMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationCreateTransitGatewayPeeringAttachmentMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpCreateTransitGatewayPeeringAttachment{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateTransitGatewayPrefixListReference.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateTransitGatewayPrefixListReference.go index e57572794..a2d71d63e 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateTransitGatewayPrefixListReference.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateTransitGatewayPrefixListReference.go @@ -18,7 +18,7 @@ func (c *Client) CreateTransitGatewayPrefixListReference(ctx context.Context, pa params = &CreateTransitGatewayPrefixListReferenceInput{} } - result, metadata, err := c.invokeOperation(ctx, "CreateTransitGatewayPrefixListReference", params, optFns, addOperationCreateTransitGatewayPrefixListReferenceMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "CreateTransitGatewayPrefixListReference", params, optFns, c.addOperationCreateTransitGatewayPrefixListReferenceMiddlewares) if err != nil { return nil, err } @@ -41,13 +41,13 @@ type CreateTransitGatewayPrefixListReferenceInput struct { TransitGatewayRouteTableId *string // Indicates whether to drop traffic that matches this route. - Blackhole bool + Blackhole *bool // 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 + DryRun *bool // The ID of the attachment to which traffic is routed. TransitGatewayAttachmentId *string @@ -62,7 +62,7 @@ type CreateTransitGatewayPrefixListReferenceOutput struct { ResultMetadata middleware.Metadata } -func addOperationCreateTransitGatewayPrefixListReferenceMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationCreateTransitGatewayPrefixListReferenceMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpCreateTransitGatewayPrefixListReference{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateTransitGatewayRoute.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateTransitGatewayRoute.go index 7d36b43b3..668642153 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateTransitGatewayRoute.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateTransitGatewayRoute.go @@ -17,7 +17,7 @@ func (c *Client) CreateTransitGatewayRoute(ctx context.Context, params *CreateTr params = &CreateTransitGatewayRouteInput{} } - result, metadata, err := c.invokeOperation(ctx, "CreateTransitGatewayRoute", params, optFns, addOperationCreateTransitGatewayRouteMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "CreateTransitGatewayRoute", params, optFns, c.addOperationCreateTransitGatewayRouteMiddlewares) if err != nil { return nil, err } @@ -41,13 +41,13 @@ type CreateTransitGatewayRouteInput struct { TransitGatewayRouteTableId *string // Indicates whether to drop traffic that matches this route. - Blackhole bool + Blackhole *bool // 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 + DryRun *bool // The ID of the attachment. TransitGatewayAttachmentId *string @@ -62,7 +62,7 @@ type CreateTransitGatewayRouteOutput struct { ResultMetadata middleware.Metadata } -func addOperationCreateTransitGatewayRouteMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationCreateTransitGatewayRouteMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpCreateTransitGatewayRoute{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateTransitGatewayRouteTable.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateTransitGatewayRouteTable.go index dbacb317f..36ecc8bfa 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateTransitGatewayRouteTable.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateTransitGatewayRouteTable.go @@ -17,7 +17,7 @@ func (c *Client) CreateTransitGatewayRouteTable(ctx context.Context, params *Cre params = &CreateTransitGatewayRouteTableInput{} } - result, metadata, err := c.invokeOperation(ctx, "CreateTransitGatewayRouteTable", params, optFns, addOperationCreateTransitGatewayRouteTableMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "CreateTransitGatewayRouteTable", params, optFns, c.addOperationCreateTransitGatewayRouteTableMiddlewares) if err != nil { return nil, err } @@ -38,7 +38,7 @@ type CreateTransitGatewayRouteTableInput struct { // 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 + DryRun *bool // The tags to apply to the transit gateway route table. TagSpecifications []types.TagSpecification @@ -53,7 +53,7 @@ type CreateTransitGatewayRouteTableOutput struct { ResultMetadata middleware.Metadata } -func addOperationCreateTransitGatewayRouteTableMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationCreateTransitGatewayRouteTableMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpCreateTransitGatewayRouteTable{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateTransitGatewayVpcAttachment.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateTransitGatewayVpcAttachment.go index 94b5501a7..7b71881a0 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateTransitGatewayVpcAttachment.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateTransitGatewayVpcAttachment.go @@ -21,7 +21,7 @@ func (c *Client) CreateTransitGatewayVpcAttachment(ctx context.Context, params * params = &CreateTransitGatewayVpcAttachmentInput{} } - result, metadata, err := c.invokeOperation(ctx, "CreateTransitGatewayVpcAttachment", params, optFns, addOperationCreateTransitGatewayVpcAttachmentMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "CreateTransitGatewayVpcAttachment", params, optFns, c.addOperationCreateTransitGatewayVpcAttachmentMiddlewares) if err != nil { return nil, err } @@ -55,7 +55,7 @@ type CreateTransitGatewayVpcAttachmentInput struct { // 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 + DryRun *bool // The VPC attachment options. Options *types.CreateTransitGatewayVpcAttachmentRequestOptions @@ -73,7 +73,7 @@ type CreateTransitGatewayVpcAttachmentOutput struct { ResultMetadata middleware.Metadata } -func addOperationCreateTransitGatewayVpcAttachmentMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationCreateTransitGatewayVpcAttachmentMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpCreateTransitGatewayVpcAttachment{}, middleware.After) if err != nil { return err 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 af40a0837..4d949b928 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 @@ -32,7 +32,7 @@ func (c *Client) CreateVolume(ctx context.Context, params *CreateVolumeInput, op params = &CreateVolumeInput{} } - result, metadata, err := c.invokeOperation(ctx, "CreateVolume", params, optFns, addOperationCreateVolumeMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "CreateVolume", params, optFns, c.addOperationCreateVolumeMiddlewares) if err != nil { return nil, err } @@ -53,7 +53,7 @@ type CreateVolumeInput struct { // 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 + DryRun *bool // Indicates whether the volume should be encrypted. The effect of setting the // encryption state to true depends on the volume origin (new or from a snapshot), @@ -64,7 +64,7 @@ type CreateVolumeInput struct { // must be attached to instances that support Amazon EBS encryption. For more // information, see Supported instance types // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSEncryption.html#EBSEncryption_supported_instances). - Encrypted bool + Encrypted *bool // The number of I/O operations per second (IOPS). For gp3, io1, and io2 volumes, // this represents the number of IOPS that are provisioned for the volume. For gp2 @@ -85,7 +85,7 @@ type CreateVolumeInput struct { // Other instance families guarantee performance up to 32,000 IOPS. This parameter // is required for io1 and io2 volumes. The default for gp3 volumes is 3,000 IOPS. // This parameter is not supported for gp2, st1, sc1, or standard volumes. - Iops int32 + Iops *int32 // The identifier of the AWS Key Management Service (AWS KMS) customer master key // (CMK) to use for Amazon EBS encryption. If this parameter is not specified, your @@ -117,7 +117,7 @@ type CreateVolumeInput struct { // volumes only. For more information, see Amazon EBS Multi-Attach // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-volumes-multi.html) in // the Amazon Elastic Compute Cloud User Guide. - MultiAttachEnabled bool + MultiAttachEnabled *bool // The Amazon Resource Name (ARN) of the Outpost. OutpostArn *string @@ -136,7 +136,7 @@ type CreateVolumeInput struct { // // * standard: // 1-1,024 - Size int32 + Size *int32 // The snapshot from which to create the volume. You must specify either a snapshot // ID or a volume size. @@ -148,7 +148,7 @@ type CreateVolumeInput struct { // The throughput to provision for a volume, with a maximum of 1,000 MiB/s. This // parameter is valid only for gp3 volumes. Valid Range: Minimum value of 125. // Maximum value of 1000. - Throughput int32 + Throughput *int32 // The volume type. This parameter can be one of the following values: // @@ -184,16 +184,16 @@ type CreateVolumeOutput struct { CreateTime *time.Time // Indicates whether the volume is encrypted. - Encrypted bool + Encrypted *bool // Indicates whether the volume was created using fast snapshot restore. - FastRestored bool + FastRestored *bool // The number of I/O operations per second (IOPS). For gp3, io1, and io2 volumes, // this represents the number of IOPS that are provisioned for the volume. For gp2 // volumes, this represents the baseline performance of the volume and the rate at // which the volume accumulates I/O credits for bursting. - Iops int32 + Iops *int32 // The Amazon Resource Name (ARN) of the AWS Key Management Service (AWS KMS) // customer master key (CMK) that was used to protect the volume encryption key for @@ -201,13 +201,13 @@ type CreateVolumeOutput struct { KmsKeyId *string // Indicates whether Amazon EBS Multi-Attach is enabled. - MultiAttachEnabled bool + MultiAttachEnabled *bool // The Amazon Resource Name (ARN) of the Outpost. OutpostArn *string // The size of the volume, in GiBs. - Size int32 + Size *int32 // The snapshot from which the volume was created, if applicable. SnapshotId *string @@ -219,7 +219,7 @@ type CreateVolumeOutput struct { Tags []types.Tag // The throughput that the volume supports, in MiB/s. - Throughput int32 + Throughput *int32 // The ID of the volume. VolumeId *string @@ -231,7 +231,7 @@ type CreateVolumeOutput struct { ResultMetadata middleware.Metadata } -func addOperationCreateVolumeMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationCreateVolumeMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpCreateVolume{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateVpc.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateVpc.go index de5ec97cd..272fb626c 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateVpc.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateVpc.go @@ -35,7 +35,7 @@ func (c *Client) CreateVpc(ctx context.Context, params *CreateVpcInput, optFns . params = &CreateVpcInput{} } - result, metadata, err := c.invokeOperation(ctx, "CreateVpc", params, optFns, addOperationCreateVpcMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "CreateVpc", params, optFns, c.addOperationCreateVpcMiddlewares) if err != nil { return nil, err } @@ -57,13 +57,13 @@ type CreateVpcInput struct { // Requests an Amazon-provided IPv6 CIDR block with a /56 prefix length for the // VPC. You cannot specify the range of IP addresses, or the size of the CIDR // block. - AmazonProvidedIpv6CidrBlock bool + AmazonProvidedIpv6CidrBlock *bool // 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 + DryRun *bool // The tenancy options for instances launched into the VPC. For default, instances // are launched with shared tenancy by default. You can launch instances with any @@ -100,7 +100,7 @@ type CreateVpcOutput struct { ResultMetadata middleware.Metadata } -func addOperationCreateVpcMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationCreateVpcMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpCreateVpc{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateVpcEndpoint.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateVpcEndpoint.go index a593e1f0a..0bc3500b1 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateVpcEndpoint.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateVpcEndpoint.go @@ -33,7 +33,7 @@ func (c *Client) CreateVpcEndpoint(ctx context.Context, params *CreateVpcEndpoin params = &CreateVpcEndpointInput{} } - result, metadata, err := c.invokeOperation(ctx, "CreateVpcEndpoint", params, optFns, addOperationCreateVpcEndpointMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "CreateVpcEndpoint", params, optFns, c.addOperationCreateVpcEndpointMiddlewares) if err != nil { return nil, err } @@ -66,7 +66,7 @@ type CreateVpcEndpointInput struct { // 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 + DryRun *bool // (Interface and gateway endpoints) A policy to attach to the endpoint that // controls access to the service. The policy must be in valid JSON format. If this @@ -84,7 +84,7 @@ type CreateVpcEndpointInput struct { // zone, you must set the following VPC attributes to true: enableDnsHostnames and // enableDnsSupport. Use ModifyVpcAttribute to set the VPC attributes. Default: // true - PrivateDnsEnabled bool + PrivateDnsEnabled *bool // (Gateway endpoint) One or more route table IDs. RouteTableIds []string @@ -119,7 +119,7 @@ type CreateVpcEndpointOutput struct { ResultMetadata middleware.Metadata } -func addOperationCreateVpcEndpointMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationCreateVpcEndpointMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpCreateVpcEndpoint{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateVpcEndpointConnectionNotification.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateVpcEndpointConnectionNotification.go index db25817a2..57305fe2f 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateVpcEndpointConnectionNotification.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateVpcEndpointConnectionNotification.go @@ -22,7 +22,7 @@ func (c *Client) CreateVpcEndpointConnectionNotification(ctx context.Context, pa params = &CreateVpcEndpointConnectionNotificationInput{} } - result, metadata, err := c.invokeOperation(ctx, "CreateVpcEndpointConnectionNotification", params, optFns, addOperationCreateVpcEndpointConnectionNotificationMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "CreateVpcEndpointConnectionNotification", params, optFns, c.addOperationCreateVpcEndpointConnectionNotificationMiddlewares) if err != nil { return nil, err } @@ -54,7 +54,7 @@ type CreateVpcEndpointConnectionNotificationInput struct { // 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 + DryRun *bool // The ID of the endpoint service. ServiceId *string @@ -76,7 +76,7 @@ type CreateVpcEndpointConnectionNotificationOutput struct { ResultMetadata middleware.Metadata } -func addOperationCreateVpcEndpointConnectionNotificationMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationCreateVpcEndpointConnectionNotificationMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpCreateVpcEndpointConnectionNotification{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateVpcEndpointServiceConfiguration.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateVpcEndpointServiceConfiguration.go index 9ca3ef26f..11327ef38 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateVpcEndpointServiceConfiguration.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateVpcEndpointServiceConfiguration.go @@ -38,7 +38,7 @@ func (c *Client) CreateVpcEndpointServiceConfiguration(ctx context.Context, para params = &CreateVpcEndpointServiceConfigurationInput{} } - result, metadata, err := c.invokeOperation(ctx, "CreateVpcEndpointServiceConfiguration", params, optFns, addOperationCreateVpcEndpointServiceConfigurationMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "CreateVpcEndpointServiceConfiguration", params, optFns, c.addOperationCreateVpcEndpointServiceConfigurationMiddlewares) if err != nil { return nil, err } @@ -52,7 +52,7 @@ type CreateVpcEndpointServiceConfigurationInput struct { // Indicates whether requests from service consumers to create an endpoint to your // service must be accepted. To accept a request, use AcceptVpcEndpointConnections. - AcceptanceRequired bool + AcceptanceRequired *bool // Unique, case-sensitive identifier that you provide to ensure the idempotency of // the request. For more information, see How to Ensure Idempotency @@ -63,7 +63,7 @@ type CreateVpcEndpointServiceConfigurationInput struct { // 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 + DryRun *bool // The Amazon Resource Names (ARNs) of one or more Gateway Load Balancers. GatewayLoadBalancerArns []string @@ -93,7 +93,7 @@ type CreateVpcEndpointServiceConfigurationOutput struct { ResultMetadata middleware.Metadata } -func addOperationCreateVpcEndpointServiceConfigurationMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationCreateVpcEndpointServiceConfigurationMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpCreateVpcEndpointServiceConfiguration{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateVpcPeeringConnection.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateVpcPeeringConnection.go index c7daf9d77..cfaa55bae 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateVpcPeeringConnection.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateVpcPeeringConnection.go @@ -28,7 +28,7 @@ func (c *Client) CreateVpcPeeringConnection(ctx context.Context, params *CreateV params = &CreateVpcPeeringConnectionInput{} } - result, metadata, err := c.invokeOperation(ctx, "CreateVpcPeeringConnection", params, optFns, addOperationCreateVpcPeeringConnectionMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "CreateVpcPeeringConnection", params, optFns, c.addOperationCreateVpcPeeringConnectionMiddlewares) if err != nil { return nil, err } @@ -44,7 +44,7 @@ type CreateVpcPeeringConnectionInput struct { // 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 + DryRun *bool // The AWS account ID of the owner of the accepter VPC. Default: Your AWS account // ID @@ -75,7 +75,7 @@ type CreateVpcPeeringConnectionOutput struct { ResultMetadata middleware.Metadata } -func addOperationCreateVpcPeeringConnectionMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationCreateVpcPeeringConnectionMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpCreateVpcPeeringConnection{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateVpnConnection.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateVpnConnection.go index 207abd053..c4744c378 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateVpnConnection.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateVpnConnection.go @@ -29,7 +29,7 @@ func (c *Client) CreateVpnConnection(ctx context.Context, params *CreateVpnConne params = &CreateVpnConnectionInput{} } - result, metadata, err := c.invokeOperation(ctx, "CreateVpnConnection", params, optFns, addOperationCreateVpnConnectionMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "CreateVpnConnection", params, optFns, c.addOperationCreateVpnConnectionMiddlewares) if err != nil { return nil, err } @@ -56,7 +56,7 @@ type CreateVpnConnectionInput struct { // 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 + DryRun *bool // The options for the VPN connection. Options *types.VpnConnectionOptionsSpecification @@ -83,7 +83,7 @@ type CreateVpnConnectionOutput struct { ResultMetadata middleware.Metadata } -func addOperationCreateVpnConnectionMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationCreateVpnConnectionMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpCreateVpnConnection{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateVpnConnectionRoute.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateVpnConnectionRoute.go index 85af2972c..8eced261d 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateVpnConnectionRoute.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateVpnConnectionRoute.go @@ -21,7 +21,7 @@ func (c *Client) CreateVpnConnectionRoute(ctx context.Context, params *CreateVpn params = &CreateVpnConnectionRouteInput{} } - result, metadata, err := c.invokeOperation(ctx, "CreateVpnConnectionRoute", params, optFns, addOperationCreateVpnConnectionRouteMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "CreateVpnConnectionRoute", params, optFns, c.addOperationCreateVpnConnectionRouteMiddlewares) if err != nil { return nil, err } @@ -50,7 +50,7 @@ type CreateVpnConnectionRouteOutput struct { ResultMetadata middleware.Metadata } -func addOperationCreateVpnConnectionRouteMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationCreateVpnConnectionRouteMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpCreateVpnConnectionRoute{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateVpnGateway.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateVpnGateway.go index a8ecc3965..f39af6ce3 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateVpnGateway.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateVpnGateway.go @@ -21,7 +21,7 @@ func (c *Client) CreateVpnGateway(ctx context.Context, params *CreateVpnGatewayI params = &CreateVpnGatewayInput{} } - result, metadata, err := c.invokeOperation(ctx, "CreateVpnGateway", params, optFns, addOperationCreateVpnGatewayMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "CreateVpnGateway", params, optFns, c.addOperationCreateVpnGatewayMiddlewares) if err != nil { return nil, err } @@ -43,7 +43,7 @@ type CreateVpnGatewayInput struct { // If you're using a 16-bit ASN, it must be in the 64512 to 65534 range. If you're // using a 32-bit ASN, it must be in the 4200000000 to 4294967294 range. Default: // 64512 - AmazonSideAsn int64 + AmazonSideAsn *int64 // The Availability Zone for the virtual private gateway. AvailabilityZone *string @@ -52,7 +52,7 @@ type CreateVpnGatewayInput struct { // 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 + DryRun *bool // The tags to apply to the virtual private gateway. TagSpecifications []types.TagSpecification @@ -68,7 +68,7 @@ type CreateVpnGatewayOutput struct { ResultMetadata middleware.Metadata } -func addOperationCreateVpnGatewayMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationCreateVpnGatewayMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpCreateVpnGateway{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteCarrierGateway.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteCarrierGateway.go index e6cf51167..1b1f9fe85 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteCarrierGateway.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteCarrierGateway.go @@ -20,7 +20,7 @@ func (c *Client) DeleteCarrierGateway(ctx context.Context, params *DeleteCarrier params = &DeleteCarrierGatewayInput{} } - result, metadata, err := c.invokeOperation(ctx, "DeleteCarrierGateway", params, optFns, addOperationDeleteCarrierGatewayMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "DeleteCarrierGateway", params, optFns, c.addOperationDeleteCarrierGatewayMiddlewares) if err != nil { return nil, err } @@ -41,7 +41,7 @@ type DeleteCarrierGatewayInput struct { // 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 + DryRun *bool } type DeleteCarrierGatewayOutput struct { @@ -53,7 +53,7 @@ type DeleteCarrierGatewayOutput struct { ResultMetadata middleware.Metadata } -func addOperationDeleteCarrierGatewayMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationDeleteCarrierGatewayMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpDeleteCarrierGateway{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteClientVpnEndpoint.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteClientVpnEndpoint.go index a1e9b2186..2865db49e 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteClientVpnEndpoint.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteClientVpnEndpoint.go @@ -18,7 +18,7 @@ func (c *Client) DeleteClientVpnEndpoint(ctx context.Context, params *DeleteClie params = &DeleteClientVpnEndpointInput{} } - result, metadata, err := c.invokeOperation(ctx, "DeleteClientVpnEndpoint", params, optFns, addOperationDeleteClientVpnEndpointMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "DeleteClientVpnEndpoint", params, optFns, c.addOperationDeleteClientVpnEndpointMiddlewares) if err != nil { return nil, err } @@ -39,7 +39,7 @@ type DeleteClientVpnEndpointInput struct { // 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 + DryRun *bool } type DeleteClientVpnEndpointOutput struct { @@ -51,7 +51,7 @@ type DeleteClientVpnEndpointOutput struct { ResultMetadata middleware.Metadata } -func addOperationDeleteClientVpnEndpointMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationDeleteClientVpnEndpointMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpDeleteClientVpnEndpoint{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteClientVpnRoute.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteClientVpnRoute.go index 666715408..e1a94675e 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteClientVpnRoute.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteClientVpnRoute.go @@ -21,7 +21,7 @@ func (c *Client) DeleteClientVpnRoute(ctx context.Context, params *DeleteClientV params = &DeleteClientVpnRouteInput{} } - result, metadata, err := c.invokeOperation(ctx, "DeleteClientVpnRoute", params, optFns, addOperationDeleteClientVpnRouteMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "DeleteClientVpnRoute", params, optFns, c.addOperationDeleteClientVpnRouteMiddlewares) if err != nil { return nil, err } @@ -47,7 +47,7 @@ type DeleteClientVpnRouteInput struct { // 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 + DryRun *bool // The ID of the target subnet used by the route. TargetVpcSubnetId *string @@ -62,7 +62,7 @@ type DeleteClientVpnRouteOutput struct { ResultMetadata middleware.Metadata } -func addOperationDeleteClientVpnRouteMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationDeleteClientVpnRouteMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpDeleteClientVpnRoute{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteCustomerGateway.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteCustomerGateway.go index 33734a5b8..b4618650b 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteCustomerGateway.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteCustomerGateway.go @@ -17,7 +17,7 @@ func (c *Client) DeleteCustomerGateway(ctx context.Context, params *DeleteCustom params = &DeleteCustomerGatewayInput{} } - result, metadata, err := c.invokeOperation(ctx, "DeleteCustomerGateway", params, optFns, addOperationDeleteCustomerGatewayMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "DeleteCustomerGateway", params, optFns, c.addOperationDeleteCustomerGatewayMiddlewares) if err != nil { return nil, err } @@ -39,7 +39,7 @@ type DeleteCustomerGatewayInput struct { // 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 + DryRun *bool } type DeleteCustomerGatewayOutput struct { @@ -47,7 +47,7 @@ type DeleteCustomerGatewayOutput struct { ResultMetadata middleware.Metadata } -func addOperationDeleteCustomerGatewayMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationDeleteCustomerGatewayMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpDeleteCustomerGateway{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteDhcpOptions.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteDhcpOptions.go index c59abd57f..aa62b0da4 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteDhcpOptions.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteDhcpOptions.go @@ -19,7 +19,7 @@ func (c *Client) DeleteDhcpOptions(ctx context.Context, params *DeleteDhcpOption params = &DeleteDhcpOptionsInput{} } - result, metadata, err := c.invokeOperation(ctx, "DeleteDhcpOptions", params, optFns, addOperationDeleteDhcpOptionsMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "DeleteDhcpOptions", params, optFns, c.addOperationDeleteDhcpOptionsMiddlewares) if err != nil { return nil, err } @@ -40,7 +40,7 @@ type DeleteDhcpOptionsInput struct { // 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 + DryRun *bool } type DeleteDhcpOptionsOutput struct { @@ -48,7 +48,7 @@ type DeleteDhcpOptionsOutput struct { ResultMetadata middleware.Metadata } -func addOperationDeleteDhcpOptionsMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationDeleteDhcpOptionsMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpDeleteDhcpOptions{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteEgressOnlyInternetGateway.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteEgressOnlyInternetGateway.go index 1f8e859be..c175bb183 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteEgressOnlyInternetGateway.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteEgressOnlyInternetGateway.go @@ -16,7 +16,7 @@ func (c *Client) DeleteEgressOnlyInternetGateway(ctx context.Context, params *De params = &DeleteEgressOnlyInternetGatewayInput{} } - result, metadata, err := c.invokeOperation(ctx, "DeleteEgressOnlyInternetGateway", params, optFns, addOperationDeleteEgressOnlyInternetGatewayMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "DeleteEgressOnlyInternetGateway", params, optFns, c.addOperationDeleteEgressOnlyInternetGatewayMiddlewares) if err != nil { return nil, err } @@ -37,19 +37,19 @@ type DeleteEgressOnlyInternetGatewayInput struct { // 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 + DryRun *bool } type DeleteEgressOnlyInternetGatewayOutput struct { // Returns true if the request succeeds; otherwise, it returns an error. - ReturnCode bool + ReturnCode *bool // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata } -func addOperationDeleteEgressOnlyInternetGatewayMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationDeleteEgressOnlyInternetGatewayMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpDeleteEgressOnlyInternetGateway{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteFleets.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteFleets.go index 67dab2877..c28e40bb7 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteFleets.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteFleets.go @@ -31,13 +31,13 @@ import ( // // For more information, see Deleting an EC2 Fleet // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/manage-ec2-fleet.html#delete-fleet) -// in the Amazon Elastic Compute Cloud User Guide. +// in the Amazon EC2 User Guide. func (c *Client) DeleteFleets(ctx context.Context, params *DeleteFleetsInput, optFns ...func(*Options)) (*DeleteFleetsOutput, error) { if params == nil { params = &DeleteFleetsInput{} } - result, metadata, err := c.invokeOperation(ctx, "DeleteFleets", params, optFns, addOperationDeleteFleetsMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "DeleteFleets", params, optFns, c.addOperationDeleteFleetsMiddlewares) if err != nil { return nil, err } @@ -62,13 +62,13 @@ type DeleteFleetsInput struct { // supported. // // This member is required. - TerminateInstances bool + TerminateInstances *bool // 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 + DryRun *bool } type DeleteFleetsOutput struct { @@ -83,7 +83,7 @@ type DeleteFleetsOutput struct { ResultMetadata middleware.Metadata } -func addOperationDeleteFleetsMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationDeleteFleetsMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpDeleteFleets{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteFlowLogs.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteFlowLogs.go index b1849b7dd..ac9e47fb6 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteFlowLogs.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteFlowLogs.go @@ -17,7 +17,7 @@ func (c *Client) DeleteFlowLogs(ctx context.Context, params *DeleteFlowLogsInput params = &DeleteFlowLogsInput{} } - result, metadata, err := c.invokeOperation(ctx, "DeleteFlowLogs", params, optFns, addOperationDeleteFlowLogsMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "DeleteFlowLogs", params, optFns, c.addOperationDeleteFlowLogsMiddlewares) if err != nil { return nil, err } @@ -38,7 +38,7 @@ type DeleteFlowLogsInput struct { // 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 + DryRun *bool } type DeleteFlowLogsOutput struct { @@ -50,7 +50,7 @@ type DeleteFlowLogsOutput struct { ResultMetadata middleware.Metadata } -func addOperationDeleteFlowLogsMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationDeleteFlowLogsMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpDeleteFlowLogs{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteFpgaImage.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteFpgaImage.go index 8f0fa9196..8aface341 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteFpgaImage.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteFpgaImage.go @@ -16,7 +16,7 @@ func (c *Client) DeleteFpgaImage(ctx context.Context, params *DeleteFpgaImageInp params = &DeleteFpgaImageInput{} } - result, metadata, err := c.invokeOperation(ctx, "DeleteFpgaImage", params, optFns, addOperationDeleteFpgaImageMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "DeleteFpgaImage", params, optFns, c.addOperationDeleteFpgaImageMiddlewares) if err != nil { return nil, err } @@ -37,19 +37,19 @@ type DeleteFpgaImageInput struct { // 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 + DryRun *bool } type DeleteFpgaImageOutput struct { // Is true if the request succeeds, and an error otherwise. - Return bool + Return *bool // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata } -func addOperationDeleteFpgaImageMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationDeleteFpgaImageMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpDeleteFpgaImage{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteInternetGateway.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteInternetGateway.go index 9e83d8ad5..1cfef6a47 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteInternetGateway.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteInternetGateway.go @@ -17,7 +17,7 @@ func (c *Client) DeleteInternetGateway(ctx context.Context, params *DeleteIntern params = &DeleteInternetGatewayInput{} } - result, metadata, err := c.invokeOperation(ctx, "DeleteInternetGateway", params, optFns, addOperationDeleteInternetGatewayMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "DeleteInternetGateway", params, optFns, c.addOperationDeleteInternetGatewayMiddlewares) if err != nil { return nil, err } @@ -38,7 +38,7 @@ type DeleteInternetGatewayInput struct { // 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 + DryRun *bool } type DeleteInternetGatewayOutput struct { @@ -46,7 +46,7 @@ type DeleteInternetGatewayOutput struct { ResultMetadata middleware.Metadata } -func addOperationDeleteInternetGatewayMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationDeleteInternetGatewayMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpDeleteInternetGateway{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteKeyPair.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteKeyPair.go index 192642391..fed4a3f6d 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteKeyPair.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteKeyPair.go @@ -16,7 +16,7 @@ func (c *Client) DeleteKeyPair(ctx context.Context, params *DeleteKeyPairInput, params = &DeleteKeyPairInput{} } - result, metadata, err := c.invokeOperation(ctx, "DeleteKeyPair", params, optFns, addOperationDeleteKeyPairMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "DeleteKeyPair", params, optFns, c.addOperationDeleteKeyPairMiddlewares) if err != nil { return nil, err } @@ -32,7 +32,7 @@ type DeleteKeyPairInput struct { // 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 + DryRun *bool // The name of the key pair. KeyName *string @@ -46,7 +46,7 @@ type DeleteKeyPairOutput struct { ResultMetadata middleware.Metadata } -func addOperationDeleteKeyPairMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationDeleteKeyPairMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpDeleteKeyPair{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteLaunchTemplate.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteLaunchTemplate.go index 112c24c80..f0e7247a8 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteLaunchTemplate.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteLaunchTemplate.go @@ -18,7 +18,7 @@ func (c *Client) DeleteLaunchTemplate(ctx context.Context, params *DeleteLaunchT params = &DeleteLaunchTemplateInput{} } - result, metadata, err := c.invokeOperation(ctx, "DeleteLaunchTemplate", params, optFns, addOperationDeleteLaunchTemplateMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "DeleteLaunchTemplate", params, optFns, c.addOperationDeleteLaunchTemplateMiddlewares) if err != nil { return nil, err } @@ -34,7 +34,7 @@ type DeleteLaunchTemplateInput struct { // 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 + DryRun *bool // The ID of the launch template. You must specify either the launch template ID or // launch template name in the request. @@ -54,7 +54,7 @@ type DeleteLaunchTemplateOutput struct { ResultMetadata middleware.Metadata } -func addOperationDeleteLaunchTemplateMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationDeleteLaunchTemplateMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpDeleteLaunchTemplate{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteLaunchTemplateVersions.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteLaunchTemplateVersions.go index 1dc4c1337..ed1578a40 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteLaunchTemplateVersions.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteLaunchTemplateVersions.go @@ -20,7 +20,7 @@ func (c *Client) DeleteLaunchTemplateVersions(ctx context.Context, params *Delet params = &DeleteLaunchTemplateVersionsInput{} } - result, metadata, err := c.invokeOperation(ctx, "DeleteLaunchTemplateVersions", params, optFns, addOperationDeleteLaunchTemplateVersionsMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "DeleteLaunchTemplateVersions", params, optFns, c.addOperationDeleteLaunchTemplateVersionsMiddlewares) if err != nil { return nil, err } @@ -41,7 +41,7 @@ type DeleteLaunchTemplateVersionsInput struct { // 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 + DryRun *bool // The ID of the launch template. You must specify either the launch template ID or // launch template name in the request. @@ -64,7 +64,7 @@ type DeleteLaunchTemplateVersionsOutput struct { ResultMetadata middleware.Metadata } -func addOperationDeleteLaunchTemplateVersionsMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationDeleteLaunchTemplateVersionsMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpDeleteLaunchTemplateVersions{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteLocalGatewayRoute.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteLocalGatewayRoute.go index 2eb484425..10610b7db 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteLocalGatewayRoute.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteLocalGatewayRoute.go @@ -17,7 +17,7 @@ func (c *Client) DeleteLocalGatewayRoute(ctx context.Context, params *DeleteLoca params = &DeleteLocalGatewayRouteInput{} } - result, metadata, err := c.invokeOperation(ctx, "DeleteLocalGatewayRoute", params, optFns, addOperationDeleteLocalGatewayRouteMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "DeleteLocalGatewayRoute", params, optFns, c.addOperationDeleteLocalGatewayRouteMiddlewares) if err != nil { return nil, err } @@ -43,7 +43,7 @@ type DeleteLocalGatewayRouteInput struct { // 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 + DryRun *bool } type DeleteLocalGatewayRouteOutput struct { @@ -55,7 +55,7 @@ type DeleteLocalGatewayRouteOutput struct { ResultMetadata middleware.Metadata } -func addOperationDeleteLocalGatewayRouteMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationDeleteLocalGatewayRouteMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpDeleteLocalGatewayRoute{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteLocalGatewayRouteTableVpcAssociation.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteLocalGatewayRouteTableVpcAssociation.go index 2961e90fd..84db51e1a 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteLocalGatewayRouteTableVpcAssociation.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteLocalGatewayRouteTableVpcAssociation.go @@ -17,7 +17,7 @@ func (c *Client) DeleteLocalGatewayRouteTableVpcAssociation(ctx context.Context, params = &DeleteLocalGatewayRouteTableVpcAssociationInput{} } - result, metadata, err := c.invokeOperation(ctx, "DeleteLocalGatewayRouteTableVpcAssociation", params, optFns, addOperationDeleteLocalGatewayRouteTableVpcAssociationMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "DeleteLocalGatewayRouteTableVpcAssociation", params, optFns, c.addOperationDeleteLocalGatewayRouteTableVpcAssociationMiddlewares) if err != nil { return nil, err } @@ -38,7 +38,7 @@ type DeleteLocalGatewayRouteTableVpcAssociationInput struct { // 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 + DryRun *bool } type DeleteLocalGatewayRouteTableVpcAssociationOutput struct { @@ -50,7 +50,7 @@ type DeleteLocalGatewayRouteTableVpcAssociationOutput struct { ResultMetadata middleware.Metadata } -func addOperationDeleteLocalGatewayRouteTableVpcAssociationMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationDeleteLocalGatewayRouteTableVpcAssociationMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpDeleteLocalGatewayRouteTableVpcAssociation{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteManagedPrefixList.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteManagedPrefixList.go index 38f4f43d9..9d972ec15 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteManagedPrefixList.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteManagedPrefixList.go @@ -18,7 +18,7 @@ func (c *Client) DeleteManagedPrefixList(ctx context.Context, params *DeleteMana params = &DeleteManagedPrefixListInput{} } - result, metadata, err := c.invokeOperation(ctx, "DeleteManagedPrefixList", params, optFns, addOperationDeleteManagedPrefixListMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "DeleteManagedPrefixList", params, optFns, c.addOperationDeleteManagedPrefixListMiddlewares) if err != nil { return nil, err } @@ -39,7 +39,7 @@ type DeleteManagedPrefixListInput struct { // 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 + DryRun *bool } type DeleteManagedPrefixListOutput struct { @@ -51,7 +51,7 @@ type DeleteManagedPrefixListOutput struct { ResultMetadata middleware.Metadata } -func addOperationDeleteManagedPrefixListMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationDeleteManagedPrefixListMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpDeleteManagedPrefixList{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteNatGateway.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteNatGateway.go index b00161a89..0c4f14e66 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteNatGateway.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteNatGateway.go @@ -10,15 +10,16 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Deletes the specified NAT gateway. Deleting a NAT gateway disassociates its -// Elastic IP address, but does not release the address from your account. Deleting -// a NAT gateway does not delete any NAT gateway routes in your route tables. +// Deletes the specified NAT gateway. Deleting a public NAT gateway disassociates +// its Elastic IP address, but does not release the address from your account. +// Deleting a NAT gateway does not delete any NAT gateway routes in your route +// tables. func (c *Client) DeleteNatGateway(ctx context.Context, params *DeleteNatGatewayInput, optFns ...func(*Options)) (*DeleteNatGatewayOutput, error) { if params == nil { params = &DeleteNatGatewayInput{} } - result, metadata, err := c.invokeOperation(ctx, "DeleteNatGateway", params, optFns, addOperationDeleteNatGatewayMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "DeleteNatGateway", params, optFns, c.addOperationDeleteNatGatewayMiddlewares) if err != nil { return nil, err } @@ -39,7 +40,7 @@ type DeleteNatGatewayInput struct { // 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 + DryRun *bool } type DeleteNatGatewayOutput struct { @@ -51,7 +52,7 @@ type DeleteNatGatewayOutput struct { ResultMetadata middleware.Metadata } -func addOperationDeleteNatGatewayMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationDeleteNatGatewayMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpDeleteNatGateway{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteNetworkAcl.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteNetworkAcl.go index 4aa7e4433..e714c93bb 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteNetworkAcl.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteNetworkAcl.go @@ -17,7 +17,7 @@ func (c *Client) DeleteNetworkAcl(ctx context.Context, params *DeleteNetworkAclI params = &DeleteNetworkAclInput{} } - result, metadata, err := c.invokeOperation(ctx, "DeleteNetworkAcl", params, optFns, addOperationDeleteNetworkAclMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "DeleteNetworkAcl", params, optFns, c.addOperationDeleteNetworkAclMiddlewares) if err != nil { return nil, err } @@ -38,7 +38,7 @@ type DeleteNetworkAclInput struct { // 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 + DryRun *bool } type DeleteNetworkAclOutput struct { @@ -46,7 +46,7 @@ type DeleteNetworkAclOutput struct { ResultMetadata middleware.Metadata } -func addOperationDeleteNetworkAclMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationDeleteNetworkAclMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpDeleteNetworkAcl{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteNetworkAclEntry.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteNetworkAclEntry.go index b176b9c43..496d6b12f 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteNetworkAclEntry.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteNetworkAclEntry.go @@ -17,7 +17,7 @@ func (c *Client) DeleteNetworkAclEntry(ctx context.Context, params *DeleteNetwor params = &DeleteNetworkAclEntryInput{} } - result, metadata, err := c.invokeOperation(ctx, "DeleteNetworkAclEntry", params, optFns, addOperationDeleteNetworkAclEntryMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "DeleteNetworkAclEntry", params, optFns, c.addOperationDeleteNetworkAclEntryMiddlewares) if err != nil { return nil, err } @@ -32,7 +32,7 @@ type DeleteNetworkAclEntryInput struct { // Indicates whether the rule is an egress rule. // // This member is required. - Egress bool + Egress *bool // The ID of the network ACL. // @@ -42,13 +42,13 @@ type DeleteNetworkAclEntryInput struct { // The rule number of the entry to delete. // // This member is required. - RuleNumber int32 + RuleNumber *int32 // 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 + DryRun *bool } type DeleteNetworkAclEntryOutput struct { @@ -56,7 +56,7 @@ type DeleteNetworkAclEntryOutput struct { ResultMetadata middleware.Metadata } -func addOperationDeleteNetworkAclEntryMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationDeleteNetworkAclEntryMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpDeleteNetworkAclEntry{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteNetworkInsightsAnalysis.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteNetworkInsightsAnalysis.go index 867bc0a1e..0b627aa52 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteNetworkInsightsAnalysis.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteNetworkInsightsAnalysis.go @@ -16,7 +16,7 @@ func (c *Client) DeleteNetworkInsightsAnalysis(ctx context.Context, params *Dele params = &DeleteNetworkInsightsAnalysisInput{} } - result, metadata, err := c.invokeOperation(ctx, "DeleteNetworkInsightsAnalysis", params, optFns, addOperationDeleteNetworkInsightsAnalysisMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "DeleteNetworkInsightsAnalysis", params, optFns, c.addOperationDeleteNetworkInsightsAnalysisMiddlewares) if err != nil { return nil, err } @@ -37,7 +37,7 @@ type DeleteNetworkInsightsAnalysisInput struct { // 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 + DryRun *bool } type DeleteNetworkInsightsAnalysisOutput struct { @@ -49,7 +49,7 @@ type DeleteNetworkInsightsAnalysisOutput struct { ResultMetadata middleware.Metadata } -func addOperationDeleteNetworkInsightsAnalysisMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationDeleteNetworkInsightsAnalysisMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpDeleteNetworkInsightsAnalysis{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteNetworkInsightsPath.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteNetworkInsightsPath.go index dacdbfc84..d6618e7e6 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteNetworkInsightsPath.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteNetworkInsightsPath.go @@ -16,7 +16,7 @@ func (c *Client) DeleteNetworkInsightsPath(ctx context.Context, params *DeleteNe params = &DeleteNetworkInsightsPathInput{} } - result, metadata, err := c.invokeOperation(ctx, "DeleteNetworkInsightsPath", params, optFns, addOperationDeleteNetworkInsightsPathMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "DeleteNetworkInsightsPath", params, optFns, c.addOperationDeleteNetworkInsightsPathMiddlewares) if err != nil { return nil, err } @@ -37,7 +37,7 @@ type DeleteNetworkInsightsPathInput struct { // 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 + DryRun *bool } type DeleteNetworkInsightsPathOutput struct { @@ -49,7 +49,7 @@ type DeleteNetworkInsightsPathOutput struct { ResultMetadata middleware.Metadata } -func addOperationDeleteNetworkInsightsPathMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationDeleteNetworkInsightsPathMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpDeleteNetworkInsightsPath{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteNetworkInterface.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteNetworkInterface.go index aafb66bc2..7d1104479 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteNetworkInterface.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteNetworkInterface.go @@ -17,7 +17,7 @@ func (c *Client) DeleteNetworkInterface(ctx context.Context, params *DeleteNetwo params = &DeleteNetworkInterfaceInput{} } - result, metadata, err := c.invokeOperation(ctx, "DeleteNetworkInterface", params, optFns, addOperationDeleteNetworkInterfaceMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "DeleteNetworkInterface", params, optFns, c.addOperationDeleteNetworkInterfaceMiddlewares) if err != nil { return nil, err } @@ -39,7 +39,7 @@ type DeleteNetworkInterfaceInput struct { // 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 + DryRun *bool } type DeleteNetworkInterfaceOutput struct { @@ -47,7 +47,7 @@ type DeleteNetworkInterfaceOutput struct { ResultMetadata middleware.Metadata } -func addOperationDeleteNetworkInterfaceMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationDeleteNetworkInterfaceMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpDeleteNetworkInterface{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteNetworkInterfacePermission.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteNetworkInterfacePermission.go index 3f24c7792..9ca3a53b3 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteNetworkInterfacePermission.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteNetworkInterfacePermission.go @@ -19,7 +19,7 @@ func (c *Client) DeleteNetworkInterfacePermission(ctx context.Context, params *D params = &DeleteNetworkInterfacePermissionInput{} } - result, metadata, err := c.invokeOperation(ctx, "DeleteNetworkInterfacePermission", params, optFns, addOperationDeleteNetworkInterfacePermissionMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "DeleteNetworkInterfacePermission", params, optFns, c.addOperationDeleteNetworkInterfacePermissionMiddlewares) if err != nil { return nil, err } @@ -41,24 +41,24 @@ type DeleteNetworkInterfacePermissionInput struct { // 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 + DryRun *bool // Specify true to remove the permission even if the network interface is attached // to an instance. - Force bool + Force *bool } // Contains the output for DeleteNetworkInterfacePermission. type DeleteNetworkInterfacePermissionOutput struct { // Returns true if the request succeeds, otherwise returns an error. - Return bool + Return *bool // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata } -func addOperationDeleteNetworkInterfacePermissionMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationDeleteNetworkInterfacePermissionMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpDeleteNetworkInterfacePermission{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeletePlacementGroup.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeletePlacementGroup.go index ecc8fb79b..1098ecb30 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeletePlacementGroup.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeletePlacementGroup.go @@ -14,13 +14,13 @@ import ( // placement group before you can delete the placement group. For more information, // see Placement groups // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/placement-groups.html) in -// the Amazon Elastic Compute Cloud User Guide. +// the Amazon EC2 User Guide. func (c *Client) DeletePlacementGroup(ctx context.Context, params *DeletePlacementGroupInput, optFns ...func(*Options)) (*DeletePlacementGroupOutput, error) { if params == nil { params = &DeletePlacementGroupInput{} } - result, metadata, err := c.invokeOperation(ctx, "DeletePlacementGroup", params, optFns, addOperationDeletePlacementGroupMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "DeletePlacementGroup", params, optFns, c.addOperationDeletePlacementGroupMiddlewares) if err != nil { return nil, err } @@ -41,7 +41,7 @@ type DeletePlacementGroupInput struct { // 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 + DryRun *bool } type DeletePlacementGroupOutput struct { @@ -49,7 +49,7 @@ type DeletePlacementGroupOutput struct { ResultMetadata middleware.Metadata } -func addOperationDeletePlacementGroupMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationDeletePlacementGroupMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpDeletePlacementGroup{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteQueuedReservedInstances.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteQueuedReservedInstances.go index 2e3b87d90..5bb300473 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteQueuedReservedInstances.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteQueuedReservedInstances.go @@ -17,7 +17,7 @@ func (c *Client) DeleteQueuedReservedInstances(ctx context.Context, params *Dele params = &DeleteQueuedReservedInstancesInput{} } - result, metadata, err := c.invokeOperation(ctx, "DeleteQueuedReservedInstances", params, optFns, addOperationDeleteQueuedReservedInstancesMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "DeleteQueuedReservedInstances", params, optFns, c.addOperationDeleteQueuedReservedInstancesMiddlewares) if err != nil { return nil, err } @@ -38,7 +38,7 @@ type DeleteQueuedReservedInstancesInput struct { // 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 + DryRun *bool } type DeleteQueuedReservedInstancesOutput struct { @@ -53,7 +53,7 @@ type DeleteQueuedReservedInstancesOutput struct { ResultMetadata middleware.Metadata } -func addOperationDeleteQueuedReservedInstancesMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationDeleteQueuedReservedInstancesMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpDeleteQueuedReservedInstances{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteRoute.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteRoute.go index c4018b154..b0b6ee474 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteRoute.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteRoute.go @@ -16,7 +16,7 @@ func (c *Client) DeleteRoute(ctx context.Context, params *DeleteRouteInput, optF params = &DeleteRouteInput{} } - result, metadata, err := c.invokeOperation(ctx, "DeleteRoute", params, optFns, addOperationDeleteRouteMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "DeleteRoute", params, optFns, c.addOperationDeleteRouteMiddlewares) if err != nil { return nil, err } @@ -48,7 +48,7 @@ type DeleteRouteInput struct { // 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 + DryRun *bool } type DeleteRouteOutput struct { @@ -56,7 +56,7 @@ type DeleteRouteOutput struct { ResultMetadata middleware.Metadata } -func addOperationDeleteRouteMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationDeleteRouteMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpDeleteRoute{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteRouteTable.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteRouteTable.go index 4e576629d..6ef544e3c 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteRouteTable.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteRouteTable.go @@ -17,7 +17,7 @@ func (c *Client) DeleteRouteTable(ctx context.Context, params *DeleteRouteTableI params = &DeleteRouteTableInput{} } - result, metadata, err := c.invokeOperation(ctx, "DeleteRouteTable", params, optFns, addOperationDeleteRouteTableMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "DeleteRouteTable", params, optFns, c.addOperationDeleteRouteTableMiddlewares) if err != nil { return nil, err } @@ -38,7 +38,7 @@ type DeleteRouteTableInput struct { // 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 + DryRun *bool } type DeleteRouteTableOutput struct { @@ -46,7 +46,7 @@ type DeleteRouteTableOutput struct { ResultMetadata middleware.Metadata } -func addOperationDeleteRouteTableMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationDeleteRouteTableMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpDeleteRouteTable{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteSecurityGroup.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteSecurityGroup.go index 992115ec1..ed83310a2 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteSecurityGroup.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteSecurityGroup.go @@ -19,7 +19,7 @@ func (c *Client) DeleteSecurityGroup(ctx context.Context, params *DeleteSecurity params = &DeleteSecurityGroupInput{} } - result, metadata, err := c.invokeOperation(ctx, "DeleteSecurityGroup", params, optFns, addOperationDeleteSecurityGroupMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "DeleteSecurityGroup", params, optFns, c.addOperationDeleteSecurityGroupMiddlewares) if err != nil { return nil, err } @@ -35,7 +35,7 @@ type DeleteSecurityGroupInput struct { // 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 + DryRun *bool // The ID of the security group. Required for a nondefault VPC. GroupId *string @@ -50,7 +50,7 @@ type DeleteSecurityGroupOutput struct { ResultMetadata middleware.Metadata } -func addOperationDeleteSecurityGroupMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationDeleteSecurityGroupMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpDeleteSecurityGroup{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteSnapshot.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteSnapshot.go index dc3140788..1b4537360 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteSnapshot.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteSnapshot.go @@ -26,7 +26,7 @@ func (c *Client) DeleteSnapshot(ctx context.Context, params *DeleteSnapshotInput params = &DeleteSnapshotInput{} } - result, metadata, err := c.invokeOperation(ctx, "DeleteSnapshot", params, optFns, addOperationDeleteSnapshotMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "DeleteSnapshot", params, optFns, c.addOperationDeleteSnapshotMiddlewares) if err != nil { return nil, err } @@ -47,7 +47,7 @@ type DeleteSnapshotInput struct { // 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 + DryRun *bool } type DeleteSnapshotOutput struct { @@ -55,7 +55,7 @@ type DeleteSnapshotOutput struct { ResultMetadata middleware.Metadata } -func addOperationDeleteSnapshotMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationDeleteSnapshotMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpDeleteSnapshot{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteSpotDatafeedSubscription.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteSpotDatafeedSubscription.go index 25e204a34..cc98c44d6 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteSpotDatafeedSubscription.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteSpotDatafeedSubscription.go @@ -16,7 +16,7 @@ func (c *Client) DeleteSpotDatafeedSubscription(ctx context.Context, params *Del params = &DeleteSpotDatafeedSubscriptionInput{} } - result, metadata, err := c.invokeOperation(ctx, "DeleteSpotDatafeedSubscription", params, optFns, addOperationDeleteSpotDatafeedSubscriptionMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "DeleteSpotDatafeedSubscription", params, optFns, c.addOperationDeleteSpotDatafeedSubscriptionMiddlewares) if err != nil { return nil, err } @@ -33,7 +33,7 @@ type DeleteSpotDatafeedSubscriptionInput struct { // 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 + DryRun *bool } type DeleteSpotDatafeedSubscriptionOutput struct { @@ -41,7 +41,7 @@ type DeleteSpotDatafeedSubscriptionOutput struct { ResultMetadata middleware.Metadata } -func addOperationDeleteSpotDatafeedSubscriptionMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationDeleteSpotDatafeedSubscriptionMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpDeleteSpotDatafeedSubscription{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteSubnet.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteSubnet.go index b5523b2ae..a8f3607f5 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteSubnet.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteSubnet.go @@ -17,7 +17,7 @@ func (c *Client) DeleteSubnet(ctx context.Context, params *DeleteSubnetInput, op params = &DeleteSubnetInput{} } - result, metadata, err := c.invokeOperation(ctx, "DeleteSubnet", params, optFns, addOperationDeleteSubnetMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "DeleteSubnet", params, optFns, c.addOperationDeleteSubnetMiddlewares) if err != nil { return nil, err } @@ -38,7 +38,7 @@ type DeleteSubnetInput struct { // 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 + DryRun *bool } type DeleteSubnetOutput struct { @@ -46,7 +46,7 @@ type DeleteSubnetOutput struct { ResultMetadata middleware.Metadata } -func addOperationDeleteSubnetMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationDeleteSubnetMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpDeleteSubnet{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteTags.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteTags.go index d2ab70e46..06367f0de 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteTags.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteTags.go @@ -21,7 +21,7 @@ func (c *Client) DeleteTags(ctx context.Context, params *DeleteTagsInput, optFns params = &DeleteTagsInput{} } - result, metadata, err := c.invokeOperation(ctx, "DeleteTags", params, optFns, addOperationDeleteTagsMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "DeleteTags", params, optFns, c.addOperationDeleteTagsMiddlewares) if err != nil { return nil, err } @@ -43,7 +43,7 @@ type DeleteTagsInput struct { // 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 + DryRun *bool // The tags to delete. Specify a tag key and an optional tag value to delete // specific tags. If you specify a tag key without a tag value, we delete any tag @@ -59,7 +59,7 @@ type DeleteTagsOutput struct { ResultMetadata middleware.Metadata } -func addOperationDeleteTagsMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationDeleteTagsMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpDeleteTags{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteTrafficMirrorFilter.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteTrafficMirrorFilter.go index 87b2b94bf..9c15d0740 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteTrafficMirrorFilter.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteTrafficMirrorFilter.go @@ -17,7 +17,7 @@ func (c *Client) DeleteTrafficMirrorFilter(ctx context.Context, params *DeleteTr params = &DeleteTrafficMirrorFilterInput{} } - result, metadata, err := c.invokeOperation(ctx, "DeleteTrafficMirrorFilter", params, optFns, addOperationDeleteTrafficMirrorFilterMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "DeleteTrafficMirrorFilter", params, optFns, c.addOperationDeleteTrafficMirrorFilterMiddlewares) if err != nil { return nil, err } @@ -38,7 +38,7 @@ type DeleteTrafficMirrorFilterInput struct { // 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 + DryRun *bool } type DeleteTrafficMirrorFilterOutput struct { @@ -50,7 +50,7 @@ type DeleteTrafficMirrorFilterOutput struct { ResultMetadata middleware.Metadata } -func addOperationDeleteTrafficMirrorFilterMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationDeleteTrafficMirrorFilterMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpDeleteTrafficMirrorFilter{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteTrafficMirrorFilterRule.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteTrafficMirrorFilterRule.go index cbba09c20..9249b55a5 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteTrafficMirrorFilterRule.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteTrafficMirrorFilterRule.go @@ -16,7 +16,7 @@ func (c *Client) DeleteTrafficMirrorFilterRule(ctx context.Context, params *Dele params = &DeleteTrafficMirrorFilterRuleInput{} } - result, metadata, err := c.invokeOperation(ctx, "DeleteTrafficMirrorFilterRule", params, optFns, addOperationDeleteTrafficMirrorFilterRuleMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "DeleteTrafficMirrorFilterRule", params, optFns, c.addOperationDeleteTrafficMirrorFilterRuleMiddlewares) if err != nil { return nil, err } @@ -37,7 +37,7 @@ type DeleteTrafficMirrorFilterRuleInput struct { // 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 + DryRun *bool } type DeleteTrafficMirrorFilterRuleOutput struct { @@ -49,7 +49,7 @@ type DeleteTrafficMirrorFilterRuleOutput struct { ResultMetadata middleware.Metadata } -func addOperationDeleteTrafficMirrorFilterRuleMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationDeleteTrafficMirrorFilterRuleMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpDeleteTrafficMirrorFilterRule{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteTrafficMirrorSession.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteTrafficMirrorSession.go index 9e4d62831..28f5b112f 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteTrafficMirrorSession.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteTrafficMirrorSession.go @@ -16,7 +16,7 @@ func (c *Client) DeleteTrafficMirrorSession(ctx context.Context, params *DeleteT params = &DeleteTrafficMirrorSessionInput{} } - result, metadata, err := c.invokeOperation(ctx, "DeleteTrafficMirrorSession", params, optFns, addOperationDeleteTrafficMirrorSessionMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "DeleteTrafficMirrorSession", params, optFns, c.addOperationDeleteTrafficMirrorSessionMiddlewares) if err != nil { return nil, err } @@ -37,7 +37,7 @@ type DeleteTrafficMirrorSessionInput struct { // 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 + DryRun *bool } type DeleteTrafficMirrorSessionOutput struct { @@ -49,7 +49,7 @@ type DeleteTrafficMirrorSessionOutput struct { ResultMetadata middleware.Metadata } -func addOperationDeleteTrafficMirrorSessionMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationDeleteTrafficMirrorSessionMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpDeleteTrafficMirrorSession{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteTrafficMirrorTarget.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteTrafficMirrorTarget.go index 9a282de71..2fae013d1 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteTrafficMirrorTarget.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteTrafficMirrorTarget.go @@ -17,7 +17,7 @@ func (c *Client) DeleteTrafficMirrorTarget(ctx context.Context, params *DeleteTr params = &DeleteTrafficMirrorTargetInput{} } - result, metadata, err := c.invokeOperation(ctx, "DeleteTrafficMirrorTarget", params, optFns, addOperationDeleteTrafficMirrorTargetMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "DeleteTrafficMirrorTarget", params, optFns, c.addOperationDeleteTrafficMirrorTargetMiddlewares) if err != nil { return nil, err } @@ -38,7 +38,7 @@ type DeleteTrafficMirrorTargetInput struct { // 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 + DryRun *bool } type DeleteTrafficMirrorTargetOutput struct { @@ -50,7 +50,7 @@ type DeleteTrafficMirrorTargetOutput struct { ResultMetadata middleware.Metadata } -func addOperationDeleteTrafficMirrorTargetMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationDeleteTrafficMirrorTargetMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpDeleteTrafficMirrorTarget{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteTransitGateway.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteTransitGateway.go index c5ac368ea..a8a02d179 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteTransitGateway.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteTransitGateway.go @@ -17,7 +17,7 @@ func (c *Client) DeleteTransitGateway(ctx context.Context, params *DeleteTransit params = &DeleteTransitGatewayInput{} } - result, metadata, err := c.invokeOperation(ctx, "DeleteTransitGateway", params, optFns, addOperationDeleteTransitGatewayMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "DeleteTransitGateway", params, optFns, c.addOperationDeleteTransitGatewayMiddlewares) if err != nil { return nil, err } @@ -38,7 +38,7 @@ type DeleteTransitGatewayInput struct { // 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 + DryRun *bool } type DeleteTransitGatewayOutput struct { @@ -50,7 +50,7 @@ type DeleteTransitGatewayOutput struct { ResultMetadata middleware.Metadata } -func addOperationDeleteTransitGatewayMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationDeleteTransitGatewayMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpDeleteTransitGateway{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteTransitGatewayConnect.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteTransitGatewayConnect.go index f92294d73..c9bf61249 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteTransitGatewayConnect.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteTransitGatewayConnect.go @@ -18,7 +18,7 @@ func (c *Client) DeleteTransitGatewayConnect(ctx context.Context, params *Delete params = &DeleteTransitGatewayConnectInput{} } - result, metadata, err := c.invokeOperation(ctx, "DeleteTransitGatewayConnect", params, optFns, addOperationDeleteTransitGatewayConnectMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "DeleteTransitGatewayConnect", params, optFns, c.addOperationDeleteTransitGatewayConnectMiddlewares) if err != nil { return nil, err } @@ -39,7 +39,7 @@ type DeleteTransitGatewayConnectInput struct { // 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 + DryRun *bool } type DeleteTransitGatewayConnectOutput struct { @@ -51,7 +51,7 @@ type DeleteTransitGatewayConnectOutput struct { ResultMetadata middleware.Metadata } -func addOperationDeleteTransitGatewayConnectMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationDeleteTransitGatewayConnectMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpDeleteTransitGatewayConnect{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteTransitGatewayConnectPeer.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteTransitGatewayConnectPeer.go index 2b3e1cb21..9b13d8b5e 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteTransitGatewayConnectPeer.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteTransitGatewayConnectPeer.go @@ -17,7 +17,7 @@ func (c *Client) DeleteTransitGatewayConnectPeer(ctx context.Context, params *De params = &DeleteTransitGatewayConnectPeerInput{} } - result, metadata, err := c.invokeOperation(ctx, "DeleteTransitGatewayConnectPeer", params, optFns, addOperationDeleteTransitGatewayConnectPeerMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "DeleteTransitGatewayConnectPeer", params, optFns, c.addOperationDeleteTransitGatewayConnectPeerMiddlewares) if err != nil { return nil, err } @@ -38,7 +38,7 @@ type DeleteTransitGatewayConnectPeerInput struct { // 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 + DryRun *bool } type DeleteTransitGatewayConnectPeerOutput struct { @@ -50,7 +50,7 @@ type DeleteTransitGatewayConnectPeerOutput struct { ResultMetadata middleware.Metadata } -func addOperationDeleteTransitGatewayConnectPeerMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationDeleteTransitGatewayConnectPeerMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpDeleteTransitGatewayConnectPeer{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteTransitGatewayMulticastDomain.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteTransitGatewayMulticastDomain.go index 8dcf5bcd8..55a4c2eb2 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteTransitGatewayMulticastDomain.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteTransitGatewayMulticastDomain.go @@ -17,7 +17,7 @@ func (c *Client) DeleteTransitGatewayMulticastDomain(ctx context.Context, params params = &DeleteTransitGatewayMulticastDomainInput{} } - result, metadata, err := c.invokeOperation(ctx, "DeleteTransitGatewayMulticastDomain", params, optFns, addOperationDeleteTransitGatewayMulticastDomainMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "DeleteTransitGatewayMulticastDomain", params, optFns, c.addOperationDeleteTransitGatewayMulticastDomainMiddlewares) if err != nil { return nil, err } @@ -38,7 +38,7 @@ type DeleteTransitGatewayMulticastDomainInput struct { // 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 + DryRun *bool } type DeleteTransitGatewayMulticastDomainOutput struct { @@ -50,7 +50,7 @@ type DeleteTransitGatewayMulticastDomainOutput struct { ResultMetadata middleware.Metadata } -func addOperationDeleteTransitGatewayMulticastDomainMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationDeleteTransitGatewayMulticastDomainMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpDeleteTransitGatewayMulticastDomain{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteTransitGatewayPeeringAttachment.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteTransitGatewayPeeringAttachment.go index d249cea4a..4c223217a 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteTransitGatewayPeeringAttachment.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteTransitGatewayPeeringAttachment.go @@ -17,7 +17,7 @@ func (c *Client) DeleteTransitGatewayPeeringAttachment(ctx context.Context, para params = &DeleteTransitGatewayPeeringAttachmentInput{} } - result, metadata, err := c.invokeOperation(ctx, "DeleteTransitGatewayPeeringAttachment", params, optFns, addOperationDeleteTransitGatewayPeeringAttachmentMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "DeleteTransitGatewayPeeringAttachment", params, optFns, c.addOperationDeleteTransitGatewayPeeringAttachmentMiddlewares) if err != nil { return nil, err } @@ -38,7 +38,7 @@ type DeleteTransitGatewayPeeringAttachmentInput struct { // 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 + DryRun *bool } type DeleteTransitGatewayPeeringAttachmentOutput struct { @@ -50,7 +50,7 @@ type DeleteTransitGatewayPeeringAttachmentOutput struct { ResultMetadata middleware.Metadata } -func addOperationDeleteTransitGatewayPeeringAttachmentMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationDeleteTransitGatewayPeeringAttachmentMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpDeleteTransitGatewayPeeringAttachment{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteTransitGatewayPrefixListReference.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteTransitGatewayPrefixListReference.go index 0a01affca..62b56d6a9 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteTransitGatewayPrefixListReference.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteTransitGatewayPrefixListReference.go @@ -18,7 +18,7 @@ func (c *Client) DeleteTransitGatewayPrefixListReference(ctx context.Context, pa params = &DeleteTransitGatewayPrefixListReferenceInput{} } - result, metadata, err := c.invokeOperation(ctx, "DeleteTransitGatewayPrefixListReference", params, optFns, addOperationDeleteTransitGatewayPrefixListReferenceMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "DeleteTransitGatewayPrefixListReference", params, optFns, c.addOperationDeleteTransitGatewayPrefixListReferenceMiddlewares) if err != nil { return nil, err } @@ -44,7 +44,7 @@ type DeleteTransitGatewayPrefixListReferenceInput struct { // 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 + DryRun *bool } type DeleteTransitGatewayPrefixListReferenceOutput struct { @@ -56,7 +56,7 @@ type DeleteTransitGatewayPrefixListReferenceOutput struct { ResultMetadata middleware.Metadata } -func addOperationDeleteTransitGatewayPrefixListReferenceMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationDeleteTransitGatewayPrefixListReferenceMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpDeleteTransitGatewayPrefixListReference{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteTransitGatewayRoute.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteTransitGatewayRoute.go index bf41f3c4b..0b67000cb 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteTransitGatewayRoute.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteTransitGatewayRoute.go @@ -17,7 +17,7 @@ func (c *Client) DeleteTransitGatewayRoute(ctx context.Context, params *DeleteTr params = &DeleteTransitGatewayRouteInput{} } - result, metadata, err := c.invokeOperation(ctx, "DeleteTransitGatewayRoute", params, optFns, addOperationDeleteTransitGatewayRouteMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "DeleteTransitGatewayRoute", params, optFns, c.addOperationDeleteTransitGatewayRouteMiddlewares) if err != nil { return nil, err } @@ -43,7 +43,7 @@ type DeleteTransitGatewayRouteInput struct { // 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 + DryRun *bool } type DeleteTransitGatewayRouteOutput struct { @@ -55,7 +55,7 @@ type DeleteTransitGatewayRouteOutput struct { ResultMetadata middleware.Metadata } -func addOperationDeleteTransitGatewayRouteMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationDeleteTransitGatewayRouteMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpDeleteTransitGatewayRoute{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteTransitGatewayRouteTable.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteTransitGatewayRouteTable.go index fb7ddd009..f8b702ab5 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteTransitGatewayRouteTable.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteTransitGatewayRouteTable.go @@ -18,7 +18,7 @@ func (c *Client) DeleteTransitGatewayRouteTable(ctx context.Context, params *Del params = &DeleteTransitGatewayRouteTableInput{} } - result, metadata, err := c.invokeOperation(ctx, "DeleteTransitGatewayRouteTable", params, optFns, addOperationDeleteTransitGatewayRouteTableMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "DeleteTransitGatewayRouteTable", params, optFns, c.addOperationDeleteTransitGatewayRouteTableMiddlewares) if err != nil { return nil, err } @@ -39,7 +39,7 @@ type DeleteTransitGatewayRouteTableInput struct { // 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 + DryRun *bool } type DeleteTransitGatewayRouteTableOutput struct { @@ -51,7 +51,7 @@ type DeleteTransitGatewayRouteTableOutput struct { ResultMetadata middleware.Metadata } -func addOperationDeleteTransitGatewayRouteTableMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationDeleteTransitGatewayRouteTableMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpDeleteTransitGatewayRouteTable{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteTransitGatewayVpcAttachment.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteTransitGatewayVpcAttachment.go index 8b1ef6811..7cfb6545a 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteTransitGatewayVpcAttachment.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteTransitGatewayVpcAttachment.go @@ -17,7 +17,7 @@ func (c *Client) DeleteTransitGatewayVpcAttachment(ctx context.Context, params * params = &DeleteTransitGatewayVpcAttachmentInput{} } - result, metadata, err := c.invokeOperation(ctx, "DeleteTransitGatewayVpcAttachment", params, optFns, addOperationDeleteTransitGatewayVpcAttachmentMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "DeleteTransitGatewayVpcAttachment", params, optFns, c.addOperationDeleteTransitGatewayVpcAttachmentMiddlewares) if err != nil { return nil, err } @@ -38,7 +38,7 @@ type DeleteTransitGatewayVpcAttachmentInput struct { // 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 + DryRun *bool } type DeleteTransitGatewayVpcAttachmentOutput struct { @@ -50,7 +50,7 @@ type DeleteTransitGatewayVpcAttachmentOutput struct { ResultMetadata middleware.Metadata } -func addOperationDeleteTransitGatewayVpcAttachmentMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationDeleteTransitGatewayVpcAttachmentMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpDeleteTransitGatewayVpcAttachment{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteVolume.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteVolume.go index 42d9e9bde..128cebcc6 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteVolume.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteVolume.go @@ -20,7 +20,7 @@ func (c *Client) DeleteVolume(ctx context.Context, params *DeleteVolumeInput, op params = &DeleteVolumeInput{} } - result, metadata, err := c.invokeOperation(ctx, "DeleteVolume", params, optFns, addOperationDeleteVolumeMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "DeleteVolume", params, optFns, c.addOperationDeleteVolumeMiddlewares) if err != nil { return nil, err } @@ -41,7 +41,7 @@ type DeleteVolumeInput struct { // 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 + DryRun *bool } type DeleteVolumeOutput struct { @@ -49,7 +49,7 @@ type DeleteVolumeOutput struct { ResultMetadata middleware.Metadata } -func addOperationDeleteVolumeMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationDeleteVolumeMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpDeleteVolume{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteVpc.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteVpc.go index 5e59e8c4b..2f2121019 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteVpc.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteVpc.go @@ -20,7 +20,7 @@ func (c *Client) DeleteVpc(ctx context.Context, params *DeleteVpcInput, optFns . params = &DeleteVpcInput{} } - result, metadata, err := c.invokeOperation(ctx, "DeleteVpc", params, optFns, addOperationDeleteVpcMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "DeleteVpc", params, optFns, c.addOperationDeleteVpcMiddlewares) if err != nil { return nil, err } @@ -41,7 +41,7 @@ type DeleteVpcInput struct { // 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 + DryRun *bool } type DeleteVpcOutput struct { @@ -49,7 +49,7 @@ type DeleteVpcOutput struct { ResultMetadata middleware.Metadata } -func addOperationDeleteVpcMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationDeleteVpcMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpDeleteVpc{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteVpcEndpointConnectionNotifications.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteVpcEndpointConnectionNotifications.go index 409322fe9..f01614399 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteVpcEndpointConnectionNotifications.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteVpcEndpointConnectionNotifications.go @@ -17,7 +17,7 @@ func (c *Client) DeleteVpcEndpointConnectionNotifications(ctx context.Context, p params = &DeleteVpcEndpointConnectionNotificationsInput{} } - result, metadata, err := c.invokeOperation(ctx, "DeleteVpcEndpointConnectionNotifications", params, optFns, addOperationDeleteVpcEndpointConnectionNotificationsMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "DeleteVpcEndpointConnectionNotifications", params, optFns, c.addOperationDeleteVpcEndpointConnectionNotificationsMiddlewares) if err != nil { return nil, err } @@ -38,7 +38,7 @@ type DeleteVpcEndpointConnectionNotificationsInput struct { // 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 + DryRun *bool } type DeleteVpcEndpointConnectionNotificationsOutput struct { @@ -50,7 +50,7 @@ type DeleteVpcEndpointConnectionNotificationsOutput struct { ResultMetadata middleware.Metadata } -func addOperationDeleteVpcEndpointConnectionNotificationsMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationDeleteVpcEndpointConnectionNotificationsMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpDeleteVpcEndpointConnectionNotifications{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteVpcEndpointServiceConfigurations.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteVpcEndpointServiceConfigurations.go index a06492a22..0cf92a63a 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteVpcEndpointServiceConfigurations.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteVpcEndpointServiceConfigurations.go @@ -20,7 +20,7 @@ func (c *Client) DeleteVpcEndpointServiceConfigurations(ctx context.Context, par params = &DeleteVpcEndpointServiceConfigurationsInput{} } - result, metadata, err := c.invokeOperation(ctx, "DeleteVpcEndpointServiceConfigurations", params, optFns, addOperationDeleteVpcEndpointServiceConfigurationsMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "DeleteVpcEndpointServiceConfigurations", params, optFns, c.addOperationDeleteVpcEndpointServiceConfigurationsMiddlewares) if err != nil { return nil, err } @@ -41,7 +41,7 @@ type DeleteVpcEndpointServiceConfigurationsInput struct { // 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 + DryRun *bool } type DeleteVpcEndpointServiceConfigurationsOutput struct { @@ -54,7 +54,7 @@ type DeleteVpcEndpointServiceConfigurationsOutput struct { ResultMetadata middleware.Metadata } -func addOperationDeleteVpcEndpointServiceConfigurationsMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationDeleteVpcEndpointServiceConfigurationsMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpDeleteVpcEndpointServiceConfigurations{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteVpcEndpoints.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteVpcEndpoints.go index df3729a13..ad893afd7 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteVpcEndpoints.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteVpcEndpoints.go @@ -11,17 +11,35 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Deletes one or more specified VPC endpoints. Deleting a gateway endpoint also -// deletes the endpoint routes in the route tables that were associated with the -// endpoint. Deleting an interface endpoint or a Gateway Load Balancer endpoint -// deletes the endpoint network interfaces. Gateway Load Balancer endpoints can -// only be deleted if the routes that are associated with the endpoint are deleted. +// Deletes one or more specified VPC endpoints. You can delete any of the following +// types of VPC endpoints. +// +// * Gateway endpoint, +// +// * Gateway Load Balancer +// endpoint, +// +// * Interface endpoint +// +// The following rules apply when you delete a VPC +// endpoint: +// +// * When you delete a gateway endpoint, we delete the endpoint routes +// in the route tables that are associated with the endpoint. +// +// * When you delete a +// Gateway Load Balancer endpoint, we delete the endpoint network interfaces. You +// can only delete Gateway Load Balancer endpoints when the routes that are +// associated with the endpoint are deleted. +// +// * When you delete an interface +// endpoint, we delete the endpoint network interfaces. func (c *Client) DeleteVpcEndpoints(ctx context.Context, params *DeleteVpcEndpointsInput, optFns ...func(*Options)) (*DeleteVpcEndpointsOutput, error) { if params == nil { params = &DeleteVpcEndpointsInput{} } - result, metadata, err := c.invokeOperation(ctx, "DeleteVpcEndpoints", params, optFns, addOperationDeleteVpcEndpointsMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "DeleteVpcEndpoints", params, optFns, c.addOperationDeleteVpcEndpointsMiddlewares) if err != nil { return nil, err } @@ -43,7 +61,7 @@ type DeleteVpcEndpointsInput struct { // 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 + DryRun *bool } // Contains the output of DeleteVpcEndpoints. @@ -56,7 +74,7 @@ type DeleteVpcEndpointsOutput struct { ResultMetadata middleware.Metadata } -func addOperationDeleteVpcEndpointsMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationDeleteVpcEndpointsMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpDeleteVpcEndpoints{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteVpcPeeringConnection.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteVpcPeeringConnection.go index e074494c7..fce7fe324 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteVpcPeeringConnection.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteVpcPeeringConnection.go @@ -20,7 +20,7 @@ func (c *Client) DeleteVpcPeeringConnection(ctx context.Context, params *DeleteV params = &DeleteVpcPeeringConnectionInput{} } - result, metadata, err := c.invokeOperation(ctx, "DeleteVpcPeeringConnection", params, optFns, addOperationDeleteVpcPeeringConnectionMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "DeleteVpcPeeringConnection", params, optFns, c.addOperationDeleteVpcPeeringConnectionMiddlewares) if err != nil { return nil, err } @@ -41,19 +41,19 @@ type DeleteVpcPeeringConnectionInput struct { // 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 + DryRun *bool } type DeleteVpcPeeringConnectionOutput struct { // Returns true if the request succeeds; otherwise, it returns an error. - Return bool + Return *bool // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata } -func addOperationDeleteVpcPeeringConnectionMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationDeleteVpcPeeringConnectionMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpDeleteVpcPeeringConnection{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteVpnConnection.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteVpnConnection.go index 3d518c8a8..490a10d80 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteVpnConnection.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteVpnConnection.go @@ -26,7 +26,7 @@ func (c *Client) DeleteVpnConnection(ctx context.Context, params *DeleteVpnConne params = &DeleteVpnConnectionInput{} } - result, metadata, err := c.invokeOperation(ctx, "DeleteVpnConnection", params, optFns, addOperationDeleteVpnConnectionMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "DeleteVpnConnection", params, optFns, c.addOperationDeleteVpnConnectionMiddlewares) if err != nil { return nil, err } @@ -48,7 +48,7 @@ type DeleteVpnConnectionInput struct { // 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 + DryRun *bool } type DeleteVpnConnectionOutput struct { @@ -56,7 +56,7 @@ type DeleteVpnConnectionOutput struct { ResultMetadata middleware.Metadata } -func addOperationDeleteVpnConnectionMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationDeleteVpnConnectionMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpDeleteVpnConnection{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteVpnConnectionRoute.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteVpnConnectionRoute.go index 764e9b486..83aebf144 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteVpnConnectionRoute.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteVpnConnectionRoute.go @@ -19,7 +19,7 @@ func (c *Client) DeleteVpnConnectionRoute(ctx context.Context, params *DeleteVpn params = &DeleteVpnConnectionRouteInput{} } - result, metadata, err := c.invokeOperation(ctx, "DeleteVpnConnectionRoute", params, optFns, addOperationDeleteVpnConnectionRouteMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "DeleteVpnConnectionRoute", params, optFns, c.addOperationDeleteVpnConnectionRouteMiddlewares) if err != nil { return nil, err } @@ -48,7 +48,7 @@ type DeleteVpnConnectionRouteOutput struct { ResultMetadata middleware.Metadata } -func addOperationDeleteVpnConnectionRouteMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationDeleteVpnConnectionRouteMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpDeleteVpnConnectionRoute{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteVpnGateway.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteVpnGateway.go index 5aba37c2a..5a9dd455f 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteVpnGateway.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteVpnGateway.go @@ -19,7 +19,7 @@ func (c *Client) DeleteVpnGateway(ctx context.Context, params *DeleteVpnGatewayI params = &DeleteVpnGatewayInput{} } - result, metadata, err := c.invokeOperation(ctx, "DeleteVpnGateway", params, optFns, addOperationDeleteVpnGatewayMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "DeleteVpnGateway", params, optFns, c.addOperationDeleteVpnGatewayMiddlewares) if err != nil { return nil, err } @@ -41,7 +41,7 @@ type DeleteVpnGatewayInput struct { // 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 + DryRun *bool } type DeleteVpnGatewayOutput struct { @@ -49,7 +49,7 @@ type DeleteVpnGatewayOutput struct { ResultMetadata middleware.Metadata } -func addOperationDeleteVpnGatewayMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationDeleteVpnGatewayMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpDeleteVpnGateway{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeprovisionByoipCidr.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeprovisionByoipCidr.go index c6336fb66..4082ca76c 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeprovisionByoipCidr.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeprovisionByoipCidr.go @@ -11,17 +11,17 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Releases the specified address range that you provisioned for use with your AWS -// resources through bring your own IP addresses (BYOIP) and deletes the -// corresponding address pool. Before you can release an address range, you must -// stop advertising it using WithdrawByoipCidr and you must not have any IP -// addresses allocated from its address range. +// Releases the specified address range that you provisioned for use with your +// Amazon Web Services resources through bring your own IP addresses (BYOIP) and +// deletes the corresponding address pool. Before you can release an address range, +// you must stop advertising it using WithdrawByoipCidr and you must not have any +// IP addresses allocated from its address range. func (c *Client) DeprovisionByoipCidr(ctx context.Context, params *DeprovisionByoipCidrInput, optFns ...func(*Options)) (*DeprovisionByoipCidrOutput, error) { if params == nil { params = &DeprovisionByoipCidrInput{} } - result, metadata, err := c.invokeOperation(ctx, "DeprovisionByoipCidr", params, optFns, addOperationDeprovisionByoipCidrMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "DeprovisionByoipCidr", params, optFns, c.addOperationDeprovisionByoipCidrMiddlewares) if err != nil { return nil, err } @@ -43,7 +43,7 @@ type DeprovisionByoipCidrInput struct { // 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 + DryRun *bool } type DeprovisionByoipCidrOutput struct { @@ -55,7 +55,7 @@ type DeprovisionByoipCidrOutput struct { ResultMetadata middleware.Metadata } -func addOperationDeprovisionByoipCidrMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationDeprovisionByoipCidrMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpDeprovisionByoipCidr{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeregisterImage.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeregisterImage.go index ebf86a17a..5e1111da8 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeregisterImage.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeregisterImage.go @@ -23,7 +23,7 @@ func (c *Client) DeregisterImage(ctx context.Context, params *DeregisterImageInp params = &DeregisterImageInput{} } - result, metadata, err := c.invokeOperation(ctx, "DeregisterImage", params, optFns, addOperationDeregisterImageMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "DeregisterImage", params, optFns, c.addOperationDeregisterImageMiddlewares) if err != nil { return nil, err } @@ -45,7 +45,7 @@ type DeregisterImageInput struct { // 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 + DryRun *bool } type DeregisterImageOutput struct { @@ -53,7 +53,7 @@ type DeregisterImageOutput struct { ResultMetadata middleware.Metadata } -func addOperationDeregisterImageMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationDeregisterImageMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpDeregisterImage{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeregisterInstanceEventNotificationAttributes.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeregisterInstanceEventNotificationAttributes.go index 879de9bc4..9e72f86dd 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeregisterInstanceEventNotificationAttributes.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeregisterInstanceEventNotificationAttributes.go @@ -18,7 +18,7 @@ func (c *Client) DeregisterInstanceEventNotificationAttributes(ctx context.Conte params = &DeregisterInstanceEventNotificationAttributesInput{} } - result, metadata, err := c.invokeOperation(ctx, "DeregisterInstanceEventNotificationAttributes", params, optFns, addOperationDeregisterInstanceEventNotificationAttributesMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "DeregisterInstanceEventNotificationAttributes", params, optFns, c.addOperationDeregisterInstanceEventNotificationAttributesMiddlewares) if err != nil { return nil, err } @@ -34,7 +34,7 @@ type DeregisterInstanceEventNotificationAttributesInput struct { // 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 + DryRun *bool // Information about the tag keys to deregister. InstanceTagAttribute *types.DeregisterInstanceTagAttributeRequest @@ -49,7 +49,7 @@ type DeregisterInstanceEventNotificationAttributesOutput struct { ResultMetadata middleware.Metadata } -func addOperationDeregisterInstanceEventNotificationAttributesMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationDeregisterInstanceEventNotificationAttributesMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpDeregisterInstanceEventNotificationAttributes{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeregisterTransitGatewayMulticastGroupMembers.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeregisterTransitGatewayMulticastGroupMembers.go index b66f8a629..f71de3562 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeregisterTransitGatewayMulticastGroupMembers.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeregisterTransitGatewayMulticastGroupMembers.go @@ -18,7 +18,7 @@ func (c *Client) DeregisterTransitGatewayMulticastGroupMembers(ctx context.Conte params = &DeregisterTransitGatewayMulticastGroupMembersInput{} } - result, metadata, err := c.invokeOperation(ctx, "DeregisterTransitGatewayMulticastGroupMembers", params, optFns, addOperationDeregisterTransitGatewayMulticastGroupMembersMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "DeregisterTransitGatewayMulticastGroupMembers", params, optFns, c.addOperationDeregisterTransitGatewayMulticastGroupMembersMiddlewares) if err != nil { return nil, err } @@ -34,7 +34,7 @@ type DeregisterTransitGatewayMulticastGroupMembersInput struct { // 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 + DryRun *bool // The IP address assigned to the transit gateway multicast group. GroupIpAddress *string @@ -55,7 +55,7 @@ type DeregisterTransitGatewayMulticastGroupMembersOutput struct { ResultMetadata middleware.Metadata } -func addOperationDeregisterTransitGatewayMulticastGroupMembersMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationDeregisterTransitGatewayMulticastGroupMembersMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpDeregisterTransitGatewayMulticastGroupMembers{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeregisterTransitGatewayMulticastGroupSources.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeregisterTransitGatewayMulticastGroupSources.go index 378d526d8..7ee97db19 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeregisterTransitGatewayMulticastGroupSources.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeregisterTransitGatewayMulticastGroupSources.go @@ -18,7 +18,7 @@ func (c *Client) DeregisterTransitGatewayMulticastGroupSources(ctx context.Conte params = &DeregisterTransitGatewayMulticastGroupSourcesInput{} } - result, metadata, err := c.invokeOperation(ctx, "DeregisterTransitGatewayMulticastGroupSources", params, optFns, addOperationDeregisterTransitGatewayMulticastGroupSourcesMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "DeregisterTransitGatewayMulticastGroupSources", params, optFns, c.addOperationDeregisterTransitGatewayMulticastGroupSourcesMiddlewares) if err != nil { return nil, err } @@ -34,7 +34,7 @@ type DeregisterTransitGatewayMulticastGroupSourcesInput struct { // 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 + DryRun *bool // The IP address assigned to the transit gateway multicast group. GroupIpAddress *string @@ -55,7 +55,7 @@ type DeregisterTransitGatewayMulticastGroupSourcesOutput struct { ResultMetadata middleware.Metadata } -func addOperationDeregisterTransitGatewayMulticastGroupSourcesMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationDeregisterTransitGatewayMulticastGroupSourcesMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpDeregisterTransitGatewayMulticastGroupSources{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeAccountAttributes.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeAccountAttributes.go index 164f81fed..423341eef 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeAccountAttributes.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeAccountAttributes.go @@ -42,7 +42,7 @@ func (c *Client) DescribeAccountAttributes(ctx context.Context, params *Describe params = &DescribeAccountAttributesInput{} } - result, metadata, err := c.invokeOperation(ctx, "DescribeAccountAttributes", params, optFns, addOperationDescribeAccountAttributesMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "DescribeAccountAttributes", params, optFns, c.addOperationDescribeAccountAttributesMiddlewares) if err != nil { return nil, err } @@ -61,7 +61,7 @@ type DescribeAccountAttributesInput struct { // 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 + DryRun *bool } type DescribeAccountAttributesOutput struct { @@ -73,7 +73,7 @@ type DescribeAccountAttributesOutput struct { ResultMetadata middleware.Metadata } -func addOperationDescribeAccountAttributesMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationDescribeAccountAttributesMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeAccountAttributes{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeAddresses.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeAddresses.go index fb312f492..582501ef5 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeAddresses.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeAddresses.go @@ -21,7 +21,7 @@ func (c *Client) DescribeAddresses(ctx context.Context, params *DescribeAddresse params = &DescribeAddressesInput{} } - result, metadata, err := c.invokeOperation(ctx, "DescribeAddresses", params, optFns, addOperationDescribeAddressesMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "DescribeAddresses", params, optFns, c.addOperationDescribeAddressesMiddlewares) if err != nil { return nil, err } @@ -40,7 +40,7 @@ type DescribeAddressesInput struct { // 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 + DryRun *bool // One or more filters. Filter names and values are case-sensitive. // @@ -58,29 +58,30 @@ type DescribeAddressesInput struct { // // * // network-border-group - A unique set of Availability Zones, Local Zones, or - // Wavelength Zones from where AWS advertises IP addresses. + // Wavelength Zones from where Amazon Web Services advertises IP addresses. // - // * network-interface-id - // - [EC2-VPC] The ID of the network interface that the address is associated with, - // if any. + // * + // network-interface-id - [EC2-VPC] The ID of the network interface that the + // address is associated with, if any. // - // * network-interface-owner-id - The AWS account ID of the owner. + // * network-interface-owner-id - The account + // ID of the owner. // - // * - // private-ip-address - [EC2-VPC] The private IP address associated with the - // Elastic IP address. + // * private-ip-address - [EC2-VPC] The private IP address + // associated with the Elastic IP address. // - // * public-ip - The Elastic IP address, or the carrier IP - // address. + // * public-ip - The Elastic IP address, + // or the carrier IP address. // - // * 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: - 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-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. Filters []types.Filter // One or more Elastic IP addresses. Default: Describes all your Elastic IP @@ -97,7 +98,7 @@ type DescribeAddressesOutput struct { ResultMetadata middleware.Metadata } -func addOperationDescribeAddressesMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationDescribeAddressesMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeAddresses{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeAddressesAttribute.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeAddressesAttribute.go index 0872f0428..02c9cd464 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeAddressesAttribute.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeAddressesAttribute.go @@ -4,6 +4,7 @@ package ec2 import ( "context" + "fmt" awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" "github.com/aws/aws-sdk-go-v2/aws/signer/v4" "github.com/aws/aws-sdk-go-v2/service/ec2/types" @@ -11,12 +12,15 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) +// Describes the attributes of the specified Elastic IP addresses. For +// requirements, see Using reverse DNS for email applications +// (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/elastic-ip-addresses-eip.html#Using_Elastic_Addressing_Reverse_DNS). func (c *Client) DescribeAddressesAttribute(ctx context.Context, params *DescribeAddressesAttributeInput, optFns ...func(*Options)) (*DescribeAddressesAttributeOutput, error) { if params == nil { params = &DescribeAddressesAttributeInput{} } - result, metadata, err := c.invokeOperation(ctx, "DescribeAddressesAttribute", params, optFns, addOperationDescribeAddressesAttributeMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "DescribeAddressesAttribute", params, optFns, c.addOperationDescribeAddressesAttributeMiddlewares) if err != nil { return nil, err } @@ -27,27 +31,41 @@ func (c *Client) DescribeAddressesAttribute(ctx context.Context, params *Describ } type DescribeAddressesAttributeInput struct { + + // [EC2-VPC] The allocation IDs. AllocationIds []string + // The attribute of the IP address. Attribute types.AddressAttributeName - DryRun bool + // 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 - MaxResults int32 + // The maximum number of results to return with a single call. To retrieve the + // remaining results, make another call with the returned nextToken value. + MaxResults *int32 + // The token for the next page of results. NextToken *string } type DescribeAddressesAttributeOutput struct { + + // Information about the IP addresses. Addresses []types.AddressAttribute + // 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 } -func addOperationDescribeAddressesAttributeMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationDescribeAddressesAttributeMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeAddressesAttribute{}, middleware.After) if err != nil { return err @@ -107,6 +125,96 @@ func addOperationDescribeAddressesAttributeMiddlewares(stack *middleware.Stack, return nil } +// DescribeAddressesAttributeAPIClient is a client that implements the +// DescribeAddressesAttribute operation. +type DescribeAddressesAttributeAPIClient interface { + DescribeAddressesAttribute(context.Context, *DescribeAddressesAttributeInput, ...func(*Options)) (*DescribeAddressesAttributeOutput, error) +} + +var _ DescribeAddressesAttributeAPIClient = (*Client)(nil) + +// DescribeAddressesAttributePaginatorOptions is the paginator options for +// DescribeAddressesAttribute +type DescribeAddressesAttributePaginatorOptions struct { + // The maximum number of results to return with a single call. To retrieve the + // remaining results, make another call with the returned nextToken value. + 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 +} + +// DescribeAddressesAttributePaginator is a paginator for +// DescribeAddressesAttribute +type DescribeAddressesAttributePaginator struct { + options DescribeAddressesAttributePaginatorOptions + client DescribeAddressesAttributeAPIClient + params *DescribeAddressesAttributeInput + nextToken *string + firstPage bool +} + +// NewDescribeAddressesAttributePaginator returns a new +// DescribeAddressesAttributePaginator +func NewDescribeAddressesAttributePaginator(client DescribeAddressesAttributeAPIClient, params *DescribeAddressesAttributeInput, optFns ...func(*DescribeAddressesAttributePaginatorOptions)) *DescribeAddressesAttributePaginator { + if params == nil { + params = &DescribeAddressesAttributeInput{} + } + + options := DescribeAddressesAttributePaginatorOptions{} + if params.MaxResults != nil { + options.Limit = *params.MaxResults + } + + for _, fn := range optFns { + fn(&options) + } + + return &DescribeAddressesAttributePaginator{ + options: options, + client: client, + params: params, + firstPage: true, + } +} + +// HasMorePages returns a boolean indicating whether more pages are available +func (p *DescribeAddressesAttributePaginator) HasMorePages() bool { + return p.firstPage || p.nextToken != nil +} + +// NextPage retrieves the next DescribeAddressesAttribute page. +func (p *DescribeAddressesAttributePaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*DescribeAddressesAttributeOutput, 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 + + result, err := p.client.DescribeAddressesAttribute(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 +} + func newServiceMetadataMiddleware_opDescribeAddressesAttribute(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeAggregateIdFormat.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeAggregateIdFormat.go index ed04dc3da..7ea97b8f8 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeAggregateIdFormat.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeAggregateIdFormat.go @@ -28,7 +28,7 @@ func (c *Client) DescribeAggregateIdFormat(ctx context.Context, params *Describe params = &DescribeAggregateIdFormatInput{} } - result, metadata, err := c.invokeOperation(ctx, "DescribeAggregateIdFormat", params, optFns, addOperationDescribeAggregateIdFormatMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "DescribeAggregateIdFormat", params, optFns, c.addOperationDescribeAggregateIdFormatMiddlewares) if err != nil { return nil, err } @@ -44,7 +44,7 @@ type DescribeAggregateIdFormatInput struct { // 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 + DryRun *bool } type DescribeAggregateIdFormatOutput struct { @@ -55,13 +55,13 @@ type DescribeAggregateIdFormatOutput struct { // Indicates whether all resource types in the Region are configured to use longer // IDs. This value is only true if all users are configured to use longer IDs for // all resources types in the Region. - UseLongIdsAggregated bool + UseLongIdsAggregated *bool // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata } -func addOperationDescribeAggregateIdFormatMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationDescribeAggregateIdFormatMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeAggregateIdFormat{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeAvailabilityZones.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeAvailabilityZones.go index ae51584a1..178720d87 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeAvailabilityZones.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeAvailabilityZones.go @@ -23,7 +23,7 @@ func (c *Client) DescribeAvailabilityZones(ctx context.Context, params *Describe params = &DescribeAvailabilityZonesInput{} } - result, metadata, err := c.invokeOperation(ctx, "DescribeAvailabilityZones", params, optFns, addOperationDescribeAvailabilityZonesMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "DescribeAvailabilityZones", params, optFns, c.addOperationDescribeAvailabilityZonesMiddlewares) if err != nil { return nil, err } @@ -38,13 +38,13 @@ type DescribeAvailabilityZonesInput struct { // Include all Availability Zones, Local Zones, and Wavelength Zones regardless of // your opt-in status. If you do not use this parameter, the results include only // the zones for the Regions where you have chosen the option to opt in. - AllAvailabilityZones bool + AllAvailabilityZones *bool // 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 + DryRun *bool // The filters. // @@ -105,7 +105,7 @@ type DescribeAvailabilityZonesOutput struct { ResultMetadata middleware.Metadata } -func addOperationDescribeAvailabilityZonesMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationDescribeAvailabilityZonesMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeAvailabilityZones{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeBundleTasks.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeBundleTasks.go index de1dcb1c3..c3038a204 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeBundleTasks.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeBundleTasks.go @@ -26,7 +26,7 @@ func (c *Client) DescribeBundleTasks(ctx context.Context, params *DescribeBundle params = &DescribeBundleTasksInput{} } - result, metadata, err := c.invokeOperation(ctx, "DescribeBundleTasks", params, optFns, addOperationDescribeBundleTasksMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "DescribeBundleTasks", params, optFns, c.addOperationDescribeBundleTasksMiddlewares) if err != nil { return nil, err } @@ -45,7 +45,7 @@ type DescribeBundleTasksInput struct { // 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 + DryRun *bool // The filters. // @@ -88,7 +88,7 @@ type DescribeBundleTasksOutput struct { ResultMetadata middleware.Metadata } -func addOperationDescribeBundleTasksMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationDescribeBundleTasksMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeBundleTasks{}, middleware.After) if err != nil { return err @@ -295,16 +295,21 @@ func bundleTaskCompleteStateRetryable(ctx context.Context, input *DescribeBundle expectedValue := "complete" var match = true - listOfValues, ok := pathValue.([]string) + listOfValues, ok := pathValue.([]interface{}) if !ok { - return false, fmt.Errorf("waiter comparator expected []string value got %T", pathValue) + return false, fmt.Errorf("waiter comparator expected list got %T", pathValue) } if len(listOfValues) == 0 { match = false } for _, v := range listOfValues { - if v != expectedValue { + value, ok := v.(types.BundleTaskState) + if !ok { + return false, fmt.Errorf("waiter comparator expected types.BundleTaskState value, got %T", pathValue) + } + + if string(value) != expectedValue { match = false } } @@ -321,13 +326,18 @@ func bundleTaskCompleteStateRetryable(ctx context.Context, input *DescribeBundle } expectedValue := "failed" - listOfValues, ok := pathValue.([]string) + listOfValues, ok := pathValue.([]interface{}) if !ok { - return false, fmt.Errorf("waiter comparator expected []string value got %T", pathValue) + return false, fmt.Errorf("waiter comparator expected list got %T", pathValue) } for _, v := range listOfValues { - if v == expectedValue { + value, ok := v.(types.BundleTaskState) + if !ok { + return false, fmt.Errorf("waiter comparator expected types.BundleTaskState value, got %T", pathValue) + } + + if string(value) == expectedValue { return false, fmt.Errorf("waiter state transitioned to Failure") } } diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeByoipCidrs.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeByoipCidrs.go index 28c7a6ec2..db6bc039d 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeByoipCidrs.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeByoipCidrs.go @@ -21,7 +21,7 @@ func (c *Client) DescribeByoipCidrs(ctx context.Context, params *DescribeByoipCi params = &DescribeByoipCidrsInput{} } - result, metadata, err := c.invokeOperation(ctx, "DescribeByoipCidrs", params, optFns, addOperationDescribeByoipCidrsMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "DescribeByoipCidrs", params, optFns, c.addOperationDescribeByoipCidrsMiddlewares) if err != nil { return nil, err } @@ -37,13 +37,13 @@ type DescribeByoipCidrsInput struct { // remaining results, make another call with the returned nextToken value. // // This member is required. - MaxResults int32 + MaxResults *int32 // 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 + DryRun *bool // The token for the next page of results. NextToken *string @@ -62,7 +62,7 @@ type DescribeByoipCidrsOutput struct { ResultMetadata middleware.Metadata } -func addOperationDescribeByoipCidrsMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationDescribeByoipCidrsMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeByoipCidrs{}, middleware.After) if err != nil { return err @@ -156,19 +156,19 @@ type DescribeByoipCidrsPaginator struct { // NewDescribeByoipCidrsPaginator returns a new DescribeByoipCidrsPaginator func NewDescribeByoipCidrsPaginator(client DescribeByoipCidrsAPIClient, params *DescribeByoipCidrsInput, optFns ...func(*DescribeByoipCidrsPaginatorOptions)) *DescribeByoipCidrsPaginator { + if params == nil { + params = &DescribeByoipCidrsInput{} + } + options := DescribeByoipCidrsPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults + if params.MaxResults != nil { + options.Limit = *params.MaxResults } for _, fn := range optFns { fn(&options) } - if params == nil { - params = &DescribeByoipCidrsInput{} - } - return &DescribeByoipCidrsPaginator{ options: options, client: client, @@ -191,7 +191,11 @@ func (p *DescribeByoipCidrsPaginator) NextPage(ctx context.Context, optFns ...fu params := *p.params params.NextToken = p.nextToken - params.MaxResults = p.options.Limit + var limit *int32 + if p.options.Limit > 0 { + limit = &p.options.Limit + } + params.MaxResults = limit result, err := p.client.DescribeByoipCidrs(ctx, ¶ms, optFns...) if err != nil { diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeCapacityReservations.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeCapacityReservations.go index fbfecfea2..71d4a0560 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeCapacityReservations.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeCapacityReservations.go @@ -13,13 +13,13 @@ import ( ) // Describes one or more of your Capacity Reservations. The results describe only -// the Capacity Reservations in the AWS Region that you're currently using. +// the Capacity Reservations in the Region that you're currently using. func (c *Client) DescribeCapacityReservations(ctx context.Context, params *DescribeCapacityReservationsInput, optFns ...func(*Options)) (*DescribeCapacityReservationsOutput, error) { if params == nil { params = &DescribeCapacityReservationsInput{} } - result, metadata, err := c.invokeOperation(ctx, "DescribeCapacityReservations", params, optFns, addOperationDescribeCapacityReservationsMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "DescribeCapacityReservations", params, optFns, c.addOperationDescribeCapacityReservationsMiddlewares) if err != nil { return nil, err } @@ -38,21 +38,21 @@ type DescribeCapacityReservationsInput struct { // 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 + DryRun *bool // One or more filters. // // * instance-type - The type of instance for which the // Capacity Reservation reserves capacity. // - // * owner-id - The ID of the AWS account - // that owns the Capacity Reservation. + // * owner-id - The ID of the account that + // owns the Capacity Reservation. // - // * availability-zone-id - The Availability - // Zone ID of the Capacity Reservation. + // * availability-zone-id - The Availability Zone + // ID of the Capacity Reservation. // - // * instance-platform - The type of - // operating system for which the Capacity Reservation reserves capacity. + // * instance-platform - The type of operating + // system for which the Capacity Reservation reserves capacity. // // * // availability-zone - The Availability Zone ID of the Capacity Reservation. @@ -62,71 +62,77 @@ type DescribeCapacityReservationsInput struct { // Reservation can have one of the following tenancy settings: // // * default - The - // Capacity Reservation is created on hardware that is shared with other AWS + // Capacity Reservation is created on hardware that is shared with other // accounts. // // * dedicated - The Capacity Reservation is created on single-tenant - // hardware that is dedicated to a single AWS account. + // hardware that is dedicated to a single account. // - // * state - The current state - // of the Capacity Reservation. A Capacity Reservation can be in one of the - // following states: + // * outpost-arn - The Amazon + // Resource Name (ARN) of the Outpost on which the Capacity Reservation was + // created. // - // * active- The Capacity Reservation is active and the capacity - // is available for your use. + // * state - The current state of the Capacity Reservation. A Capacity + // Reservation can be in one of the following states: // - // * 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. + // * active- The Capacity + // Reservation is active and the capacity is available for your use. // - // * cancelled - The Capacity - // Reservation was manually cancelled. The reserved capacity is no longer available - // for your 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. // - // * pending - The Capacity Reservation request was successful but - // the capacity provisioning is still pending. + // * + // cancelled - The Capacity Reservation was cancelled. The reserved capacity is no + // longer available for your use. // - // * 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. + // * pending - The Capacity Reservation request was + // successful but the capacity provisioning is still pending. // - // * end-date - The date and time at which the Capacity - // Reservation expires. When a Capacity Reservation expires, the reserved capacity - // is released and you can no longer launch instances into it. The Capacity - // Reservation's state changes to expired when it reaches its end date and time. + // * 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. // - // * - // end-date-type - Indicates the way in which the Capacity Reservation ends. A - // Capacity Reservation can have one of the following end types: + // * start-date - The date and time at which + // the Capacity Reservation was started. // - // * unlimited - The - // Capacity Reservation remains active until you explicitly cancel it. + // * end-date - The date and time at which + // the Capacity Reservation expires. When a Capacity Reservation expires, the + // reserved capacity is released and you can no longer launch instances into it. + // The Capacity Reservation's state changes to expired when it reaches its end date + // and time. // - // * limited - - // The Capacity Reservation expires automatically at a specified date and time. + // * end-date-type - Indicates the way in which the Capacity Reservation + // ends. A Capacity Reservation can have one of the following end types: // // * - // instance-match-criteria - Indicates the type of instance launches that the - // Capacity Reservation accepts. The options include: + // unlimited - The Capacity Reservation remains active until you explicitly cancel + // it. + // + // * limited - The Capacity Reservation expires automatically at a specified + // date and time. + // + // * instance-match-criteria - Indicates the type of instance + // launches that the Capacity Reservation accepts. The options include: // - // * open - The Capacity - // Reservation accepts all instances that have matching attributes (instance type, - // platform, and Availability Zone). Instances that have matching attributes launch - // into the Capacity Reservation automatically without specifying any additional - // parameters. + // * open - + // The Capacity Reservation accepts all instances that have matching attributes + // (instance type, platform, and Availability Zone). Instances that have matching + // attributes launch into the Capacity Reservation automatically without specifying + // any additional parameters. // - // * targeted - The Capacity Reservation only accepts instances that - // have matching attributes (instance type, platform, and Availability Zone), and - // explicitly target the Capacity Reservation. This ensures that only permitted - // instances can use the reserved capacity. + // * targeted - The Capacity Reservation only accepts + // instances that have matching attributes (instance type, platform, and + // Availability Zone), and explicitly target the Capacity Reservation. This ensures + // that only permitted instances can use the reserved capacity. Filters []types.Filter // The maximum number of results to return for the request in a single page. The // remaining results can be seen by sending another request with the returned // nextToken value. This value can be between 5 and 500. If maxResults is given a // larger value than 500, you receive an error. - MaxResults int32 + MaxResults *int32 // The token to use to retrieve the next page of results. NextToken *string @@ -145,7 +151,7 @@ type DescribeCapacityReservationsOutput struct { ResultMetadata middleware.Metadata } -func addOperationDescribeCapacityReservationsMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationDescribeCapacityReservationsMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeCapacityReservations{}, middleware.After) if err != nil { return err @@ -240,19 +246,19 @@ type DescribeCapacityReservationsPaginator struct { // NewDescribeCapacityReservationsPaginator returns a new // DescribeCapacityReservationsPaginator func NewDescribeCapacityReservationsPaginator(client DescribeCapacityReservationsAPIClient, params *DescribeCapacityReservationsInput, optFns ...func(*DescribeCapacityReservationsPaginatorOptions)) *DescribeCapacityReservationsPaginator { + if params == nil { + params = &DescribeCapacityReservationsInput{} + } + options := DescribeCapacityReservationsPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults + if params.MaxResults != nil { + options.Limit = *params.MaxResults } for _, fn := range optFns { fn(&options) } - if params == nil { - params = &DescribeCapacityReservationsInput{} - } - return &DescribeCapacityReservationsPaginator{ options: options, client: client, @@ -275,7 +281,11 @@ func (p *DescribeCapacityReservationsPaginator) NextPage(ctx context.Context, op params := *p.params params.NextToken = p.nextToken - params.MaxResults = p.options.Limit + var limit *int32 + if p.options.Limit > 0 { + limit = &p.options.Limit + } + params.MaxResults = limit result, err := p.client.DescribeCapacityReservations(ctx, ¶ms, optFns...) if err != nil { diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeCarrierGateways.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeCarrierGateways.go index 0568c7d47..f63f7a8d9 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeCarrierGateways.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeCarrierGateways.go @@ -18,7 +18,7 @@ func (c *Client) DescribeCarrierGateways(ctx context.Context, params *DescribeCa params = &DescribeCarrierGatewaysInput{} } - result, metadata, err := c.invokeOperation(ctx, "DescribeCarrierGateways", params, optFns, addOperationDescribeCarrierGatewaysMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "DescribeCarrierGateways", params, optFns, c.addOperationDescribeCarrierGatewaysMiddlewares) if err != nil { return nil, err } @@ -37,7 +37,7 @@ type DescribeCarrierGatewaysInput struct { // 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 + DryRun *bool // One or more filters. // @@ -65,7 +65,7 @@ type DescribeCarrierGatewaysInput struct { // The maximum number of results to return with a single call. To retrieve the // remaining results, make another call with the returned nextToken value. - MaxResults int32 + MaxResults *int32 // The token for the next page of results. NextToken *string @@ -84,7 +84,7 @@ type DescribeCarrierGatewaysOutput struct { ResultMetadata middleware.Metadata } -func addOperationDescribeCarrierGatewaysMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationDescribeCarrierGatewaysMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeCarrierGateways{}, middleware.After) if err != nil { return err @@ -176,19 +176,19 @@ type DescribeCarrierGatewaysPaginator struct { // NewDescribeCarrierGatewaysPaginator returns a new // DescribeCarrierGatewaysPaginator func NewDescribeCarrierGatewaysPaginator(client DescribeCarrierGatewaysAPIClient, params *DescribeCarrierGatewaysInput, optFns ...func(*DescribeCarrierGatewaysPaginatorOptions)) *DescribeCarrierGatewaysPaginator { + if params == nil { + params = &DescribeCarrierGatewaysInput{} + } + options := DescribeCarrierGatewaysPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults + if params.MaxResults != nil { + options.Limit = *params.MaxResults } for _, fn := range optFns { fn(&options) } - if params == nil { - params = &DescribeCarrierGatewaysInput{} - } - return &DescribeCarrierGatewaysPaginator{ options: options, client: client, @@ -211,7 +211,11 @@ func (p *DescribeCarrierGatewaysPaginator) NextPage(ctx context.Context, optFns params := *p.params params.NextToken = p.nextToken - params.MaxResults = p.options.Limit + var limit *int32 + if p.options.Limit > 0 { + limit = &p.options.Limit + } + params.MaxResults = limit result, err := p.client.DescribeCarrierGateways(ctx, ¶ms, optFns...) if err != nil { 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 1688a74f2..5c8a34903 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 @@ -21,7 +21,7 @@ func (c *Client) DescribeClassicLinkInstances(ctx context.Context, params *Descr params = &DescribeClassicLinkInstancesInput{} } - result, metadata, err := c.invokeOperation(ctx, "DescribeClassicLinkInstances", params, optFns, addOperationDescribeClassicLinkInstancesMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "DescribeClassicLinkInstances", params, optFns, c.addOperationDescribeClassicLinkInstancesMiddlewares) if err != nil { return nil, err } @@ -37,7 +37,7 @@ type DescribeClassicLinkInstancesInput struct { // 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 + DryRun *bool // One or more filters. // @@ -67,7 +67,7 @@ type DescribeClassicLinkInstancesInput struct { // The maximum number of results to return with a single call. To retrieve the // remaining results, make another call with the returned nextToken value. // Constraint: If the value is greater than 1000, we return only 1000 items. - MaxResults int32 + MaxResults *int32 // The token for the next page of results. NextToken *string @@ -86,7 +86,7 @@ type DescribeClassicLinkInstancesOutput struct { ResultMetadata middleware.Metadata } -func addOperationDescribeClassicLinkInstancesMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationDescribeClassicLinkInstancesMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeClassicLinkInstances{}, middleware.After) if err != nil { return err @@ -180,19 +180,19 @@ type DescribeClassicLinkInstancesPaginator struct { // NewDescribeClassicLinkInstancesPaginator returns a new // DescribeClassicLinkInstancesPaginator func NewDescribeClassicLinkInstancesPaginator(client DescribeClassicLinkInstancesAPIClient, params *DescribeClassicLinkInstancesInput, optFns ...func(*DescribeClassicLinkInstancesPaginatorOptions)) *DescribeClassicLinkInstancesPaginator { + if params == nil { + params = &DescribeClassicLinkInstancesInput{} + } + options := DescribeClassicLinkInstancesPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults + if params.MaxResults != nil { + options.Limit = *params.MaxResults } for _, fn := range optFns { fn(&options) } - if params == nil { - params = &DescribeClassicLinkInstancesInput{} - } - return &DescribeClassicLinkInstancesPaginator{ options: options, client: client, @@ -215,7 +215,11 @@ func (p *DescribeClassicLinkInstancesPaginator) NextPage(ctx context.Context, op params := *p.params params.NextToken = p.nextToken - params.MaxResults = p.options.Limit + var limit *int32 + if p.options.Limit > 0 { + limit = &p.options.Limit + } + params.MaxResults = limit result, err := p.client.DescribeClassicLinkInstances(ctx, ¶ms, optFns...) if err != nil { diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeClientVpnAuthorizationRules.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeClientVpnAuthorizationRules.go index abfbff915..5c569cbe6 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeClientVpnAuthorizationRules.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeClientVpnAuthorizationRules.go @@ -18,7 +18,7 @@ func (c *Client) DescribeClientVpnAuthorizationRules(ctx context.Context, params params = &DescribeClientVpnAuthorizationRulesInput{} } - result, metadata, err := c.invokeOperation(ctx, "DescribeClientVpnAuthorizationRules", params, optFns, addOperationDescribeClientVpnAuthorizationRulesMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "DescribeClientVpnAuthorizationRules", params, optFns, c.addOperationDescribeClientVpnAuthorizationRulesMiddlewares) if err != nil { return nil, err } @@ -39,7 +39,7 @@ type DescribeClientVpnAuthorizationRulesInput struct { // 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 + DryRun *bool // One or more filters. Filter names and values are case-sensitive. // @@ -56,7 +56,7 @@ type DescribeClientVpnAuthorizationRulesInput struct { // The maximum number of results to return for the request in a single page. The // remaining results can be seen by sending another request with the nextToken // value. - MaxResults int32 + MaxResults *int32 // The token to retrieve the next page of results. NextToken *string @@ -75,7 +75,7 @@ type DescribeClientVpnAuthorizationRulesOutput struct { ResultMetadata middleware.Metadata } -func addOperationDescribeClientVpnAuthorizationRulesMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationDescribeClientVpnAuthorizationRulesMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeClientVpnAuthorizationRules{}, middleware.After) if err != nil { return err @@ -172,19 +172,19 @@ type DescribeClientVpnAuthorizationRulesPaginator struct { // NewDescribeClientVpnAuthorizationRulesPaginator returns a new // DescribeClientVpnAuthorizationRulesPaginator func NewDescribeClientVpnAuthorizationRulesPaginator(client DescribeClientVpnAuthorizationRulesAPIClient, params *DescribeClientVpnAuthorizationRulesInput, optFns ...func(*DescribeClientVpnAuthorizationRulesPaginatorOptions)) *DescribeClientVpnAuthorizationRulesPaginator { + if params == nil { + params = &DescribeClientVpnAuthorizationRulesInput{} + } + options := DescribeClientVpnAuthorizationRulesPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults + if params.MaxResults != nil { + options.Limit = *params.MaxResults } for _, fn := range optFns { fn(&options) } - if params == nil { - params = &DescribeClientVpnAuthorizationRulesInput{} - } - return &DescribeClientVpnAuthorizationRulesPaginator{ options: options, client: client, @@ -207,7 +207,11 @@ func (p *DescribeClientVpnAuthorizationRulesPaginator) NextPage(ctx context.Cont params := *p.params params.NextToken = p.nextToken - params.MaxResults = p.options.Limit + var limit *int32 + if p.options.Limit > 0 { + limit = &p.options.Limit + } + params.MaxResults = limit result, err := p.client.DescribeClientVpnAuthorizationRules(ctx, ¶ms, optFns...) if err != nil { diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeClientVpnConnections.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeClientVpnConnections.go index a732f06f3..d24ded8f3 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeClientVpnConnections.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeClientVpnConnections.go @@ -19,7 +19,7 @@ func (c *Client) DescribeClientVpnConnections(ctx context.Context, params *Descr params = &DescribeClientVpnConnectionsInput{} } - result, metadata, err := c.invokeOperation(ctx, "DescribeClientVpnConnections", params, optFns, addOperationDescribeClientVpnConnectionsMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "DescribeClientVpnConnections", params, optFns, c.addOperationDescribeClientVpnConnectionsMiddlewares) if err != nil { return nil, err } @@ -40,7 +40,7 @@ type DescribeClientVpnConnectionsInput struct { // 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 + DryRun *bool // One or more filters. Filter names and values are case-sensitive. // @@ -55,7 +55,7 @@ type DescribeClientVpnConnectionsInput struct { // The maximum number of results to return for the request in a single page. The // remaining results can be seen by sending another request with the nextToken // value. - MaxResults int32 + MaxResults *int32 // The token to retrieve the next page of results. NextToken *string @@ -74,7 +74,7 @@ type DescribeClientVpnConnectionsOutput struct { ResultMetadata middleware.Metadata } -func addOperationDescribeClientVpnConnectionsMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationDescribeClientVpnConnectionsMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeClientVpnConnections{}, middleware.After) if err != nil { return err @@ -171,19 +171,19 @@ type DescribeClientVpnConnectionsPaginator struct { // NewDescribeClientVpnConnectionsPaginator returns a new // DescribeClientVpnConnectionsPaginator func NewDescribeClientVpnConnectionsPaginator(client DescribeClientVpnConnectionsAPIClient, params *DescribeClientVpnConnectionsInput, optFns ...func(*DescribeClientVpnConnectionsPaginatorOptions)) *DescribeClientVpnConnectionsPaginator { + if params == nil { + params = &DescribeClientVpnConnectionsInput{} + } + options := DescribeClientVpnConnectionsPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults + if params.MaxResults != nil { + options.Limit = *params.MaxResults } for _, fn := range optFns { fn(&options) } - if params == nil { - params = &DescribeClientVpnConnectionsInput{} - } - return &DescribeClientVpnConnectionsPaginator{ options: options, client: client, @@ -206,7 +206,11 @@ func (p *DescribeClientVpnConnectionsPaginator) NextPage(ctx context.Context, op params := *p.params params.NextToken = p.nextToken - params.MaxResults = p.options.Limit + var limit *int32 + if p.options.Limit > 0 { + limit = &p.options.Limit + } + params.MaxResults = limit result, err := p.client.DescribeClientVpnConnections(ctx, ¶ms, optFns...) if err != nil { diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeClientVpnEndpoints.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeClientVpnEndpoints.go index f68b7f15d..7bff39ec4 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeClientVpnEndpoints.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeClientVpnEndpoints.go @@ -18,7 +18,7 @@ func (c *Client) DescribeClientVpnEndpoints(ctx context.Context, params *Describ params = &DescribeClientVpnEndpointsInput{} } - result, metadata, err := c.invokeOperation(ctx, "DescribeClientVpnEndpoints", params, optFns, addOperationDescribeClientVpnEndpointsMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "DescribeClientVpnEndpoints", params, optFns, c.addOperationDescribeClientVpnEndpointsMiddlewares) if err != nil { return nil, err } @@ -37,7 +37,7 @@ type DescribeClientVpnEndpointsInput struct { // 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 + DryRun *bool // One or more filters. Filter names and values are case-sensitive. // @@ -51,7 +51,7 @@ type DescribeClientVpnEndpointsInput struct { // The maximum number of results to return for the request in a single page. The // remaining results can be seen by sending another request with the nextToken // value. - MaxResults int32 + MaxResults *int32 // The token to retrieve the next page of results. NextToken *string @@ -70,7 +70,7 @@ type DescribeClientVpnEndpointsOutput struct { ResultMetadata middleware.Metadata } -func addOperationDescribeClientVpnEndpointsMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationDescribeClientVpnEndpointsMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeClientVpnEndpoints{}, middleware.After) if err != nil { return err @@ -164,19 +164,19 @@ type DescribeClientVpnEndpointsPaginator struct { // NewDescribeClientVpnEndpointsPaginator returns a new // DescribeClientVpnEndpointsPaginator func NewDescribeClientVpnEndpointsPaginator(client DescribeClientVpnEndpointsAPIClient, params *DescribeClientVpnEndpointsInput, optFns ...func(*DescribeClientVpnEndpointsPaginatorOptions)) *DescribeClientVpnEndpointsPaginator { + if params == nil { + params = &DescribeClientVpnEndpointsInput{} + } + options := DescribeClientVpnEndpointsPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults + if params.MaxResults != nil { + options.Limit = *params.MaxResults } for _, fn := range optFns { fn(&options) } - if params == nil { - params = &DescribeClientVpnEndpointsInput{} - } - return &DescribeClientVpnEndpointsPaginator{ options: options, client: client, @@ -199,7 +199,11 @@ func (p *DescribeClientVpnEndpointsPaginator) NextPage(ctx context.Context, optF params := *p.params params.NextToken = p.nextToken - params.MaxResults = p.options.Limit + var limit *int32 + if p.options.Limit > 0 { + limit = &p.options.Limit + } + params.MaxResults = limit result, err := p.client.DescribeClientVpnEndpoints(ctx, ¶ms, optFns...) if err != nil { diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeClientVpnRoutes.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeClientVpnRoutes.go index 31dd307d0..d1b4d6ecb 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeClientVpnRoutes.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeClientVpnRoutes.go @@ -18,7 +18,7 @@ func (c *Client) DescribeClientVpnRoutes(ctx context.Context, params *DescribeCl params = &DescribeClientVpnRoutesInput{} } - result, metadata, err := c.invokeOperation(ctx, "DescribeClientVpnRoutes", params, optFns, addOperationDescribeClientVpnRoutesMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "DescribeClientVpnRoutes", params, optFns, c.addOperationDescribeClientVpnRoutesMiddlewares) if err != nil { return nil, err } @@ -39,7 +39,7 @@ type DescribeClientVpnRoutesInput struct { // 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 + DryRun *bool // One or more filters. Filter names and values are case-sensitive. // @@ -56,7 +56,7 @@ type DescribeClientVpnRoutesInput struct { // The maximum number of results to return for the request in a single page. The // remaining results can be seen by sending another request with the nextToken // value. - MaxResults int32 + MaxResults *int32 // The token to retrieve the next page of results. NextToken *string @@ -75,7 +75,7 @@ type DescribeClientVpnRoutesOutput struct { ResultMetadata middleware.Metadata } -func addOperationDescribeClientVpnRoutesMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationDescribeClientVpnRoutesMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeClientVpnRoutes{}, middleware.After) if err != nil { return err @@ -171,19 +171,19 @@ type DescribeClientVpnRoutesPaginator struct { // NewDescribeClientVpnRoutesPaginator returns a new // DescribeClientVpnRoutesPaginator func NewDescribeClientVpnRoutesPaginator(client DescribeClientVpnRoutesAPIClient, params *DescribeClientVpnRoutesInput, optFns ...func(*DescribeClientVpnRoutesPaginatorOptions)) *DescribeClientVpnRoutesPaginator { + if params == nil { + params = &DescribeClientVpnRoutesInput{} + } + options := DescribeClientVpnRoutesPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults + if params.MaxResults != nil { + options.Limit = *params.MaxResults } for _, fn := range optFns { fn(&options) } - if params == nil { - params = &DescribeClientVpnRoutesInput{} - } - return &DescribeClientVpnRoutesPaginator{ options: options, client: client, @@ -206,7 +206,11 @@ func (p *DescribeClientVpnRoutesPaginator) NextPage(ctx context.Context, optFns params := *p.params params.NextToken = p.nextToken - params.MaxResults = p.options.Limit + var limit *int32 + if p.options.Limit > 0 { + limit = &p.options.Limit + } + params.MaxResults = limit result, err := p.client.DescribeClientVpnRoutes(ctx, ¶ms, optFns...) if err != nil { diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeClientVpnTargetNetworks.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeClientVpnTargetNetworks.go index 121465120..c53158595 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeClientVpnTargetNetworks.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeClientVpnTargetNetworks.go @@ -18,7 +18,7 @@ func (c *Client) DescribeClientVpnTargetNetworks(ctx context.Context, params *De params = &DescribeClientVpnTargetNetworksInput{} } - result, metadata, err := c.invokeOperation(ctx, "DescribeClientVpnTargetNetworks", params, optFns, addOperationDescribeClientVpnTargetNetworksMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "DescribeClientVpnTargetNetworks", params, optFns, c.addOperationDescribeClientVpnTargetNetworksMiddlewares) if err != nil { return nil, err } @@ -42,7 +42,7 @@ type DescribeClientVpnTargetNetworksInput struct { // 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 + DryRun *bool // One or more filters. Filter names and values are case-sensitive. // @@ -59,7 +59,7 @@ type DescribeClientVpnTargetNetworksInput struct { // The maximum number of results to return for the request in a single page. The // remaining results can be seen by sending another request with the nextToken // value. - MaxResults int32 + MaxResults *int32 // The token to retrieve the next page of results. NextToken *string @@ -78,7 +78,7 @@ type DescribeClientVpnTargetNetworksOutput struct { ResultMetadata middleware.Metadata } -func addOperationDescribeClientVpnTargetNetworksMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationDescribeClientVpnTargetNetworksMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeClientVpnTargetNetworks{}, middleware.After) if err != nil { return err @@ -175,19 +175,19 @@ type DescribeClientVpnTargetNetworksPaginator struct { // NewDescribeClientVpnTargetNetworksPaginator returns a new // DescribeClientVpnTargetNetworksPaginator func NewDescribeClientVpnTargetNetworksPaginator(client DescribeClientVpnTargetNetworksAPIClient, params *DescribeClientVpnTargetNetworksInput, optFns ...func(*DescribeClientVpnTargetNetworksPaginatorOptions)) *DescribeClientVpnTargetNetworksPaginator { + if params == nil { + params = &DescribeClientVpnTargetNetworksInput{} + } + options := DescribeClientVpnTargetNetworksPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults + if params.MaxResults != nil { + options.Limit = *params.MaxResults } for _, fn := range optFns { fn(&options) } - if params == nil { - params = &DescribeClientVpnTargetNetworksInput{} - } - return &DescribeClientVpnTargetNetworksPaginator{ options: options, client: client, @@ -210,7 +210,11 @@ func (p *DescribeClientVpnTargetNetworksPaginator) NextPage(ctx context.Context, params := *p.params params.NextToken = p.nextToken - params.MaxResults = p.options.Limit + var limit *int32 + if p.options.Limit > 0 { + limit = &p.options.Limit + } + params.MaxResults = limit result, err := p.client.DescribeClientVpnTargetNetworks(ctx, ¶ms, optFns...) if err != nil { diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeCoipPools.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeCoipPools.go index 6aa674e57..62acc41ac 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeCoipPools.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeCoipPools.go @@ -19,7 +19,7 @@ func (c *Client) DescribeCoipPools(ctx context.Context, params *DescribeCoipPool params = &DescribeCoipPoolsInput{} } - result, metadata, err := c.invokeOperation(ctx, "DescribeCoipPools", params, optFns, addOperationDescribeCoipPoolsMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "DescribeCoipPools", params, optFns, c.addOperationDescribeCoipPoolsMiddlewares) if err != nil { return nil, err } @@ -35,7 +35,7 @@ type DescribeCoipPoolsInput struct { // 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 + DryRun *bool // The filters. The following are the possible values: // @@ -47,7 +47,7 @@ type DescribeCoipPoolsInput struct { // The maximum number of results to return with a single call. To retrieve the // remaining results, make another call with the returned nextToken value. - MaxResults int32 + MaxResults *int32 // The token for the next page of results. NextToken *string @@ -69,7 +69,7 @@ type DescribeCoipPoolsOutput struct { ResultMetadata middleware.Metadata } -func addOperationDescribeCoipPoolsMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationDescribeCoipPoolsMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeCoipPools{}, middleware.After) if err != nil { return err @@ -159,19 +159,19 @@ type DescribeCoipPoolsPaginator struct { // NewDescribeCoipPoolsPaginator returns a new DescribeCoipPoolsPaginator func NewDescribeCoipPoolsPaginator(client DescribeCoipPoolsAPIClient, params *DescribeCoipPoolsInput, optFns ...func(*DescribeCoipPoolsPaginatorOptions)) *DescribeCoipPoolsPaginator { + if params == nil { + params = &DescribeCoipPoolsInput{} + } + options := DescribeCoipPoolsPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults + if params.MaxResults != nil { + options.Limit = *params.MaxResults } for _, fn := range optFns { fn(&options) } - if params == nil { - params = &DescribeCoipPoolsInput{} - } - return &DescribeCoipPoolsPaginator{ options: options, client: client, @@ -194,7 +194,11 @@ func (p *DescribeCoipPoolsPaginator) NextPage(ctx context.Context, optFns ...fun params := *p.params params.NextToken = p.nextToken - params.MaxResults = p.options.Limit + var limit *int32 + if p.options.Limit > 0 { + limit = &p.options.Limit + } + params.MaxResults = limit result, err := p.client.DescribeCoipPools(ctx, ¶ms, optFns...) if err != nil { diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeConversionTasks.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeConversionTasks.go index b25a89c54..860bb776e 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeConversionTasks.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeConversionTasks.go @@ -26,7 +26,7 @@ func (c *Client) DescribeConversionTasks(ctx context.Context, params *DescribeCo params = &DescribeConversionTasksInput{} } - result, metadata, err := c.invokeOperation(ctx, "DescribeConversionTasks", params, optFns, addOperationDescribeConversionTasksMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "DescribeConversionTasks", params, optFns, c.addOperationDescribeConversionTasksMiddlewares) if err != nil { return nil, err } @@ -45,7 +45,7 @@ type DescribeConversionTasksInput struct { // 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 + DryRun *bool } type DescribeConversionTasksOutput struct { @@ -57,7 +57,7 @@ type DescribeConversionTasksOutput struct { ResultMetadata middleware.Metadata } -func addOperationDescribeConversionTasksMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationDescribeConversionTasksMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeConversionTasks{}, middleware.After) if err != nil { return err @@ -266,16 +266,21 @@ func conversionTaskCancelledStateRetryable(ctx context.Context, input *DescribeC expectedValue := "cancelled" var match = true - listOfValues, ok := pathValue.([]string) + listOfValues, ok := pathValue.([]interface{}) if !ok { - return false, fmt.Errorf("waiter comparator expected []string value got %T", pathValue) + return false, fmt.Errorf("waiter comparator expected list got %T", pathValue) } if len(listOfValues) == 0 { match = false } for _, v := range listOfValues { - if v != expectedValue { + value, ok := v.(types.ConversionTaskState) + if !ok { + return false, fmt.Errorf("waiter comparator expected types.ConversionTaskState value, got %T", pathValue) + } + + if string(value) != expectedValue { match = false } } @@ -429,16 +434,21 @@ func conversionTaskCompletedStateRetryable(ctx context.Context, input *DescribeC expectedValue := "completed" var match = true - listOfValues, ok := pathValue.([]string) + listOfValues, ok := pathValue.([]interface{}) if !ok { - return false, fmt.Errorf("waiter comparator expected []string value got %T", pathValue) + return false, fmt.Errorf("waiter comparator expected list got %T", pathValue) } if len(listOfValues) == 0 { match = false } for _, v := range listOfValues { - if v != expectedValue { + value, ok := v.(types.ConversionTaskState) + if !ok { + return false, fmt.Errorf("waiter comparator expected types.ConversionTaskState value, got %T", pathValue) + } + + if string(value) != expectedValue { match = false } } @@ -455,13 +465,18 @@ func conversionTaskCompletedStateRetryable(ctx context.Context, input *DescribeC } expectedValue := "cancelled" - listOfValues, ok := pathValue.([]string) + listOfValues, ok := pathValue.([]interface{}) if !ok { - return false, fmt.Errorf("waiter comparator expected []string value got %T", pathValue) + return false, fmt.Errorf("waiter comparator expected list got %T", pathValue) } for _, v := range listOfValues { - if v == expectedValue { + value, ok := v.(types.ConversionTaskState) + if !ok { + return false, fmt.Errorf("waiter comparator expected types.ConversionTaskState value, got %T", pathValue) + } + + if string(value) == expectedValue { return false, fmt.Errorf("waiter state transitioned to Failure") } } @@ -474,13 +489,18 @@ func conversionTaskCompletedStateRetryable(ctx context.Context, input *DescribeC } expectedValue := "cancelling" - listOfValues, ok := pathValue.([]string) + listOfValues, ok := pathValue.([]interface{}) if !ok { - return false, fmt.Errorf("waiter comparator expected []string value got %T", pathValue) + return false, fmt.Errorf("waiter comparator expected list got %T", pathValue) } for _, v := range listOfValues { - if v == expectedValue { + value, ok := v.(types.ConversionTaskState) + if !ok { + return false, fmt.Errorf("waiter comparator expected types.ConversionTaskState value, got %T", pathValue) + } + + if string(value) == expectedValue { return false, fmt.Errorf("waiter state transitioned to Failure") } } @@ -629,16 +649,21 @@ func conversionTaskDeletedStateRetryable(ctx context.Context, input *DescribeCon expectedValue := "deleted" var match = true - listOfValues, ok := pathValue.([]string) + listOfValues, ok := pathValue.([]interface{}) if !ok { - return false, fmt.Errorf("waiter comparator expected []string value got %T", pathValue) + return false, fmt.Errorf("waiter comparator expected list got %T", pathValue) } if len(listOfValues) == 0 { match = false } for _, v := range listOfValues { - if v != expectedValue { + value, ok := v.(types.ConversionTaskState) + if !ok { + return false, fmt.Errorf("waiter comparator expected types.ConversionTaskState value, got %T", pathValue) + } + + if string(value) != expectedValue { match = false } } diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeCustomerGateways.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeCustomerGateways.go index c8f5062a8..2e0773dbc 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeCustomerGateways.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeCustomerGateways.go @@ -25,7 +25,7 @@ func (c *Client) DescribeCustomerGateways(ctx context.Context, params *DescribeC params = &DescribeCustomerGatewaysInput{} } - result, metadata, err := c.invokeOperation(ctx, "DescribeCustomerGateways", params, optFns, addOperationDescribeCustomerGatewaysMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "DescribeCustomerGateways", params, optFns, c.addOperationDescribeCustomerGatewaysMiddlewares) if err != nil { return nil, err } @@ -45,7 +45,7 @@ type DescribeCustomerGatewaysInput struct { // 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 + DryRun *bool // One or more filters. // @@ -86,7 +86,7 @@ type DescribeCustomerGatewaysOutput struct { ResultMetadata middleware.Metadata } -func addOperationDescribeCustomerGatewaysMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationDescribeCustomerGatewaysMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeCustomerGateways{}, middleware.After) if err != nil { return err @@ -295,16 +295,21 @@ func customerGatewayAvailableStateRetryable(ctx context.Context, input *Describe expectedValue := "available" var match = true - listOfValues, ok := pathValue.([]string) + listOfValues, ok := pathValue.([]interface{}) if !ok { - return false, fmt.Errorf("waiter comparator expected []string value got %T", pathValue) + return false, fmt.Errorf("waiter comparator expected list got %T", pathValue) } if len(listOfValues) == 0 { match = false } for _, v := range listOfValues { - if v != expectedValue { + value, ok := v.(*string) + if !ok { + return false, fmt.Errorf("waiter comparator expected *string value, got %T", pathValue) + } + + if string(*value) != expectedValue { match = false } } @@ -321,13 +326,18 @@ func customerGatewayAvailableStateRetryable(ctx context.Context, input *Describe } expectedValue := "deleted" - listOfValues, ok := pathValue.([]string) + listOfValues, ok := pathValue.([]interface{}) if !ok { - return false, fmt.Errorf("waiter comparator expected []string value got %T", pathValue) + return false, fmt.Errorf("waiter comparator expected list got %T", pathValue) } for _, v := range listOfValues { - if v == expectedValue { + value, ok := v.(*string) + if !ok { + return false, fmt.Errorf("waiter comparator expected *string value, got %T", pathValue) + } + + if string(*value) == expectedValue { return false, fmt.Errorf("waiter state transitioned to Failure") } } @@ -340,13 +350,18 @@ func customerGatewayAvailableStateRetryable(ctx context.Context, input *Describe } expectedValue := "deleting" - listOfValues, ok := pathValue.([]string) + listOfValues, ok := pathValue.([]interface{}) if !ok { - return false, fmt.Errorf("waiter comparator expected []string value got %T", pathValue) + return false, fmt.Errorf("waiter comparator expected list got %T", pathValue) } for _, v := range listOfValues { - if v == expectedValue { + value, ok := v.(*string) + if !ok { + return false, fmt.Errorf("waiter comparator expected *string value, got %T", pathValue) + } + + if string(*value) == expectedValue { return false, fmt.Errorf("waiter state transitioned to Failure") } } 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 a01ce823f..2d9da7544 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 @@ -21,7 +21,7 @@ func (c *Client) DescribeDhcpOptions(ctx context.Context, params *DescribeDhcpOp params = &DescribeDhcpOptionsInput{} } - result, metadata, err := c.invokeOperation(ctx, "DescribeDhcpOptions", params, optFns, addOperationDescribeDhcpOptionsMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "DescribeDhcpOptions", params, optFns, c.addOperationDescribeDhcpOptionsMiddlewares) if err != nil { return nil, err } @@ -41,7 +41,7 @@ type DescribeDhcpOptionsInput struct { // 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 + DryRun *bool // One or more filters. // @@ -69,7 +69,7 @@ type DescribeDhcpOptionsInput struct { // The maximum number of results to return with a single call. To retrieve the // remaining results, make another call with the returned nextToken value. - MaxResults int32 + MaxResults *int32 // The token for the next page of results. NextToken *string @@ -88,7 +88,7 @@ type DescribeDhcpOptionsOutput struct { ResultMetadata middleware.Metadata } -func addOperationDescribeDhcpOptionsMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationDescribeDhcpOptionsMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeDhcpOptions{}, middleware.After) if err != nil { return err @@ -179,19 +179,19 @@ type DescribeDhcpOptionsPaginator struct { // NewDescribeDhcpOptionsPaginator returns a new DescribeDhcpOptionsPaginator func NewDescribeDhcpOptionsPaginator(client DescribeDhcpOptionsAPIClient, params *DescribeDhcpOptionsInput, optFns ...func(*DescribeDhcpOptionsPaginatorOptions)) *DescribeDhcpOptionsPaginator { + if params == nil { + params = &DescribeDhcpOptionsInput{} + } + options := DescribeDhcpOptionsPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults + if params.MaxResults != nil { + options.Limit = *params.MaxResults } for _, fn := range optFns { fn(&options) } - if params == nil { - params = &DescribeDhcpOptionsInput{} - } - return &DescribeDhcpOptionsPaginator{ options: options, client: client, @@ -214,7 +214,11 @@ func (p *DescribeDhcpOptionsPaginator) NextPage(ctx context.Context, optFns ...f params := *p.params params.NextToken = p.nextToken - params.MaxResults = p.options.Limit + var limit *int32 + if p.options.Limit > 0 { + limit = &p.options.Limit + } + params.MaxResults = limit result, err := p.client.DescribeDhcpOptions(ctx, ¶ms, optFns...) if err != nil { 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 f1de15cb3..76a0b619c 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 @@ -18,7 +18,7 @@ func (c *Client) DescribeEgressOnlyInternetGateways(ctx context.Context, params params = &DescribeEgressOnlyInternetGatewaysInput{} } - result, metadata, err := c.invokeOperation(ctx, "DescribeEgressOnlyInternetGateways", params, optFns, addOperationDescribeEgressOnlyInternetGatewaysMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "DescribeEgressOnlyInternetGateways", params, optFns, c.addOperationDescribeEgressOnlyInternetGatewaysMiddlewares) if err != nil { return nil, err } @@ -34,7 +34,7 @@ type DescribeEgressOnlyInternetGatewaysInput struct { // 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 + DryRun *bool // One or more egress-only internet gateway IDs. EgressOnlyInternetGatewayIds []string @@ -54,7 +54,7 @@ type DescribeEgressOnlyInternetGatewaysInput struct { // The maximum number of results to return with a single call. To retrieve the // remaining results, make another call with the returned nextToken value. - MaxResults int32 + MaxResults *int32 // The token for the next page of results. NextToken *string @@ -73,7 +73,7 @@ type DescribeEgressOnlyInternetGatewaysOutput struct { ResultMetadata middleware.Metadata } -func addOperationDescribeEgressOnlyInternetGatewaysMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationDescribeEgressOnlyInternetGatewaysMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeEgressOnlyInternetGateways{}, middleware.After) if err != nil { return err @@ -166,19 +166,19 @@ type DescribeEgressOnlyInternetGatewaysPaginator struct { // NewDescribeEgressOnlyInternetGatewaysPaginator returns a new // DescribeEgressOnlyInternetGatewaysPaginator func NewDescribeEgressOnlyInternetGatewaysPaginator(client DescribeEgressOnlyInternetGatewaysAPIClient, params *DescribeEgressOnlyInternetGatewaysInput, optFns ...func(*DescribeEgressOnlyInternetGatewaysPaginatorOptions)) *DescribeEgressOnlyInternetGatewaysPaginator { + if params == nil { + params = &DescribeEgressOnlyInternetGatewaysInput{} + } + options := DescribeEgressOnlyInternetGatewaysPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults + if params.MaxResults != nil { + options.Limit = *params.MaxResults } for _, fn := range optFns { fn(&options) } - if params == nil { - params = &DescribeEgressOnlyInternetGatewaysInput{} - } - return &DescribeEgressOnlyInternetGatewaysPaginator{ options: options, client: client, @@ -201,7 +201,11 @@ func (p *DescribeEgressOnlyInternetGatewaysPaginator) NextPage(ctx context.Conte params := *p.params params.NextToken = p.nextToken - params.MaxResults = p.options.Limit + var limit *int32 + if p.options.Limit > 0 { + limit = &p.options.Limit + } + params.MaxResults = limit result, err := p.client.DescribeEgressOnlyInternetGateways(ctx, ¶ms, optFns...) if err != nil { diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeElasticGpus.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeElasticGpus.go index f9b6ae300..e70e768c2 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeElasticGpus.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeElasticGpus.go @@ -19,7 +19,7 @@ func (c *Client) DescribeElasticGpus(ctx context.Context, params *DescribeElasti params = &DescribeElasticGpusInput{} } - result, metadata, err := c.invokeOperation(ctx, "DescribeElasticGpus", params, optFns, addOperationDescribeElasticGpusMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "DescribeElasticGpus", params, optFns, c.addOperationDescribeElasticGpusMiddlewares) if err != nil { return nil, err } @@ -35,7 +35,7 @@ type DescribeElasticGpusInput struct { // 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 + DryRun *bool // The Elastic Graphics accelerator IDs. ElasticGpuIds []string @@ -61,7 +61,7 @@ type DescribeElasticGpusInput struct { // The maximum number of results to return in a single call. To retrieve the // remaining results, make another call with the returned NextToken value. This // value can be between 5 and 1000. - MaxResults int32 + MaxResults *int32 // The token to request the next page of results. NextToken *string @@ -75,7 +75,7 @@ type DescribeElasticGpusOutput struct { // The total number of items to return. If the total number of items available is // more than the value specified in max-items then a Next-Token will be provided in // the output that you can use to resume pagination. - MaxResults int32 + MaxResults *int32 // The token to use to retrieve the next page of results. This value is null when // there are no more results to return. @@ -85,7 +85,7 @@ type DescribeElasticGpusOutput struct { ResultMetadata middleware.Metadata } -func addOperationDescribeElasticGpusMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationDescribeElasticGpusMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeElasticGpus{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeExportImageTasks.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeExportImageTasks.go index 03e424abf..2fc80387a 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeExportImageTasks.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeExportImageTasks.go @@ -18,7 +18,7 @@ func (c *Client) DescribeExportImageTasks(ctx context.Context, params *DescribeE params = &DescribeExportImageTasksInput{} } - result, metadata, err := c.invokeOperation(ctx, "DescribeExportImageTasks", params, optFns, addOperationDescribeExportImageTasksMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "DescribeExportImageTasks", params, optFns, c.addOperationDescribeExportImageTasksMiddlewares) if err != nil { return nil, err } @@ -34,7 +34,7 @@ type DescribeExportImageTasksInput struct { // 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 + DryRun *bool // The IDs of the export image tasks. ExportImageTaskIds []string @@ -44,7 +44,7 @@ type DescribeExportImageTasksInput struct { Filters []types.Filter // The maximum number of results to return in a single call. - MaxResults int32 + MaxResults *int32 // A token that indicates the next page of results. NextToken *string @@ -63,7 +63,7 @@ type DescribeExportImageTasksOutput struct { ResultMetadata middleware.Metadata } -func addOperationDescribeExportImageTasksMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationDescribeExportImageTasksMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeExportImageTasks{}, middleware.After) if err != nil { return err @@ -154,19 +154,19 @@ type DescribeExportImageTasksPaginator struct { // NewDescribeExportImageTasksPaginator returns a new // DescribeExportImageTasksPaginator func NewDescribeExportImageTasksPaginator(client DescribeExportImageTasksAPIClient, params *DescribeExportImageTasksInput, optFns ...func(*DescribeExportImageTasksPaginatorOptions)) *DescribeExportImageTasksPaginator { + if params == nil { + params = &DescribeExportImageTasksInput{} + } + options := DescribeExportImageTasksPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults + if params.MaxResults != nil { + options.Limit = *params.MaxResults } for _, fn := range optFns { fn(&options) } - if params == nil { - params = &DescribeExportImageTasksInput{} - } - return &DescribeExportImageTasksPaginator{ options: options, client: client, @@ -189,7 +189,11 @@ func (p *DescribeExportImageTasksPaginator) NextPage(ctx context.Context, optFns params := *p.params params.NextToken = p.nextToken - params.MaxResults = p.options.Limit + var limit *int32 + if p.options.Limit > 0 { + limit = &p.options.Limit + } + params.MaxResults = limit result, err := p.client.DescribeExportImageTasks(ctx, ¶ms, optFns...) if err != nil { diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeExportTasks.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeExportTasks.go index 2d51430e0..8cc5389f9 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeExportTasks.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeExportTasks.go @@ -23,7 +23,7 @@ func (c *Client) DescribeExportTasks(ctx context.Context, params *DescribeExport params = &DescribeExportTasksInput{} } - result, metadata, err := c.invokeOperation(ctx, "DescribeExportTasks", params, optFns, addOperationDescribeExportTasksMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "DescribeExportTasks", params, optFns, c.addOperationDescribeExportTasksMiddlewares) if err != nil { return nil, err } @@ -51,7 +51,7 @@ type DescribeExportTasksOutput struct { ResultMetadata middleware.Metadata } -func addOperationDescribeExportTasksMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationDescribeExportTasksMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeExportTasks{}, middleware.After) if err != nil { return err @@ -259,16 +259,21 @@ func exportTaskCancelledStateRetryable(ctx context.Context, input *DescribeExpor expectedValue := "cancelled" var match = true - listOfValues, ok := pathValue.([]string) + listOfValues, ok := pathValue.([]interface{}) if !ok { - return false, fmt.Errorf("waiter comparator expected []string value got %T", pathValue) + return false, fmt.Errorf("waiter comparator expected list got %T", pathValue) } if len(listOfValues) == 0 { match = false } for _, v := range listOfValues { - if v != expectedValue { + value, ok := v.(types.ExportTaskState) + if !ok { + return false, fmt.Errorf("waiter comparator expected types.ExportTaskState value, got %T", pathValue) + } + + if string(value) != expectedValue { match = false } } @@ -421,16 +426,21 @@ func exportTaskCompletedStateRetryable(ctx context.Context, input *DescribeExpor expectedValue := "completed" var match = true - listOfValues, ok := pathValue.([]string) + listOfValues, ok := pathValue.([]interface{}) if !ok { - return false, fmt.Errorf("waiter comparator expected []string value got %T", pathValue) + return false, fmt.Errorf("waiter comparator expected list got %T", pathValue) } if len(listOfValues) == 0 { match = false } for _, v := range listOfValues { - if v != expectedValue { + value, ok := v.(types.ExportTaskState) + if !ok { + return false, fmt.Errorf("waiter comparator expected types.ExportTaskState value, got %T", pathValue) + } + + if string(value) != expectedValue { match = false } } diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeFastSnapshotRestores.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeFastSnapshotRestores.go index b72eab41b..1750902f2 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeFastSnapshotRestores.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeFastSnapshotRestores.go @@ -18,7 +18,7 @@ func (c *Client) DescribeFastSnapshotRestores(ctx context.Context, params *Descr params = &DescribeFastSnapshotRestoresInput{} } - result, metadata, err := c.invokeOperation(ctx, "DescribeFastSnapshotRestores", params, optFns, addOperationDescribeFastSnapshotRestoresMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "DescribeFastSnapshotRestores", params, optFns, c.addOperationDescribeFastSnapshotRestoresMiddlewares) if err != nil { return nil, err } @@ -34,7 +34,7 @@ type DescribeFastSnapshotRestoresInput struct { // 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 + DryRun *bool // The filters. The possible values are: // @@ -72,7 +72,7 @@ type DescribeFastSnapshotRestoresOutput struct { ResultMetadata middleware.Metadata } -func addOperationDescribeFastSnapshotRestoresMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationDescribeFastSnapshotRestoresMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeFastSnapshotRestores{}, middleware.After) if err != nil { return err @@ -165,6 +165,10 @@ type DescribeFastSnapshotRestoresPaginator struct { // NewDescribeFastSnapshotRestoresPaginator returns a new // DescribeFastSnapshotRestoresPaginator func NewDescribeFastSnapshotRestoresPaginator(client DescribeFastSnapshotRestoresAPIClient, params *DescribeFastSnapshotRestoresInput, optFns ...func(*DescribeFastSnapshotRestoresPaginatorOptions)) *DescribeFastSnapshotRestoresPaginator { + if params == nil { + params = &DescribeFastSnapshotRestoresInput{} + } + options := DescribeFastSnapshotRestoresPaginatorOptions{} if params.MaxResults != nil { options.Limit = *params.MaxResults @@ -174,10 +178,6 @@ func NewDescribeFastSnapshotRestoresPaginator(client DescribeFastSnapshotRestore fn(&options) } - if params == nil { - params = &DescribeFastSnapshotRestoresInput{} - } - return &DescribeFastSnapshotRestoresPaginator{ options: options, client: client, diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeFleetHistory.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeFleetHistory.go index 2085be5de..2034dd6ea 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeFleetHistory.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeFleetHistory.go @@ -15,13 +15,16 @@ import ( // Describes the events for the specified EC2 Fleet during the specified time. EC2 // Fleet events are delayed by up to 30 seconds before they can be described. This // ensures that you can query by the last evaluated time and not miss a recorded -// event. EC2 Fleet events are available for 48 hours. +// event. EC2 Fleet events are available for 48 hours. For more information, see +// Monitoring your EC2 Fleet +// (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-fleet.html#monitor-ec2-fleet) +// in the Amazon EC2 User Guide. func (c *Client) DescribeFleetHistory(ctx context.Context, params *DescribeFleetHistoryInput, optFns ...func(*Options)) (*DescribeFleetHistoryOutput, error) { if params == nil { params = &DescribeFleetHistoryInput{} } - result, metadata, err := c.invokeOperation(ctx, "DescribeFleetHistory", params, optFns, addOperationDescribeFleetHistoryMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "DescribeFleetHistory", params, optFns, c.addOperationDescribeFleetHistoryMiddlewares) if err != nil { return nil, err } @@ -48,7 +51,7 @@ type DescribeFleetHistoryInput struct { // 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 + DryRun *bool // The type of events to describe. By default, all events are described. EventType types.FleetEventType @@ -56,7 +59,7 @@ type DescribeFleetHistoryInput struct { // The maximum number of results to return in a single call. Specify a value // between 1 and 1000. The default value is 1000. To retrieve the remaining // results, make another call with the returned NextToken value. - MaxResults int32 + MaxResults *int32 // The token for the next set of results. NextToken *string @@ -86,7 +89,7 @@ type DescribeFleetHistoryOutput struct { ResultMetadata middleware.Metadata } -func addOperationDescribeFleetHistoryMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationDescribeFleetHistoryMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeFleetHistory{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeFleetInstances.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeFleetInstances.go index b8902c1a3..b193ae5d8 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeFleetInstances.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeFleetInstances.go @@ -11,13 +11,16 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Describes the running instances for the specified EC2 Fleet. +// Describes the running instances for the specified EC2 Fleet. For more +// information, see Monitoring your EC2 Fleet +// (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-fleet.html#monitor-ec2-fleet) +// in the Amazon EC2 User Guide. func (c *Client) DescribeFleetInstances(ctx context.Context, params *DescribeFleetInstancesInput, optFns ...func(*Options)) (*DescribeFleetInstancesOutput, error) { if params == nil { params = &DescribeFleetInstancesInput{} } - result, metadata, err := c.invokeOperation(ctx, "DescribeFleetInstances", params, optFns, addOperationDescribeFleetInstancesMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "DescribeFleetInstances", params, optFns, c.addOperationDescribeFleetInstancesMiddlewares) if err != nil { return nil, err } @@ -38,7 +41,7 @@ type DescribeFleetInstancesInput struct { // 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 + DryRun *bool // The filters. // @@ -48,7 +51,7 @@ type DescribeFleetInstancesInput struct { // The maximum number of results to return in a single call. Specify a value // between 1 and 1000. The default value is 1000. To retrieve the remaining // results, make another call with the returned NextToken value. - MaxResults int32 + MaxResults *int32 // The token for the next set of results. NextToken *string @@ -70,7 +73,7 @@ type DescribeFleetInstancesOutput struct { ResultMetadata middleware.Metadata } -func addOperationDescribeFleetInstancesMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationDescribeFleetInstancesMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeFleetInstances{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeFleets.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeFleets.go index 9ba791dd1..89eeeffc6 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeFleets.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeFleets.go @@ -12,13 +12,16 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Describes the specified EC2 Fleets or all of your EC2 Fleets. +// Describes the specified EC2 Fleets or all of your EC2 Fleets. For more +// information, see Monitoring your EC2 Fleet +// (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-fleet.html#monitor-ec2-fleet) +// in the Amazon EC2 User Guide. func (c *Client) DescribeFleets(ctx context.Context, params *DescribeFleetsInput, optFns ...func(*Options)) (*DescribeFleetsOutput, error) { if params == nil { params = &DescribeFleetsInput{} } - result, metadata, err := c.invokeOperation(ctx, "DescribeFleets", params, optFns, addOperationDescribeFleetsMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "DescribeFleets", params, optFns, c.addOperationDescribeFleetsMiddlewares) if err != nil { return nil, err } @@ -34,7 +37,7 @@ type DescribeFleetsInput struct { // 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 + DryRun *bool // The filters. // @@ -63,7 +66,7 @@ type DescribeFleetsInput struct { // The maximum number of results to return in a single call. Specify a value // between 1 and 1000. The default value is 1000. To retrieve the remaining // results, make another call with the returned NextToken value. - MaxResults int32 + MaxResults *int32 // The token for the next set of results. NextToken *string @@ -81,7 +84,7 @@ type DescribeFleetsOutput struct { ResultMetadata middleware.Metadata } -func addOperationDescribeFleetsMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationDescribeFleetsMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeFleets{}, middleware.After) if err != nil { return err @@ -172,19 +175,19 @@ type DescribeFleetsPaginator struct { // NewDescribeFleetsPaginator returns a new DescribeFleetsPaginator func NewDescribeFleetsPaginator(client DescribeFleetsAPIClient, params *DescribeFleetsInput, optFns ...func(*DescribeFleetsPaginatorOptions)) *DescribeFleetsPaginator { + if params == nil { + params = &DescribeFleetsInput{} + } + options := DescribeFleetsPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults + if params.MaxResults != nil { + options.Limit = *params.MaxResults } for _, fn := range optFns { fn(&options) } - if params == nil { - params = &DescribeFleetsInput{} - } - return &DescribeFleetsPaginator{ options: options, client: client, @@ -207,7 +210,11 @@ func (p *DescribeFleetsPaginator) NextPage(ctx context.Context, optFns ...func(* params := *p.params params.NextToken = p.nextToken - params.MaxResults = p.options.Limit + var limit *int32 + if p.options.Limit > 0 { + limit = &p.options.Limit + } + params.MaxResults = limit result, err := p.client.DescribeFleets(ctx, ¶ms, optFns...) if err != nil { diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeFlowLogs.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeFlowLogs.go index d1794c203..4495a9834 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeFlowLogs.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeFlowLogs.go @@ -20,7 +20,7 @@ func (c *Client) DescribeFlowLogs(ctx context.Context, params *DescribeFlowLogsI params = &DescribeFlowLogsInput{} } - result, metadata, err := c.invokeOperation(ctx, "DescribeFlowLogs", params, optFns, addOperationDescribeFlowLogsMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "DescribeFlowLogs", params, optFns, c.addOperationDescribeFlowLogsMiddlewares) if err != nil { return nil, err } @@ -36,7 +36,7 @@ type DescribeFlowLogsInput struct { // 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 + DryRun *bool // One or more filters. // @@ -73,7 +73,7 @@ type DescribeFlowLogsInput struct { // The maximum number of results to return with a single call. To retrieve the // remaining results, make another call with the returned nextToken value. - MaxResults int32 + MaxResults *int32 // The token for the next page of results. NextToken *string @@ -92,7 +92,7 @@ type DescribeFlowLogsOutput struct { ResultMetadata middleware.Metadata } -func addOperationDescribeFlowLogsMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationDescribeFlowLogsMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeFlowLogs{}, middleware.After) if err != nil { return err @@ -182,19 +182,19 @@ type DescribeFlowLogsPaginator struct { // NewDescribeFlowLogsPaginator returns a new DescribeFlowLogsPaginator func NewDescribeFlowLogsPaginator(client DescribeFlowLogsAPIClient, params *DescribeFlowLogsInput, optFns ...func(*DescribeFlowLogsPaginatorOptions)) *DescribeFlowLogsPaginator { + if params == nil { + params = &DescribeFlowLogsInput{} + } + options := DescribeFlowLogsPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults + if params.MaxResults != nil { + options.Limit = *params.MaxResults } for _, fn := range optFns { fn(&options) } - if params == nil { - params = &DescribeFlowLogsInput{} - } - return &DescribeFlowLogsPaginator{ options: options, client: client, @@ -217,7 +217,11 @@ func (p *DescribeFlowLogsPaginator) NextPage(ctx context.Context, optFns ...func params := *p.params params.NextToken = p.nextToken - params.MaxResults = p.options.Limit + var limit *int32 + if p.options.Limit > 0 { + limit = &p.options.Limit + } + params.MaxResults = limit result, err := p.client.DescribeFlowLogs(ctx, ¶ms, optFns...) if err != nil { diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeFpgaImageAttribute.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeFpgaImageAttribute.go index d0d5408a4..d71f577fe 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeFpgaImageAttribute.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeFpgaImageAttribute.go @@ -17,7 +17,7 @@ func (c *Client) DescribeFpgaImageAttribute(ctx context.Context, params *Describ params = &DescribeFpgaImageAttributeInput{} } - result, metadata, err := c.invokeOperation(ctx, "DescribeFpgaImageAttribute", params, optFns, addOperationDescribeFpgaImageAttributeMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "DescribeFpgaImageAttribute", params, optFns, c.addOperationDescribeFpgaImageAttributeMiddlewares) if err != nil { return nil, err } @@ -43,7 +43,7 @@ type DescribeFpgaImageAttributeInput struct { // 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 + DryRun *bool } type DescribeFpgaImageAttributeOutput struct { @@ -55,7 +55,7 @@ type DescribeFpgaImageAttributeOutput struct { ResultMetadata middleware.Metadata } -func addOperationDescribeFpgaImageAttributeMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationDescribeFpgaImageAttributeMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeFpgaImageAttribute{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeFpgaImages.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeFpgaImages.go index 2a7de4155..bf3abe95c 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeFpgaImages.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeFpgaImages.go @@ -20,7 +20,7 @@ func (c *Client) DescribeFpgaImages(ctx context.Context, params *DescribeFpgaIma params = &DescribeFpgaImagesInput{} } - result, metadata, err := c.invokeOperation(ctx, "DescribeFpgaImages", params, optFns, addOperationDescribeFpgaImagesMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "DescribeFpgaImages", params, optFns, c.addOperationDescribeFpgaImagesMiddlewares) if err != nil { return nil, err } @@ -36,7 +36,7 @@ type DescribeFpgaImagesInput struct { // 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 + DryRun *bool // The filters. // @@ -79,7 +79,7 @@ type DescribeFpgaImagesInput struct { FpgaImageIds []string // The maximum number of results to return in a single call. - MaxResults int32 + MaxResults *int32 // The token to retrieve the next page of results. NextToken *string @@ -103,7 +103,7 @@ type DescribeFpgaImagesOutput struct { ResultMetadata middleware.Metadata } -func addOperationDescribeFpgaImagesMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationDescribeFpgaImagesMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeFpgaImages{}, middleware.After) if err != nil { return err @@ -193,19 +193,19 @@ type DescribeFpgaImagesPaginator struct { // NewDescribeFpgaImagesPaginator returns a new DescribeFpgaImagesPaginator func NewDescribeFpgaImagesPaginator(client DescribeFpgaImagesAPIClient, params *DescribeFpgaImagesInput, optFns ...func(*DescribeFpgaImagesPaginatorOptions)) *DescribeFpgaImagesPaginator { + if params == nil { + params = &DescribeFpgaImagesInput{} + } + options := DescribeFpgaImagesPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults + if params.MaxResults != nil { + options.Limit = *params.MaxResults } for _, fn := range optFns { fn(&options) } - if params == nil { - params = &DescribeFpgaImagesInput{} - } - return &DescribeFpgaImagesPaginator{ options: options, client: client, @@ -228,7 +228,11 @@ func (p *DescribeFpgaImagesPaginator) NextPage(ctx context.Context, optFns ...fu params := *p.params params.NextToken = p.nextToken - params.MaxResults = p.options.Limit + var limit *int32 + if p.options.Limit > 0 { + limit = &p.options.Limit + } + params.MaxResults = limit result, err := p.client.DescribeFpgaImages(ctx, ¶ms, optFns...) if err != nil { diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeHostReservationOfferings.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeHostReservationOfferings.go index f99c70c9f..8507d32e4 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeHostReservationOfferings.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeHostReservationOfferings.go @@ -18,15 +18,15 @@ import ( // Hosts. When purchasing an offering, ensure that the instance family and Region // of the offering matches that of the Dedicated Hosts with which it is to be // associated. For more information about supported instance types, see Dedicated -// Hosts Overview +// Hosts // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/dedicated-hosts-overview.html) -// in the Amazon Elastic Compute Cloud User Guide. +// in the Amazon EC2 User Guide. func (c *Client) DescribeHostReservationOfferings(ctx context.Context, params *DescribeHostReservationOfferingsInput, optFns ...func(*Options)) (*DescribeHostReservationOfferingsOutput, error) { if params == nil { params = &DescribeHostReservationOfferingsInput{} } - result, metadata, err := c.invokeOperation(ctx, "DescribeHostReservationOfferings", params, optFns, addOperationDescribeHostReservationOfferingsMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "DescribeHostReservationOfferings", params, optFns, c.addOperationDescribeHostReservationOfferingsMiddlewares) if err != nil { return nil, err } @@ -52,20 +52,20 @@ type DescribeHostReservationOfferingsInput struct { // of seconds specified must be the number of seconds in a year (365x24x60x60) // times one of the supported durations (1 or 3). For example, specify 94608000 for // three years. - MaxDuration int32 + MaxDuration *int32 // The maximum number of results to return for the request in a single page. The // remaining results can be seen by sending another request with the returned // nextToken value. This value can be between 5 and 500. If maxResults is given a // larger value than 500, you receive an error. - MaxResults int32 + MaxResults *int32 // This is the minimum duration of the reservation you'd like to purchase, // specified in seconds. Reservations are available in one-year and three-year // terms. The number of seconds specified must be the number of seconds in a year // (365x24x60x60) times one of the supported durations (1 or 3). For example, // specify 31536000 for one year. - MinDuration int32 + MinDuration *int32 // The token to use to retrieve the next page of results. NextToken *string @@ -87,7 +87,7 @@ type DescribeHostReservationOfferingsOutput struct { ResultMetadata middleware.Metadata } -func addOperationDescribeHostReservationOfferingsMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationDescribeHostReservationOfferingsMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeHostReservationOfferings{}, middleware.After) if err != nil { return err @@ -182,19 +182,19 @@ type DescribeHostReservationOfferingsPaginator struct { // NewDescribeHostReservationOfferingsPaginator returns a new // DescribeHostReservationOfferingsPaginator func NewDescribeHostReservationOfferingsPaginator(client DescribeHostReservationOfferingsAPIClient, params *DescribeHostReservationOfferingsInput, optFns ...func(*DescribeHostReservationOfferingsPaginatorOptions)) *DescribeHostReservationOfferingsPaginator { + if params == nil { + params = &DescribeHostReservationOfferingsInput{} + } + options := DescribeHostReservationOfferingsPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults + if params.MaxResults != nil { + options.Limit = *params.MaxResults } for _, fn := range optFns { fn(&options) } - if params == nil { - params = &DescribeHostReservationOfferingsInput{} - } - return &DescribeHostReservationOfferingsPaginator{ options: options, client: client, @@ -217,7 +217,11 @@ func (p *DescribeHostReservationOfferingsPaginator) NextPage(ctx context.Context params := *p.params params.NextToken = p.nextToken - params.MaxResults = p.options.Limit + var limit *int32 + if p.options.Limit > 0 { + limit = &p.options.Limit + } + params.MaxResults = limit result, err := p.client.DescribeHostReservationOfferings(ctx, ¶ms, optFns...) if err != nil { diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeHostReservations.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeHostReservations.go index 95ab2a741..2d46c24c2 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeHostReservations.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeHostReservations.go @@ -18,7 +18,7 @@ func (c *Client) DescribeHostReservations(ctx context.Context, params *DescribeH params = &DescribeHostReservationsInput{} } - result, metadata, err := c.invokeOperation(ctx, "DescribeHostReservations", params, optFns, addOperationDescribeHostReservationsMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "DescribeHostReservations", params, optFns, c.addOperationDescribeHostReservationsMiddlewares) if err != nil { return nil, err } @@ -59,7 +59,7 @@ type DescribeHostReservationsInput struct { // remaining results can be seen by sending another request with the returned // nextToken value. This value can be between 5 and 500. If maxResults is given a // larger value than 500, you receive an error. - MaxResults int32 + MaxResults *int32 // The token to use to retrieve the next page of results. NextToken *string @@ -78,7 +78,7 @@ type DescribeHostReservationsOutput struct { ResultMetadata middleware.Metadata } -func addOperationDescribeHostReservationsMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationDescribeHostReservationsMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeHostReservations{}, middleware.After) if err != nil { return err @@ -172,19 +172,19 @@ type DescribeHostReservationsPaginator struct { // NewDescribeHostReservationsPaginator returns a new // DescribeHostReservationsPaginator func NewDescribeHostReservationsPaginator(client DescribeHostReservationsAPIClient, params *DescribeHostReservationsInput, optFns ...func(*DescribeHostReservationsPaginatorOptions)) *DescribeHostReservationsPaginator { + if params == nil { + params = &DescribeHostReservationsInput{} + } + options := DescribeHostReservationsPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults + if params.MaxResults != nil { + options.Limit = *params.MaxResults } for _, fn := range optFns { fn(&options) } - if params == nil { - params = &DescribeHostReservationsInput{} - } - return &DescribeHostReservationsPaginator{ options: options, client: client, @@ -207,7 +207,11 @@ func (p *DescribeHostReservationsPaginator) NextPage(ctx context.Context, optFns params := *p.params params.NextToken = p.nextToken - params.MaxResults = p.options.Limit + var limit *int32 + if p.options.Limit > 0 { + limit = &p.options.Limit + } + params.MaxResults = limit result, err := p.client.DescribeHostReservations(ctx, ¶ms, optFns...) if err != nil { diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeHosts.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeHosts.go index 089ad8a5f..459b999c2 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeHosts.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeHosts.go @@ -21,7 +21,7 @@ func (c *Client) DescribeHosts(ctx context.Context, params *DescribeHostsInput, params = &DescribeHostsInput{} } - result, metadata, err := c.invokeOperation(ctx, "DescribeHosts", params, optFns, addOperationDescribeHostsMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "DescribeHosts", params, optFns, c.addOperationDescribeHostsMiddlewares) if err != nil { return nil, err } @@ -67,7 +67,7 @@ type DescribeHostsInput struct { // nextToken value. This value can be between 5 and 500. If maxResults is given a // larger value than 500, you receive an error. You cannot specify this parameter // and the host IDs parameter in the same request. - MaxResults int32 + MaxResults *int32 // The token to use to retrieve the next page of results. NextToken *string @@ -86,7 +86,7 @@ type DescribeHostsOutput struct { ResultMetadata middleware.Metadata } -func addOperationDescribeHostsMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationDescribeHostsMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeHosts{}, middleware.After) if err != nil { return err @@ -178,19 +178,19 @@ type DescribeHostsPaginator struct { // NewDescribeHostsPaginator returns a new DescribeHostsPaginator func NewDescribeHostsPaginator(client DescribeHostsAPIClient, params *DescribeHostsInput, optFns ...func(*DescribeHostsPaginatorOptions)) *DescribeHostsPaginator { + if params == nil { + params = &DescribeHostsInput{} + } + options := DescribeHostsPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults + if params.MaxResults != nil { + options.Limit = *params.MaxResults } for _, fn := range optFns { fn(&options) } - if params == nil { - params = &DescribeHostsInput{} - } - return &DescribeHostsPaginator{ options: options, client: client, @@ -213,7 +213,11 @@ func (p *DescribeHostsPaginator) NextPage(ctx context.Context, optFns ...func(*O params := *p.params params.NextToken = p.nextToken - params.MaxResults = p.options.Limit + var limit *int32 + if p.options.Limit > 0 { + limit = &p.options.Limit + } + params.MaxResults = limit result, err := p.client.DescribeHosts(ctx, ¶ms, optFns...) if err != nil { diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeIamInstanceProfileAssociations.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeIamInstanceProfileAssociations.go index e4137ce3d..17706065a 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeIamInstanceProfileAssociations.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeIamInstanceProfileAssociations.go @@ -18,7 +18,7 @@ func (c *Client) DescribeIamInstanceProfileAssociations(ctx context.Context, par params = &DescribeIamInstanceProfileAssociationsInput{} } - result, metadata, err := c.invokeOperation(ctx, "DescribeIamInstanceProfileAssociations", params, optFns, addOperationDescribeIamInstanceProfileAssociationsMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "DescribeIamInstanceProfileAssociations", params, optFns, c.addOperationDescribeIamInstanceProfileAssociationsMiddlewares) if err != nil { return nil, err } @@ -43,7 +43,7 @@ type DescribeIamInstanceProfileAssociationsInput struct { // The maximum number of results to return in a single call. To retrieve the // remaining results, make another call with the returned NextToken value. - MaxResults int32 + MaxResults *int32 // The token to request the next page of results. NextToken *string @@ -62,7 +62,7 @@ type DescribeIamInstanceProfileAssociationsOutput struct { ResultMetadata middleware.Metadata } -func addOperationDescribeIamInstanceProfileAssociationsMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationDescribeIamInstanceProfileAssociationsMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeIamInstanceProfileAssociations{}, middleware.After) if err != nil { return err @@ -155,19 +155,19 @@ type DescribeIamInstanceProfileAssociationsPaginator struct { // NewDescribeIamInstanceProfileAssociationsPaginator returns a new // DescribeIamInstanceProfileAssociationsPaginator func NewDescribeIamInstanceProfileAssociationsPaginator(client DescribeIamInstanceProfileAssociationsAPIClient, params *DescribeIamInstanceProfileAssociationsInput, optFns ...func(*DescribeIamInstanceProfileAssociationsPaginatorOptions)) *DescribeIamInstanceProfileAssociationsPaginator { + if params == nil { + params = &DescribeIamInstanceProfileAssociationsInput{} + } + options := DescribeIamInstanceProfileAssociationsPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults + if params.MaxResults != nil { + options.Limit = *params.MaxResults } for _, fn := range optFns { fn(&options) } - if params == nil { - params = &DescribeIamInstanceProfileAssociationsInput{} - } - return &DescribeIamInstanceProfileAssociationsPaginator{ options: options, client: client, @@ -190,7 +190,11 @@ func (p *DescribeIamInstanceProfileAssociationsPaginator) NextPage(ctx context.C params := *p.params params.NextToken = p.nextToken - params.MaxResults = p.options.Limit + var limit *int32 + if p.options.Limit > 0 { + limit = &p.options.Limit + } + params.MaxResults = limit result, err := p.client.DescribeIamInstanceProfileAssociations(ctx, ¶ms, optFns...) if err != nil { diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeIdFormat.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeIdFormat.go index 266ab7960..a7f3b8e32 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeIdFormat.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeIdFormat.go @@ -34,7 +34,7 @@ func (c *Client) DescribeIdFormat(ctx context.Context, params *DescribeIdFormatI params = &DescribeIdFormatInput{} } - result, metadata, err := c.invokeOperation(ctx, "DescribeIdFormat", params, optFns, addOperationDescribeIdFormatMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "DescribeIdFormat", params, optFns, c.addOperationDescribeIdFormatMiddlewares) if err != nil { return nil, err } @@ -66,7 +66,7 @@ type DescribeIdFormatOutput struct { ResultMetadata middleware.Metadata } -func addOperationDescribeIdFormatMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationDescribeIdFormatMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeIdFormat{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeIdentityIdFormat.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeIdentityIdFormat.go index bacaa779e..449f6a3ce 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeIdentityIdFormat.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeIdentityIdFormat.go @@ -32,7 +32,7 @@ func (c *Client) DescribeIdentityIdFormat(ctx context.Context, params *DescribeI params = &DescribeIdentityIdFormatInput{} } - result, metadata, err := c.invokeOperation(ctx, "DescribeIdentityIdFormat", params, optFns, addOperationDescribeIdentityIdFormatMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "DescribeIdentityIdFormat", params, optFns, c.addOperationDescribeIdentityIdFormatMiddlewares) if err != nil { return nil, err } @@ -69,7 +69,7 @@ type DescribeIdentityIdFormatOutput struct { ResultMetadata middleware.Metadata } -func addOperationDescribeIdentityIdFormatMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationDescribeIdentityIdFormatMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeIdentityIdFormat{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeImageAttribute.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeImageAttribute.go index b5e2af5e3..ae3237ee3 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeImageAttribute.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeImageAttribute.go @@ -18,7 +18,7 @@ func (c *Client) DescribeImageAttribute(ctx context.Context, params *DescribeIma params = &DescribeImageAttributeInput{} } - result, metadata, err := c.invokeOperation(ctx, "DescribeImageAttribute", params, optFns, addOperationDescribeImageAttributeMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "DescribeImageAttribute", params, optFns, c.addOperationDescribeImageAttributeMiddlewares) if err != nil { return nil, err } @@ -31,10 +31,9 @@ func (c *Client) DescribeImageAttribute(ctx context.Context, params *DescribeIma // Contains the parameters for DescribeImageAttribute. type DescribeImageAttributeInput struct { - // The AMI attribute. Note: Depending on your account privileges, the - // blockDeviceMapping attribute may return a Client.AuthFailure error. If this - // happens, use DescribeImages to get information about the block device mapping - // for the AMI. + // The AMI attribute. Note: The blockDeviceMapping attribute is deprecated. Using + // this attribute returns the Client.AuthFailure error. To get information about + // the block device mappings for an AMI, use the DescribeImages action. // // This member is required. Attribute types.ImageAttributeName @@ -48,7 +47,7 @@ type DescribeImageAttributeInput struct { // 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 + DryRun *bool } // Describes an image attribute. @@ -86,7 +85,7 @@ type DescribeImageAttributeOutput struct { ResultMetadata middleware.Metadata } -func addOperationDescribeImageAttributeMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationDescribeImageAttributeMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeImageAttribute{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeImages.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeImages.go index f6451263f..793ef76c0 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeImages.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeImages.go @@ -4,15 +4,18 @@ package ec2 import ( "context" + "errors" "fmt" awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" "github.com/aws/aws-sdk-go-v2/aws/signer/v4" "github.com/aws/aws-sdk-go-v2/service/ec2/types" + smithy "github.com/aws/smithy-go" "github.com/aws/smithy-go/middleware" smithytime "github.com/aws/smithy-go/time" smithyhttp "github.com/aws/smithy-go/transport/http" smithywaiter "github.com/aws/smithy-go/waiter" "github.com/jmespath/go-jmespath" + "strconv" "time" ) @@ -22,14 +25,14 @@ import ( // which you have explicit launch permissions. Recently deregistered images appear // in the returned results for a short interval and then return empty results. // After all instances that reference a deregistered AMI are terminated, specifying -// the ID of the image results in an error indicating that the AMI ID cannot be -// found. +// the ID of the image will eventually return an error indicating that the AMI ID +// cannot be found. func (c *Client) DescribeImages(ctx context.Context, params *DescribeImagesInput, optFns ...func(*Options)) (*DescribeImagesOutput, error) { if params == nil { params = &DescribeImagesInput{} } - result, metadata, err := c.invokeOperation(ctx, "DescribeImages", params, optFns, addOperationDescribeImagesMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "DescribeImages", params, optFns, c.addOperationDescribeImagesMiddlewares) if err != nil { return nil, err } @@ -45,7 +48,7 @@ type DescribeImagesInput struct { // 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 + DryRun *bool // Scopes the images by users with explicit launch permissions. Specify an AWS // account ID, self (the sender of the request), or all (public AMIs). @@ -102,59 +105,67 @@ type DescribeImagesInput struct { // The name of the AMI (provided during image creation). // // * owner-alias - The owner - // alias, from an Amazon-maintained list (amazon | aws-marketplace). This is not - // the user-configured AWS account alias set using the IAM console. We recommend - // that you use the related parameter instead of this filter. - // - // * owner-id - The AWS - // account ID of the owner. We recommend that you use the related parameter instead + // alias (amazon | aws-marketplace). The valid aliases are defined in an + // Amazon-maintained list. This is not the AWS account alias that can be set using + // the IAM console. We recommend that you use the Owner request parameter instead // of this filter. // - // * platform - The platform. To only list Windows-based AMIs, use - // windows. + // * owner-id - The AWS account ID of the owner. We recommend that + // you use the Owner request parameter instead of this filter. + // + // * platform - The + // platform. To only list Windows-based AMIs, use windows. // - // * product-code - The product code. + // * product-code - The + // product code. // - // * product-code.type - The type of - // the product code (devpay | marketplace). + // * product-code.type - The type of the product code (devpay | + // marketplace). // // * ramdisk-id - The RAM disk ID. // - // * - // root-device-name - The device name of the root device volume (for example, - // /dev/sda1). + // * root-device-name - The device + // name of the root device volume (for example, /dev/sda1). // - // * root-device-type - The type of the root device volume (ebs | - // instance-store). + // * root-device-type - + // The type of the root device volume (ebs | instance-store). // - // * state - The state of the image (available | pending | - // failed). + // * state - The state + // of the image (available | pending | failed). // - // * state-reason-code - The reason code for the state change. + // * state-reason-code - The reason + // code for the state change. // - // * - // state-reason-message - The message for the state change. + // * state-reason-message - The message for the state + // change. // - // * sriov-net-support - - // A value of simple indicates that enhanced networking with the Intel 82599 VF - // interface is enabled. + // * sriov-net-support - A value of simple indicates that enhanced + // networking with the Intel 82599 VF interface is enabled. // - // * 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: - 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-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. // - // * virtualization-type - The virtualization type (paravirtual | hvm). + // * virtualization-type - The + // virtualization type (paravirtual | hvm). Filters []types.Filter // The image IDs. Default: Describes all images available to you. ImageIds []string + // If true, all deprecated AMIs are included in the response. If false, no + // deprecated AMIs are included in the response. If no value is specified, the + // default value is false. If you are the AMI owner, all deprecated AMIs appear in + // the response regardless of the value (true or false) that you set for this + // parameter. + IncludeDeprecated *bool + // Scopes the results to images with the specified owners. You can specify a // combination of AWS account IDs, self, amazon, and aws-marketplace. If you omit // this parameter, the results include all images for which you have launch @@ -171,7 +182,7 @@ type DescribeImagesOutput struct { ResultMetadata middleware.Metadata } -func addOperationDescribeImagesMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationDescribeImagesMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeImages{}, middleware.After) if err != nil { return err @@ -378,16 +389,21 @@ func imageAvailableStateRetryable(ctx context.Context, input *DescribeImagesInpu expectedValue := "available" var match = true - listOfValues, ok := pathValue.([]string) + listOfValues, ok := pathValue.([]interface{}) if !ok { - return false, fmt.Errorf("waiter comparator expected []string value got %T", pathValue) + return false, fmt.Errorf("waiter comparator expected list got %T", pathValue) } if len(listOfValues) == 0 { match = false } for _, v := range listOfValues { - if v != expectedValue { + value, ok := v.(types.ImageState) + if !ok { + return false, fmt.Errorf("waiter comparator expected types.ImageState value, got %T", pathValue) + } + + if string(value) != expectedValue { match = false } } @@ -404,13 +420,18 @@ func imageAvailableStateRetryable(ctx context.Context, input *DescribeImagesInpu } expectedValue := "failed" - listOfValues, ok := pathValue.([]string) + listOfValues, ok := pathValue.([]interface{}) if !ok { - return false, fmt.Errorf("waiter comparator expected []string value got %T", pathValue) + return false, fmt.Errorf("waiter comparator expected list got %T", pathValue) } for _, v := range listOfValues { - if v == expectedValue { + value, ok := v.(types.ImageState) + if !ok { + return false, fmt.Errorf("waiter comparator expected types.ImageState value, got %T", pathValue) + } + + if string(value) == expectedValue { return false, fmt.Errorf("waiter state transitioned to Failure") } } @@ -419,6 +440,173 @@ func imageAvailableStateRetryable(ctx context.Context, input *DescribeImagesInpu return true, nil } +// ImageExistsWaiterOptions are waiter options for ImageExistsWaiter +type ImageExistsWaiterOptions struct { + + // Set of options to modify how an operation is invoked. These apply to all + // operations invoked for this client. Use functional options on operation call to + // modify this list for per operation behavior. + APIOptions []func(*middleware.Stack) error + + // MinDelay is the minimum amount of time to delay between retries. If unset, + // ImageExistsWaiter will use default minimum delay of 15 seconds. Note that + // MinDelay must resolve to a value lesser than or equal to the MaxDelay. + MinDelay time.Duration + + // MaxDelay is the maximum amount of time to delay between retries. If unset or set + // to zero, ImageExistsWaiter will use default max delay of 120 seconds. Note that + // MaxDelay must resolve to value greater than or equal to the MinDelay. + MaxDelay time.Duration + + // LogWaitAttempts is used to enable logging for waiter retry attempts + LogWaitAttempts bool + + // Retryable is function that can be used to override the service defined + // waiter-behavior based on operation output, or returned error. This function is + // used by the waiter to decide if a state is retryable or a terminal state. By + // default service-modeled logic will populate this option. This option can thus be + // used to define a custom waiter state with fall-back to service-modeled waiter + // state mutators.The function returns an error in case of a failure state. In case + // of retry state, this function returns a bool value of true and nil error, while + // in case of success it returns a bool value of false and nil error. + Retryable func(context.Context, *DescribeImagesInput, *DescribeImagesOutput, error) (bool, error) +} + +// ImageExistsWaiter defines the waiters for ImageExists +type ImageExistsWaiter struct { + client DescribeImagesAPIClient + + options ImageExistsWaiterOptions +} + +// NewImageExistsWaiter constructs a ImageExistsWaiter. +func NewImageExistsWaiter(client DescribeImagesAPIClient, optFns ...func(*ImageExistsWaiterOptions)) *ImageExistsWaiter { + options := ImageExistsWaiterOptions{} + options.MinDelay = 15 * time.Second + options.MaxDelay = 120 * time.Second + options.Retryable = imageExistsStateRetryable + + for _, fn := range optFns { + fn(&options) + } + return &ImageExistsWaiter{ + client: client, + options: options, + } +} + +// Wait calls the waiter function for ImageExists waiter. The maxWaitDur is the +// maximum wait duration the waiter will wait. The maxWaitDur is required and must +// be greater than zero. +func (w *ImageExistsWaiter) Wait(ctx context.Context, params *DescribeImagesInput, maxWaitDur time.Duration, optFns ...func(*ImageExistsWaiterOptions)) error { + if maxWaitDur <= 0 { + return fmt.Errorf("maximum wait time for waiter must be greater than zero") + } + + options := w.options + for _, fn := range optFns { + fn(&options) + } + + if options.MaxDelay <= 0 { + options.MaxDelay = 120 * time.Second + } + + if options.MinDelay > options.MaxDelay { + return fmt.Errorf("minimum waiter delay %v must be lesser than or equal to maximum waiter delay of %v.", options.MinDelay, options.MaxDelay) + } + + ctx, cancelFn := context.WithTimeout(ctx, maxWaitDur) + defer cancelFn() + + logger := smithywaiter.Logger{} + remainingTime := maxWaitDur + + var attempt int64 + for { + + attempt++ + apiOptions := options.APIOptions + start := time.Now() + + if options.LogWaitAttempts { + logger.Attempt = attempt + apiOptions = append([]func(*middleware.Stack) error{}, options.APIOptions...) + apiOptions = append(apiOptions, logger.AddLogger) + } + + out, err := w.client.DescribeImages(ctx, params, func(o *Options) { + o.APIOptions = append(o.APIOptions, apiOptions...) + }) + + retryable, err := options.Retryable(ctx, params, out, err) + if err != nil { + return err + } + if !retryable { + return nil + } + + remainingTime -= time.Since(start) + if remainingTime < options.MinDelay || remainingTime <= 0 { + break + } + + // compute exponential backoff between waiter retries + delay, err := smithywaiter.ComputeDelay( + attempt, options.MinDelay, options.MaxDelay, remainingTime, + ) + if err != nil { + return fmt.Errorf("error computing waiter delay, %w", err) + } + + remainingTime -= delay + // sleep for the delay amount before invoking a request + if err := smithytime.SleepWithContext(ctx, delay); err != nil { + return fmt.Errorf("request cancelled while waiting, %w", err) + } + } + return fmt.Errorf("exceeded max wait time for ImageExists waiter") +} + +func imageExistsStateRetryable(ctx context.Context, input *DescribeImagesInput, output *DescribeImagesOutput, err error) (bool, error) { + + if err == nil { + pathValue, err := jmespath.Search("length(Images[]) > `0`", output) + if err != nil { + return false, fmt.Errorf("error evaluating waiter state: %w", err) + } + + expectedValue := "true" + bv, err := strconv.ParseBool(expectedValue) + if err != nil { + return false, fmt.Errorf("error parsing boolean from string %w", err) + } + value, ok := pathValue.(bool) + if !ok { + return false, fmt.Errorf("waiter comparator expected bool value got %T", pathValue) + } + + if value == bv { + return false, nil + } + } + + if err != nil { + var apiErr smithy.APIError + ok := errors.As(err, &apiErr) + if !ok { + return false, fmt.Errorf("expected err to be of type smithy.APIError, got %w", err) + } + + if "InvalidAMIID.NotFound" == apiErr.ErrorCode() { + return true, nil + } + } + + return true, nil +} + func newServiceMetadataMiddleware_opDescribeImages(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeImportImageTasks.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeImportImageTasks.go index fa38c8808..95a69a5b6 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeImportImageTasks.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeImportImageTasks.go @@ -19,7 +19,7 @@ func (c *Client) DescribeImportImageTasks(ctx context.Context, params *DescribeI params = &DescribeImportImageTasksInput{} } - result, metadata, err := c.invokeOperation(ctx, "DescribeImportImageTasks", params, optFns, addOperationDescribeImportImageTasksMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "DescribeImportImageTasks", params, optFns, c.addOperationDescribeImportImageTasksMiddlewares) if err != nil { return nil, err } @@ -35,7 +35,7 @@ type DescribeImportImageTasksInput struct { // 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 + DryRun *bool // Filter tasks using the task-state filter and one of the following values: // active, completed, deleting, or deleted. @@ -45,7 +45,7 @@ type DescribeImportImageTasksInput struct { ImportTaskIds []string // The maximum number of results to return in a single call. - MaxResults int32 + MaxResults *int32 // A token that indicates the next page of results. NextToken *string @@ -65,7 +65,7 @@ type DescribeImportImageTasksOutput struct { ResultMetadata middleware.Metadata } -func addOperationDescribeImportImageTasksMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationDescribeImportImageTasksMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeImportImageTasks{}, middleware.After) if err != nil { return err @@ -156,19 +156,19 @@ type DescribeImportImageTasksPaginator struct { // NewDescribeImportImageTasksPaginator returns a new // DescribeImportImageTasksPaginator func NewDescribeImportImageTasksPaginator(client DescribeImportImageTasksAPIClient, params *DescribeImportImageTasksInput, optFns ...func(*DescribeImportImageTasksPaginatorOptions)) *DescribeImportImageTasksPaginator { + if params == nil { + params = &DescribeImportImageTasksInput{} + } + options := DescribeImportImageTasksPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults + if params.MaxResults != nil { + options.Limit = *params.MaxResults } for _, fn := range optFns { fn(&options) } - if params == nil { - params = &DescribeImportImageTasksInput{} - } - return &DescribeImportImageTasksPaginator{ options: options, client: client, @@ -191,7 +191,11 @@ func (p *DescribeImportImageTasksPaginator) NextPage(ctx context.Context, optFns params := *p.params params.NextToken = p.nextToken - params.MaxResults = p.options.Limit + var limit *int32 + if p.options.Limit > 0 { + limit = &p.options.Limit + } + params.MaxResults = limit result, err := p.client.DescribeImportImageTasks(ctx, ¶ms, optFns...) if err != nil { diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeImportSnapshotTasks.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeImportSnapshotTasks.go index d7721ac08..d9a06cd8d 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeImportSnapshotTasks.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeImportSnapshotTasks.go @@ -18,7 +18,7 @@ func (c *Client) DescribeImportSnapshotTasks(ctx context.Context, params *Descri params = &DescribeImportSnapshotTasksInput{} } - result, metadata, err := c.invokeOperation(ctx, "DescribeImportSnapshotTasks", params, optFns, addOperationDescribeImportSnapshotTasksMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "DescribeImportSnapshotTasks", params, optFns, c.addOperationDescribeImportSnapshotTasksMiddlewares) if err != nil { return nil, err } @@ -34,7 +34,7 @@ type DescribeImportSnapshotTasksInput struct { // 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 + DryRun *bool // The filters. Filters []types.Filter @@ -44,7 +44,7 @@ type DescribeImportSnapshotTasksInput struct { // The maximum number of results to return in a single call. To retrieve the // remaining results, make another call with the returned NextToken value. - MaxResults int32 + MaxResults *int32 // A token that indicates the next page of results. NextToken *string @@ -64,7 +64,7 @@ type DescribeImportSnapshotTasksOutput struct { ResultMetadata middleware.Metadata } -func addOperationDescribeImportSnapshotTasksMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationDescribeImportSnapshotTasksMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeImportSnapshotTasks{}, middleware.After) if err != nil { return err @@ -157,19 +157,19 @@ type DescribeImportSnapshotTasksPaginator struct { // NewDescribeImportSnapshotTasksPaginator returns a new // DescribeImportSnapshotTasksPaginator func NewDescribeImportSnapshotTasksPaginator(client DescribeImportSnapshotTasksAPIClient, params *DescribeImportSnapshotTasksInput, optFns ...func(*DescribeImportSnapshotTasksPaginatorOptions)) *DescribeImportSnapshotTasksPaginator { + if params == nil { + params = &DescribeImportSnapshotTasksInput{} + } + options := DescribeImportSnapshotTasksPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults + if params.MaxResults != nil { + options.Limit = *params.MaxResults } for _, fn := range optFns { fn(&options) } - if params == nil { - params = &DescribeImportSnapshotTasksInput{} - } - return &DescribeImportSnapshotTasksPaginator{ options: options, client: client, @@ -192,7 +192,11 @@ func (p *DescribeImportSnapshotTasksPaginator) NextPage(ctx context.Context, opt params := *p.params params.NextToken = p.nextToken - params.MaxResults = p.options.Limit + var limit *int32 + if p.options.Limit > 0 { + limit = &p.options.Limit + } + params.MaxResults = limit result, err := p.client.DescribeImportSnapshotTasks(ctx, ¶ms, optFns...) if err != nil { diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeInstanceAttribute.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeInstanceAttribute.go index e4763c710..ef4236107 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeInstanceAttribute.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeInstanceAttribute.go @@ -21,7 +21,7 @@ func (c *Client) DescribeInstanceAttribute(ctx context.Context, params *Describe params = &DescribeInstanceAttributeInput{} } - result, metadata, err := c.invokeOperation(ctx, "DescribeInstanceAttribute", params, optFns, addOperationDescribeInstanceAttributeMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "DescribeInstanceAttribute", params, optFns, c.addOperationDescribeInstanceAttributeMiddlewares) if err != nil { return nil, err } @@ -48,7 +48,7 @@ type DescribeInstanceAttributeInput struct { // 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 + DryRun *bool } // Describes an instance attribute. @@ -67,8 +67,8 @@ type DescribeInstanceAttributeOutput struct { // Indicates whether enhanced networking with ENA is enabled. EnaSupport *types.AttributeBooleanValue - // To enable the instance for AWS Nitro Enclaves, set this parameter to true; - // otherwise, set it to false. + // To enable the instance for Amazon Web Services Nitro Enclaves, set this + // parameter to true; otherwise, set it to false. EnclaveOptions *types.EnclaveOptions // The security groups associated with the instance. @@ -96,9 +96,12 @@ type DescribeInstanceAttributeOutput struct { // The device name of the root device volume (for example, /dev/sda1). RootDeviceName *types.AttributeValue - // Indicates whether source/destination checking is enabled. A value of true means - // that checking is enabled, and false means that checking is disabled. This value - // must be false for a NAT instance to perform NAT. + // Enable or disable source/destination checks, which ensure that the instance is + // either the source or the destination of any traffic that it receives. If the + // value is true, source/destination checks are enabled; otherwise, they are + // disabled. The default value is true. You must disable source/destination checks + // if the instance runs services such as network address translation, routing, or + // firewalls. SourceDestCheck *types.AttributeBooleanValue // Indicates whether enhanced networking with the Intel 82599 Virtual Function @@ -112,7 +115,7 @@ type DescribeInstanceAttributeOutput struct { ResultMetadata middleware.Metadata } -func addOperationDescribeInstanceAttributeMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationDescribeInstanceAttributeMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeInstanceAttribute{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeInstanceCreditSpecifications.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeInstanceCreditSpecifications.go index 1cf65d2ff..45ecba493 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeInstanceCreditSpecifications.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeInstanceCreditSpecifications.go @@ -29,13 +29,13 @@ import ( // zone, the call works normally. For more information, see Burstable performance // instances // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/burstable-performance-instances.html) -// in the Amazon Elastic Compute Cloud User Guide. +// in the Amazon EC2 User Guide. func (c *Client) DescribeInstanceCreditSpecifications(ctx context.Context, params *DescribeInstanceCreditSpecificationsInput, optFns ...func(*Options)) (*DescribeInstanceCreditSpecificationsOutput, error) { if params == nil { params = &DescribeInstanceCreditSpecificationsInput{} } - result, metadata, err := c.invokeOperation(ctx, "DescribeInstanceCreditSpecifications", params, optFns, addOperationDescribeInstanceCreditSpecificationsMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "DescribeInstanceCreditSpecifications", params, optFns, c.addOperationDescribeInstanceCreditSpecificationsMiddlewares) if err != nil { return nil, err } @@ -51,7 +51,7 @@ type DescribeInstanceCreditSpecificationsInput struct { // 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 + DryRun *bool // The filters. // @@ -66,7 +66,7 @@ type DescribeInstanceCreditSpecificationsInput struct { // remaining results, make another call with the returned NextToken value. This // value can be between 5 and 1000. You cannot specify this parameter and the // instance IDs parameter in the same call. - MaxResults int32 + MaxResults *int32 // The token to retrieve the next page of results. NextToken *string @@ -85,7 +85,7 @@ type DescribeInstanceCreditSpecificationsOutput struct { ResultMetadata middleware.Metadata } -func addOperationDescribeInstanceCreditSpecificationsMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationDescribeInstanceCreditSpecificationsMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeInstanceCreditSpecifications{}, middleware.After) if err != nil { return err @@ -180,19 +180,19 @@ type DescribeInstanceCreditSpecificationsPaginator struct { // NewDescribeInstanceCreditSpecificationsPaginator returns a new // DescribeInstanceCreditSpecificationsPaginator func NewDescribeInstanceCreditSpecificationsPaginator(client DescribeInstanceCreditSpecificationsAPIClient, params *DescribeInstanceCreditSpecificationsInput, optFns ...func(*DescribeInstanceCreditSpecificationsPaginatorOptions)) *DescribeInstanceCreditSpecificationsPaginator { + if params == nil { + params = &DescribeInstanceCreditSpecificationsInput{} + } + options := DescribeInstanceCreditSpecificationsPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults + if params.MaxResults != nil { + options.Limit = *params.MaxResults } for _, fn := range optFns { fn(&options) } - if params == nil { - params = &DescribeInstanceCreditSpecificationsInput{} - } - return &DescribeInstanceCreditSpecificationsPaginator{ options: options, client: client, @@ -215,7 +215,11 @@ func (p *DescribeInstanceCreditSpecificationsPaginator) NextPage(ctx context.Con params := *p.params params.NextToken = p.nextToken - params.MaxResults = p.options.Limit + var limit *int32 + if p.options.Limit > 0 { + limit = &p.options.Limit + } + params.MaxResults = limit result, err := p.client.DescribeInstanceCreditSpecifications(ctx, ¶ms, optFns...) if err != nil { diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeInstanceEventNotificationAttributes.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeInstanceEventNotificationAttributes.go index 4b3e3dfb1..1c4ea7987 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeInstanceEventNotificationAttributes.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeInstanceEventNotificationAttributes.go @@ -18,7 +18,7 @@ func (c *Client) DescribeInstanceEventNotificationAttributes(ctx context.Context params = &DescribeInstanceEventNotificationAttributesInput{} } - result, metadata, err := c.invokeOperation(ctx, "DescribeInstanceEventNotificationAttributes", params, optFns, addOperationDescribeInstanceEventNotificationAttributesMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "DescribeInstanceEventNotificationAttributes", params, optFns, c.addOperationDescribeInstanceEventNotificationAttributesMiddlewares) if err != nil { return nil, err } @@ -34,7 +34,7 @@ type DescribeInstanceEventNotificationAttributesInput struct { // 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 + DryRun *bool } type DescribeInstanceEventNotificationAttributesOutput struct { @@ -46,7 +46,7 @@ type DescribeInstanceEventNotificationAttributesOutput struct { ResultMetadata middleware.Metadata } -func addOperationDescribeInstanceEventNotificationAttributesMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationDescribeInstanceEventNotificationAttributesMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeInstanceEventNotificationAttributes{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeInstanceStatus.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeInstanceStatus.go index 6055e2b36..8fca4084f 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeInstanceStatus.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeInstanceStatus.go @@ -4,10 +4,12 @@ package ec2 import ( "context" + "errors" "fmt" awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" "github.com/aws/aws-sdk-go-v2/aws/signer/v4" "github.com/aws/aws-sdk-go-v2/service/ec2/types" + smithy "github.com/aws/smithy-go" "github.com/aws/smithy-go/middleware" smithytime "github.com/aws/smithy-go/time" smithyhttp "github.com/aws/smithy-go/transport/http" @@ -27,26 +29,26 @@ import ( // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/monitoring-system-instance-status-check.html) // and Troubleshooting instances with failed status checks // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/TroubleshootingInstances.html) -// in the Amazon Elastic Compute Cloud User Guide. +// in the Amazon EC2 User Guide. // -// * Scheduled events - Amazon EC2 -// can schedule events (such as reboot, stop, or terminate) for your instances -// related to hardware issues, software updates, or system maintenance. For more -// information, see Scheduled events for your instances +// * Scheduled events - Amazon EC2 can schedule +// events (such as reboot, stop, or terminate) for your instances related to +// hardware issues, software updates, or system maintenance. For more information, +// see Scheduled events for your instances // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/monitoring-instances-status-check_sched.html) -// in the Amazon Elastic Compute Cloud User Guide. +// in the Amazon EC2 User Guide. // -// * Instance state - You can -// manage your instances from the moment you launch them through their termination. -// For more information, see Instance lifecycle +// * Instance state - You can manage your instances +// from the moment you launch them through their termination. For more information, +// see Instance lifecycle // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-lifecycle.html) -// in the Amazon Elastic Compute Cloud User Guide. +// in the Amazon EC2 User Guide. func (c *Client) DescribeInstanceStatus(ctx context.Context, params *DescribeInstanceStatusInput, optFns ...func(*Options)) (*DescribeInstanceStatusOutput, error) { if params == nil { params = &DescribeInstanceStatusInput{} } - result, metadata, err := c.invokeOperation(ctx, "DescribeInstanceStatus", params, optFns, addOperationDescribeInstanceStatusMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "DescribeInstanceStatus", params, optFns, c.addOperationDescribeInstanceStatusMiddlewares) if err != nil { return nil, err } @@ -62,7 +64,7 @@ type DescribeInstanceStatusInput struct { // 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 + DryRun *bool // The filters. // @@ -117,7 +119,7 @@ type DescribeInstanceStatusInput struct { // When true, includes the health status for all instances. When false, includes // the health status for running instances only. Default: false - IncludeAllInstances bool + IncludeAllInstances *bool // The instance IDs. Default: Describes all your instances. Constraints: Maximum // 100 explicitly specified instance IDs. @@ -127,7 +129,7 @@ type DescribeInstanceStatusInput struct { // remaining results, make another call with the returned NextToken value. This // value can be between 5 and 1000. You cannot specify this parameter and the // instance IDs parameter in the same call. - MaxResults int32 + MaxResults *int32 // The token to retrieve the next page of results. NextToken *string @@ -146,7 +148,7 @@ type DescribeInstanceStatusOutput struct { ResultMetadata middleware.Metadata } -func addOperationDescribeInstanceStatusMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationDescribeInstanceStatusMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeInstanceStatus{}, middleware.After) if err != nil { return err @@ -239,19 +241,19 @@ type DescribeInstanceStatusPaginator struct { // NewDescribeInstanceStatusPaginator returns a new DescribeInstanceStatusPaginator func NewDescribeInstanceStatusPaginator(client DescribeInstanceStatusAPIClient, params *DescribeInstanceStatusInput, optFns ...func(*DescribeInstanceStatusPaginatorOptions)) *DescribeInstanceStatusPaginator { + if params == nil { + params = &DescribeInstanceStatusInput{} + } + options := DescribeInstanceStatusPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults + if params.MaxResults != nil { + options.Limit = *params.MaxResults } for _, fn := range optFns { fn(&options) } - if params == nil { - params = &DescribeInstanceStatusInput{} - } - return &DescribeInstanceStatusPaginator{ options: options, client: client, @@ -274,7 +276,11 @@ func (p *DescribeInstanceStatusPaginator) NextPage(ctx context.Context, optFns . params := *p.params params.NextToken = p.nextToken - params.MaxResults = p.options.Limit + var limit *int32 + if p.options.Limit > 0 { + limit = &p.options.Limit + } + params.MaxResults = limit result, err := p.client.DescribeInstanceStatus(ctx, ¶ms, optFns...) if err != nil { @@ -292,6 +298,184 @@ func (p *DescribeInstanceStatusPaginator) NextPage(ctx context.Context, optFns . return result, nil } +// InstanceStatusOkWaiterOptions are waiter options for InstanceStatusOkWaiter +type InstanceStatusOkWaiterOptions struct { + + // Set of options to modify how an operation is invoked. These apply to all + // operations invoked for this client. Use functional options on operation call to + // modify this list for per operation behavior. + APIOptions []func(*middleware.Stack) error + + // MinDelay is the minimum amount of time to delay between retries. If unset, + // InstanceStatusOkWaiter will use default minimum delay of 15 seconds. Note that + // MinDelay must resolve to a value lesser than or equal to the MaxDelay. + MinDelay time.Duration + + // MaxDelay is the maximum amount of time to delay between retries. If unset or set + // to zero, InstanceStatusOkWaiter will use default max delay of 120 seconds. Note + // that MaxDelay must resolve to value greater than or equal to the MinDelay. + MaxDelay time.Duration + + // LogWaitAttempts is used to enable logging for waiter retry attempts + LogWaitAttempts bool + + // Retryable is function that can be used to override the service defined + // waiter-behavior based on operation output, or returned error. This function is + // used by the waiter to decide if a state is retryable or a terminal state. By + // default service-modeled logic will populate this option. This option can thus be + // used to define a custom waiter state with fall-back to service-modeled waiter + // state mutators.The function returns an error in case of a failure state. In case + // of retry state, this function returns a bool value of true and nil error, while + // in case of success it returns a bool value of false and nil error. + Retryable func(context.Context, *DescribeInstanceStatusInput, *DescribeInstanceStatusOutput, error) (bool, error) +} + +// InstanceStatusOkWaiter defines the waiters for InstanceStatusOk +type InstanceStatusOkWaiter struct { + client DescribeInstanceStatusAPIClient + + options InstanceStatusOkWaiterOptions +} + +// NewInstanceStatusOkWaiter constructs a InstanceStatusOkWaiter. +func NewInstanceStatusOkWaiter(client DescribeInstanceStatusAPIClient, optFns ...func(*InstanceStatusOkWaiterOptions)) *InstanceStatusOkWaiter { + options := InstanceStatusOkWaiterOptions{} + options.MinDelay = 15 * time.Second + options.MaxDelay = 120 * time.Second + options.Retryable = instanceStatusOkStateRetryable + + for _, fn := range optFns { + fn(&options) + } + return &InstanceStatusOkWaiter{ + client: client, + options: options, + } +} + +// Wait calls the waiter function for InstanceStatusOk waiter. The maxWaitDur is +// the maximum wait duration the waiter will wait. The maxWaitDur is required and +// must be greater than zero. +func (w *InstanceStatusOkWaiter) Wait(ctx context.Context, params *DescribeInstanceStatusInput, maxWaitDur time.Duration, optFns ...func(*InstanceStatusOkWaiterOptions)) error { + if maxWaitDur <= 0 { + return fmt.Errorf("maximum wait time for waiter must be greater than zero") + } + + options := w.options + for _, fn := range optFns { + fn(&options) + } + + if options.MaxDelay <= 0 { + options.MaxDelay = 120 * time.Second + } + + if options.MinDelay > options.MaxDelay { + return fmt.Errorf("minimum waiter delay %v must be lesser than or equal to maximum waiter delay of %v.", options.MinDelay, options.MaxDelay) + } + + ctx, cancelFn := context.WithTimeout(ctx, maxWaitDur) + defer cancelFn() + + logger := smithywaiter.Logger{} + remainingTime := maxWaitDur + + var attempt int64 + for { + + attempt++ + apiOptions := options.APIOptions + start := time.Now() + + if options.LogWaitAttempts { + logger.Attempt = attempt + apiOptions = append([]func(*middleware.Stack) error{}, options.APIOptions...) + apiOptions = append(apiOptions, logger.AddLogger) + } + + out, err := w.client.DescribeInstanceStatus(ctx, params, func(o *Options) { + o.APIOptions = append(o.APIOptions, apiOptions...) + }) + + retryable, err := options.Retryable(ctx, params, out, err) + if err != nil { + return err + } + if !retryable { + return nil + } + + remainingTime -= time.Since(start) + if remainingTime < options.MinDelay || remainingTime <= 0 { + break + } + + // compute exponential backoff between waiter retries + delay, err := smithywaiter.ComputeDelay( + attempt, options.MinDelay, options.MaxDelay, remainingTime, + ) + if err != nil { + return fmt.Errorf("error computing waiter delay, %w", err) + } + + remainingTime -= delay + // sleep for the delay amount before invoking a request + if err := smithytime.SleepWithContext(ctx, delay); err != nil { + return fmt.Errorf("request cancelled while waiting, %w", err) + } + } + return fmt.Errorf("exceeded max wait time for InstanceStatusOk waiter") +} + +func instanceStatusOkStateRetryable(ctx context.Context, input *DescribeInstanceStatusInput, output *DescribeInstanceStatusOutput, err error) (bool, error) { + + if err == nil { + pathValue, err := jmespath.Search("InstanceStatuses[].InstanceStatus.Status", output) + if err != nil { + return false, fmt.Errorf("error evaluating waiter state: %w", err) + } + + expectedValue := "ok" + var match = true + listOfValues, ok := pathValue.([]interface{}) + if !ok { + return false, fmt.Errorf("waiter comparator expected list got %T", pathValue) + } + + if len(listOfValues) == 0 { + match = false + } + for _, v := range listOfValues { + value, ok := v.(types.SummaryStatus) + if !ok { + return false, fmt.Errorf("waiter comparator expected types.SummaryStatus value, got %T", pathValue) + } + + if string(value) != expectedValue { + match = false + } + } + + if match { + return false, nil + } + } + + if err != nil { + var apiErr smithy.APIError + ok := errors.As(err, &apiErr) + if !ok { + return false, fmt.Errorf("expected err to be of type smithy.APIError, got %w", err) + } + + if "InvalidInstanceID.NotFound" == apiErr.ErrorCode() { + return true, nil + } + } + + return true, nil +} + // SystemStatusOkWaiterOptions are waiter options for SystemStatusOkWaiter type SystemStatusOkWaiterOptions struct { @@ -431,16 +615,21 @@ func systemStatusOkStateRetryable(ctx context.Context, input *DescribeInstanceSt expectedValue := "ok" var match = true - listOfValues, ok := pathValue.([]string) + listOfValues, ok := pathValue.([]interface{}) if !ok { - return false, fmt.Errorf("waiter comparator expected []string value got %T", pathValue) + return false, fmt.Errorf("waiter comparator expected list got %T", pathValue) } if len(listOfValues) == 0 { match = false } for _, v := range listOfValues { - if v != expectedValue { + value, ok := v.(types.SummaryStatus) + if !ok { + return false, fmt.Errorf("waiter comparator expected types.SummaryStatus value, got %T", pathValue) + } + + if string(value) != expectedValue { match = false } } diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeInstanceTypeOfferings.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeInstanceTypeOfferings.go index 46844dddf..e3a7843f5 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeInstanceTypeOfferings.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeInstanceTypeOfferings.go @@ -20,7 +20,7 @@ func (c *Client) DescribeInstanceTypeOfferings(ctx context.Context, params *Desc params = &DescribeInstanceTypeOfferingsInput{} } - result, metadata, err := c.invokeOperation(ctx, "DescribeInstanceTypeOfferings", params, optFns, addOperationDescribeInstanceTypeOfferingsMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "DescribeInstanceTypeOfferings", params, optFns, c.addOperationDescribeInstanceTypeOfferingsMiddlewares) if err != nil { return nil, err } @@ -36,7 +36,7 @@ type DescribeInstanceTypeOfferingsInput struct { // 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 + DryRun *bool // One or more filters. Filter names and values are case-sensitive. // @@ -73,7 +73,7 @@ type DescribeInstanceTypeOfferingsOutput struct { ResultMetadata middleware.Metadata } -func addOperationDescribeInstanceTypeOfferingsMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationDescribeInstanceTypeOfferingsMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeInstanceTypeOfferings{}, middleware.After) if err != nil { return err @@ -167,6 +167,10 @@ type DescribeInstanceTypeOfferingsPaginator struct { // NewDescribeInstanceTypeOfferingsPaginator returns a new // DescribeInstanceTypeOfferingsPaginator func NewDescribeInstanceTypeOfferingsPaginator(client DescribeInstanceTypeOfferingsAPIClient, params *DescribeInstanceTypeOfferingsInput, optFns ...func(*DescribeInstanceTypeOfferingsPaginatorOptions)) *DescribeInstanceTypeOfferingsPaginator { + if params == nil { + params = &DescribeInstanceTypeOfferingsInput{} + } + options := DescribeInstanceTypeOfferingsPaginatorOptions{} if params.MaxResults != nil { options.Limit = *params.MaxResults @@ -176,10 +180,6 @@ func NewDescribeInstanceTypeOfferingsPaginator(client DescribeInstanceTypeOfferi fn(&options) } - if params == nil { - params = &DescribeInstanceTypeOfferingsInput{} - } - return &DescribeInstanceTypeOfferingsPaginator{ options: options, client: client, diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeInstanceTypes.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeInstanceTypes.go index 2a9183531..4bd22ed1d 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeInstanceTypes.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeInstanceTypes.go @@ -19,7 +19,7 @@ func (c *Client) DescribeInstanceTypes(ctx context.Context, params *DescribeInst params = &DescribeInstanceTypesInput{} } - result, metadata, err := c.invokeOperation(ctx, "DescribeInstanceTypes", params, optFns, addOperationDescribeInstanceTypesMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "DescribeInstanceTypes", params, optFns, c.addOperationDescribeInstanceTypesMiddlewares) if err != nil { return nil, err } @@ -35,7 +35,7 @@ type DescribeInstanceTypesInput struct { // 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 + DryRun *bool // One or more filters. Filter names and values are case-sensitive. // @@ -126,12 +126,15 @@ type DescribeInstanceTypesInput struct { // * memory-info.size-in-mib - The memory size. // // * - // network-info.efa-supported - Indicates whether the instance type supports - // Elastic Fabric Adapter (EFA) (true | false). + // network-info.efa-info.maximum-efa-interfaces - The maximum number of Elastic + // Fabric Adapters (EFAs) per instance. // - // * network-info.ena-support - - // Indicates whether Elastic Network Adapter (ENA) is supported or required - // (required | supported | unsupported). + // * network-info.efa-supported - Indicates + // whether the instance type supports Elastic Fabric Adapter (EFA) (true | + // false). + // + // * network-info.ena-support - Indicates whether Elastic Network Adapter + // (ENA) is supported or required (required | supported | unsupported). // // * // network-info.ipv4-addresses-per-interface - The maximum number of private IPv4 @@ -157,35 +160,38 @@ type DescribeInstanceTypesInput struct { // * processor-info.sustained-clock-speed-in-ghz - The CPU clock speed, // in GHz. // - // * supported-root-device-type - The root device type (ebs | - // instance-store). + // * supported-boot-mode - The boot mode (legacy-bios | uefi). // - // * supported-usage-class - The usage class (on-demand | - // spot). + // * + // supported-root-device-type - The root device type (ebs | instance-store). // - // * supported-virtualization-type - The virtualization type (hvm | - // paravirtual). + // * + // supported-usage-class - The usage class (on-demand | spot). // - // * vcpu-info.default-cores - The default number of cores for the - // instance type. + // * + // supported-virtualization-type - The virtualization type (hvm | paravirtual). // - // * vcpu-info.default-threads-per-core - The default number of - // threads per core for the instance type. + // * + // vcpu-info.default-cores - The default number of cores for the instance type. + // + // * + // vcpu-info.default-threads-per-core - The default number of threads per core for + // the instance type. // - // * vcpu-info.default-vcpus - The default - // number of vCPUs for the instance type. + // * vcpu-info.default-vcpus - The default number of vCPUs for + // the instance type. // - // * vcpu-info.valid-cores - The number of - // cores that can be configured for the instance type. + // * vcpu-info.valid-cores - The number of cores that can be + // configured for the instance type. // - // * - // vcpu-info.valid-threads-per-core - The number of threads per core that can be - // configured for the instance type. For example, "1" or "1,2". + // * vcpu-info.valid-threads-per-core - The + // number of threads per core that can be configured for the instance type. For + // example, "1" or "1,2". Filters []types.Filter - // The instance types. For more information, see Instance Types + // The instance types. For more information, see Instance types // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html) in the - // Amazon Elastic Compute Cloud User Guide. + // Amazon EC2 User Guide. InstanceTypes []types.InstanceType // The maximum number of results to return for the request in a single page. The @@ -199,9 +205,9 @@ type DescribeInstanceTypesInput struct { type DescribeInstanceTypesOutput struct { - // The instance type. For more information, see Instance Types + // The instance type. For more information, see Instance types // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html) in the - // Amazon Elastic Compute Cloud User Guide. + // Amazon EC2 User Guide. InstanceTypes []types.InstanceTypeInfo // The token to use to retrieve the next page of results. This value is null when @@ -212,7 +218,7 @@ type DescribeInstanceTypesOutput struct { ResultMetadata middleware.Metadata } -func addOperationDescribeInstanceTypesMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationDescribeInstanceTypesMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeInstanceTypes{}, middleware.After) if err != nil { return err @@ -304,6 +310,10 @@ type DescribeInstanceTypesPaginator struct { // NewDescribeInstanceTypesPaginator returns a new DescribeInstanceTypesPaginator func NewDescribeInstanceTypesPaginator(client DescribeInstanceTypesAPIClient, params *DescribeInstanceTypesInput, optFns ...func(*DescribeInstanceTypesPaginatorOptions)) *DescribeInstanceTypesPaginator { + if params == nil { + params = &DescribeInstanceTypesInput{} + } + options := DescribeInstanceTypesPaginatorOptions{} if params.MaxResults != nil { options.Limit = *params.MaxResults @@ -313,10 +323,6 @@ func NewDescribeInstanceTypesPaginator(client DescribeInstanceTypesAPIClient, pa fn(&options) } - if params == nil { - params = &DescribeInstanceTypesInput{} - } - return &DescribeInstanceTypesPaginator{ options: options, client: client, diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeInstances.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeInstances.go index feee6c55e..bc7ec2080 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeInstances.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeInstances.go @@ -4,15 +4,18 @@ package ec2 import ( "context" + "errors" "fmt" awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" "github.com/aws/aws-sdk-go-v2/aws/signer/v4" "github.com/aws/aws-sdk-go-v2/service/ec2/types" + smithy "github.com/aws/smithy-go" "github.com/aws/smithy-go/middleware" smithytime "github.com/aws/smithy-go/time" smithyhttp "github.com/aws/smithy-go/transport/http" smithywaiter "github.com/aws/smithy-go/waiter" "github.com/jmespath/go-jmespath" + "strconv" "time" ) @@ -35,7 +38,7 @@ func (c *Client) DescribeInstances(ctx context.Context, params *DescribeInstance params = &DescribeInstancesInput{} } - result, metadata, err := c.invokeOperation(ctx, "DescribeInstances", params, optFns, addOperationDescribeInstancesMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "DescribeInstances", params, optFns, c.addOperationDescribeInstancesMiddlewares) if err != nil { return nil, err } @@ -51,7 +54,7 @@ type DescribeInstancesInput struct { // 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 + DryRun *bool // The filters. // @@ -254,7 +257,7 @@ type DescribeInstancesInput struct { // for the network interface. // // * network-interface.requester-managed - Indicates - // whether the network interface is being managed by AWS. + // whether the network interface is being managed by Amazon Web Services. // // * // network-interface.status - The status of the network interface (available) | @@ -272,62 +275,64 @@ type DescribeInstancesInput struct { // * network-interface.vpc-id - The ID of the VPC for the network // interface. // - // * owner-id - The AWS account ID of the instance owner. + // * outpost-arn - The Amazon Resource Name (ARN) of the Outpost. // // * - // placement-group-name - The name of the placement group for the instance. + // owner-id - The account ID of the instance owner. // - // * - // placement-partition-number - The partition in which the instance is located. + // * placement-group-name - The + // name of the placement group for the instance. // - // * - // platform - The platform. To list only Windows instances, use windows. + // * placement-partition-number - + // The partition in which the instance is located. // - // * - // private-dns-name - The private IPv4 DNS name of the instance. + // * platform - The platform. To + // list only Windows instances, use windows. // - // * - // private-ip-address - The private IPv4 address of the instance. + // * private-dns-name - The private IPv4 + // DNS name of the instance. // - // * product-code - - // The product code associated with the AMI used to launch the instance. + // * private-ip-address - The private IPv4 address of + // the instance. // - // * - // product-code.type - The type of product code (devpay | marketplace). + // * product-code - The product code associated with the AMI used to + // launch the instance. // - // * - // ramdisk-id - The RAM disk ID. + // * product-code.type - The type of product code (devpay | + // marketplace). // - // * reason - The reason for the current state of - // the instance (for example, shows "User Initiated [date]" when you stop or - // terminate the instance). Similar to the state-reason-code filter. + // * ramdisk-id - The RAM disk ID. + // + // * reason - The reason for the + // current state of the instance (for example, shows "User Initiated [date]" when + // you stop or terminate the instance). Similar to the state-reason-code filter. // // * // requester-id - The ID of the entity that launched the instance on your behalf - // (for example, AWS Management Console, Auto Scaling, and so on). + // (for example, Management Console, Auto Scaling, and so on). // - // * - // reservation-id - The ID of the instance's reservation. A reservation ID is - // created any time you launch an instance. A reservation ID has a one-to-one - // relationship with an instance launch request, but can be associated with more - // than one instance if you launch multiple instances using the same launch - // request. For example, if you launch one instance, you get one reservation ID. If - // you launch ten instances using the same launch request, you also get one - // reservation ID. + // * reservation-id - + // The ID of the instance's reservation. A reservation ID is created any time you + // launch an instance. A reservation ID has a one-to-one relationship with an + // instance launch request, but can be associated with more than one instance if + // you launch multiple instances using the same launch request. For example, if you + // launch one instance, you get one reservation ID. If you launch ten instances + // using the same launch request, you also get one reservation ID. // - // * root-device-name - The device name of the root device volume - // (for example, /dev/sda1). + // * + // root-device-name - The device name of the root device volume (for example, + // /dev/sda1). // - // * root-device-type - The type of the root device - // volume (ebs | instance-store). + // * root-device-type - The type of the root device volume (ebs | + // instance-store). // - // * source-dest-check - Indicates whether the - // instance performs source/destination checking. A value of true means that - // checking is enabled, and false means that checking is disabled. The value must - // be false for the instance to perform network address translation (NAT) in your - // VPC. + // * source-dest-check - Indicates whether the instance performs + // source/destination checking. A value of true means that checking is enabled, and + // false means that checking is disabled. The value must be false for the instance + // to perform network address translation (NAT) in your VPC. // - // * spot-instance-request-id - The ID of the Spot Instance request. + // * + // spot-instance-request-id - The ID of the Spot Instance request. // // * // state-reason-code - The reason code for the state change. @@ -365,7 +370,7 @@ type DescribeInstancesInput struct { // remaining results, make another call with the returned NextToken value. This // value can be between 5 and 1000. You cannot specify this parameter and the // instance IDs parameter in the same call. - MaxResults int32 + MaxResults *int32 // The token to request the next page of results. NextToken *string @@ -384,7 +389,7 @@ type DescribeInstancesOutput struct { ResultMetadata middleware.Metadata } -func addOperationDescribeInstancesMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationDescribeInstancesMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeInstances{}, middleware.After) if err != nil { return err @@ -476,19 +481,19 @@ type DescribeInstancesPaginator struct { // NewDescribeInstancesPaginator returns a new DescribeInstancesPaginator func NewDescribeInstancesPaginator(client DescribeInstancesAPIClient, params *DescribeInstancesInput, optFns ...func(*DescribeInstancesPaginatorOptions)) *DescribeInstancesPaginator { + if params == nil { + params = &DescribeInstancesInput{} + } + options := DescribeInstancesPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults + if params.MaxResults != nil { + options.Limit = *params.MaxResults } for _, fn := range optFns { fn(&options) } - if params == nil { - params = &DescribeInstancesInput{} - } - return &DescribeInstancesPaginator{ options: options, client: client, @@ -511,7 +516,11 @@ func (p *DescribeInstancesPaginator) NextPage(ctx context.Context, optFns ...fun params := *p.params params.NextToken = p.nextToken - params.MaxResults = p.options.Limit + var limit *int32 + if p.options.Limit > 0 { + limit = &p.options.Limit + } + params.MaxResults = limit result, err := p.client.DescribeInstances(ctx, ¶ms, optFns...) if err != nil { @@ -529,6 +538,423 @@ func (p *DescribeInstancesPaginator) NextPage(ctx context.Context, optFns ...fun return result, nil } +// InstanceExistsWaiterOptions are waiter options for InstanceExistsWaiter +type InstanceExistsWaiterOptions struct { + + // Set of options to modify how an operation is invoked. These apply to all + // operations invoked for this client. Use functional options on operation call to + // modify this list for per operation behavior. + APIOptions []func(*middleware.Stack) error + + // MinDelay is the minimum amount of time to delay between retries. If unset, + // InstanceExistsWaiter will use default minimum delay of 5 seconds. Note that + // MinDelay must resolve to a value lesser than or equal to the MaxDelay. + MinDelay time.Duration + + // MaxDelay is the maximum amount of time to delay between retries. If unset or set + // to zero, InstanceExistsWaiter will use default max delay of 120 seconds. Note + // that MaxDelay must resolve to value greater than or equal to the MinDelay. + MaxDelay time.Duration + + // LogWaitAttempts is used to enable logging for waiter retry attempts + LogWaitAttempts bool + + // Retryable is function that can be used to override the service defined + // waiter-behavior based on operation output, or returned error. This function is + // used by the waiter to decide if a state is retryable or a terminal state. By + // default service-modeled logic will populate this option. This option can thus be + // used to define a custom waiter state with fall-back to service-modeled waiter + // state mutators.The function returns an error in case of a failure state. In case + // of retry state, this function returns a bool value of true and nil error, while + // in case of success it returns a bool value of false and nil error. + Retryable func(context.Context, *DescribeInstancesInput, *DescribeInstancesOutput, error) (bool, error) +} + +// InstanceExistsWaiter defines the waiters for InstanceExists +type InstanceExistsWaiter struct { + client DescribeInstancesAPIClient + + options InstanceExistsWaiterOptions +} + +// NewInstanceExistsWaiter constructs a InstanceExistsWaiter. +func NewInstanceExistsWaiter(client DescribeInstancesAPIClient, optFns ...func(*InstanceExistsWaiterOptions)) *InstanceExistsWaiter { + options := InstanceExistsWaiterOptions{} + options.MinDelay = 5 * time.Second + options.MaxDelay = 120 * time.Second + options.Retryable = instanceExistsStateRetryable + + for _, fn := range optFns { + fn(&options) + } + return &InstanceExistsWaiter{ + client: client, + options: options, + } +} + +// Wait calls the waiter function for InstanceExists waiter. The maxWaitDur is the +// maximum wait duration the waiter will wait. The maxWaitDur is required and must +// be greater than zero. +func (w *InstanceExistsWaiter) Wait(ctx context.Context, params *DescribeInstancesInput, maxWaitDur time.Duration, optFns ...func(*InstanceExistsWaiterOptions)) error { + if maxWaitDur <= 0 { + return fmt.Errorf("maximum wait time for waiter must be greater than zero") + } + + options := w.options + for _, fn := range optFns { + fn(&options) + } + + if options.MaxDelay <= 0 { + options.MaxDelay = 120 * time.Second + } + + if options.MinDelay > options.MaxDelay { + return fmt.Errorf("minimum waiter delay %v must be lesser than or equal to maximum waiter delay of %v.", options.MinDelay, options.MaxDelay) + } + + ctx, cancelFn := context.WithTimeout(ctx, maxWaitDur) + defer cancelFn() + + logger := smithywaiter.Logger{} + remainingTime := maxWaitDur + + var attempt int64 + for { + + attempt++ + apiOptions := options.APIOptions + start := time.Now() + + if options.LogWaitAttempts { + logger.Attempt = attempt + apiOptions = append([]func(*middleware.Stack) error{}, options.APIOptions...) + apiOptions = append(apiOptions, logger.AddLogger) + } + + out, err := w.client.DescribeInstances(ctx, params, func(o *Options) { + o.APIOptions = append(o.APIOptions, apiOptions...) + }) + + retryable, err := options.Retryable(ctx, params, out, err) + if err != nil { + return err + } + if !retryable { + return nil + } + + remainingTime -= time.Since(start) + if remainingTime < options.MinDelay || remainingTime <= 0 { + break + } + + // compute exponential backoff between waiter retries + delay, err := smithywaiter.ComputeDelay( + attempt, options.MinDelay, options.MaxDelay, remainingTime, + ) + if err != nil { + return fmt.Errorf("error computing waiter delay, %w", err) + } + + remainingTime -= delay + // sleep for the delay amount before invoking a request + if err := smithytime.SleepWithContext(ctx, delay); err != nil { + return fmt.Errorf("request cancelled while waiting, %w", err) + } + } + return fmt.Errorf("exceeded max wait time for InstanceExists waiter") +} + +func instanceExistsStateRetryable(ctx context.Context, input *DescribeInstancesInput, output *DescribeInstancesOutput, err error) (bool, error) { + + if err == nil { + pathValue, err := jmespath.Search("length(Reservations[]) > `0`", output) + if err != nil { + return false, fmt.Errorf("error evaluating waiter state: %w", err) + } + + expectedValue := "true" + bv, err := strconv.ParseBool(expectedValue) + if err != nil { + return false, fmt.Errorf("error parsing boolean from string %w", err) + } + value, ok := pathValue.(bool) + if !ok { + return false, fmt.Errorf("waiter comparator expected bool value got %T", pathValue) + } + + if value == bv { + return false, nil + } + } + + if err != nil { + var apiErr smithy.APIError + ok := errors.As(err, &apiErr) + if !ok { + return false, fmt.Errorf("expected err to be of type smithy.APIError, got %w", err) + } + + if "InvalidInstanceID.NotFound" == apiErr.ErrorCode() { + return true, nil + } + } + + return true, nil +} + +// InstanceRunningWaiterOptions are waiter options for InstanceRunningWaiter +type InstanceRunningWaiterOptions struct { + + // Set of options to modify how an operation is invoked. These apply to all + // operations invoked for this client. Use functional options on operation call to + // modify this list for per operation behavior. + APIOptions []func(*middleware.Stack) error + + // MinDelay is the minimum amount of time to delay between retries. If unset, + // InstanceRunningWaiter will use default minimum delay of 15 seconds. Note that + // MinDelay must resolve to a value lesser than or equal to the MaxDelay. + MinDelay time.Duration + + // MaxDelay is the maximum amount of time to delay between retries. If unset or set + // to zero, InstanceRunningWaiter will use default max delay of 120 seconds. Note + // that MaxDelay must resolve to value greater than or equal to the MinDelay. + MaxDelay time.Duration + + // LogWaitAttempts is used to enable logging for waiter retry attempts + LogWaitAttempts bool + + // Retryable is function that can be used to override the service defined + // waiter-behavior based on operation output, or returned error. This function is + // used by the waiter to decide if a state is retryable or a terminal state. By + // default service-modeled logic will populate this option. This option can thus be + // used to define a custom waiter state with fall-back to service-modeled waiter + // state mutators.The function returns an error in case of a failure state. In case + // of retry state, this function returns a bool value of true and nil error, while + // in case of success it returns a bool value of false and nil error. + Retryable func(context.Context, *DescribeInstancesInput, *DescribeInstancesOutput, error) (bool, error) +} + +// InstanceRunningWaiter defines the waiters for InstanceRunning +type InstanceRunningWaiter struct { + client DescribeInstancesAPIClient + + options InstanceRunningWaiterOptions +} + +// NewInstanceRunningWaiter constructs a InstanceRunningWaiter. +func NewInstanceRunningWaiter(client DescribeInstancesAPIClient, optFns ...func(*InstanceRunningWaiterOptions)) *InstanceRunningWaiter { + options := InstanceRunningWaiterOptions{} + options.MinDelay = 15 * time.Second + options.MaxDelay = 120 * time.Second + options.Retryable = instanceRunningStateRetryable + + for _, fn := range optFns { + fn(&options) + } + return &InstanceRunningWaiter{ + client: client, + options: options, + } +} + +// Wait calls the waiter function for InstanceRunning waiter. The maxWaitDur is the +// maximum wait duration the waiter will wait. The maxWaitDur is required and must +// be greater than zero. +func (w *InstanceRunningWaiter) Wait(ctx context.Context, params *DescribeInstancesInput, maxWaitDur time.Duration, optFns ...func(*InstanceRunningWaiterOptions)) error { + if maxWaitDur <= 0 { + return fmt.Errorf("maximum wait time for waiter must be greater than zero") + } + + options := w.options + for _, fn := range optFns { + fn(&options) + } + + if options.MaxDelay <= 0 { + options.MaxDelay = 120 * time.Second + } + + if options.MinDelay > options.MaxDelay { + return fmt.Errorf("minimum waiter delay %v must be lesser than or equal to maximum waiter delay of %v.", options.MinDelay, options.MaxDelay) + } + + ctx, cancelFn := context.WithTimeout(ctx, maxWaitDur) + defer cancelFn() + + logger := smithywaiter.Logger{} + remainingTime := maxWaitDur + + var attempt int64 + for { + + attempt++ + apiOptions := options.APIOptions + start := time.Now() + + if options.LogWaitAttempts { + logger.Attempt = attempt + apiOptions = append([]func(*middleware.Stack) error{}, options.APIOptions...) + apiOptions = append(apiOptions, logger.AddLogger) + } + + out, err := w.client.DescribeInstances(ctx, params, func(o *Options) { + o.APIOptions = append(o.APIOptions, apiOptions...) + }) + + retryable, err := options.Retryable(ctx, params, out, err) + if err != nil { + return err + } + if !retryable { + return nil + } + + remainingTime -= time.Since(start) + if remainingTime < options.MinDelay || remainingTime <= 0 { + break + } + + // compute exponential backoff between waiter retries + delay, err := smithywaiter.ComputeDelay( + attempt, options.MinDelay, options.MaxDelay, remainingTime, + ) + if err != nil { + return fmt.Errorf("error computing waiter delay, %w", err) + } + + remainingTime -= delay + // sleep for the delay amount before invoking a request + if err := smithytime.SleepWithContext(ctx, delay); err != nil { + return fmt.Errorf("request cancelled while waiting, %w", err) + } + } + return fmt.Errorf("exceeded max wait time for InstanceRunning waiter") +} + +func instanceRunningStateRetryable(ctx context.Context, input *DescribeInstancesInput, output *DescribeInstancesOutput, err error) (bool, error) { + + if err == nil { + pathValue, err := jmespath.Search("Reservations[].Instances[].State.Name", output) + if err != nil { + return false, fmt.Errorf("error evaluating waiter state: %w", err) + } + + expectedValue := "running" + var match = true + listOfValues, ok := pathValue.([]interface{}) + if !ok { + return false, fmt.Errorf("waiter comparator expected list got %T", pathValue) + } + + if len(listOfValues) == 0 { + match = false + } + for _, v := range listOfValues { + value, ok := v.(types.InstanceStateName) + if !ok { + return false, fmt.Errorf("waiter comparator expected types.InstanceStateName value, got %T", pathValue) + } + + if string(value) != expectedValue { + match = false + } + } + + if match { + return false, nil + } + } + + if err == nil { + pathValue, err := jmespath.Search("Reservations[].Instances[].State.Name", output) + if err != nil { + return false, fmt.Errorf("error evaluating waiter state: %w", err) + } + + expectedValue := "shutting-down" + listOfValues, ok := pathValue.([]interface{}) + if !ok { + return false, fmt.Errorf("waiter comparator expected list got %T", pathValue) + } + + for _, v := range listOfValues { + value, ok := v.(types.InstanceStateName) + if !ok { + return false, fmt.Errorf("waiter comparator expected types.InstanceStateName value, got %T", pathValue) + } + + if string(value) == expectedValue { + return false, fmt.Errorf("waiter state transitioned to Failure") + } + } + } + + if err == nil { + pathValue, err := jmespath.Search("Reservations[].Instances[].State.Name", output) + if err != nil { + return false, fmt.Errorf("error evaluating waiter state: %w", err) + } + + expectedValue := "terminated" + listOfValues, ok := pathValue.([]interface{}) + if !ok { + return false, fmt.Errorf("waiter comparator expected list got %T", pathValue) + } + + for _, v := range listOfValues { + value, ok := v.(types.InstanceStateName) + if !ok { + return false, fmt.Errorf("waiter comparator expected types.InstanceStateName value, got %T", pathValue) + } + + if string(value) == expectedValue { + return false, fmt.Errorf("waiter state transitioned to Failure") + } + } + } + + if err == nil { + pathValue, err := jmespath.Search("Reservations[].Instances[].State.Name", output) + if err != nil { + return false, fmt.Errorf("error evaluating waiter state: %w", err) + } + + expectedValue := "stopping" + listOfValues, ok := pathValue.([]interface{}) + if !ok { + return false, fmt.Errorf("waiter comparator expected list got %T", pathValue) + } + + for _, v := range listOfValues { + value, ok := v.(types.InstanceStateName) + if !ok { + return false, fmt.Errorf("waiter comparator expected types.InstanceStateName value, got %T", pathValue) + } + + if string(value) == expectedValue { + return false, fmt.Errorf("waiter state transitioned to Failure") + } + } + } + + if err != nil { + var apiErr smithy.APIError + ok := errors.As(err, &apiErr) + if !ok { + return false, fmt.Errorf("expected err to be of type smithy.APIError, got %w", err) + } + + if "InvalidInstanceID.NotFound" == apiErr.ErrorCode() { + return true, nil + } + } + + return true, nil +} + // InstanceStoppedWaiterOptions are waiter options for InstanceStoppedWaiter type InstanceStoppedWaiterOptions struct { @@ -668,16 +1094,21 @@ func instanceStoppedStateRetryable(ctx context.Context, input *DescribeInstances expectedValue := "stopped" var match = true - listOfValues, ok := pathValue.([]string) + listOfValues, ok := pathValue.([]interface{}) if !ok { - return false, fmt.Errorf("waiter comparator expected []string value got %T", pathValue) + return false, fmt.Errorf("waiter comparator expected list got %T", pathValue) } if len(listOfValues) == 0 { match = false } for _, v := range listOfValues { - if v != expectedValue { + value, ok := v.(types.InstanceStateName) + if !ok { + return false, fmt.Errorf("waiter comparator expected types.InstanceStateName value, got %T", pathValue) + } + + if string(value) != expectedValue { match = false } } @@ -694,13 +1125,18 @@ func instanceStoppedStateRetryable(ctx context.Context, input *DescribeInstances } expectedValue := "pending" - listOfValues, ok := pathValue.([]string) + listOfValues, ok := pathValue.([]interface{}) if !ok { - return false, fmt.Errorf("waiter comparator expected []string value got %T", pathValue) + return false, fmt.Errorf("waiter comparator expected list got %T", pathValue) } for _, v := range listOfValues { - if v == expectedValue { + value, ok := v.(types.InstanceStateName) + if !ok { + return false, fmt.Errorf("waiter comparator expected types.InstanceStateName value, got %T", pathValue) + } + + if string(value) == expectedValue { return false, fmt.Errorf("waiter state transitioned to Failure") } } @@ -713,13 +1149,18 @@ func instanceStoppedStateRetryable(ctx context.Context, input *DescribeInstances } expectedValue := "terminated" - listOfValues, ok := pathValue.([]string) + listOfValues, ok := pathValue.([]interface{}) if !ok { - return false, fmt.Errorf("waiter comparator expected []string value got %T", pathValue) + return false, fmt.Errorf("waiter comparator expected list got %T", pathValue) } for _, v := range listOfValues { - if v == expectedValue { + value, ok := v.(types.InstanceStateName) + if !ok { + return false, fmt.Errorf("waiter comparator expected types.InstanceStateName value, got %T", pathValue) + } + + if string(value) == expectedValue { return false, fmt.Errorf("waiter state transitioned to Failure") } } @@ -867,16 +1308,21 @@ func instanceTerminatedStateRetryable(ctx context.Context, input *DescribeInstan expectedValue := "terminated" var match = true - listOfValues, ok := pathValue.([]string) + listOfValues, ok := pathValue.([]interface{}) if !ok { - return false, fmt.Errorf("waiter comparator expected []string value got %T", pathValue) + return false, fmt.Errorf("waiter comparator expected list got %T", pathValue) } if len(listOfValues) == 0 { match = false } for _, v := range listOfValues { - if v != expectedValue { + value, ok := v.(types.InstanceStateName) + if !ok { + return false, fmt.Errorf("waiter comparator expected types.InstanceStateName value, got %T", pathValue) + } + + if string(value) != expectedValue { match = false } } @@ -893,13 +1339,18 @@ func instanceTerminatedStateRetryable(ctx context.Context, input *DescribeInstan } expectedValue := "pending" - listOfValues, ok := pathValue.([]string) + listOfValues, ok := pathValue.([]interface{}) if !ok { - return false, fmt.Errorf("waiter comparator expected []string value got %T", pathValue) + return false, fmt.Errorf("waiter comparator expected list got %T", pathValue) } for _, v := range listOfValues { - if v == expectedValue { + value, ok := v.(types.InstanceStateName) + if !ok { + return false, fmt.Errorf("waiter comparator expected types.InstanceStateName value, got %T", pathValue) + } + + if string(value) == expectedValue { return false, fmt.Errorf("waiter state transitioned to Failure") } } @@ -912,13 +1363,18 @@ func instanceTerminatedStateRetryable(ctx context.Context, input *DescribeInstan } expectedValue := "stopping" - listOfValues, ok := pathValue.([]string) + listOfValues, ok := pathValue.([]interface{}) if !ok { - return false, fmt.Errorf("waiter comparator expected []string value got %T", pathValue) + return false, fmt.Errorf("waiter comparator expected list got %T", pathValue) } for _, v := range listOfValues { - if v == expectedValue { + value, ok := v.(types.InstanceStateName) + if !ok { + return false, fmt.Errorf("waiter comparator expected types.InstanceStateName value, got %T", pathValue) + } + + if string(value) == expectedValue { return false, fmt.Errorf("waiter state transitioned to Failure") } } 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 2d67f57f6..4aa0db34f 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 @@ -18,7 +18,7 @@ func (c *Client) DescribeInternetGateways(ctx context.Context, params *DescribeI params = &DescribeInternetGatewaysInput{} } - result, metadata, err := c.invokeOperation(ctx, "DescribeInternetGateways", params, optFns, addOperationDescribeInternetGatewaysMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "DescribeInternetGateways", params, optFns, c.addOperationDescribeInternetGatewaysMiddlewares) if err != nil { return nil, err } @@ -34,7 +34,7 @@ type DescribeInternetGatewaysInput struct { // 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 + DryRun *bool // One or more filters. // @@ -66,7 +66,7 @@ type DescribeInternetGatewaysInput struct { // The maximum number of results to return with a single call. To retrieve the // remaining results, make another call with the returned nextToken value. - MaxResults int32 + MaxResults *int32 // The token for the next page of results. NextToken *string @@ -85,7 +85,7 @@ type DescribeInternetGatewaysOutput struct { ResultMetadata middleware.Metadata } -func addOperationDescribeInternetGatewaysMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationDescribeInternetGatewaysMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeInternetGateways{}, middleware.After) if err != nil { return err @@ -177,19 +177,19 @@ type DescribeInternetGatewaysPaginator struct { // NewDescribeInternetGatewaysPaginator returns a new // DescribeInternetGatewaysPaginator func NewDescribeInternetGatewaysPaginator(client DescribeInternetGatewaysAPIClient, params *DescribeInternetGatewaysInput, optFns ...func(*DescribeInternetGatewaysPaginatorOptions)) *DescribeInternetGatewaysPaginator { + if params == nil { + params = &DescribeInternetGatewaysInput{} + } + options := DescribeInternetGatewaysPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults + if params.MaxResults != nil { + options.Limit = *params.MaxResults } for _, fn := range optFns { fn(&options) } - if params == nil { - params = &DescribeInternetGatewaysInput{} - } - return &DescribeInternetGatewaysPaginator{ options: options, client: client, @@ -212,7 +212,11 @@ func (p *DescribeInternetGatewaysPaginator) NextPage(ctx context.Context, optFns params := *p.params params.NextToken = p.nextToken - params.MaxResults = p.options.Limit + var limit *int32 + if p.options.Limit > 0 { + limit = &p.options.Limit + } + params.MaxResults = limit result, err := p.client.DescribeInternetGateways(ctx, ¶ms, optFns...) if err != nil { diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeIpv6Pools.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeIpv6Pools.go index c5991bb64..e2ad45b5a 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeIpv6Pools.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeIpv6Pools.go @@ -18,7 +18,7 @@ func (c *Client) DescribeIpv6Pools(ctx context.Context, params *DescribeIpv6Pool params = &DescribeIpv6PoolsInput{} } - result, metadata, err := c.invokeOperation(ctx, "DescribeIpv6Pools", params, optFns, addOperationDescribeIpv6PoolsMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "DescribeIpv6Pools", params, optFns, c.addOperationDescribeIpv6PoolsMiddlewares) if err != nil { return nil, err } @@ -34,7 +34,7 @@ type DescribeIpv6PoolsInput struct { // 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 + DryRun *bool // One or more filters. // @@ -51,7 +51,7 @@ type DescribeIpv6PoolsInput struct { // The maximum number of results to return with a single call. To retrieve the // remaining results, make another call with the returned nextToken value. - MaxResults int32 + MaxResults *int32 // The token for the next page of results. NextToken *string @@ -73,7 +73,7 @@ type DescribeIpv6PoolsOutput struct { ResultMetadata middleware.Metadata } -func addOperationDescribeIpv6PoolsMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationDescribeIpv6PoolsMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeIpv6Pools{}, middleware.After) if err != nil { return err @@ -163,19 +163,19 @@ type DescribeIpv6PoolsPaginator struct { // NewDescribeIpv6PoolsPaginator returns a new DescribeIpv6PoolsPaginator func NewDescribeIpv6PoolsPaginator(client DescribeIpv6PoolsAPIClient, params *DescribeIpv6PoolsInput, optFns ...func(*DescribeIpv6PoolsPaginatorOptions)) *DescribeIpv6PoolsPaginator { + if params == nil { + params = &DescribeIpv6PoolsInput{} + } + options := DescribeIpv6PoolsPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults + if params.MaxResults != nil { + options.Limit = *params.MaxResults } for _, fn := range optFns { fn(&options) } - if params == nil { - params = &DescribeIpv6PoolsInput{} - } - return &DescribeIpv6PoolsPaginator{ options: options, client: client, @@ -198,7 +198,11 @@ func (p *DescribeIpv6PoolsPaginator) NextPage(ctx context.Context, optFns ...fun params := *p.params params.NextToken = p.nextToken - params.MaxResults = p.options.Limit + var limit *int32 + if p.options.Limit > 0 { + limit = &p.options.Limit + } + params.MaxResults = limit result, err := p.client.DescribeIpv6Pools(ctx, ¶ms, optFns...) if err != nil { diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeKeyPairs.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeKeyPairs.go index 969000acf..1975d0110 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeKeyPairs.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeKeyPairs.go @@ -4,11 +4,19 @@ package ec2 import ( "context" + "errors" + "fmt" awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" "github.com/aws/aws-sdk-go-v2/aws/signer/v4" "github.com/aws/aws-sdk-go-v2/service/ec2/types" + smithy "github.com/aws/smithy-go" "github.com/aws/smithy-go/middleware" + smithytime "github.com/aws/smithy-go/time" smithyhttp "github.com/aws/smithy-go/transport/http" + smithywaiter "github.com/aws/smithy-go/waiter" + "github.com/jmespath/go-jmespath" + "strconv" + "time" ) // Describes the specified key pairs or all of your key pairs. For more information @@ -20,7 +28,7 @@ func (c *Client) DescribeKeyPairs(ctx context.Context, params *DescribeKeyPairsI params = &DescribeKeyPairsInput{} } - result, metadata, err := c.invokeOperation(ctx, "DescribeKeyPairs", params, optFns, addOperationDescribeKeyPairsMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "DescribeKeyPairs", params, optFns, c.addOperationDescribeKeyPairsMiddlewares) if err != nil { return nil, err } @@ -36,7 +44,7 @@ type DescribeKeyPairsInput struct { // 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 + DryRun *bool // The filters. // @@ -74,7 +82,7 @@ type DescribeKeyPairsOutput struct { ResultMetadata middleware.Metadata } -func addOperationDescribeKeyPairsMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationDescribeKeyPairsMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeKeyPairs{}, middleware.After) if err != nil { return err @@ -134,6 +142,181 @@ func addOperationDescribeKeyPairsMiddlewares(stack *middleware.Stack, options Op return nil } +// DescribeKeyPairsAPIClient is a client that implements the DescribeKeyPairs +// operation. +type DescribeKeyPairsAPIClient interface { + DescribeKeyPairs(context.Context, *DescribeKeyPairsInput, ...func(*Options)) (*DescribeKeyPairsOutput, error) +} + +var _ DescribeKeyPairsAPIClient = (*Client)(nil) + +// KeyPairExistsWaiterOptions are waiter options for KeyPairExistsWaiter +type KeyPairExistsWaiterOptions struct { + + // Set of options to modify how an operation is invoked. These apply to all + // operations invoked for this client. Use functional options on operation call to + // modify this list for per operation behavior. + APIOptions []func(*middleware.Stack) error + + // MinDelay is the minimum amount of time to delay between retries. If unset, + // KeyPairExistsWaiter will use default minimum delay of 5 seconds. Note that + // MinDelay must resolve to a value lesser than or equal to the MaxDelay. + MinDelay time.Duration + + // MaxDelay is the maximum amount of time to delay between retries. If unset or set + // to zero, KeyPairExistsWaiter will use default max delay of 120 seconds. Note + // that MaxDelay must resolve to value greater than or equal to the MinDelay. + MaxDelay time.Duration + + // LogWaitAttempts is used to enable logging for waiter retry attempts + LogWaitAttempts bool + + // Retryable is function that can be used to override the service defined + // waiter-behavior based on operation output, or returned error. This function is + // used by the waiter to decide if a state is retryable or a terminal state. By + // default service-modeled logic will populate this option. This option can thus be + // used to define a custom waiter state with fall-back to service-modeled waiter + // state mutators.The function returns an error in case of a failure state. In case + // of retry state, this function returns a bool value of true and nil error, while + // in case of success it returns a bool value of false and nil error. + Retryable func(context.Context, *DescribeKeyPairsInput, *DescribeKeyPairsOutput, error) (bool, error) +} + +// KeyPairExistsWaiter defines the waiters for KeyPairExists +type KeyPairExistsWaiter struct { + client DescribeKeyPairsAPIClient + + options KeyPairExistsWaiterOptions +} + +// NewKeyPairExistsWaiter constructs a KeyPairExistsWaiter. +func NewKeyPairExistsWaiter(client DescribeKeyPairsAPIClient, optFns ...func(*KeyPairExistsWaiterOptions)) *KeyPairExistsWaiter { + options := KeyPairExistsWaiterOptions{} + options.MinDelay = 5 * time.Second + options.MaxDelay = 120 * time.Second + options.Retryable = keyPairExistsStateRetryable + + for _, fn := range optFns { + fn(&options) + } + return &KeyPairExistsWaiter{ + client: client, + options: options, + } +} + +// Wait calls the waiter function for KeyPairExists waiter. The maxWaitDur is the +// maximum wait duration the waiter will wait. The maxWaitDur is required and must +// be greater than zero. +func (w *KeyPairExistsWaiter) Wait(ctx context.Context, params *DescribeKeyPairsInput, maxWaitDur time.Duration, optFns ...func(*KeyPairExistsWaiterOptions)) error { + if maxWaitDur <= 0 { + return fmt.Errorf("maximum wait time for waiter must be greater than zero") + } + + options := w.options + for _, fn := range optFns { + fn(&options) + } + + if options.MaxDelay <= 0 { + options.MaxDelay = 120 * time.Second + } + + if options.MinDelay > options.MaxDelay { + return fmt.Errorf("minimum waiter delay %v must be lesser than or equal to maximum waiter delay of %v.", options.MinDelay, options.MaxDelay) + } + + ctx, cancelFn := context.WithTimeout(ctx, maxWaitDur) + defer cancelFn() + + logger := smithywaiter.Logger{} + remainingTime := maxWaitDur + + var attempt int64 + for { + + attempt++ + apiOptions := options.APIOptions + start := time.Now() + + if options.LogWaitAttempts { + logger.Attempt = attempt + apiOptions = append([]func(*middleware.Stack) error{}, options.APIOptions...) + apiOptions = append(apiOptions, logger.AddLogger) + } + + out, err := w.client.DescribeKeyPairs(ctx, params, func(o *Options) { + o.APIOptions = append(o.APIOptions, apiOptions...) + }) + + retryable, err := options.Retryable(ctx, params, out, err) + if err != nil { + return err + } + if !retryable { + return nil + } + + remainingTime -= time.Since(start) + if remainingTime < options.MinDelay || remainingTime <= 0 { + break + } + + // compute exponential backoff between waiter retries + delay, err := smithywaiter.ComputeDelay( + attempt, options.MinDelay, options.MaxDelay, remainingTime, + ) + if err != nil { + return fmt.Errorf("error computing waiter delay, %w", err) + } + + remainingTime -= delay + // sleep for the delay amount before invoking a request + if err := smithytime.SleepWithContext(ctx, delay); err != nil { + return fmt.Errorf("request cancelled while waiting, %w", err) + } + } + return fmt.Errorf("exceeded max wait time for KeyPairExists waiter") +} + +func keyPairExistsStateRetryable(ctx context.Context, input *DescribeKeyPairsInput, output *DescribeKeyPairsOutput, err error) (bool, error) { + + if err == nil { + pathValue, err := jmespath.Search("length(KeyPairs[].KeyName) > `0`", output) + if err != nil { + return false, fmt.Errorf("error evaluating waiter state: %w", err) + } + + expectedValue := "true" + bv, err := strconv.ParseBool(expectedValue) + if err != nil { + return false, fmt.Errorf("error parsing boolean from string %w", err) + } + value, ok := pathValue.(bool) + if !ok { + return false, fmt.Errorf("waiter comparator expected bool value got %T", pathValue) + } + + if value == bv { + return false, nil + } + } + + if err != nil { + var apiErr smithy.APIError + ok := errors.As(err, &apiErr) + if !ok { + return false, fmt.Errorf("expected err to be of type smithy.APIError, got %w", err) + } + + if "InvalidKeyPair.NotFound" == apiErr.ErrorCode() { + return true, nil + } + } + + return true, nil +} + func newServiceMetadataMiddleware_opDescribeKeyPairs(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeLaunchTemplateVersions.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeLaunchTemplateVersions.go index 61df03af9..6dc202323 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeLaunchTemplateVersions.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeLaunchTemplateVersions.go @@ -21,7 +21,7 @@ func (c *Client) DescribeLaunchTemplateVersions(ctx context.Context, params *Des params = &DescribeLaunchTemplateVersionsInput{} } - result, metadata, err := c.invokeOperation(ctx, "DescribeLaunchTemplateVersions", params, optFns, addOperationDescribeLaunchTemplateVersionsMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "DescribeLaunchTemplateVersions", params, optFns, c.addOperationDescribeLaunchTemplateVersionsMiddlewares) if err != nil { return nil, err } @@ -37,7 +37,7 @@ type DescribeLaunchTemplateVersionsInput struct { // 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 + DryRun *bool // One or more filters. // @@ -79,7 +79,7 @@ type DescribeLaunchTemplateVersionsInput struct { // The maximum number of results to return in a single call. To retrieve the // remaining results, make another call with the returned NextToken value. This // value can be between 1 and 200. - MaxResults int32 + MaxResults *int32 // The version number up to which to describe launch template versions. MaxVersion *string @@ -114,7 +114,7 @@ type DescribeLaunchTemplateVersionsOutput struct { ResultMetadata middleware.Metadata } -func addOperationDescribeLaunchTemplateVersionsMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationDescribeLaunchTemplateVersionsMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeLaunchTemplateVersions{}, middleware.After) if err != nil { return err @@ -208,19 +208,19 @@ type DescribeLaunchTemplateVersionsPaginator struct { // NewDescribeLaunchTemplateVersionsPaginator returns a new // DescribeLaunchTemplateVersionsPaginator func NewDescribeLaunchTemplateVersionsPaginator(client DescribeLaunchTemplateVersionsAPIClient, params *DescribeLaunchTemplateVersionsInput, optFns ...func(*DescribeLaunchTemplateVersionsPaginatorOptions)) *DescribeLaunchTemplateVersionsPaginator { + if params == nil { + params = &DescribeLaunchTemplateVersionsInput{} + } + options := DescribeLaunchTemplateVersionsPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults + if params.MaxResults != nil { + options.Limit = *params.MaxResults } for _, fn := range optFns { fn(&options) } - if params == nil { - params = &DescribeLaunchTemplateVersionsInput{} - } - return &DescribeLaunchTemplateVersionsPaginator{ options: options, client: client, @@ -243,7 +243,11 @@ func (p *DescribeLaunchTemplateVersionsPaginator) NextPage(ctx context.Context, params := *p.params params.NextToken = p.nextToken - params.MaxResults = p.options.Limit + var limit *int32 + if p.options.Limit > 0 { + limit = &p.options.Limit + } + params.MaxResults = limit result, err := p.client.DescribeLaunchTemplateVersions(ctx, ¶ms, optFns...) if err != nil { diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeLaunchTemplates.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeLaunchTemplates.go index ee46d7a75..9440af781 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeLaunchTemplates.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeLaunchTemplates.go @@ -18,7 +18,7 @@ func (c *Client) DescribeLaunchTemplates(ctx context.Context, params *DescribeLa params = &DescribeLaunchTemplatesInput{} } - result, metadata, err := c.invokeOperation(ctx, "DescribeLaunchTemplates", params, optFns, addOperationDescribeLaunchTemplatesMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "DescribeLaunchTemplates", params, optFns, c.addOperationDescribeLaunchTemplatesMiddlewares) if err != nil { return nil, err } @@ -34,7 +34,7 @@ type DescribeLaunchTemplatesInput struct { // 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 + DryRun *bool // One or more filters. // @@ -63,7 +63,7 @@ type DescribeLaunchTemplatesInput struct { // The maximum number of results to return in a single call. To retrieve the // remaining results, make another call with the returned NextToken value. This // value can be between 1 and 200. - MaxResults int32 + MaxResults *int32 // The token to request the next page of results. NextToken *string @@ -82,7 +82,7 @@ type DescribeLaunchTemplatesOutput struct { ResultMetadata middleware.Metadata } -func addOperationDescribeLaunchTemplatesMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationDescribeLaunchTemplatesMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeLaunchTemplates{}, middleware.After) if err != nil { return err @@ -175,19 +175,19 @@ type DescribeLaunchTemplatesPaginator struct { // NewDescribeLaunchTemplatesPaginator returns a new // DescribeLaunchTemplatesPaginator func NewDescribeLaunchTemplatesPaginator(client DescribeLaunchTemplatesAPIClient, params *DescribeLaunchTemplatesInput, optFns ...func(*DescribeLaunchTemplatesPaginatorOptions)) *DescribeLaunchTemplatesPaginator { + if params == nil { + params = &DescribeLaunchTemplatesInput{} + } + options := DescribeLaunchTemplatesPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults + if params.MaxResults != nil { + options.Limit = *params.MaxResults } for _, fn := range optFns { fn(&options) } - if params == nil { - params = &DescribeLaunchTemplatesInput{} - } - return &DescribeLaunchTemplatesPaginator{ options: options, client: client, @@ -210,7 +210,11 @@ func (p *DescribeLaunchTemplatesPaginator) NextPage(ctx context.Context, optFns params := *p.params params.NextToken = p.nextToken - params.MaxResults = p.options.Limit + var limit *int32 + if p.options.Limit > 0 { + limit = &p.options.Limit + } + params.MaxResults = limit result, err := p.client.DescribeLaunchTemplates(ctx, ¶ms, optFns...) if err != nil { diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociations.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociations.go index 7827f7ba5..339169d9c 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociations.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociations.go @@ -19,7 +19,7 @@ func (c *Client) DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociations params = &DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsInput{} } - result, metadata, err := c.invokeOperation(ctx, "DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociations", params, optFns, addOperationDescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociations", params, optFns, c.addOperationDescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsMiddlewares) if err != nil { return nil, err } @@ -35,7 +35,7 @@ type DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsInput struct // 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 + DryRun *bool // One or more filters. // @@ -59,7 +59,7 @@ type DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsInput struct // The maximum number of results to return with a single call. To retrieve the // remaining results, make another call with the returned nextToken value. - MaxResults int32 + MaxResults *int32 // The token for the next page of results. NextToken *string @@ -78,7 +78,7 @@ type DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsOutput struc ResultMetadata middleware.Metadata } -func addOperationDescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationDescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociations{}, middleware.After) if err != nil { return err @@ -174,19 +174,19 @@ type DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsPaginator st // returns a new // DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsPaginator func NewDescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsPaginator(client DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsAPIClient, params *DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsInput, optFns ...func(*DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsPaginatorOptions)) *DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsPaginator { + if params == nil { + params = &DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsInput{} + } + options := DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults + if params.MaxResults != nil { + options.Limit = *params.MaxResults } for _, fn := range optFns { fn(&options) } - if params == nil { - params = &DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsInput{} - } - return &DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsPaginator{ options: options, client: client, @@ -210,7 +210,11 @@ func (p *DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsPaginato params := *p.params params.NextToken = p.nextToken - params.MaxResults = p.options.Limit + var limit *int32 + if p.options.Limit > 0 { + limit = &p.options.Limit + } + params.MaxResults = limit result, err := p.client.DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociations(ctx, ¶ms, optFns...) if err != nil { diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeLocalGatewayRouteTableVpcAssociations.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeLocalGatewayRouteTableVpcAssociations.go index 359f2fd34..1fcdc65ba 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeLocalGatewayRouteTableVpcAssociations.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeLocalGatewayRouteTableVpcAssociations.go @@ -19,7 +19,7 @@ func (c *Client) DescribeLocalGatewayRouteTableVpcAssociations(ctx context.Conte params = &DescribeLocalGatewayRouteTableVpcAssociationsInput{} } - result, metadata, err := c.invokeOperation(ctx, "DescribeLocalGatewayRouteTableVpcAssociations", params, optFns, addOperationDescribeLocalGatewayRouteTableVpcAssociationsMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "DescribeLocalGatewayRouteTableVpcAssociations", params, optFns, c.addOperationDescribeLocalGatewayRouteTableVpcAssociationsMiddlewares) if err != nil { return nil, err } @@ -35,7 +35,7 @@ type DescribeLocalGatewayRouteTableVpcAssociationsInput struct { // 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 + DryRun *bool // One or more filters. // @@ -58,7 +58,7 @@ type DescribeLocalGatewayRouteTableVpcAssociationsInput struct { // The maximum number of results to return with a single call. To retrieve the // remaining results, make another call with the returned nextToken value. - MaxResults int32 + MaxResults *int32 // The token for the next page of results. NextToken *string @@ -77,7 +77,7 @@ type DescribeLocalGatewayRouteTableVpcAssociationsOutput struct { ResultMetadata middleware.Metadata } -func addOperationDescribeLocalGatewayRouteTableVpcAssociationsMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationDescribeLocalGatewayRouteTableVpcAssociationsMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeLocalGatewayRouteTableVpcAssociations{}, middleware.After) if err != nil { return err @@ -170,19 +170,19 @@ type DescribeLocalGatewayRouteTableVpcAssociationsPaginator struct { // NewDescribeLocalGatewayRouteTableVpcAssociationsPaginator returns a new // DescribeLocalGatewayRouteTableVpcAssociationsPaginator func NewDescribeLocalGatewayRouteTableVpcAssociationsPaginator(client DescribeLocalGatewayRouteTableVpcAssociationsAPIClient, params *DescribeLocalGatewayRouteTableVpcAssociationsInput, optFns ...func(*DescribeLocalGatewayRouteTableVpcAssociationsPaginatorOptions)) *DescribeLocalGatewayRouteTableVpcAssociationsPaginator { + if params == nil { + params = &DescribeLocalGatewayRouteTableVpcAssociationsInput{} + } + options := DescribeLocalGatewayRouteTableVpcAssociationsPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults + if params.MaxResults != nil { + options.Limit = *params.MaxResults } for _, fn := range optFns { fn(&options) } - if params == nil { - params = &DescribeLocalGatewayRouteTableVpcAssociationsInput{} - } - return &DescribeLocalGatewayRouteTableVpcAssociationsPaginator{ options: options, client: client, @@ -205,7 +205,11 @@ func (p *DescribeLocalGatewayRouteTableVpcAssociationsPaginator) NextPage(ctx co params := *p.params params.NextToken = p.nextToken - params.MaxResults = p.options.Limit + var limit *int32 + if p.options.Limit > 0 { + limit = &p.options.Limit + } + params.MaxResults = limit result, err := p.client.DescribeLocalGatewayRouteTableVpcAssociations(ctx, ¶ms, optFns...) if err != nil { diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeLocalGatewayRouteTables.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeLocalGatewayRouteTables.go index 6b067fc9d..d75d7314b 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeLocalGatewayRouteTables.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeLocalGatewayRouteTables.go @@ -19,7 +19,7 @@ func (c *Client) DescribeLocalGatewayRouteTables(ctx context.Context, params *De params = &DescribeLocalGatewayRouteTablesInput{} } - result, metadata, err := c.invokeOperation(ctx, "DescribeLocalGatewayRouteTables", params, optFns, addOperationDescribeLocalGatewayRouteTablesMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "DescribeLocalGatewayRouteTables", params, optFns, c.addOperationDescribeLocalGatewayRouteTablesMiddlewares) if err != nil { return nil, err } @@ -35,7 +35,7 @@ type DescribeLocalGatewayRouteTablesInput struct { // 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 + DryRun *bool // One or more filters. // @@ -56,7 +56,7 @@ type DescribeLocalGatewayRouteTablesInput struct { // The maximum number of results to return with a single call. To retrieve the // remaining results, make another call with the returned nextToken value. - MaxResults int32 + MaxResults *int32 // The token for the next page of results. NextToken *string @@ -75,7 +75,7 @@ type DescribeLocalGatewayRouteTablesOutput struct { ResultMetadata middleware.Metadata } -func addOperationDescribeLocalGatewayRouteTablesMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationDescribeLocalGatewayRouteTablesMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeLocalGatewayRouteTables{}, middleware.After) if err != nil { return err @@ -168,19 +168,19 @@ type DescribeLocalGatewayRouteTablesPaginator struct { // NewDescribeLocalGatewayRouteTablesPaginator returns a new // DescribeLocalGatewayRouteTablesPaginator func NewDescribeLocalGatewayRouteTablesPaginator(client DescribeLocalGatewayRouteTablesAPIClient, params *DescribeLocalGatewayRouteTablesInput, optFns ...func(*DescribeLocalGatewayRouteTablesPaginatorOptions)) *DescribeLocalGatewayRouteTablesPaginator { + if params == nil { + params = &DescribeLocalGatewayRouteTablesInput{} + } + options := DescribeLocalGatewayRouteTablesPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults + if params.MaxResults != nil { + options.Limit = *params.MaxResults } for _, fn := range optFns { fn(&options) } - if params == nil { - params = &DescribeLocalGatewayRouteTablesInput{} - } - return &DescribeLocalGatewayRouteTablesPaginator{ options: options, client: client, @@ -203,7 +203,11 @@ func (p *DescribeLocalGatewayRouteTablesPaginator) NextPage(ctx context.Context, params := *p.params params.NextToken = p.nextToken - params.MaxResults = p.options.Limit + var limit *int32 + if p.options.Limit > 0 { + limit = &p.options.Limit + } + params.MaxResults = limit result, err := p.client.DescribeLocalGatewayRouteTables(ctx, ¶ms, optFns...) if err != nil { diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeLocalGatewayVirtualInterfaceGroups.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeLocalGatewayVirtualInterfaceGroups.go index 31a30e2b3..82a1cf075 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeLocalGatewayVirtualInterfaceGroups.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeLocalGatewayVirtualInterfaceGroups.go @@ -18,7 +18,7 @@ func (c *Client) DescribeLocalGatewayVirtualInterfaceGroups(ctx context.Context, params = &DescribeLocalGatewayVirtualInterfaceGroupsInput{} } - result, metadata, err := c.invokeOperation(ctx, "DescribeLocalGatewayVirtualInterfaceGroups", params, optFns, addOperationDescribeLocalGatewayVirtualInterfaceGroupsMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "DescribeLocalGatewayVirtualInterfaceGroups", params, optFns, c.addOperationDescribeLocalGatewayVirtualInterfaceGroupsMiddlewares) if err != nil { return nil, err } @@ -34,7 +34,7 @@ type DescribeLocalGatewayVirtualInterfaceGroupsInput struct { // 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 + DryRun *bool // One or more filters. // @@ -53,7 +53,7 @@ type DescribeLocalGatewayVirtualInterfaceGroupsInput struct { // The maximum number of results to return with a single call. To retrieve the // remaining results, make another call with the returned nextToken value. - MaxResults int32 + MaxResults *int32 // The token for the next page of results. NextToken *string @@ -72,7 +72,7 @@ type DescribeLocalGatewayVirtualInterfaceGroupsOutput struct { ResultMetadata middleware.Metadata } -func addOperationDescribeLocalGatewayVirtualInterfaceGroupsMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationDescribeLocalGatewayVirtualInterfaceGroupsMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeLocalGatewayVirtualInterfaceGroups{}, middleware.After) if err != nil { return err @@ -165,19 +165,19 @@ type DescribeLocalGatewayVirtualInterfaceGroupsPaginator struct { // NewDescribeLocalGatewayVirtualInterfaceGroupsPaginator returns a new // DescribeLocalGatewayVirtualInterfaceGroupsPaginator func NewDescribeLocalGatewayVirtualInterfaceGroupsPaginator(client DescribeLocalGatewayVirtualInterfaceGroupsAPIClient, params *DescribeLocalGatewayVirtualInterfaceGroupsInput, optFns ...func(*DescribeLocalGatewayVirtualInterfaceGroupsPaginatorOptions)) *DescribeLocalGatewayVirtualInterfaceGroupsPaginator { + if params == nil { + params = &DescribeLocalGatewayVirtualInterfaceGroupsInput{} + } + options := DescribeLocalGatewayVirtualInterfaceGroupsPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults + if params.MaxResults != nil { + options.Limit = *params.MaxResults } for _, fn := range optFns { fn(&options) } - if params == nil { - params = &DescribeLocalGatewayVirtualInterfaceGroupsInput{} - } - return &DescribeLocalGatewayVirtualInterfaceGroupsPaginator{ options: options, client: client, @@ -200,7 +200,11 @@ func (p *DescribeLocalGatewayVirtualInterfaceGroupsPaginator) NextPage(ctx conte params := *p.params params.NextToken = p.nextToken - params.MaxResults = p.options.Limit + var limit *int32 + if p.options.Limit > 0 { + limit = &p.options.Limit + } + params.MaxResults = limit result, err := p.client.DescribeLocalGatewayVirtualInterfaceGroups(ctx, ¶ms, optFns...) if err != nil { diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeLocalGatewayVirtualInterfaces.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeLocalGatewayVirtualInterfaces.go index 23743f3f2..acfa369b9 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeLocalGatewayVirtualInterfaces.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeLocalGatewayVirtualInterfaces.go @@ -18,7 +18,7 @@ func (c *Client) DescribeLocalGatewayVirtualInterfaces(ctx context.Context, para params = &DescribeLocalGatewayVirtualInterfacesInput{} } - result, metadata, err := c.invokeOperation(ctx, "DescribeLocalGatewayVirtualInterfaces", params, optFns, addOperationDescribeLocalGatewayVirtualInterfacesMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "DescribeLocalGatewayVirtualInterfaces", params, optFns, c.addOperationDescribeLocalGatewayVirtualInterfacesMiddlewares) if err != nil { return nil, err } @@ -34,7 +34,7 @@ type DescribeLocalGatewayVirtualInterfacesInput struct { // 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 + DryRun *bool // One or more filters. Filters []types.Filter @@ -44,7 +44,7 @@ type DescribeLocalGatewayVirtualInterfacesInput struct { // The maximum number of results to return with a single call. To retrieve the // remaining results, make another call with the returned nextToken value. - MaxResults int32 + MaxResults *int32 // The token for the next page of results. NextToken *string @@ -63,7 +63,7 @@ type DescribeLocalGatewayVirtualInterfacesOutput struct { ResultMetadata middleware.Metadata } -func addOperationDescribeLocalGatewayVirtualInterfacesMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationDescribeLocalGatewayVirtualInterfacesMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeLocalGatewayVirtualInterfaces{}, middleware.After) if err != nil { return err @@ -156,19 +156,19 @@ type DescribeLocalGatewayVirtualInterfacesPaginator struct { // NewDescribeLocalGatewayVirtualInterfacesPaginator returns a new // DescribeLocalGatewayVirtualInterfacesPaginator func NewDescribeLocalGatewayVirtualInterfacesPaginator(client DescribeLocalGatewayVirtualInterfacesAPIClient, params *DescribeLocalGatewayVirtualInterfacesInput, optFns ...func(*DescribeLocalGatewayVirtualInterfacesPaginatorOptions)) *DescribeLocalGatewayVirtualInterfacesPaginator { + if params == nil { + params = &DescribeLocalGatewayVirtualInterfacesInput{} + } + options := DescribeLocalGatewayVirtualInterfacesPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults + if params.MaxResults != nil { + options.Limit = *params.MaxResults } for _, fn := range optFns { fn(&options) } - if params == nil { - params = &DescribeLocalGatewayVirtualInterfacesInput{} - } - return &DescribeLocalGatewayVirtualInterfacesPaginator{ options: options, client: client, @@ -191,7 +191,11 @@ func (p *DescribeLocalGatewayVirtualInterfacesPaginator) NextPage(ctx context.Co params := *p.params params.NextToken = p.nextToken - params.MaxResults = p.options.Limit + var limit *int32 + if p.options.Limit > 0 { + limit = &p.options.Limit + } + params.MaxResults = limit result, err := p.client.DescribeLocalGatewayVirtualInterfaces(ctx, ¶ms, optFns...) if err != nil { diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeLocalGateways.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeLocalGateways.go index 37e5ea8a9..ae050a4c2 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeLocalGateways.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeLocalGateways.go @@ -19,7 +19,7 @@ func (c *Client) DescribeLocalGateways(ctx context.Context, params *DescribeLoca params = &DescribeLocalGatewaysInput{} } - result, metadata, err := c.invokeOperation(ctx, "DescribeLocalGateways", params, optFns, addOperationDescribeLocalGatewaysMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "DescribeLocalGateways", params, optFns, c.addOperationDescribeLocalGatewaysMiddlewares) if err != nil { return nil, err } @@ -35,7 +35,7 @@ type DescribeLocalGatewaysInput struct { // 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 + DryRun *bool // One or more filters. Filters []types.Filter @@ -62,7 +62,7 @@ type DescribeLocalGatewaysInput struct { // The maximum number of results to return with a single call. To retrieve the // remaining results, make another call with the returned nextToken value. - MaxResults int32 + MaxResults *int32 // The token for the next page of results. NextToken *string @@ -81,7 +81,7 @@ type DescribeLocalGatewaysOutput struct { ResultMetadata middleware.Metadata } -func addOperationDescribeLocalGatewaysMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationDescribeLocalGatewaysMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeLocalGateways{}, middleware.After) if err != nil { return err @@ -172,19 +172,19 @@ type DescribeLocalGatewaysPaginator struct { // NewDescribeLocalGatewaysPaginator returns a new DescribeLocalGatewaysPaginator func NewDescribeLocalGatewaysPaginator(client DescribeLocalGatewaysAPIClient, params *DescribeLocalGatewaysInput, optFns ...func(*DescribeLocalGatewaysPaginatorOptions)) *DescribeLocalGatewaysPaginator { + if params == nil { + params = &DescribeLocalGatewaysInput{} + } + options := DescribeLocalGatewaysPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults + if params.MaxResults != nil { + options.Limit = *params.MaxResults } for _, fn := range optFns { fn(&options) } - if params == nil { - params = &DescribeLocalGatewaysInput{} - } - return &DescribeLocalGatewaysPaginator{ options: options, client: client, @@ -207,7 +207,11 @@ func (p *DescribeLocalGatewaysPaginator) NextPage(ctx context.Context, optFns .. params := *p.params params.NextToken = p.nextToken - params.MaxResults = p.options.Limit + var limit *int32 + if p.options.Limit > 0 { + limit = &p.options.Limit + } + params.MaxResults = limit result, err := p.client.DescribeLocalGateways(ctx, ¶ms, optFns...) if err != nil { diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeManagedPrefixLists.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeManagedPrefixLists.go index eedd234a7..cae17d826 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeManagedPrefixLists.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeManagedPrefixLists.go @@ -12,14 +12,15 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Describes your managed prefix lists and any AWS-managed prefix lists. To view -// the entries for your prefix list, use GetManagedPrefixListEntries. +// Describes your managed prefix lists and any Amazon Web Services-managed prefix +// lists. To view the entries for your prefix list, use +// GetManagedPrefixListEntries. func (c *Client) DescribeManagedPrefixLists(ctx context.Context, params *DescribeManagedPrefixListsInput, optFns ...func(*Options)) (*DescribeManagedPrefixListsOutput, error) { if params == nil { params = &DescribeManagedPrefixListsInput{} } - result, metadata, err := c.invokeOperation(ctx, "DescribeManagedPrefixLists", params, optFns, addOperationDescribeManagedPrefixListsMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "DescribeManagedPrefixLists", params, optFns, c.addOperationDescribeManagedPrefixListsMiddlewares) if err != nil { return nil, err } @@ -35,7 +36,7 @@ type DescribeManagedPrefixListsInput struct { // 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 + DryRun *bool // One or more filters. // @@ -50,7 +51,7 @@ type DescribeManagedPrefixListsInput struct { // The maximum number of results to return with a single call. To retrieve the // remaining results, make another call with the returned nextToken value. - MaxResults int32 + MaxResults *int32 // The token for the next page of results. NextToken *string @@ -72,7 +73,7 @@ type DescribeManagedPrefixListsOutput struct { ResultMetadata middleware.Metadata } -func addOperationDescribeManagedPrefixListsMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationDescribeManagedPrefixListsMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeManagedPrefixLists{}, middleware.After) if err != nil { return err @@ -165,19 +166,19 @@ type DescribeManagedPrefixListsPaginator struct { // NewDescribeManagedPrefixListsPaginator returns a new // DescribeManagedPrefixListsPaginator func NewDescribeManagedPrefixListsPaginator(client DescribeManagedPrefixListsAPIClient, params *DescribeManagedPrefixListsInput, optFns ...func(*DescribeManagedPrefixListsPaginatorOptions)) *DescribeManagedPrefixListsPaginator { + if params == nil { + params = &DescribeManagedPrefixListsInput{} + } + options := DescribeManagedPrefixListsPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults + if params.MaxResults != nil { + options.Limit = *params.MaxResults } for _, fn := range optFns { fn(&options) } - if params == nil { - params = &DescribeManagedPrefixListsInput{} - } - return &DescribeManagedPrefixListsPaginator{ options: options, client: client, @@ -200,7 +201,11 @@ func (p *DescribeManagedPrefixListsPaginator) NextPage(ctx context.Context, optF params := *p.params params.NextToken = p.nextToken - params.MaxResults = p.options.Limit + var limit *int32 + if p.options.Limit > 0 { + limit = &p.options.Limit + } + params.MaxResults = limit result, err := p.client.DescribeManagedPrefixLists(ctx, ¶ms, optFns...) if err != nil { diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeMovingAddresses.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeMovingAddresses.go index 89df12b1d..2267bc590 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeMovingAddresses.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeMovingAddresses.go @@ -21,7 +21,7 @@ func (c *Client) DescribeMovingAddresses(ctx context.Context, params *DescribeMo params = &DescribeMovingAddressesInput{} } - result, metadata, err := c.invokeOperation(ctx, "DescribeMovingAddresses", params, optFns, addOperationDescribeMovingAddressesMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "DescribeMovingAddresses", params, optFns, c.addOperationDescribeMovingAddressesMiddlewares) if err != nil { return nil, err } @@ -37,7 +37,7 @@ type DescribeMovingAddressesInput struct { // 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 + DryRun *bool // One or more filters. // @@ -50,7 +50,7 @@ type DescribeMovingAddressesInput struct { // with the returned NextToken value. This value can be between 5 and 1000; if // MaxResults is given a value outside of this range, an error is returned. // Default: If no value is provided, the default is 1000. - MaxResults int32 + MaxResults *int32 // The token for the next page of results. NextToken *string @@ -72,7 +72,7 @@ type DescribeMovingAddressesOutput struct { ResultMetadata middleware.Metadata } -func addOperationDescribeMovingAddressesMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationDescribeMovingAddressesMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeMovingAddresses{}, middleware.After) if err != nil { return err @@ -167,19 +167,19 @@ type DescribeMovingAddressesPaginator struct { // NewDescribeMovingAddressesPaginator returns a new // DescribeMovingAddressesPaginator func NewDescribeMovingAddressesPaginator(client DescribeMovingAddressesAPIClient, params *DescribeMovingAddressesInput, optFns ...func(*DescribeMovingAddressesPaginatorOptions)) *DescribeMovingAddressesPaginator { + if params == nil { + params = &DescribeMovingAddressesInput{} + } + options := DescribeMovingAddressesPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults + if params.MaxResults != nil { + options.Limit = *params.MaxResults } for _, fn := range optFns { fn(&options) } - if params == nil { - params = &DescribeMovingAddressesInput{} - } - return &DescribeMovingAddressesPaginator{ options: options, client: client, @@ -202,7 +202,11 @@ func (p *DescribeMovingAddressesPaginator) NextPage(ctx context.Context, optFns params := *p.params params.NextToken = p.nextToken - params.MaxResults = p.options.Limit + var limit *int32 + if p.options.Limit > 0 { + limit = &p.options.Limit + } + params.MaxResults = limit result, err := p.client.DescribeMovingAddresses(ctx, ¶ms, optFns...) if err != nil { 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 b0dcd4349..603aedb6d 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 @@ -4,12 +4,18 @@ package ec2 import ( "context" + "errors" "fmt" awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" "github.com/aws/aws-sdk-go-v2/aws/signer/v4" "github.com/aws/aws-sdk-go-v2/service/ec2/types" + smithy "github.com/aws/smithy-go" "github.com/aws/smithy-go/middleware" + smithytime "github.com/aws/smithy-go/time" smithyhttp "github.com/aws/smithy-go/transport/http" + smithywaiter "github.com/aws/smithy-go/waiter" + "github.com/jmespath/go-jmespath" + "time" ) // Describes one or more of your NAT gateways. @@ -18,7 +24,7 @@ func (c *Client) DescribeNatGateways(ctx context.Context, params *DescribeNatGat params = &DescribeNatGatewaysInput{} } - result, metadata, err := c.invokeOperation(ctx, "DescribeNatGateways", params, optFns, addOperationDescribeNatGatewaysMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "DescribeNatGateways", params, optFns, c.addOperationDescribeNatGatewaysMiddlewares) if err != nil { return nil, err } @@ -34,7 +40,7 @@ type DescribeNatGatewaysInput struct { // 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 + DryRun *bool // One or more filters. // @@ -62,7 +68,7 @@ type DescribeNatGatewaysInput struct { // The maximum number of results to return with a single call. To retrieve the // remaining results, make another call with the returned nextToken value. - MaxResults int32 + MaxResults *int32 // One or more NAT gateway IDs. NatGatewayIds []string @@ -84,7 +90,7 @@ type DescribeNatGatewaysOutput struct { ResultMetadata middleware.Metadata } -func addOperationDescribeNatGatewaysMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationDescribeNatGatewaysMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeNatGateways{}, middleware.After) if err != nil { return err @@ -175,19 +181,19 @@ type DescribeNatGatewaysPaginator struct { // NewDescribeNatGatewaysPaginator returns a new DescribeNatGatewaysPaginator func NewDescribeNatGatewaysPaginator(client DescribeNatGatewaysAPIClient, params *DescribeNatGatewaysInput, optFns ...func(*DescribeNatGatewaysPaginatorOptions)) *DescribeNatGatewaysPaginator { + if params == nil { + params = &DescribeNatGatewaysInput{} + } + options := DescribeNatGatewaysPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults + if params.MaxResults != nil { + options.Limit = *params.MaxResults } for _, fn := range optFns { fn(&options) } - if params == nil { - params = &DescribeNatGatewaysInput{} - } - return &DescribeNatGatewaysPaginator{ options: options, client: client, @@ -210,7 +216,11 @@ func (p *DescribeNatGatewaysPaginator) NextPage(ctx context.Context, optFns ...f params := *p.params params.NextToken = p.nextToken - params.MaxResults = p.options.Limit + var limit *int32 + if p.options.Limit > 0 { + limit = &p.options.Limit + } + params.MaxResults = limit result, err := p.client.DescribeNatGateways(ctx, ¶ms, optFns...) if err != nil { @@ -228,6 +238,257 @@ func (p *DescribeNatGatewaysPaginator) NextPage(ctx context.Context, optFns ...f return result, nil } +// NatGatewayAvailableWaiterOptions are waiter options for +// NatGatewayAvailableWaiter +type NatGatewayAvailableWaiterOptions struct { + + // Set of options to modify how an operation is invoked. These apply to all + // operations invoked for this client. Use functional options on operation call to + // modify this list for per operation behavior. + APIOptions []func(*middleware.Stack) error + + // MinDelay is the minimum amount of time to delay between retries. If unset, + // NatGatewayAvailableWaiter will use default minimum delay of 15 seconds. Note + // that MinDelay must resolve to a value lesser than or equal to the MaxDelay. + MinDelay time.Duration + + // MaxDelay is the maximum amount of time to delay between retries. If unset or set + // to zero, NatGatewayAvailableWaiter will use default max delay of 120 seconds. + // Note that MaxDelay must resolve to value greater than or equal to the MinDelay. + MaxDelay time.Duration + + // LogWaitAttempts is used to enable logging for waiter retry attempts + LogWaitAttempts bool + + // Retryable is function that can be used to override the service defined + // waiter-behavior based on operation output, or returned error. This function is + // used by the waiter to decide if a state is retryable or a terminal state. By + // default service-modeled logic will populate this option. This option can thus be + // used to define a custom waiter state with fall-back to service-modeled waiter + // state mutators.The function returns an error in case of a failure state. In case + // of retry state, this function returns a bool value of true and nil error, while + // in case of success it returns a bool value of false and nil error. + Retryable func(context.Context, *DescribeNatGatewaysInput, *DescribeNatGatewaysOutput, error) (bool, error) +} + +// NatGatewayAvailableWaiter defines the waiters for NatGatewayAvailable +type NatGatewayAvailableWaiter struct { + client DescribeNatGatewaysAPIClient + + options NatGatewayAvailableWaiterOptions +} + +// NewNatGatewayAvailableWaiter constructs a NatGatewayAvailableWaiter. +func NewNatGatewayAvailableWaiter(client DescribeNatGatewaysAPIClient, optFns ...func(*NatGatewayAvailableWaiterOptions)) *NatGatewayAvailableWaiter { + options := NatGatewayAvailableWaiterOptions{} + options.MinDelay = 15 * time.Second + options.MaxDelay = 120 * time.Second + options.Retryable = natGatewayAvailableStateRetryable + + for _, fn := range optFns { + fn(&options) + } + return &NatGatewayAvailableWaiter{ + client: client, + options: options, + } +} + +// Wait calls the waiter function for NatGatewayAvailable waiter. The maxWaitDur is +// the maximum wait duration the waiter will wait. The maxWaitDur is required and +// must be greater than zero. +func (w *NatGatewayAvailableWaiter) Wait(ctx context.Context, params *DescribeNatGatewaysInput, maxWaitDur time.Duration, optFns ...func(*NatGatewayAvailableWaiterOptions)) error { + if maxWaitDur <= 0 { + return fmt.Errorf("maximum wait time for waiter must be greater than zero") + } + + options := w.options + for _, fn := range optFns { + fn(&options) + } + + if options.MaxDelay <= 0 { + options.MaxDelay = 120 * time.Second + } + + if options.MinDelay > options.MaxDelay { + return fmt.Errorf("minimum waiter delay %v must be lesser than or equal to maximum waiter delay of %v.", options.MinDelay, options.MaxDelay) + } + + ctx, cancelFn := context.WithTimeout(ctx, maxWaitDur) + defer cancelFn() + + logger := smithywaiter.Logger{} + remainingTime := maxWaitDur + + var attempt int64 + for { + + attempt++ + apiOptions := options.APIOptions + start := time.Now() + + if options.LogWaitAttempts { + logger.Attempt = attempt + apiOptions = append([]func(*middleware.Stack) error{}, options.APIOptions...) + apiOptions = append(apiOptions, logger.AddLogger) + } + + out, err := w.client.DescribeNatGateways(ctx, params, func(o *Options) { + o.APIOptions = append(o.APIOptions, apiOptions...) + }) + + retryable, err := options.Retryable(ctx, params, out, err) + if err != nil { + return err + } + if !retryable { + return nil + } + + remainingTime -= time.Since(start) + if remainingTime < options.MinDelay || remainingTime <= 0 { + break + } + + // compute exponential backoff between waiter retries + delay, err := smithywaiter.ComputeDelay( + attempt, options.MinDelay, options.MaxDelay, remainingTime, + ) + if err != nil { + return fmt.Errorf("error computing waiter delay, %w", err) + } + + remainingTime -= delay + // sleep for the delay amount before invoking a request + if err := smithytime.SleepWithContext(ctx, delay); err != nil { + return fmt.Errorf("request cancelled while waiting, %w", err) + } + } + return fmt.Errorf("exceeded max wait time for NatGatewayAvailable waiter") +} + +func natGatewayAvailableStateRetryable(ctx context.Context, input *DescribeNatGatewaysInput, output *DescribeNatGatewaysOutput, err error) (bool, error) { + + if err == nil { + pathValue, err := jmespath.Search("NatGateways[].State", output) + if err != nil { + return false, fmt.Errorf("error evaluating waiter state: %w", err) + } + + expectedValue := "available" + var match = true + listOfValues, ok := pathValue.([]interface{}) + if !ok { + return false, fmt.Errorf("waiter comparator expected list got %T", pathValue) + } + + if len(listOfValues) == 0 { + match = false + } + for _, v := range listOfValues { + value, ok := v.(types.NatGatewayState) + if !ok { + return false, fmt.Errorf("waiter comparator expected types.NatGatewayState value, got %T", pathValue) + } + + if string(value) != expectedValue { + match = false + } + } + + if match { + return false, nil + } + } + + if err == nil { + pathValue, err := jmespath.Search("NatGateways[].State", output) + if err != nil { + return false, fmt.Errorf("error evaluating waiter state: %w", err) + } + + expectedValue := "failed" + listOfValues, ok := pathValue.([]interface{}) + if !ok { + return false, fmt.Errorf("waiter comparator expected list got %T", pathValue) + } + + for _, v := range listOfValues { + value, ok := v.(types.NatGatewayState) + if !ok { + return false, fmt.Errorf("waiter comparator expected types.NatGatewayState value, got %T", pathValue) + } + + if string(value) == expectedValue { + return false, fmt.Errorf("waiter state transitioned to Failure") + } + } + } + + if err == nil { + pathValue, err := jmespath.Search("NatGateways[].State", output) + if err != nil { + return false, fmt.Errorf("error evaluating waiter state: %w", err) + } + + expectedValue := "deleting" + listOfValues, ok := pathValue.([]interface{}) + if !ok { + return false, fmt.Errorf("waiter comparator expected list got %T", pathValue) + } + + for _, v := range listOfValues { + value, ok := v.(types.NatGatewayState) + if !ok { + return false, fmt.Errorf("waiter comparator expected types.NatGatewayState value, got %T", pathValue) + } + + if string(value) == expectedValue { + return false, fmt.Errorf("waiter state transitioned to Failure") + } + } + } + + if err == nil { + pathValue, err := jmespath.Search("NatGateways[].State", output) + if err != nil { + return false, fmt.Errorf("error evaluating waiter state: %w", err) + } + + expectedValue := "deleted" + listOfValues, ok := pathValue.([]interface{}) + if !ok { + return false, fmt.Errorf("waiter comparator expected list got %T", pathValue) + } + + for _, v := range listOfValues { + value, ok := v.(types.NatGatewayState) + if !ok { + return false, fmt.Errorf("waiter comparator expected types.NatGatewayState value, got %T", pathValue) + } + + if string(value) == expectedValue { + return false, fmt.Errorf("waiter state transitioned to Failure") + } + } + } + + if err != nil { + var apiErr smithy.APIError + ok := errors.As(err, &apiErr) + if !ok { + return false, fmt.Errorf("expected err to be of type smithy.APIError, got %w", err) + } + + if "NatGatewayNotFound" == apiErr.ErrorCode() { + return true, nil + } + } + + return true, nil +} + func newServiceMetadataMiddleware_opDescribeNatGateways(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, 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 e47e91d88..f6bf66608 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 @@ -20,7 +20,7 @@ func (c *Client) DescribeNetworkAcls(ctx context.Context, params *DescribeNetwor params = &DescribeNetworkAclsInput{} } - result, metadata, err := c.invokeOperation(ctx, "DescribeNetworkAcls", params, optFns, addOperationDescribeNetworkAclsMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "DescribeNetworkAcls", params, optFns, c.addOperationDescribeNetworkAclsMiddlewares) if err != nil { return nil, err } @@ -36,7 +36,7 @@ type DescribeNetworkAclsInput struct { // 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 + DryRun *bool // One or more filters. // @@ -100,7 +100,7 @@ type DescribeNetworkAclsInput struct { // The maximum number of results to return with a single call. To retrieve the // remaining results, make another call with the returned nextToken value. - MaxResults int32 + MaxResults *int32 // One or more network ACL IDs. Default: Describes all your network ACLs. NetworkAclIds []string @@ -122,7 +122,7 @@ type DescribeNetworkAclsOutput struct { ResultMetadata middleware.Metadata } -func addOperationDescribeNetworkAclsMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationDescribeNetworkAclsMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeNetworkAcls{}, middleware.After) if err != nil { return err @@ -213,19 +213,19 @@ type DescribeNetworkAclsPaginator struct { // NewDescribeNetworkAclsPaginator returns a new DescribeNetworkAclsPaginator func NewDescribeNetworkAclsPaginator(client DescribeNetworkAclsAPIClient, params *DescribeNetworkAclsInput, optFns ...func(*DescribeNetworkAclsPaginatorOptions)) *DescribeNetworkAclsPaginator { + if params == nil { + params = &DescribeNetworkAclsInput{} + } + options := DescribeNetworkAclsPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults + if params.MaxResults != nil { + options.Limit = *params.MaxResults } for _, fn := range optFns { fn(&options) } - if params == nil { - params = &DescribeNetworkAclsInput{} - } - return &DescribeNetworkAclsPaginator{ options: options, client: client, @@ -248,7 +248,11 @@ func (p *DescribeNetworkAclsPaginator) NextPage(ctx context.Context, optFns ...f params := *p.params params.NextToken = p.nextToken - params.MaxResults = p.options.Limit + var limit *int32 + if p.options.Limit > 0 { + limit = &p.options.Limit + } + params.MaxResults = limit result, err := p.client.DescribeNetworkAcls(ctx, ¶ms, optFns...) if err != nil { diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeNetworkInsightsAnalyses.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeNetworkInsightsAnalyses.go index e4e0c37eb..1955a11fb 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeNetworkInsightsAnalyses.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeNetworkInsightsAnalyses.go @@ -19,7 +19,7 @@ func (c *Client) DescribeNetworkInsightsAnalyses(ctx context.Context, params *De params = &DescribeNetworkInsightsAnalysesInput{} } - result, metadata, err := c.invokeOperation(ctx, "DescribeNetworkInsightsAnalyses", params, optFns, addOperationDescribeNetworkInsightsAnalysesMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "DescribeNetworkInsightsAnalyses", params, optFns, c.addOperationDescribeNetworkInsightsAnalysesMiddlewares) if err != nil { return nil, err } @@ -41,7 +41,7 @@ type DescribeNetworkInsightsAnalysesInput struct { // 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 + DryRun *bool // The filters. The following are possible values: // @@ -54,7 +54,7 @@ type DescribeNetworkInsightsAnalysesInput struct { // The maximum number of results to return with a single call. To retrieve the // remaining results, make another call with the returned nextToken value. - MaxResults int32 + MaxResults *int32 // The ID of the network insights analyses. You must specify either analysis IDs or // a path ID. @@ -80,7 +80,7 @@ type DescribeNetworkInsightsAnalysesOutput struct { ResultMetadata middleware.Metadata } -func addOperationDescribeNetworkInsightsAnalysesMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationDescribeNetworkInsightsAnalysesMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeNetworkInsightsAnalyses{}, middleware.After) if err != nil { return err @@ -173,19 +173,19 @@ type DescribeNetworkInsightsAnalysesPaginator struct { // NewDescribeNetworkInsightsAnalysesPaginator returns a new // DescribeNetworkInsightsAnalysesPaginator func NewDescribeNetworkInsightsAnalysesPaginator(client DescribeNetworkInsightsAnalysesAPIClient, params *DescribeNetworkInsightsAnalysesInput, optFns ...func(*DescribeNetworkInsightsAnalysesPaginatorOptions)) *DescribeNetworkInsightsAnalysesPaginator { + if params == nil { + params = &DescribeNetworkInsightsAnalysesInput{} + } + options := DescribeNetworkInsightsAnalysesPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults + if params.MaxResults != nil { + options.Limit = *params.MaxResults } for _, fn := range optFns { fn(&options) } - if params == nil { - params = &DescribeNetworkInsightsAnalysesInput{} - } - return &DescribeNetworkInsightsAnalysesPaginator{ options: options, client: client, @@ -208,7 +208,11 @@ func (p *DescribeNetworkInsightsAnalysesPaginator) NextPage(ctx context.Context, params := *p.params params.NextToken = p.nextToken - params.MaxResults = p.options.Limit + var limit *int32 + if p.options.Limit > 0 { + limit = &p.options.Limit + } + params.MaxResults = limit result, err := p.client.DescribeNetworkInsightsAnalyses(ctx, ¶ms, optFns...) if err != nil { diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeNetworkInsightsPaths.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeNetworkInsightsPaths.go index 80845ce78..e02d1fe53 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeNetworkInsightsPaths.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeNetworkInsightsPaths.go @@ -18,7 +18,7 @@ func (c *Client) DescribeNetworkInsightsPaths(ctx context.Context, params *Descr params = &DescribeNetworkInsightsPathsInput{} } - result, metadata, err := c.invokeOperation(ctx, "DescribeNetworkInsightsPaths", params, optFns, addOperationDescribeNetworkInsightsPathsMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "DescribeNetworkInsightsPaths", params, optFns, c.addOperationDescribeNetworkInsightsPathsMiddlewares) if err != nil { return nil, err } @@ -34,7 +34,7 @@ type DescribeNetworkInsightsPathsInput struct { // 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 + DryRun *bool // The filters. The following are possible values: // @@ -53,7 +53,7 @@ type DescribeNetworkInsightsPathsInput struct { // The maximum number of results to return with a single call. To retrieve the // remaining results, make another call with the returned nextToken value. - MaxResults int32 + MaxResults *int32 // The IDs of the paths. NetworkInsightsPathIds []string @@ -75,7 +75,7 @@ type DescribeNetworkInsightsPathsOutput struct { ResultMetadata middleware.Metadata } -func addOperationDescribeNetworkInsightsPathsMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationDescribeNetworkInsightsPathsMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeNetworkInsightsPaths{}, middleware.After) if err != nil { return err @@ -168,19 +168,19 @@ type DescribeNetworkInsightsPathsPaginator struct { // NewDescribeNetworkInsightsPathsPaginator returns a new // DescribeNetworkInsightsPathsPaginator func NewDescribeNetworkInsightsPathsPaginator(client DescribeNetworkInsightsPathsAPIClient, params *DescribeNetworkInsightsPathsInput, optFns ...func(*DescribeNetworkInsightsPathsPaginatorOptions)) *DescribeNetworkInsightsPathsPaginator { + if params == nil { + params = &DescribeNetworkInsightsPathsInput{} + } + options := DescribeNetworkInsightsPathsPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults + if params.MaxResults != nil { + options.Limit = *params.MaxResults } for _, fn := range optFns { fn(&options) } - if params == nil { - params = &DescribeNetworkInsightsPathsInput{} - } - return &DescribeNetworkInsightsPathsPaginator{ options: options, client: client, @@ -203,7 +203,11 @@ func (p *DescribeNetworkInsightsPathsPaginator) NextPage(ctx context.Context, op params := *p.params params.NextToken = p.nextToken - params.MaxResults = p.options.Limit + var limit *int32 + if p.options.Limit > 0 { + limit = &p.options.Limit + } + params.MaxResults = limit result, err := p.client.DescribeNetworkInsightsPaths(ctx, ¶ms, optFns...) if err != nil { diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeNetworkInterfaceAttribute.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeNetworkInterfaceAttribute.go index 27658a9b7..aacb09ac5 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeNetworkInterfaceAttribute.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeNetworkInterfaceAttribute.go @@ -18,7 +18,7 @@ func (c *Client) DescribeNetworkInterfaceAttribute(ctx context.Context, params * params = &DescribeNetworkInterfaceAttributeInput{} } - result, metadata, err := c.invokeOperation(ctx, "DescribeNetworkInterfaceAttribute", params, optFns, addOperationDescribeNetworkInterfaceAttributeMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "DescribeNetworkInterfaceAttribute", params, optFns, c.addOperationDescribeNetworkInterfaceAttributeMiddlewares) if err != nil { return nil, err } @@ -43,7 +43,7 @@ type DescribeNetworkInterfaceAttributeInput struct { // 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 + DryRun *bool } // Contains the output of DescribeNetworkInterfaceAttribute. @@ -68,7 +68,7 @@ type DescribeNetworkInterfaceAttributeOutput struct { ResultMetadata middleware.Metadata } -func addOperationDescribeNetworkInterfaceAttributeMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationDescribeNetworkInterfaceAttributeMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeNetworkInterfaceAttribute{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeNetworkInterfacePermissions.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeNetworkInterfacePermissions.go index 47f2f4742..03286f4bf 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeNetworkInterfacePermissions.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeNetworkInterfacePermissions.go @@ -18,7 +18,7 @@ func (c *Client) DescribeNetworkInterfacePermissions(ctx context.Context, params params = &DescribeNetworkInterfacePermissionsInput{} } - result, metadata, err := c.invokeOperation(ctx, "DescribeNetworkInterfacePermissions", params, optFns, addOperationDescribeNetworkInterfacePermissionsMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "DescribeNetworkInterfacePermissions", params, optFns, c.addOperationDescribeNetworkInterfacePermissionsMiddlewares) if err != nil { return nil, err } @@ -40,10 +40,10 @@ type DescribeNetworkInterfacePermissionsInput struct { // * network-interface-permission.network-interface-id - The ID of the // network interface. // - // * network-interface-permission.aws-account-id - The AWS - // account ID. + // * network-interface-permission.aws-account-id - The account + // ID. // - // * network-interface-permission.aws-service - The AWS service. + // * network-interface-permission.aws-service - The Amazon Web Service. // // * // network-interface-permission.permission - The type of permission @@ -53,7 +53,7 @@ type DescribeNetworkInterfacePermissionsInput struct { // The maximum number of results to return in a single call. To retrieve the // remaining results, make another call with the returned NextToken value. If this // parameter is not specified, up to 50 results are returned by default. - MaxResults int32 + MaxResults *int32 // One or more network interface permission IDs. NetworkInterfacePermissionIds []string @@ -75,7 +75,7 @@ type DescribeNetworkInterfacePermissionsOutput struct { ResultMetadata middleware.Metadata } -func addOperationDescribeNetworkInterfacePermissionsMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationDescribeNetworkInterfacePermissionsMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeNetworkInterfacePermissions{}, middleware.After) if err != nil { return err @@ -169,19 +169,19 @@ type DescribeNetworkInterfacePermissionsPaginator struct { // NewDescribeNetworkInterfacePermissionsPaginator returns a new // DescribeNetworkInterfacePermissionsPaginator func NewDescribeNetworkInterfacePermissionsPaginator(client DescribeNetworkInterfacePermissionsAPIClient, params *DescribeNetworkInterfacePermissionsInput, optFns ...func(*DescribeNetworkInterfacePermissionsPaginatorOptions)) *DescribeNetworkInterfacePermissionsPaginator { + if params == nil { + params = &DescribeNetworkInterfacePermissionsInput{} + } + options := DescribeNetworkInterfacePermissionsPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults + if params.MaxResults != nil { + options.Limit = *params.MaxResults } for _, fn := range optFns { fn(&options) } - if params == nil { - params = &DescribeNetworkInterfacePermissionsInput{} - } - return &DescribeNetworkInterfacePermissionsPaginator{ options: options, client: client, @@ -204,7 +204,11 @@ func (p *DescribeNetworkInterfacePermissionsPaginator) NextPage(ctx context.Cont params := *p.params params.NextToken = p.nextToken - params.MaxResults = p.options.Limit + var limit *int32 + if p.options.Limit > 0 { + limit = &p.options.Limit + } + params.MaxResults = limit result, err := p.client.DescribeNetworkInterfacePermissions(ctx, ¶ms, optFns...) if err != nil { diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeNetworkInterfaces.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeNetworkInterfaces.go index 2c387a32f..de5706dee 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeNetworkInterfaces.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeNetworkInterfaces.go @@ -4,12 +4,18 @@ package ec2 import ( "context" + "errors" "fmt" awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" "github.com/aws/aws-sdk-go-v2/aws/signer/v4" "github.com/aws/aws-sdk-go-v2/service/ec2/types" + smithy "github.com/aws/smithy-go" "github.com/aws/smithy-go/middleware" + smithytime "github.com/aws/smithy-go/time" smithyhttp "github.com/aws/smithy-go/transport/http" + smithywaiter "github.com/aws/smithy-go/waiter" + "github.com/jmespath/go-jmespath" + "time" ) // Describes one or more of your network interfaces. @@ -18,7 +24,7 @@ func (c *Client) DescribeNetworkInterfaces(ctx context.Context, params *Describe params = &DescribeNetworkInterfacesInput{} } - result, metadata, err := c.invokeOperation(ctx, "DescribeNetworkInterfaces", params, optFns, addOperationDescribeNetworkInterfacesMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "DescribeNetworkInterfaces", params, optFns, c.addOperationDescribeNetworkInterfacesMiddlewares) if err != nil { return nil, err } @@ -35,7 +41,7 @@ type DescribeNetworkInterfacesInput struct { // 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 + DryRun *bool // One or more filters. // @@ -114,54 +120,54 @@ type DescribeNetworkInterfacesInput struct { // * network-interface-id - The ID of the network interface. // // * - // owner-id - The AWS account ID of the network interface owner. + // owner-id - The account ID of the network interface owner. // - // * - // private-ip-address - The private IPv4 address or addresses of the network - // interface. + // * private-ip-address + // - The private IPv4 address or addresses of the network interface. // - // * private-dns-name - The private DNS name of the network interface - // (IPv4). - // - // * requester-id - The ID of the entity that launched the instance on - // your behalf (for example, AWS Management Console, Auto Scaling, and so on). + // * + // private-dns-name - The private DNS name of the network interface (IPv4). // // * - // requester-managed - Indicates whether the network interface is being managed by - // an AWS service (for example, AWS Management Console, Auto Scaling, and so - // on). + // requester-id - The alias or account ID of the principal or service that created + // the network interface. // - // * source-dest-check - Indicates whether the network interface performs - // source/destination checking. A value of true means checking is enabled, and - // false means checking is disabled. The value must be false for the network - // interface to perform network address translation (NAT) in your VPC. + // * requester-managed - Indicates whether the network + // interface is being managed by an Amazon Web Service (for example, Management + // Console, Auto Scaling, and so on). // - // * status - - // The status of the network interface. If the network interface is not attached to - // an instance, the status is available; if a network interface is attached to an - // instance the status is in-use. + // * source-dest-check - Indicates whether the + // network interface performs source/destination checking. A value of true means + // checking is enabled, and false means checking is disabled. The value must be + // false for the network interface to perform network address translation (NAT) in + // your VPC. // - // * subnet-id - The ID of the subnet for the - // network interface. + // * status - The status of the network interface. If the network + // interface is not attached to an instance, the status is available; if a network + // interface is attached to an instance the status is in-use. + // + // * subnet-id - The ID + // of the subnet for the network interface. // - // * 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: - 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-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. // - // * vpc-id - The ID of the VPC for the network interface. + // * vpc-id - The ID of the VPC for the network + // interface. Filters []types.Filter // The maximum number of items to return for this request. The request returns a // token that you can specify in a subsequent call to get the next set of results. // You cannot specify this parameter and the network interface IDs parameter in the // same request. - MaxResults int32 + MaxResults *int32 // One or more network interface IDs. Default: Describes all your network // interfaces. @@ -185,7 +191,7 @@ type DescribeNetworkInterfacesOutput struct { ResultMetadata middleware.Metadata } -func addOperationDescribeNetworkInterfacesMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationDescribeNetworkInterfacesMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeNetworkInterfaces{}, middleware.After) if err != nil { return err @@ -279,19 +285,19 @@ type DescribeNetworkInterfacesPaginator struct { // NewDescribeNetworkInterfacesPaginator returns a new // DescribeNetworkInterfacesPaginator func NewDescribeNetworkInterfacesPaginator(client DescribeNetworkInterfacesAPIClient, params *DescribeNetworkInterfacesInput, optFns ...func(*DescribeNetworkInterfacesPaginatorOptions)) *DescribeNetworkInterfacesPaginator { + if params == nil { + params = &DescribeNetworkInterfacesInput{} + } + options := DescribeNetworkInterfacesPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults + if params.MaxResults != nil { + options.Limit = *params.MaxResults } for _, fn := range optFns { fn(&options) } - if params == nil { - params = &DescribeNetworkInterfacesInput{} - } - return &DescribeNetworkInterfacesPaginator{ options: options, client: client, @@ -314,7 +320,11 @@ func (p *DescribeNetworkInterfacesPaginator) NextPage(ctx context.Context, optFn params := *p.params params.NextToken = p.nextToken - params.MaxResults = p.options.Limit + var limit *int32 + if p.options.Limit > 0 { + limit = &p.options.Limit + } + params.MaxResults = limit result, err := p.client.DescribeNetworkInterfaces(ctx, ¶ms, optFns...) if err != nil { @@ -332,6 +342,187 @@ func (p *DescribeNetworkInterfacesPaginator) NextPage(ctx context.Context, optFn return result, nil } +// NetworkInterfaceAvailableWaiterOptions are waiter options for +// NetworkInterfaceAvailableWaiter +type NetworkInterfaceAvailableWaiterOptions struct { + + // Set of options to modify how an operation is invoked. These apply to all + // operations invoked for this client. Use functional options on operation call to + // modify this list for per operation behavior. + APIOptions []func(*middleware.Stack) error + + // MinDelay is the minimum amount of time to delay between retries. If unset, + // NetworkInterfaceAvailableWaiter will use default minimum delay of 20 seconds. + // Note that MinDelay must resolve to a value lesser than or equal to the MaxDelay. + MinDelay time.Duration + + // MaxDelay is the maximum amount of time to delay between retries. If unset or set + // to zero, NetworkInterfaceAvailableWaiter will use default max delay of 120 + // seconds. Note that MaxDelay must resolve to value greater than or equal to the + // MinDelay. + MaxDelay time.Duration + + // LogWaitAttempts is used to enable logging for waiter retry attempts + LogWaitAttempts bool + + // Retryable is function that can be used to override the service defined + // waiter-behavior based on operation output, or returned error. This function is + // used by the waiter to decide if a state is retryable or a terminal state. By + // default service-modeled logic will populate this option. This option can thus be + // used to define a custom waiter state with fall-back to service-modeled waiter + // state mutators.The function returns an error in case of a failure state. In case + // of retry state, this function returns a bool value of true and nil error, while + // in case of success it returns a bool value of false and nil error. + Retryable func(context.Context, *DescribeNetworkInterfacesInput, *DescribeNetworkInterfacesOutput, error) (bool, error) +} + +// NetworkInterfaceAvailableWaiter defines the waiters for +// NetworkInterfaceAvailable +type NetworkInterfaceAvailableWaiter struct { + client DescribeNetworkInterfacesAPIClient + + options NetworkInterfaceAvailableWaiterOptions +} + +// NewNetworkInterfaceAvailableWaiter constructs a NetworkInterfaceAvailableWaiter. +func NewNetworkInterfaceAvailableWaiter(client DescribeNetworkInterfacesAPIClient, optFns ...func(*NetworkInterfaceAvailableWaiterOptions)) *NetworkInterfaceAvailableWaiter { + options := NetworkInterfaceAvailableWaiterOptions{} + options.MinDelay = 20 * time.Second + options.MaxDelay = 120 * time.Second + options.Retryable = networkInterfaceAvailableStateRetryable + + for _, fn := range optFns { + fn(&options) + } + return &NetworkInterfaceAvailableWaiter{ + client: client, + options: options, + } +} + +// Wait calls the waiter function for NetworkInterfaceAvailable waiter. The +// maxWaitDur is the maximum wait duration the waiter will wait. The maxWaitDur is +// required and must be greater than zero. +func (w *NetworkInterfaceAvailableWaiter) Wait(ctx context.Context, params *DescribeNetworkInterfacesInput, maxWaitDur time.Duration, optFns ...func(*NetworkInterfaceAvailableWaiterOptions)) error { + if maxWaitDur <= 0 { + return fmt.Errorf("maximum wait time for waiter must be greater than zero") + } + + options := w.options + for _, fn := range optFns { + fn(&options) + } + + if options.MaxDelay <= 0 { + options.MaxDelay = 120 * time.Second + } + + if options.MinDelay > options.MaxDelay { + return fmt.Errorf("minimum waiter delay %v must be lesser than or equal to maximum waiter delay of %v.", options.MinDelay, options.MaxDelay) + } + + ctx, cancelFn := context.WithTimeout(ctx, maxWaitDur) + defer cancelFn() + + logger := smithywaiter.Logger{} + remainingTime := maxWaitDur + + var attempt int64 + for { + + attempt++ + apiOptions := options.APIOptions + start := time.Now() + + if options.LogWaitAttempts { + logger.Attempt = attempt + apiOptions = append([]func(*middleware.Stack) error{}, options.APIOptions...) + apiOptions = append(apiOptions, logger.AddLogger) + } + + out, err := w.client.DescribeNetworkInterfaces(ctx, params, func(o *Options) { + o.APIOptions = append(o.APIOptions, apiOptions...) + }) + + retryable, err := options.Retryable(ctx, params, out, err) + if err != nil { + return err + } + if !retryable { + return nil + } + + remainingTime -= time.Since(start) + if remainingTime < options.MinDelay || remainingTime <= 0 { + break + } + + // compute exponential backoff between waiter retries + delay, err := smithywaiter.ComputeDelay( + attempt, options.MinDelay, options.MaxDelay, remainingTime, + ) + if err != nil { + return fmt.Errorf("error computing waiter delay, %w", err) + } + + remainingTime -= delay + // sleep for the delay amount before invoking a request + if err := smithytime.SleepWithContext(ctx, delay); err != nil { + return fmt.Errorf("request cancelled while waiting, %w", err) + } + } + return fmt.Errorf("exceeded max wait time for NetworkInterfaceAvailable waiter") +} + +func networkInterfaceAvailableStateRetryable(ctx context.Context, input *DescribeNetworkInterfacesInput, output *DescribeNetworkInterfacesOutput, err error) (bool, error) { + + if err == nil { + pathValue, err := jmespath.Search("NetworkInterfaces[].Status", output) + if err != nil { + return false, fmt.Errorf("error evaluating waiter state: %w", err) + } + + expectedValue := "available" + var match = true + listOfValues, ok := pathValue.([]interface{}) + if !ok { + return false, fmt.Errorf("waiter comparator expected list got %T", pathValue) + } + + if len(listOfValues) == 0 { + match = false + } + for _, v := range listOfValues { + value, ok := v.(types.NetworkInterfaceStatus) + if !ok { + return false, fmt.Errorf("waiter comparator expected types.NetworkInterfaceStatus value, got %T", pathValue) + } + + if string(value) != expectedValue { + match = false + } + } + + if match { + return false, nil + } + } + + if err != nil { + var apiErr smithy.APIError + ok := errors.As(err, &apiErr) + if !ok { + return false, fmt.Errorf("expected err to be of type smithy.APIError, got %w", err) + } + + if "InvalidNetworkInterfaceID.NotFound" == apiErr.ErrorCode() { + return false, fmt.Errorf("waiter state transitioned to Failure") + } + } + + return true, nil +} + func newServiceMetadataMiddleware_opDescribeNetworkInterfaces(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribePlacementGroups.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribePlacementGroups.go index a203b871d..fe1506770 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribePlacementGroups.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribePlacementGroups.go @@ -14,13 +14,13 @@ import ( // Describes the specified placement groups or all of your placement groups. For // more information, see Placement groups // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/placement-groups.html) in -// the Amazon Elastic Compute Cloud User Guide. +// the Amazon EC2 User Guide. func (c *Client) DescribePlacementGroups(ctx context.Context, params *DescribePlacementGroupsInput, optFns ...func(*Options)) (*DescribePlacementGroupsOutput, error) { if params == nil { params = &DescribePlacementGroupsInput{} } - result, metadata, err := c.invokeOperation(ctx, "DescribePlacementGroups", params, optFns, addOperationDescribePlacementGroupsMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "DescribePlacementGroups", params, optFns, c.addOperationDescribePlacementGroupsMiddlewares) if err != nil { return nil, err } @@ -36,7 +36,7 @@ type DescribePlacementGroupsInput struct { // 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 + DryRun *bool // The filters. // @@ -77,7 +77,7 @@ type DescribePlacementGroupsOutput struct { ResultMetadata middleware.Metadata } -func addOperationDescribePlacementGroupsMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationDescribePlacementGroupsMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpDescribePlacementGroups{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribePrefixLists.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribePrefixLists.go index e31c546c4..f352d5e8c 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribePrefixLists.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribePrefixLists.go @@ -12,15 +12,16 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Describes available AWS services in a prefix list format, which includes the -// prefix list name and prefix list ID of the service and the IP address range for -// the service. We recommend that you use DescribeManagedPrefixLists instead. +// Describes available Amazon Web Services services in a prefix list format, which +// includes the prefix list name and prefix list ID of the service and the IP +// address range for the service. We recommend that you use +// DescribeManagedPrefixLists instead. func (c *Client) DescribePrefixLists(ctx context.Context, params *DescribePrefixListsInput, optFns ...func(*Options)) (*DescribePrefixListsOutput, error) { if params == nil { params = &DescribePrefixListsInput{} } - result, metadata, err := c.invokeOperation(ctx, "DescribePrefixLists", params, optFns, addOperationDescribePrefixListsMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "DescribePrefixLists", params, optFns, c.addOperationDescribePrefixListsMiddlewares) if err != nil { return nil, err } @@ -36,7 +37,7 @@ type DescribePrefixListsInput struct { // 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 + DryRun *bool // One or more filters. // @@ -48,7 +49,7 @@ type DescribePrefixListsInput struct { // The maximum number of results to return with a single call. To retrieve the // remaining results, make another call with the returned nextToken value. - MaxResults int32 + MaxResults *int32 // The token for the next page of results. NextToken *string @@ -70,7 +71,7 @@ type DescribePrefixListsOutput struct { ResultMetadata middleware.Metadata } -func addOperationDescribePrefixListsMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationDescribePrefixListsMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpDescribePrefixLists{}, middleware.After) if err != nil { return err @@ -161,19 +162,19 @@ type DescribePrefixListsPaginator struct { // NewDescribePrefixListsPaginator returns a new DescribePrefixListsPaginator func NewDescribePrefixListsPaginator(client DescribePrefixListsAPIClient, params *DescribePrefixListsInput, optFns ...func(*DescribePrefixListsPaginatorOptions)) *DescribePrefixListsPaginator { + if params == nil { + params = &DescribePrefixListsInput{} + } + options := DescribePrefixListsPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults + if params.MaxResults != nil { + options.Limit = *params.MaxResults } for _, fn := range optFns { fn(&options) } - if params == nil { - params = &DescribePrefixListsInput{} - } - return &DescribePrefixListsPaginator{ options: options, client: client, @@ -196,7 +197,11 @@ func (p *DescribePrefixListsPaginator) NextPage(ctx context.Context, optFns ...f params := *p.params params.NextToken = p.nextToken - params.MaxResults = p.options.Limit + var limit *int32 + if p.options.Limit > 0 { + limit = &p.options.Limit + } + params.MaxResults = limit result, err := p.client.DescribePrefixLists(ctx, ¶ms, optFns...) if err != nil { diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribePrincipalIdFormat.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribePrincipalIdFormat.go index 600c66dc9..b3d77e7fa 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribePrincipalIdFormat.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribePrincipalIdFormat.go @@ -30,7 +30,7 @@ func (c *Client) DescribePrincipalIdFormat(ctx context.Context, params *Describe params = &DescribePrincipalIdFormatInput{} } - result, metadata, err := c.invokeOperation(ctx, "DescribePrincipalIdFormat", params, optFns, addOperationDescribePrincipalIdFormatMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "DescribePrincipalIdFormat", params, optFns, c.addOperationDescribePrincipalIdFormatMiddlewares) if err != nil { return nil, err } @@ -46,11 +46,11 @@ type DescribePrincipalIdFormatInput struct { // 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 + DryRun *bool // The maximum number of results to return in a single call. To retrieve the // remaining results, make another call with the returned NextToken value. - MaxResults int32 + MaxResults *int32 // The token to request the next page of results. NextToken *string @@ -79,7 +79,7 @@ type DescribePrincipalIdFormatOutput struct { ResultMetadata middleware.Metadata } -func addOperationDescribePrincipalIdFormatMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationDescribePrincipalIdFormatMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpDescribePrincipalIdFormat{}, middleware.After) if err != nil { return err @@ -171,19 +171,19 @@ type DescribePrincipalIdFormatPaginator struct { // NewDescribePrincipalIdFormatPaginator returns a new // DescribePrincipalIdFormatPaginator func NewDescribePrincipalIdFormatPaginator(client DescribePrincipalIdFormatAPIClient, params *DescribePrincipalIdFormatInput, optFns ...func(*DescribePrincipalIdFormatPaginatorOptions)) *DescribePrincipalIdFormatPaginator { + if params == nil { + params = &DescribePrincipalIdFormatInput{} + } + options := DescribePrincipalIdFormatPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults + if params.MaxResults != nil { + options.Limit = *params.MaxResults } for _, fn := range optFns { fn(&options) } - if params == nil { - params = &DescribePrincipalIdFormatInput{} - } - return &DescribePrincipalIdFormatPaginator{ options: options, client: client, @@ -206,7 +206,11 @@ func (p *DescribePrincipalIdFormatPaginator) NextPage(ctx context.Context, optFn params := *p.params params.NextToken = p.nextToken - params.MaxResults = p.options.Limit + var limit *int32 + if p.options.Limit > 0 { + limit = &p.options.Limit + } + params.MaxResults = limit result, err := p.client.DescribePrincipalIdFormat(ctx, ¶ms, optFns...) if err != nil { diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribePublicIpv4Pools.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribePublicIpv4Pools.go index 7d3524503..60cce028e 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribePublicIpv4Pools.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribePublicIpv4Pools.go @@ -18,7 +18,7 @@ func (c *Client) DescribePublicIpv4Pools(ctx context.Context, params *DescribePu params = &DescribePublicIpv4PoolsInput{} } - result, metadata, err := c.invokeOperation(ctx, "DescribePublicIpv4Pools", params, optFns, addOperationDescribePublicIpv4PoolsMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "DescribePublicIpv4Pools", params, optFns, c.addOperationDescribePublicIpv4PoolsMiddlewares) if err != nil { return nil, err } @@ -45,7 +45,7 @@ type DescribePublicIpv4PoolsInput struct { // The maximum number of results to return with a single call. To retrieve the // remaining results, make another call with the returned nextToken value. - MaxResults int32 + MaxResults *int32 // The token for the next page of results. NextToken *string @@ -67,7 +67,7 @@ type DescribePublicIpv4PoolsOutput struct { ResultMetadata middleware.Metadata } -func addOperationDescribePublicIpv4PoolsMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationDescribePublicIpv4PoolsMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpDescribePublicIpv4Pools{}, middleware.After) if err != nil { return err @@ -159,19 +159,19 @@ type DescribePublicIpv4PoolsPaginator struct { // NewDescribePublicIpv4PoolsPaginator returns a new // DescribePublicIpv4PoolsPaginator func NewDescribePublicIpv4PoolsPaginator(client DescribePublicIpv4PoolsAPIClient, params *DescribePublicIpv4PoolsInput, optFns ...func(*DescribePublicIpv4PoolsPaginatorOptions)) *DescribePublicIpv4PoolsPaginator { + if params == nil { + params = &DescribePublicIpv4PoolsInput{} + } + options := DescribePublicIpv4PoolsPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults + if params.MaxResults != nil { + options.Limit = *params.MaxResults } for _, fn := range optFns { fn(&options) } - if params == nil { - params = &DescribePublicIpv4PoolsInput{} - } - return &DescribePublicIpv4PoolsPaginator{ options: options, client: client, @@ -194,7 +194,11 @@ func (p *DescribePublicIpv4PoolsPaginator) NextPage(ctx context.Context, optFns params := *p.params params.NextToken = p.nextToken - params.MaxResults = p.options.Limit + var limit *int32 + if p.options.Limit > 0 { + limit = &p.options.Limit + } + params.MaxResults = limit result, err := p.client.DescribePublicIpv4Pools(ctx, ¶ms, optFns...) if err != nil { diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeRegions.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeRegions.go index 55f730073..68a0a4e60 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeRegions.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeRegions.go @@ -22,7 +22,7 @@ func (c *Client) DescribeRegions(ctx context.Context, params *DescribeRegionsInp params = &DescribeRegionsInput{} } - result, metadata, err := c.invokeOperation(ctx, "DescribeRegions", params, optFns, addOperationDescribeRegionsMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "DescribeRegions", params, optFns, c.addOperationDescribeRegionsMiddlewares) if err != nil { return nil, err } @@ -36,13 +36,13 @@ type DescribeRegionsInput struct { // Indicates whether to display all Regions, including Regions that are disabled // for your account. - AllRegions bool + AllRegions *bool // 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 + DryRun *bool // The filters. // @@ -70,7 +70,7 @@ type DescribeRegionsOutput struct { ResultMetadata middleware.Metadata } -func addOperationDescribeRegionsMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationDescribeRegionsMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeRegions{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeReplaceRootVolumeTasks.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeReplaceRootVolumeTasks.go new file mode 100644 index 000000000..87b2ccc52 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeReplaceRootVolumeTasks.go @@ -0,0 +1,228 @@ +// 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/aws/signer/v4" + "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 a root volume replacement task. For more information, see Replace a +// root volume (https://docs.aws.amazon.com/) in the Amazon Elastic Compute Cloud +// User Guide. +func (c *Client) DescribeReplaceRootVolumeTasks(ctx context.Context, params *DescribeReplaceRootVolumeTasksInput, optFns ...func(*Options)) (*DescribeReplaceRootVolumeTasksOutput, error) { + if params == nil { + params = &DescribeReplaceRootVolumeTasksInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "DescribeReplaceRootVolumeTasks", params, optFns, c.addOperationDescribeReplaceRootVolumeTasksMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*DescribeReplaceRootVolumeTasksOutput) + out.ResultMetadata = metadata + return out, nil +} + +type DescribeReplaceRootVolumeTasksInput 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 + + // Filter to use: + // + // * instance-id - The ID of the instance for which the root volume + // replacement task was created. + Filters []types.Filter + + // The maximum number of results to return with a single call. To retrieve the + // remaining results, make another call with the returned nextToken value. + MaxResults *int32 + + // The token for the next page of results. + NextToken *string + + // The ID of the root volume replacement task to view. + ReplaceRootVolumeTaskIds []string +} + +type DescribeReplaceRootVolumeTasksOutput struct { + + // 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 + + // Information about the root volume replacement task. + ReplaceRootVolumeTasks []types.ReplaceRootVolumeTask + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata +} + +func (c *Client) addOperationDescribeReplaceRootVolumeTasksMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeReplaceRootVolumeTasks{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsEc2query_deserializeOpDescribeReplaceRootVolumeTasks{}, middleware.After) + if err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = addHTTPSignerV4Middleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeReplaceRootVolumeTasks(options.Region), middleware.Before); 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 + } + return nil +} + +// DescribeReplaceRootVolumeTasksAPIClient is a client that implements the +// DescribeReplaceRootVolumeTasks operation. +type DescribeReplaceRootVolumeTasksAPIClient interface { + DescribeReplaceRootVolumeTasks(context.Context, *DescribeReplaceRootVolumeTasksInput, ...func(*Options)) (*DescribeReplaceRootVolumeTasksOutput, error) +} + +var _ DescribeReplaceRootVolumeTasksAPIClient = (*Client)(nil) + +// DescribeReplaceRootVolumeTasksPaginatorOptions is the paginator options for +// DescribeReplaceRootVolumeTasks +type DescribeReplaceRootVolumeTasksPaginatorOptions struct { + // The maximum number of results to return with a single call. To retrieve the + // remaining results, make another call with the returned nextToken value. + 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 +} + +// DescribeReplaceRootVolumeTasksPaginator is a paginator for +// DescribeReplaceRootVolumeTasks +type DescribeReplaceRootVolumeTasksPaginator struct { + options DescribeReplaceRootVolumeTasksPaginatorOptions + client DescribeReplaceRootVolumeTasksAPIClient + params *DescribeReplaceRootVolumeTasksInput + nextToken *string + firstPage bool +} + +// NewDescribeReplaceRootVolumeTasksPaginator returns a new +// DescribeReplaceRootVolumeTasksPaginator +func NewDescribeReplaceRootVolumeTasksPaginator(client DescribeReplaceRootVolumeTasksAPIClient, params *DescribeReplaceRootVolumeTasksInput, optFns ...func(*DescribeReplaceRootVolumeTasksPaginatorOptions)) *DescribeReplaceRootVolumeTasksPaginator { + if params == nil { + params = &DescribeReplaceRootVolumeTasksInput{} + } + + options := DescribeReplaceRootVolumeTasksPaginatorOptions{} + if params.MaxResults != nil { + options.Limit = *params.MaxResults + } + + for _, fn := range optFns { + fn(&options) + } + + return &DescribeReplaceRootVolumeTasksPaginator{ + options: options, + client: client, + params: params, + firstPage: true, + } +} + +// HasMorePages returns a boolean indicating whether more pages are available +func (p *DescribeReplaceRootVolumeTasksPaginator) HasMorePages() bool { + return p.firstPage || p.nextToken != nil +} + +// NextPage retrieves the next DescribeReplaceRootVolumeTasks page. +func (p *DescribeReplaceRootVolumeTasksPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*DescribeReplaceRootVolumeTasksOutput, 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 + + result, err := p.client.DescribeReplaceRootVolumeTasks(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 +} + +func newServiceMetadataMiddleware_opDescribeReplaceRootVolumeTasks(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "ec2", + OperationName: "DescribeReplaceRootVolumeTasks", + } +} diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeReservedInstances.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeReservedInstances.go index 315cc96ea..83a5fbe89 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeReservedInstances.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeReservedInstances.go @@ -14,13 +14,13 @@ import ( // Describes one or more of the Reserved Instances that you purchased. For more // information about Reserved Instances, see Reserved Instances // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/concepts-on-demand-reserved-instances.html) -// in the Amazon Elastic Compute Cloud User Guide. +// in the Amazon EC2 User Guide. func (c *Client) DescribeReservedInstances(ctx context.Context, params *DescribeReservedInstancesInput, optFns ...func(*Options)) (*DescribeReservedInstancesOutput, error) { if params == nil { params = &DescribeReservedInstancesInput{} } - result, metadata, err := c.invokeOperation(ctx, "DescribeReservedInstances", params, optFns, addOperationDescribeReservedInstancesMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "DescribeReservedInstances", params, optFns, c.addOperationDescribeReservedInstancesMiddlewares) if err != nil { return nil, err } @@ -37,7 +37,7 @@ type DescribeReservedInstancesInput struct { // 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 + DryRun *bool // One or more filters. // @@ -65,33 +65,33 @@ type DescribeReservedInstancesInput struct { // platform description will only be displayed to EC2-Classic account holders and // are for use with Amazon VPC (Linux/UNIX | Linux/UNIX (Amazon VPC) | SUSE Linux | // SUSE Linux (Amazon VPC) | Red Hat Enterprise Linux | Red Hat Enterprise Linux - // (Amazon VPC) | Windows | Windows (Amazon VPC) | Windows with SQL Server Standard - // | Windows with SQL Server Standard (Amazon VPC) | Windows with SQL Server Web | - // Windows with SQL Server Web (Amazon VPC) | Windows with SQL Server Enterprise | - // Windows with SQL Server Enterprise (Amazon VPC)). + // (Amazon VPC) | Red Hat Enterprise Linux with HA (Amazon VPC) | Windows | Windows + // (Amazon VPC) | Windows with SQL Server Standard | Windows with SQL Server + // Standard (Amazon VPC) | Windows with SQL Server Web | Windows with SQL Server + // Web (Amazon VPC) | Windows with SQL Server Enterprise | Windows with SQL Server + // Enterprise (Amazon VPC)). // - // * reserved-instances-id - The - // ID of the Reserved Instance. + // * reserved-instances-id - The ID of the Reserved + // Instance. // - // * start - The time at which the Reserved Instance - // purchase request was placed (for example, 2014-08-07T11:54:42.000Z). + // * start - The time at which the Reserved Instance purchase request + // was placed (for example, 2014-08-07T11:54:42.000Z). // - // * state - - // The state of the Reserved Instance (payment-pending | active | payment-failed | - // retired). + // * state - The state of the + // Reserved Instance (payment-pending | active | payment-failed | retired). // - // * 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: + // - 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-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. // - // * - // usage-price - The usage price of the Reserved Instance, per hour (for example, - // 0.84). + // * usage-price + // - The usage price of the Reserved Instance, per hour (for example, 0.84). Filters []types.Filter // Describes whether the Reserved Instance is Standard or Convertible. @@ -117,7 +117,7 @@ type DescribeReservedInstancesOutput struct { ResultMetadata middleware.Metadata } -func addOperationDescribeReservedInstancesMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationDescribeReservedInstancesMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeReservedInstances{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeReservedInstancesListings.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeReservedInstancesListings.go index 8d61c98a7..27f9370aa 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeReservedInstancesListings.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeReservedInstancesListings.go @@ -26,13 +26,13 @@ import ( // is met. You are charged based on the total price of all of the listings that you // purchase. For more information, see Reserved Instance Marketplace // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ri-market-general.html) in -// the Amazon Elastic Compute Cloud User Guide. +// the Amazon EC2 User Guide. func (c *Client) DescribeReservedInstancesListings(ctx context.Context, params *DescribeReservedInstancesListingsInput, optFns ...func(*Options)) (*DescribeReservedInstancesListingsOutput, error) { if params == nil { params = &DescribeReservedInstancesListingsInput{} } - result, metadata, err := c.invokeOperation(ctx, "DescribeReservedInstancesListings", params, optFns, addOperationDescribeReservedInstancesListingsMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "DescribeReservedInstancesListings", params, optFns, c.addOperationDescribeReservedInstancesListingsMiddlewares) if err != nil { return nil, err } @@ -76,7 +76,7 @@ type DescribeReservedInstancesListingsOutput struct { ResultMetadata middleware.Metadata } -func addOperationDescribeReservedInstancesListingsMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationDescribeReservedInstancesListingsMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeReservedInstancesListings{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeReservedInstancesModifications.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeReservedInstancesModifications.go index bf9abec4b..fbcee2c21 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeReservedInstancesModifications.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeReservedInstancesModifications.go @@ -18,13 +18,13 @@ import ( // specific modification is returned. For more information, see Modifying Reserved // Instances // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ri-modifying.html) in the -// Amazon Elastic Compute Cloud User Guide. +// Amazon EC2 User Guide. func (c *Client) DescribeReservedInstancesModifications(ctx context.Context, params *DescribeReservedInstancesModificationsInput, optFns ...func(*Options)) (*DescribeReservedInstancesModificationsOutput, error) { if params == nil { params = &DescribeReservedInstancesModificationsInput{} } - result, metadata, err := c.invokeOperation(ctx, "DescribeReservedInstancesModifications", params, optFns, addOperationDescribeReservedInstancesModificationsMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "DescribeReservedInstancesModifications", params, optFns, c.addOperationDescribeReservedInstancesModificationsMiddlewares) if err != nil { return nil, err } @@ -104,7 +104,7 @@ type DescribeReservedInstancesModificationsOutput struct { ResultMetadata middleware.Metadata } -func addOperationDescribeReservedInstancesModificationsMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationDescribeReservedInstancesModificationsMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeReservedInstancesModifications{}, middleware.After) if err != nil { return err @@ -193,16 +193,16 @@ type DescribeReservedInstancesModificationsPaginator struct { // NewDescribeReservedInstancesModificationsPaginator returns a new // DescribeReservedInstancesModificationsPaginator func NewDescribeReservedInstancesModificationsPaginator(client DescribeReservedInstancesModificationsAPIClient, params *DescribeReservedInstancesModificationsInput, optFns ...func(*DescribeReservedInstancesModificationsPaginatorOptions)) *DescribeReservedInstancesModificationsPaginator { + if params == nil { + params = &DescribeReservedInstancesModificationsInput{} + } + options := DescribeReservedInstancesModificationsPaginatorOptions{} for _, fn := range optFns { fn(&options) } - if params == nil { - params = &DescribeReservedInstancesModificationsInput{} - } - return &DescribeReservedInstancesModificationsPaginator{ options: options, client: client, diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeReservedInstancesOfferings.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeReservedInstancesOfferings.go index 6487b7a03..286eb3db2 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeReservedInstancesOfferings.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeReservedInstancesOfferings.go @@ -21,13 +21,13 @@ import ( // This is to ensure that you do not purchase your own Reserved Instances. For more // information, see Reserved Instance Marketplace // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ri-market-general.html) in -// the Amazon Elastic Compute Cloud User Guide. +// the Amazon EC2 User Guide. func (c *Client) DescribeReservedInstancesOfferings(ctx context.Context, params *DescribeReservedInstancesOfferingsInput, optFns ...func(*Options)) (*DescribeReservedInstancesOfferingsOutput, error) { if params == nil { params = &DescribeReservedInstancesOfferingsInput{} } - result, metadata, err := c.invokeOperation(ctx, "DescribeReservedInstancesOfferings", params, optFns, addOperationDescribeReservedInstancesOfferingsMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "DescribeReservedInstancesOfferings", params, optFns, c.addOperationDescribeReservedInstancesOfferingsMiddlewares) if err != nil { return nil, err } @@ -47,7 +47,7 @@ type DescribeReservedInstancesOfferingsInput struct { // 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 + DryRun *bool // One or more filters. // @@ -66,31 +66,32 @@ type DescribeReservedInstancesOfferingsInput struct { // // * marketplace - Set to true to show only Reserved Instance // Marketplace offerings. When this filter is not used, which is the default - // behavior, all offerings from both AWS and the Reserved Instance Marketplace are - // listed. + // behavior, all offerings from both Amazon Web Services and the Reserved Instance + // Marketplace are listed. // - // * product-description - The Reserved Instance product platform - // description. Instances that include (Amazon VPC) in the product platform - // description will only be displayed to EC2-Classic account holders and are for - // use with Amazon VPC. (Linux/UNIX | Linux/UNIX (Amazon VPC) | SUSE Linux | SUSE - // Linux (Amazon VPC) | Red Hat Enterprise Linux | Red Hat Enterprise Linux (Amazon - // VPC) | Windows | Windows (Amazon VPC) | Windows with SQL Server Standard | - // Windows with SQL Server Standard (Amazon VPC) | Windows with SQL Server Web | - // Windows with SQL Server Web (Amazon VPC) | Windows with SQL Server Enterprise | - // Windows with SQL Server Enterprise (Amazon VPC)) + // * product-description - The Reserved Instance product + // platform description. Instances that include (Amazon VPC) in the product + // platform description will only be displayed to EC2-Classic account holders and + // are for use with Amazon VPC. (Linux/UNIX | Linux/UNIX (Amazon VPC) | SUSE Linux + // | SUSE Linux (Amazon VPC) | Red Hat Enterprise Linux | Red Hat Enterprise Linux + // (Amazon VPC) | Red Hat Enterprise Linux with HA (Amazon VPC) | Windows | Windows + // (Amazon VPC) | Windows with SQL Server Standard | Windows with SQL Server + // Standard (Amazon VPC) | Windows with SQL Server Web | Windows with SQL Server + // Web (Amazon VPC) | Windows with SQL Server Enterprise | Windows with SQL Server + // Enterprise (Amazon VPC)) // - // * - // reserved-instances-offering-id - The Reserved Instances offering ID. + // * reserved-instances-offering-id - The Reserved + // Instances offering ID. // - // * scope - - // The scope of the Reserved Instance (Availability Zone or Region). + // * scope - The scope of the Reserved Instance + // (Availability Zone or Region). // - // * usage-price - // - The usage price of the Reserved Instance, per hour (for example, 0.84). + // * usage-price - The usage price of the Reserved + // Instance, per hour (for example, 0.84). Filters []types.Filter // Include Reserved Instance Marketplace offerings in the response. - IncludeMarketplace bool + IncludeMarketplace *bool // The tenancy of the instances covered by the reservation. A Reserved Instance // with a tenancy of dedicated is applied to instances that run in a VPC on @@ -100,27 +101,27 @@ type DescribeReservedInstancesOfferingsInput struct { InstanceTenancy types.Tenancy // The instance type that the reservation will cover (for example, m1.small). For - // more information, see Instance Types + // more information, see Instance types // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html) in the - // Amazon Elastic Compute Cloud User Guide. + // Amazon EC2 User Guide. InstanceType types.InstanceType // The maximum duration (in seconds) to filter when searching for offerings. // Default: 94608000 (3 years) - MaxDuration int64 + MaxDuration *int64 // The maximum number of instances to filter when searching for offerings. Default: // 20 - MaxInstanceCount int32 + MaxInstanceCount *int32 // The maximum number of results to return for the request in a single page. The // remaining results of the initial request can be seen by sending another request // with the returned NextToken value. The maximum is 100. Default: 100 - MaxResults int32 + MaxResults *int32 // The minimum duration (in seconds) to filter when searching for offerings. // Default: 2592000 (1 month) - MinDuration int64 + MinDuration *int64 // The token to retrieve the next page of results. NextToken *string @@ -155,7 +156,7 @@ type DescribeReservedInstancesOfferingsOutput struct { ResultMetadata middleware.Metadata } -func addOperationDescribeReservedInstancesOfferingsMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationDescribeReservedInstancesOfferingsMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeReservedInstancesOfferings{}, middleware.After) if err != nil { return err @@ -249,19 +250,19 @@ type DescribeReservedInstancesOfferingsPaginator struct { // NewDescribeReservedInstancesOfferingsPaginator returns a new // DescribeReservedInstancesOfferingsPaginator func NewDescribeReservedInstancesOfferingsPaginator(client DescribeReservedInstancesOfferingsAPIClient, params *DescribeReservedInstancesOfferingsInput, optFns ...func(*DescribeReservedInstancesOfferingsPaginatorOptions)) *DescribeReservedInstancesOfferingsPaginator { + if params == nil { + params = &DescribeReservedInstancesOfferingsInput{} + } + options := DescribeReservedInstancesOfferingsPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults + if params.MaxResults != nil { + options.Limit = *params.MaxResults } for _, fn := range optFns { fn(&options) } - if params == nil { - params = &DescribeReservedInstancesOfferingsInput{} - } - return &DescribeReservedInstancesOfferingsPaginator{ options: options, client: client, @@ -284,7 +285,11 @@ func (p *DescribeReservedInstancesOfferingsPaginator) NextPage(ctx context.Conte params := *p.params params.NextToken = p.nextToken - params.MaxResults = p.options.Limit + var limit *int32 + if p.options.Limit > 0 { + limit = &p.options.Limit + } + params.MaxResults = limit result, err := p.client.DescribeReservedInstancesOfferings(ctx, ¶ms, optFns...) if err != nil { 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 7989f02c5..be8dcafc0 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 @@ -24,7 +24,7 @@ func (c *Client) DescribeRouteTables(ctx context.Context, params *DescribeRouteT params = &DescribeRouteTablesInput{} } - result, metadata, err := c.invokeOperation(ctx, "DescribeRouteTables", params, optFns, addOperationDescribeRouteTablesMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "DescribeRouteTables", params, optFns, c.addOperationDescribeRouteTablesMiddlewares) if err != nil { return nil, err } @@ -40,7 +40,7 @@ type DescribeRouteTablesInput struct { // 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 + DryRun *bool // One or more filters. // @@ -119,7 +119,7 @@ type DescribeRouteTablesInput struct { // The maximum number of results to return with a single call. To retrieve the // remaining results, make another call with the returned nextToken value. - MaxResults int32 + MaxResults *int32 // The token for the next page of results. NextToken *string @@ -142,7 +142,7 @@ type DescribeRouteTablesOutput struct { ResultMetadata middleware.Metadata } -func addOperationDescribeRouteTablesMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationDescribeRouteTablesMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeRouteTables{}, middleware.After) if err != nil { return err @@ -233,19 +233,19 @@ type DescribeRouteTablesPaginator struct { // NewDescribeRouteTablesPaginator returns a new DescribeRouteTablesPaginator func NewDescribeRouteTablesPaginator(client DescribeRouteTablesAPIClient, params *DescribeRouteTablesInput, optFns ...func(*DescribeRouteTablesPaginatorOptions)) *DescribeRouteTablesPaginator { + if params == nil { + params = &DescribeRouteTablesInput{} + } + options := DescribeRouteTablesPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults + if params.MaxResults != nil { + options.Limit = *params.MaxResults } for _, fn := range optFns { fn(&options) } - if params == nil { - params = &DescribeRouteTablesInput{} - } - return &DescribeRouteTablesPaginator{ options: options, client: client, @@ -268,7 +268,11 @@ func (p *DescribeRouteTablesPaginator) NextPage(ctx context.Context, optFns ...f params := *p.params params.NextToken = p.nextToken - params.MaxResults = p.options.Limit + var limit *int32 + if p.options.Limit > 0 { + limit = &p.options.Limit + } + params.MaxResults = limit result, err := p.client.DescribeRouteTables(ctx, ¶ms, optFns...) if err != nil { diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeScheduledInstanceAvailability.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeScheduledInstanceAvailability.go index 7a7bf890c..2218c034b 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeScheduledInstanceAvailability.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeScheduledInstanceAvailability.go @@ -24,7 +24,7 @@ func (c *Client) DescribeScheduledInstanceAvailability(ctx context.Context, para params = &DescribeScheduledInstanceAvailabilityInput{} } - result, metadata, err := c.invokeOperation(ctx, "DescribeScheduledInstanceAvailability", params, optFns, addOperationDescribeScheduledInstanceAvailabilityMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "DescribeScheduledInstanceAvailability", params, optFns, c.addOperationDescribeScheduledInstanceAvailabilityMiddlewares) if err != nil { return nil, err } @@ -51,7 +51,7 @@ type DescribeScheduledInstanceAvailabilityInput struct { // 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 + DryRun *bool // The filters. // @@ -70,16 +70,16 @@ type DescribeScheduledInstanceAvailabilityInput struct { // The maximum number of results to return in a single call. This value can be // between 5 and 300. The default value is 300. To retrieve the remaining results, // make another call with the returned NextToken value. - MaxResults int32 + MaxResults *int32 // The maximum available duration, in hours. This value must be greater than // MinSlotDurationInHours and less than 1,720. - MaxSlotDurationInHours int32 + MaxSlotDurationInHours *int32 // The minimum available duration, in hours. The minimum required duration is 1,200 // hours per year. For example, the minimum daily schedule is 4 hours, the minimum // weekly schedule is 24 hours, and the minimum monthly schedule is 100 hours. - MinSlotDurationInHours int32 + MinSlotDurationInHours *int32 // The token for the next set of results. NextToken *string @@ -99,7 +99,7 @@ type DescribeScheduledInstanceAvailabilityOutput struct { ResultMetadata middleware.Metadata } -func addOperationDescribeScheduledInstanceAvailabilityMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationDescribeScheduledInstanceAvailabilityMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeScheduledInstanceAvailability{}, middleware.After) if err != nil { return err @@ -196,19 +196,19 @@ type DescribeScheduledInstanceAvailabilityPaginator struct { // NewDescribeScheduledInstanceAvailabilityPaginator returns a new // DescribeScheduledInstanceAvailabilityPaginator func NewDescribeScheduledInstanceAvailabilityPaginator(client DescribeScheduledInstanceAvailabilityAPIClient, params *DescribeScheduledInstanceAvailabilityInput, optFns ...func(*DescribeScheduledInstanceAvailabilityPaginatorOptions)) *DescribeScheduledInstanceAvailabilityPaginator { + if params == nil { + params = &DescribeScheduledInstanceAvailabilityInput{} + } + options := DescribeScheduledInstanceAvailabilityPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults + if params.MaxResults != nil { + options.Limit = *params.MaxResults } for _, fn := range optFns { fn(&options) } - if params == nil { - params = &DescribeScheduledInstanceAvailabilityInput{} - } - return &DescribeScheduledInstanceAvailabilityPaginator{ options: options, client: client, @@ -231,7 +231,11 @@ func (p *DescribeScheduledInstanceAvailabilityPaginator) NextPage(ctx context.Co params := *p.params params.NextToken = p.nextToken - params.MaxResults = p.options.Limit + var limit *int32 + if p.options.Limit > 0 { + limit = &p.options.Limit + } + params.MaxResults = limit result, err := p.client.DescribeScheduledInstanceAvailability(ctx, ¶ms, optFns...) if err != nil { diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeScheduledInstances.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeScheduledInstances.go index 4ca4f26ee..ee12d10b8 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeScheduledInstances.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeScheduledInstances.go @@ -18,7 +18,7 @@ func (c *Client) DescribeScheduledInstances(ctx context.Context, params *Describ params = &DescribeScheduledInstancesInput{} } - result, metadata, err := c.invokeOperation(ctx, "DescribeScheduledInstances", params, optFns, addOperationDescribeScheduledInstancesMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "DescribeScheduledInstances", params, optFns, c.addOperationDescribeScheduledInstancesMiddlewares) if err != nil { return nil, err } @@ -35,7 +35,7 @@ type DescribeScheduledInstancesInput struct { // 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 + DryRun *bool // The filters. // @@ -54,7 +54,7 @@ type DescribeScheduledInstancesInput struct { // The maximum number of results to return in a single call. This value can be // between 5 and 300. The default value is 100. To retrieve the remaining results, // make another call with the returned NextToken value. - MaxResults int32 + MaxResults *int32 // The token for the next set of results. NextToken *string @@ -80,7 +80,7 @@ type DescribeScheduledInstancesOutput struct { ResultMetadata middleware.Metadata } -func addOperationDescribeScheduledInstancesMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationDescribeScheduledInstancesMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeScheduledInstances{}, middleware.After) if err != nil { return err @@ -174,19 +174,19 @@ type DescribeScheduledInstancesPaginator struct { // NewDescribeScheduledInstancesPaginator returns a new // DescribeScheduledInstancesPaginator func NewDescribeScheduledInstancesPaginator(client DescribeScheduledInstancesAPIClient, params *DescribeScheduledInstancesInput, optFns ...func(*DescribeScheduledInstancesPaginatorOptions)) *DescribeScheduledInstancesPaginator { + if params == nil { + params = &DescribeScheduledInstancesInput{} + } + options := DescribeScheduledInstancesPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults + if params.MaxResults != nil { + options.Limit = *params.MaxResults } for _, fn := range optFns { fn(&options) } - if params == nil { - params = &DescribeScheduledInstancesInput{} - } - return &DescribeScheduledInstancesPaginator{ options: options, client: client, @@ -209,7 +209,11 @@ func (p *DescribeScheduledInstancesPaginator) NextPage(ctx context.Context, optF params := *p.params params.NextToken = p.nextToken - params.MaxResults = p.options.Limit + var limit *int32 + if p.options.Limit > 0 { + limit = &p.options.Limit + } + params.MaxResults = limit result, err := p.client.DescribeScheduledInstances(ctx, ¶ms, optFns...) if err != nil { diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeSecurityGroupReferences.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeSecurityGroupReferences.go index 9fa9a536e..ded750d6c 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeSecurityGroupReferences.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeSecurityGroupReferences.go @@ -18,7 +18,7 @@ func (c *Client) DescribeSecurityGroupReferences(ctx context.Context, params *De params = &DescribeSecurityGroupReferencesInput{} } - result, metadata, err := c.invokeOperation(ctx, "DescribeSecurityGroupReferences", params, optFns, addOperationDescribeSecurityGroupReferencesMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "DescribeSecurityGroupReferences", params, optFns, c.addOperationDescribeSecurityGroupReferencesMiddlewares) if err != nil { return nil, err } @@ -39,7 +39,7 @@ type DescribeSecurityGroupReferencesInput struct { // 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 + DryRun *bool } type DescribeSecurityGroupReferencesOutput struct { @@ -51,7 +51,7 @@ type DescribeSecurityGroupReferencesOutput struct { ResultMetadata middleware.Metadata } -func addOperationDescribeSecurityGroupReferencesMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationDescribeSecurityGroupReferencesMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeSecurityGroupReferences{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeSecurityGroups.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeSecurityGroups.go index 54faed57a..9e93ba1dd 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeSecurityGroups.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeSecurityGroups.go @@ -4,12 +4,19 @@ package ec2 import ( "context" + "errors" "fmt" awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" "github.com/aws/aws-sdk-go-v2/aws/signer/v4" "github.com/aws/aws-sdk-go-v2/service/ec2/types" + smithy "github.com/aws/smithy-go" "github.com/aws/smithy-go/middleware" + smithytime "github.com/aws/smithy-go/time" smithyhttp "github.com/aws/smithy-go/transport/http" + smithywaiter "github.com/aws/smithy-go/waiter" + "github.com/jmespath/go-jmespath" + "strconv" + "time" ) // Describes the specified security groups or all of your security groups. A @@ -24,7 +31,7 @@ func (c *Client) DescribeSecurityGroups(ctx context.Context, params *DescribeSec params = &DescribeSecurityGroupsInput{} } - result, metadata, err := c.invokeOperation(ctx, "DescribeSecurityGroups", params, optFns, addOperationDescribeSecurityGroupsMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "DescribeSecurityGroups", params, optFns, c.addOperationDescribeSecurityGroupsMiddlewares) if err != nil { return nil, err } @@ -40,7 +47,7 @@ type DescribeSecurityGroupsInput struct { // 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 + DryRun *bool // The filters. If using multiple filters for rules, the results include security // groups for which any combination of rules - not necessarily a single rule - @@ -60,7 +67,7 @@ type DescribeSecurityGroupsInput struct { // referenced in an outbound security group rule. // // * - // egress.ip-permission.group-name - The name of a security group that has been + // egress.ip-permission.group-name - The name of a security group that is // referenced in an outbound security group rule. // // * egress.ip-permission.ipv6-cidr @@ -71,23 +78,23 @@ type DescribeSecurityGroupsInput struct { // security group rule allows outbound access. // // * egress.ip-permission.protocol - - // The IP protocol for an outbound security group rule (tcp | udp | icmp or a - // protocol number). + // The IP protocol for an outbound security group rule (tcp | udp | icmp, a + // protocol number, or -1 for all protocols). // - // * egress.ip-permission.to-port - For an outbound rule, the - // end of port range for the TCP and UDP protocols, or an ICMP code. + // * egress.ip-permission.to-port - For + // an outbound rule, the end of port range for the TCP and UDP protocols, or an + // ICMP code. // - // * - // egress.ip-permission.user-id - The ID of an AWS account that has been referenced - // in an outbound security group rule. + // * egress.ip-permission.user-id - The ID of an AWS account that has + // been referenced in an outbound security group rule. // - // * group-id - The ID of the security - // group. + // * group-id - The ID of the + // security group. // // * group-name - The name of the security group. // - // * ip-permission.cidr - - // An IPv4 CIDR block for an inbound security group rule. + // * + // ip-permission.cidr - An IPv4 CIDR block for an inbound security group rule. // // * // ip-permission.from-port - For an inbound rule, the start of port range for the @@ -97,7 +104,7 @@ type DescribeSecurityGroupsInput struct { // ID of a security group that has been referenced in an inbound security group // rule. // - // * ip-permission.group-name - The name of a security group that has been + // * ip-permission.group-name - The name of a security group that is // referenced in an inbound security group rule. // // * ip-permission.ipv6-cidr - An @@ -108,30 +115,31 @@ type DescribeSecurityGroupsInput struct { // group rule allows inbound access. // // * ip-permission.protocol - The IP protocol - // for an inbound security group rule (tcp | udp | icmp or a protocol number). + // for an inbound security group rule (tcp | udp | icmp, a protocol number, or -1 + // for all protocols). // - // * - // ip-permission.to-port - For an inbound rule, the end of port range for the TCP - // and UDP protocols, or an ICMP code. + // * ip-permission.to-port - For an inbound rule, the end of + // port range for the TCP and UDP protocols, or an ICMP code. // - // * ip-permission.user-id - The ID of an AWS - // account that has been referenced in an inbound security group rule. + // * + // ip-permission.user-id - The ID of an AWS account that has been referenced in an + // inbound security group rule. // - // * owner-id - // - The AWS account ID of the owner of the security group. + // * owner-id - The AWS account ID of the owner of + // the security group. // - // * 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: - 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-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. // - // * vpc-id - The ID of the VPC - // specified when the security group was created. + // * vpc-id - The ID of the VPC specified when the security group was + // created. Filters []types.Filter // The IDs of the security groups. Required for security groups in a nondefault @@ -148,7 +156,7 @@ type DescribeSecurityGroupsInput struct { // remaining results, make another request with the returned NextToken value. This // value can be between 5 and 1000. If this parameter is not specified, then all // results are returned. - MaxResults int32 + MaxResults *int32 // The token to request the next page of results. NextToken *string @@ -167,7 +175,7 @@ type DescribeSecurityGroupsOutput struct { ResultMetadata middleware.Metadata } -func addOperationDescribeSecurityGroupsMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationDescribeSecurityGroupsMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeSecurityGroups{}, middleware.After) if err != nil { return err @@ -260,19 +268,19 @@ type DescribeSecurityGroupsPaginator struct { // NewDescribeSecurityGroupsPaginator returns a new DescribeSecurityGroupsPaginator func NewDescribeSecurityGroupsPaginator(client DescribeSecurityGroupsAPIClient, params *DescribeSecurityGroupsInput, optFns ...func(*DescribeSecurityGroupsPaginatorOptions)) *DescribeSecurityGroupsPaginator { + if params == nil { + params = &DescribeSecurityGroupsInput{} + } + options := DescribeSecurityGroupsPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults + if params.MaxResults != nil { + options.Limit = *params.MaxResults } for _, fn := range optFns { fn(&options) } - if params == nil { - params = &DescribeSecurityGroupsInput{} - } - return &DescribeSecurityGroupsPaginator{ options: options, client: client, @@ -295,7 +303,11 @@ func (p *DescribeSecurityGroupsPaginator) NextPage(ctx context.Context, optFns . params := *p.params params.NextToken = p.nextToken - params.MaxResults = p.options.Limit + var limit *int32 + if p.options.Limit > 0 { + limit = &p.options.Limit + } + params.MaxResults = limit result, err := p.client.DescribeSecurityGroups(ctx, ¶ms, optFns...) if err != nil { @@ -313,6 +325,174 @@ func (p *DescribeSecurityGroupsPaginator) NextPage(ctx context.Context, optFns . return result, nil } +// SecurityGroupExistsWaiterOptions are waiter options for +// SecurityGroupExistsWaiter +type SecurityGroupExistsWaiterOptions struct { + + // Set of options to modify how an operation is invoked. These apply to all + // operations invoked for this client. Use functional options on operation call to + // modify this list for per operation behavior. + APIOptions []func(*middleware.Stack) error + + // MinDelay is the minimum amount of time to delay between retries. If unset, + // SecurityGroupExistsWaiter will use default minimum delay of 5 seconds. Note that + // MinDelay must resolve to a value lesser than or equal to the MaxDelay. + MinDelay time.Duration + + // MaxDelay is the maximum amount of time to delay between retries. If unset or set + // to zero, SecurityGroupExistsWaiter will use default max delay of 120 seconds. + // Note that MaxDelay must resolve to value greater than or equal to the MinDelay. + MaxDelay time.Duration + + // LogWaitAttempts is used to enable logging for waiter retry attempts + LogWaitAttempts bool + + // Retryable is function that can be used to override the service defined + // waiter-behavior based on operation output, or returned error. This function is + // used by the waiter to decide if a state is retryable or a terminal state. By + // default service-modeled logic will populate this option. This option can thus be + // used to define a custom waiter state with fall-back to service-modeled waiter + // state mutators.The function returns an error in case of a failure state. In case + // of retry state, this function returns a bool value of true and nil error, while + // in case of success it returns a bool value of false and nil error. + Retryable func(context.Context, *DescribeSecurityGroupsInput, *DescribeSecurityGroupsOutput, error) (bool, error) +} + +// SecurityGroupExistsWaiter defines the waiters for SecurityGroupExists +type SecurityGroupExistsWaiter struct { + client DescribeSecurityGroupsAPIClient + + options SecurityGroupExistsWaiterOptions +} + +// NewSecurityGroupExistsWaiter constructs a SecurityGroupExistsWaiter. +func NewSecurityGroupExistsWaiter(client DescribeSecurityGroupsAPIClient, optFns ...func(*SecurityGroupExistsWaiterOptions)) *SecurityGroupExistsWaiter { + options := SecurityGroupExistsWaiterOptions{} + options.MinDelay = 5 * time.Second + options.MaxDelay = 120 * time.Second + options.Retryable = securityGroupExistsStateRetryable + + for _, fn := range optFns { + fn(&options) + } + return &SecurityGroupExistsWaiter{ + client: client, + options: options, + } +} + +// Wait calls the waiter function for SecurityGroupExists waiter. The maxWaitDur is +// the maximum wait duration the waiter will wait. The maxWaitDur is required and +// must be greater than zero. +func (w *SecurityGroupExistsWaiter) Wait(ctx context.Context, params *DescribeSecurityGroupsInput, maxWaitDur time.Duration, optFns ...func(*SecurityGroupExistsWaiterOptions)) error { + if maxWaitDur <= 0 { + return fmt.Errorf("maximum wait time for waiter must be greater than zero") + } + + options := w.options + for _, fn := range optFns { + fn(&options) + } + + if options.MaxDelay <= 0 { + options.MaxDelay = 120 * time.Second + } + + if options.MinDelay > options.MaxDelay { + return fmt.Errorf("minimum waiter delay %v must be lesser than or equal to maximum waiter delay of %v.", options.MinDelay, options.MaxDelay) + } + + ctx, cancelFn := context.WithTimeout(ctx, maxWaitDur) + defer cancelFn() + + logger := smithywaiter.Logger{} + remainingTime := maxWaitDur + + var attempt int64 + for { + + attempt++ + apiOptions := options.APIOptions + start := time.Now() + + if options.LogWaitAttempts { + logger.Attempt = attempt + apiOptions = append([]func(*middleware.Stack) error{}, options.APIOptions...) + apiOptions = append(apiOptions, logger.AddLogger) + } + + out, err := w.client.DescribeSecurityGroups(ctx, params, func(o *Options) { + o.APIOptions = append(o.APIOptions, apiOptions...) + }) + + retryable, err := options.Retryable(ctx, params, out, err) + if err != nil { + return err + } + if !retryable { + return nil + } + + remainingTime -= time.Since(start) + if remainingTime < options.MinDelay || remainingTime <= 0 { + break + } + + // compute exponential backoff between waiter retries + delay, err := smithywaiter.ComputeDelay( + attempt, options.MinDelay, options.MaxDelay, remainingTime, + ) + if err != nil { + return fmt.Errorf("error computing waiter delay, %w", err) + } + + remainingTime -= delay + // sleep for the delay amount before invoking a request + if err := smithytime.SleepWithContext(ctx, delay); err != nil { + return fmt.Errorf("request cancelled while waiting, %w", err) + } + } + return fmt.Errorf("exceeded max wait time for SecurityGroupExists waiter") +} + +func securityGroupExistsStateRetryable(ctx context.Context, input *DescribeSecurityGroupsInput, output *DescribeSecurityGroupsOutput, err error) (bool, error) { + + if err == nil { + pathValue, err := jmespath.Search("length(SecurityGroups[].GroupId) > `0`", output) + if err != nil { + return false, fmt.Errorf("error evaluating waiter state: %w", err) + } + + expectedValue := "true" + bv, err := strconv.ParseBool(expectedValue) + if err != nil { + return false, fmt.Errorf("error parsing boolean from string %w", err) + } + value, ok := pathValue.(bool) + if !ok { + return false, fmt.Errorf("waiter comparator expected bool value got %T", pathValue) + } + + if value == bv { + return false, nil + } + } + + if err != nil { + var apiErr smithy.APIError + ok := errors.As(err, &apiErr) + if !ok { + return false, fmt.Errorf("expected err to be of type smithy.APIError, got %w", err) + } + + if "InvalidGroup.NotFound" == apiErr.ErrorCode() { + return true, nil + } + } + + return true, nil +} + func newServiceMetadataMiddleware_opDescribeSecurityGroups(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeSnapshotAttribute.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeSnapshotAttribute.go index 7e059b37f..e43c4169c 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeSnapshotAttribute.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeSnapshotAttribute.go @@ -21,7 +21,7 @@ func (c *Client) DescribeSnapshotAttribute(ctx context.Context, params *Describe params = &DescribeSnapshotAttributeInput{} } - result, metadata, err := c.invokeOperation(ctx, "DescribeSnapshotAttribute", params, optFns, addOperationDescribeSnapshotAttributeMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "DescribeSnapshotAttribute", params, optFns, c.addOperationDescribeSnapshotAttributeMiddlewares) if err != nil { return nil, err } @@ -47,7 +47,7 @@ type DescribeSnapshotAttributeInput struct { // 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 + DryRun *bool } type DescribeSnapshotAttributeOutput struct { @@ -66,7 +66,7 @@ type DescribeSnapshotAttributeOutput struct { ResultMetadata middleware.Metadata } -func addOperationDescribeSnapshotAttributeMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationDescribeSnapshotAttributeMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeSnapshotAttribute{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeSnapshots.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeSnapshots.go index 05160b7f3..fac9e1518 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeSnapshots.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeSnapshots.go @@ -63,7 +63,7 @@ func (c *Client) DescribeSnapshots(ctx context.Context, params *DescribeSnapshot params = &DescribeSnapshotsInput{} } - result, metadata, err := c.invokeOperation(ctx, "DescribeSnapshots", params, optFns, addOperationDescribeSnapshotsMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "DescribeSnapshots", params, optFns, c.addOperationDescribeSnapshotsMiddlewares) if err != nil { return nil, err } @@ -79,7 +79,7 @@ type DescribeSnapshotsInput struct { // 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 + DryRun *bool // The filters. // @@ -133,7 +133,7 @@ type DescribeSnapshotsInput struct { // 1,000 results are returned. If this parameter is not used, then // DescribeSnapshots returns all results. You cannot specify this parameter and the // snapshot IDs parameter in the same request. - MaxResults int32 + MaxResults *int32 // The NextToken value returned from a previous paginated DescribeSnapshots request // where MaxResults was used and the results exceeded the value of that parameter. @@ -168,7 +168,7 @@ type DescribeSnapshotsOutput struct { ResultMetadata middleware.Metadata } -func addOperationDescribeSnapshotsMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationDescribeSnapshotsMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeSnapshots{}, middleware.After) if err != nil { return err @@ -265,19 +265,19 @@ type DescribeSnapshotsPaginator struct { // NewDescribeSnapshotsPaginator returns a new DescribeSnapshotsPaginator func NewDescribeSnapshotsPaginator(client DescribeSnapshotsAPIClient, params *DescribeSnapshotsInput, optFns ...func(*DescribeSnapshotsPaginatorOptions)) *DescribeSnapshotsPaginator { + if params == nil { + params = &DescribeSnapshotsInput{} + } + options := DescribeSnapshotsPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults + if params.MaxResults != nil { + options.Limit = *params.MaxResults } for _, fn := range optFns { fn(&options) } - if params == nil { - params = &DescribeSnapshotsInput{} - } - return &DescribeSnapshotsPaginator{ options: options, client: client, @@ -300,7 +300,11 @@ func (p *DescribeSnapshotsPaginator) NextPage(ctx context.Context, optFns ...fun params := *p.params params.NextToken = p.nextToken - params.MaxResults = p.options.Limit + var limit *int32 + if p.options.Limit > 0 { + limit = &p.options.Limit + } + params.MaxResults = limit result, err := p.client.DescribeSnapshots(ctx, ¶ms, optFns...) if err != nil { @@ -457,16 +461,21 @@ func snapshotCompletedStateRetryable(ctx context.Context, input *DescribeSnapsho expectedValue := "completed" var match = true - listOfValues, ok := pathValue.([]string) + listOfValues, ok := pathValue.([]interface{}) if !ok { - return false, fmt.Errorf("waiter comparator expected []string value got %T", pathValue) + return false, fmt.Errorf("waiter comparator expected list got %T", pathValue) } if len(listOfValues) == 0 { match = false } for _, v := range listOfValues { - if v != expectedValue { + value, ok := v.(types.SnapshotState) + if !ok { + return false, fmt.Errorf("waiter comparator expected types.SnapshotState value, got %T", pathValue) + } + + if string(value) != expectedValue { match = false } } diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeSpotDatafeedSubscription.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeSpotDatafeedSubscription.go index 82bd85c8d..cf3db397a 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeSpotDatafeedSubscription.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeSpotDatafeedSubscription.go @@ -20,7 +20,7 @@ func (c *Client) DescribeSpotDatafeedSubscription(ctx context.Context, params *D params = &DescribeSpotDatafeedSubscriptionInput{} } - result, metadata, err := c.invokeOperation(ctx, "DescribeSpotDatafeedSubscription", params, optFns, addOperationDescribeSpotDatafeedSubscriptionMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "DescribeSpotDatafeedSubscription", params, optFns, c.addOperationDescribeSpotDatafeedSubscriptionMiddlewares) if err != nil { return nil, err } @@ -37,7 +37,7 @@ type DescribeSpotDatafeedSubscriptionInput struct { // 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 + DryRun *bool } // Contains the output of DescribeSpotDatafeedSubscription. @@ -50,7 +50,7 @@ type DescribeSpotDatafeedSubscriptionOutput struct { ResultMetadata middleware.Metadata } -func addOperationDescribeSpotDatafeedSubscriptionMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationDescribeSpotDatafeedSubscriptionMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeSpotDatafeedSubscription{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeSpotFleetInstances.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeSpotFleetInstances.go index 019ab5f63..bcc1fd708 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeSpotFleetInstances.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeSpotFleetInstances.go @@ -17,7 +17,7 @@ func (c *Client) DescribeSpotFleetInstances(ctx context.Context, params *Describ params = &DescribeSpotFleetInstancesInput{} } - result, metadata, err := c.invokeOperation(ctx, "DescribeSpotFleetInstances", params, optFns, addOperationDescribeSpotFleetInstancesMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "DescribeSpotFleetInstances", params, optFns, c.addOperationDescribeSpotFleetInstancesMiddlewares) if err != nil { return nil, err } @@ -39,12 +39,12 @@ type DescribeSpotFleetInstancesInput struct { // 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 + DryRun *bool // The maximum number of results to return in a single call. Specify a value // between 1 and 1000. The default value is 1000. To retrieve the remaining // results, make another call with the returned NextToken value. - MaxResults int32 + MaxResults *int32 // The token for the next set of results. NextToken *string @@ -68,7 +68,7 @@ type DescribeSpotFleetInstancesOutput struct { ResultMetadata middleware.Metadata } -func addOperationDescribeSpotFleetInstancesMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationDescribeSpotFleetInstancesMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeSpotFleetInstances{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeSpotFleetRequestHistory.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeSpotFleetRequestHistory.go index c01ac64ef..38bfcc960 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeSpotFleetRequestHistory.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeSpotFleetRequestHistory.go @@ -21,7 +21,7 @@ func (c *Client) DescribeSpotFleetRequestHistory(ctx context.Context, params *De params = &DescribeSpotFleetRequestHistoryInput{} } - result, metadata, err := c.invokeOperation(ctx, "DescribeSpotFleetRequestHistory", params, optFns, addOperationDescribeSpotFleetRequestHistoryMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "DescribeSpotFleetRequestHistory", params, optFns, c.addOperationDescribeSpotFleetRequestHistoryMiddlewares) if err != nil { return nil, err } @@ -49,7 +49,7 @@ type DescribeSpotFleetRequestHistoryInput struct { // 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 + DryRun *bool // The type of events to describe. By default, all events are described. EventType types.EventType @@ -57,7 +57,7 @@ type DescribeSpotFleetRequestHistoryInput struct { // The maximum number of results to return in a single call. Specify a value // between 1 and 1000. The default value is 1000. To retrieve the remaining // results, make another call with the returned NextToken value. - MaxResults int32 + MaxResults *int32 // The token for the next set of results. NextToken *string @@ -89,7 +89,7 @@ type DescribeSpotFleetRequestHistoryOutput struct { ResultMetadata middleware.Metadata } -func addOperationDescribeSpotFleetRequestHistoryMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationDescribeSpotFleetRequestHistoryMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeSpotFleetRequestHistory{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeSpotFleetRequests.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeSpotFleetRequests.go index d4b32b5b9..ca87fe884 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeSpotFleetRequests.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeSpotFleetRequests.go @@ -19,7 +19,7 @@ func (c *Client) DescribeSpotFleetRequests(ctx context.Context, params *Describe params = &DescribeSpotFleetRequestsInput{} } - result, metadata, err := c.invokeOperation(ctx, "DescribeSpotFleetRequests", params, optFns, addOperationDescribeSpotFleetRequestsMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "DescribeSpotFleetRequests", params, optFns, c.addOperationDescribeSpotFleetRequestsMiddlewares) if err != nil { return nil, err } @@ -36,12 +36,12 @@ type DescribeSpotFleetRequestsInput struct { // 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 + DryRun *bool // The maximum number of results to return in a single call. Specify a value // between 1 and 1000. The default value is 1000. To retrieve the remaining // results, make another call with the returned NextToken value. - MaxResults int32 + MaxResults *int32 // The token for the next set of results. NextToken *string @@ -64,7 +64,7 @@ type DescribeSpotFleetRequestsOutput struct { ResultMetadata middleware.Metadata } -func addOperationDescribeSpotFleetRequestsMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationDescribeSpotFleetRequestsMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeSpotFleetRequests{}, middleware.After) if err != nil { return err @@ -157,19 +157,19 @@ type DescribeSpotFleetRequestsPaginator struct { // NewDescribeSpotFleetRequestsPaginator returns a new // DescribeSpotFleetRequestsPaginator func NewDescribeSpotFleetRequestsPaginator(client DescribeSpotFleetRequestsAPIClient, params *DescribeSpotFleetRequestsInput, optFns ...func(*DescribeSpotFleetRequestsPaginatorOptions)) *DescribeSpotFleetRequestsPaginator { + if params == nil { + params = &DescribeSpotFleetRequestsInput{} + } + options := DescribeSpotFleetRequestsPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults + if params.MaxResults != nil { + options.Limit = *params.MaxResults } for _, fn := range optFns { fn(&options) } - if params == nil { - params = &DescribeSpotFleetRequestsInput{} - } - return &DescribeSpotFleetRequestsPaginator{ options: options, client: client, @@ -192,7 +192,11 @@ func (p *DescribeSpotFleetRequestsPaginator) NextPage(ctx context.Context, optFn params := *p.params params.NextToken = p.nextToken - params.MaxResults = p.options.Limit + var limit *int32 + if p.options.Limit > 0 { + limit = &p.options.Limit + } + params.MaxResults = limit result, err := p.client.DescribeSpotFleetRequests(ctx, ¶ms, optFns...) if err != nil { diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeSpotInstanceRequests.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeSpotInstanceRequests.go index 135b700b0..6f4bec2e1 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeSpotInstanceRequests.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeSpotInstanceRequests.go @@ -4,12 +4,18 @@ package ec2 import ( "context" + "errors" "fmt" awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" "github.com/aws/aws-sdk-go-v2/aws/signer/v4" "github.com/aws/aws-sdk-go-v2/service/ec2/types" + smithy "github.com/aws/smithy-go" "github.com/aws/smithy-go/middleware" + smithytime "github.com/aws/smithy-go/time" smithyhttp "github.com/aws/smithy-go/transport/http" + smithywaiter "github.com/aws/smithy-go/waiter" + "github.com/jmespath/go-jmespath" + "time" ) // Describes the specified Spot Instance requests. You can use @@ -31,7 +37,7 @@ func (c *Client) DescribeSpotInstanceRequests(ctx context.Context, params *Descr params = &DescribeSpotInstanceRequestsInput{} } - result, metadata, err := c.invokeOperation(ctx, "DescribeSpotInstanceRequests", params, optFns, addOperationDescribeSpotInstanceRequestsMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "DescribeSpotInstanceRequests", params, optFns, c.addOperationDescribeSpotInstanceRequestsMiddlewares) if err != nil { return nil, err } @@ -48,7 +54,7 @@ type DescribeSpotInstanceRequestsInput struct { // 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 + DryRun *bool // One or more filters. // @@ -184,7 +190,7 @@ type DescribeSpotInstanceRequestsInput struct { // The maximum number of results to return in a single call. Specify a value // between 5 and 1000. To retrieve the remaining results, make another call with // the returned NextToken value. - MaxResults int32 + MaxResults *int32 // The token to request the next set of results. This value is null when there are // no more results to return. @@ -208,7 +214,7 @@ type DescribeSpotInstanceRequestsOutput struct { ResultMetadata middleware.Metadata } -func addOperationDescribeSpotInstanceRequestsMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationDescribeSpotInstanceRequestsMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeSpotInstanceRequests{}, middleware.After) if err != nil { return err @@ -302,19 +308,19 @@ type DescribeSpotInstanceRequestsPaginator struct { // NewDescribeSpotInstanceRequestsPaginator returns a new // DescribeSpotInstanceRequestsPaginator func NewDescribeSpotInstanceRequestsPaginator(client DescribeSpotInstanceRequestsAPIClient, params *DescribeSpotInstanceRequestsInput, optFns ...func(*DescribeSpotInstanceRequestsPaginatorOptions)) *DescribeSpotInstanceRequestsPaginator { + if params == nil { + params = &DescribeSpotInstanceRequestsInput{} + } + options := DescribeSpotInstanceRequestsPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults + if params.MaxResults != nil { + options.Limit = *params.MaxResults } for _, fn := range optFns { fn(&options) } - if params == nil { - params = &DescribeSpotInstanceRequestsInput{} - } - return &DescribeSpotInstanceRequestsPaginator{ options: options, client: client, @@ -337,7 +343,11 @@ func (p *DescribeSpotInstanceRequestsPaginator) NextPage(ctx context.Context, op params := *p.params params.NextToken = p.nextToken - params.MaxResults = p.options.Limit + var limit *int32 + if p.options.Limit > 0 { + limit = &p.options.Limit + } + params.MaxResults = limit result, err := p.client.DescribeSpotInstanceRequests(ctx, ¶ms, optFns...) if err != nil { @@ -355,6 +365,316 @@ func (p *DescribeSpotInstanceRequestsPaginator) NextPage(ctx context.Context, op return result, nil } +// SpotInstanceRequestFulfilledWaiterOptions are waiter options for +// SpotInstanceRequestFulfilledWaiter +type SpotInstanceRequestFulfilledWaiterOptions struct { + + // Set of options to modify how an operation is invoked. These apply to all + // operations invoked for this client. Use functional options on operation call to + // modify this list for per operation behavior. + APIOptions []func(*middleware.Stack) error + + // MinDelay is the minimum amount of time to delay between retries. If unset, + // SpotInstanceRequestFulfilledWaiter will use default minimum delay of 15 seconds. + // Note that MinDelay must resolve to a value lesser than or equal to the MaxDelay. + MinDelay time.Duration + + // MaxDelay is the maximum amount of time to delay between retries. If unset or set + // to zero, SpotInstanceRequestFulfilledWaiter will use default max delay of 120 + // seconds. Note that MaxDelay must resolve to value greater than or equal to the + // MinDelay. + MaxDelay time.Duration + + // LogWaitAttempts is used to enable logging for waiter retry attempts + LogWaitAttempts bool + + // Retryable is function that can be used to override the service defined + // waiter-behavior based on operation output, or returned error. This function is + // used by the waiter to decide if a state is retryable or a terminal state. By + // default service-modeled logic will populate this option. This option can thus be + // used to define a custom waiter state with fall-back to service-modeled waiter + // state mutators.The function returns an error in case of a failure state. In case + // of retry state, this function returns a bool value of true and nil error, while + // in case of success it returns a bool value of false and nil error. + Retryable func(context.Context, *DescribeSpotInstanceRequestsInput, *DescribeSpotInstanceRequestsOutput, error) (bool, error) +} + +// SpotInstanceRequestFulfilledWaiter defines the waiters for +// SpotInstanceRequestFulfilled +type SpotInstanceRequestFulfilledWaiter struct { + client DescribeSpotInstanceRequestsAPIClient + + options SpotInstanceRequestFulfilledWaiterOptions +} + +// NewSpotInstanceRequestFulfilledWaiter constructs a +// SpotInstanceRequestFulfilledWaiter. +func NewSpotInstanceRequestFulfilledWaiter(client DescribeSpotInstanceRequestsAPIClient, optFns ...func(*SpotInstanceRequestFulfilledWaiterOptions)) *SpotInstanceRequestFulfilledWaiter { + options := SpotInstanceRequestFulfilledWaiterOptions{} + options.MinDelay = 15 * time.Second + options.MaxDelay = 120 * time.Second + options.Retryable = spotInstanceRequestFulfilledStateRetryable + + for _, fn := range optFns { + fn(&options) + } + return &SpotInstanceRequestFulfilledWaiter{ + client: client, + options: options, + } +} + +// Wait calls the waiter function for SpotInstanceRequestFulfilled waiter. The +// maxWaitDur is the maximum wait duration the waiter will wait. The maxWaitDur is +// required and must be greater than zero. +func (w *SpotInstanceRequestFulfilledWaiter) Wait(ctx context.Context, params *DescribeSpotInstanceRequestsInput, maxWaitDur time.Duration, optFns ...func(*SpotInstanceRequestFulfilledWaiterOptions)) error { + if maxWaitDur <= 0 { + return fmt.Errorf("maximum wait time for waiter must be greater than zero") + } + + options := w.options + for _, fn := range optFns { + fn(&options) + } + + if options.MaxDelay <= 0 { + options.MaxDelay = 120 * time.Second + } + + if options.MinDelay > options.MaxDelay { + return fmt.Errorf("minimum waiter delay %v must be lesser than or equal to maximum waiter delay of %v.", options.MinDelay, options.MaxDelay) + } + + ctx, cancelFn := context.WithTimeout(ctx, maxWaitDur) + defer cancelFn() + + logger := smithywaiter.Logger{} + remainingTime := maxWaitDur + + var attempt int64 + for { + + attempt++ + apiOptions := options.APIOptions + start := time.Now() + + if options.LogWaitAttempts { + logger.Attempt = attempt + apiOptions = append([]func(*middleware.Stack) error{}, options.APIOptions...) + apiOptions = append(apiOptions, logger.AddLogger) + } + + out, err := w.client.DescribeSpotInstanceRequests(ctx, params, func(o *Options) { + o.APIOptions = append(o.APIOptions, apiOptions...) + }) + + retryable, err := options.Retryable(ctx, params, out, err) + if err != nil { + return err + } + if !retryable { + return nil + } + + remainingTime -= time.Since(start) + if remainingTime < options.MinDelay || remainingTime <= 0 { + break + } + + // compute exponential backoff between waiter retries + delay, err := smithywaiter.ComputeDelay( + attempt, options.MinDelay, options.MaxDelay, remainingTime, + ) + if err != nil { + return fmt.Errorf("error computing waiter delay, %w", err) + } + + remainingTime -= delay + // sleep for the delay amount before invoking a request + if err := smithytime.SleepWithContext(ctx, delay); err != nil { + return fmt.Errorf("request cancelled while waiting, %w", err) + } + } + return fmt.Errorf("exceeded max wait time for SpotInstanceRequestFulfilled waiter") +} + +func spotInstanceRequestFulfilledStateRetryable(ctx context.Context, input *DescribeSpotInstanceRequestsInput, output *DescribeSpotInstanceRequestsOutput, err error) (bool, error) { + + if err == nil { + pathValue, err := jmespath.Search("SpotInstanceRequests[].Status.Code", output) + if err != nil { + return false, fmt.Errorf("error evaluating waiter state: %w", err) + } + + expectedValue := "fulfilled" + var match = true + listOfValues, ok := pathValue.([]interface{}) + if !ok { + return false, fmt.Errorf("waiter comparator expected list got %T", pathValue) + } + + if len(listOfValues) == 0 { + match = false + } + for _, v := range listOfValues { + value, ok := v.(*string) + if !ok { + return false, fmt.Errorf("waiter comparator expected *string value, got %T", pathValue) + } + + if string(*value) != expectedValue { + match = false + } + } + + if match { + return false, nil + } + } + + if err == nil { + pathValue, err := jmespath.Search("SpotInstanceRequests[].Status.Code", output) + if err != nil { + return false, fmt.Errorf("error evaluating waiter state: %w", err) + } + + expectedValue := "request-canceled-and-instance-running" + var match = true + listOfValues, ok := pathValue.([]interface{}) + if !ok { + return false, fmt.Errorf("waiter comparator expected list got %T", pathValue) + } + + if len(listOfValues) == 0 { + match = false + } + for _, v := range listOfValues { + value, ok := v.(*string) + if !ok { + return false, fmt.Errorf("waiter comparator expected *string value, got %T", pathValue) + } + + if string(*value) != expectedValue { + match = false + } + } + + if match { + return false, nil + } + } + + if err == nil { + pathValue, err := jmespath.Search("SpotInstanceRequests[].Status.Code", output) + if err != nil { + return false, fmt.Errorf("error evaluating waiter state: %w", err) + } + + expectedValue := "schedule-expired" + listOfValues, ok := pathValue.([]interface{}) + if !ok { + return false, fmt.Errorf("waiter comparator expected list got %T", pathValue) + } + + for _, v := range listOfValues { + value, ok := v.(*string) + if !ok { + return false, fmt.Errorf("waiter comparator expected *string value, got %T", pathValue) + } + + if string(*value) == expectedValue { + return false, fmt.Errorf("waiter state transitioned to Failure") + } + } + } + + if err == nil { + pathValue, err := jmespath.Search("SpotInstanceRequests[].Status.Code", output) + if err != nil { + return false, fmt.Errorf("error evaluating waiter state: %w", err) + } + + expectedValue := "canceled-before-fulfillment" + listOfValues, ok := pathValue.([]interface{}) + if !ok { + return false, fmt.Errorf("waiter comparator expected list got %T", pathValue) + } + + for _, v := range listOfValues { + value, ok := v.(*string) + if !ok { + return false, fmt.Errorf("waiter comparator expected *string value, got %T", pathValue) + } + + if string(*value) == expectedValue { + return false, fmt.Errorf("waiter state transitioned to Failure") + } + } + } + + if err == nil { + pathValue, err := jmespath.Search("SpotInstanceRequests[].Status.Code", output) + if err != nil { + return false, fmt.Errorf("error evaluating waiter state: %w", err) + } + + expectedValue := "bad-parameters" + listOfValues, ok := pathValue.([]interface{}) + if !ok { + return false, fmt.Errorf("waiter comparator expected list got %T", pathValue) + } + + for _, v := range listOfValues { + value, ok := v.(*string) + if !ok { + return false, fmt.Errorf("waiter comparator expected *string value, got %T", pathValue) + } + + if string(*value) == expectedValue { + return false, fmt.Errorf("waiter state transitioned to Failure") + } + } + } + + if err == nil { + pathValue, err := jmespath.Search("SpotInstanceRequests[].Status.Code", output) + if err != nil { + return false, fmt.Errorf("error evaluating waiter state: %w", err) + } + + expectedValue := "system-error" + listOfValues, ok := pathValue.([]interface{}) + if !ok { + return false, fmt.Errorf("waiter comparator expected list got %T", pathValue) + } + + for _, v := range listOfValues { + value, ok := v.(*string) + if !ok { + return false, fmt.Errorf("waiter comparator expected *string value, got %T", pathValue) + } + + if string(*value) == expectedValue { + return false, fmt.Errorf("waiter state transitioned to Failure") + } + } + } + + if err != nil { + var apiErr smithy.APIError + ok := errors.As(err, &apiErr) + if !ok { + return false, fmt.Errorf("expected err to be of type smithy.APIError, got %w", err) + } + + if "InvalidSpotInstanceRequestID.NotFound" == apiErr.ErrorCode() { + return true, nil + } + } + + return true, nil +} + func newServiceMetadataMiddleware_opDescribeSpotInstanceRequests(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeSpotPriceHistory.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeSpotPriceHistory.go index 87aa72d6c..6007f0d73 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeSpotPriceHistory.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeSpotPriceHistory.go @@ -17,16 +17,15 @@ import ( // pricing history // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-spot-instances-history.html) // in the Amazon EC2 User Guide for Linux Instances. When you specify a start and -// end time, this operation returns the prices of the instance types within the -// time range that you specified and the time when the price changed. The price is -// valid within the time period that you specified; the response merely indicates -// the last time that the price changed. +// end time, the operation returns the prices of the instance types within that +// time range. It also returns the last price change before the start time, which +// is the effective price as of the start time. func (c *Client) DescribeSpotPriceHistory(ctx context.Context, params *DescribeSpotPriceHistoryInput, optFns ...func(*Options)) (*DescribeSpotPriceHistoryOutput, error) { if params == nil { params = &DescribeSpotPriceHistoryInput{} } - result, metadata, err := c.invokeOperation(ctx, "DescribeSpotPriceHistory", params, optFns, addOperationDescribeSpotPriceHistoryMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "DescribeSpotPriceHistory", params, optFns, c.addOperationDescribeSpotPriceHistoryMiddlewares) if err != nil { return nil, err } @@ -46,7 +45,7 @@ type DescribeSpotPriceHistoryInput struct { // 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 + DryRun *bool // The date and time, up to the current date, from which to stop retrieving the // price history data, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ). @@ -80,7 +79,7 @@ type DescribeSpotPriceHistoryInput struct { // The maximum number of results to return in a single call. Specify a value // between 1 and 1000. The default value is 1000. To retrieve the remaining // results, make another call with the returned NextToken value. - MaxResults int32 + MaxResults *int32 // The token for the next set of results. NextToken *string @@ -107,7 +106,7 @@ type DescribeSpotPriceHistoryOutput struct { ResultMetadata middleware.Metadata } -func addOperationDescribeSpotPriceHistoryMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationDescribeSpotPriceHistoryMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeSpotPriceHistory{}, middleware.After) if err != nil { return err @@ -200,19 +199,19 @@ type DescribeSpotPriceHistoryPaginator struct { // NewDescribeSpotPriceHistoryPaginator returns a new // DescribeSpotPriceHistoryPaginator func NewDescribeSpotPriceHistoryPaginator(client DescribeSpotPriceHistoryAPIClient, params *DescribeSpotPriceHistoryInput, optFns ...func(*DescribeSpotPriceHistoryPaginatorOptions)) *DescribeSpotPriceHistoryPaginator { + if params == nil { + params = &DescribeSpotPriceHistoryInput{} + } + options := DescribeSpotPriceHistoryPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults + if params.MaxResults != nil { + options.Limit = *params.MaxResults } for _, fn := range optFns { fn(&options) } - if params == nil { - params = &DescribeSpotPriceHistoryInput{} - } - return &DescribeSpotPriceHistoryPaginator{ options: options, client: client, @@ -235,7 +234,11 @@ func (p *DescribeSpotPriceHistoryPaginator) NextPage(ctx context.Context, optFns params := *p.params params.NextToken = p.nextToken - params.MaxResults = p.options.Limit + var limit *int32 + if p.options.Limit > 0 { + limit = &p.options.Limit + } + params.MaxResults = limit result, err := p.client.DescribeSpotPriceHistory(ctx, ¶ms, optFns...) if err != nil { diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeStaleSecurityGroups.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeStaleSecurityGroups.go index 5dcf5895c..5d25fbc1a 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeStaleSecurityGroups.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeStaleSecurityGroups.go @@ -21,7 +21,7 @@ func (c *Client) DescribeStaleSecurityGroups(ctx context.Context, params *Descri params = &DescribeStaleSecurityGroupsInput{} } - result, metadata, err := c.invokeOperation(ctx, "DescribeStaleSecurityGroups", params, optFns, addOperationDescribeStaleSecurityGroupsMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "DescribeStaleSecurityGroups", params, optFns, c.addOperationDescribeStaleSecurityGroupsMiddlewares) if err != nil { return nil, err } @@ -42,11 +42,11 @@ type DescribeStaleSecurityGroupsInput struct { // 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 + DryRun *bool // The maximum number of items to return for this request. The request returns a // token that you can specify in a subsequent call to get the next set of results. - MaxResults int32 + MaxResults *int32 // The token for the next set of items to return. (You received this token from a // prior call.) @@ -66,7 +66,7 @@ type DescribeStaleSecurityGroupsOutput struct { ResultMetadata middleware.Metadata } -func addOperationDescribeStaleSecurityGroupsMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationDescribeStaleSecurityGroupsMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeStaleSecurityGroups{}, middleware.After) if err != nil { return err @@ -162,19 +162,19 @@ type DescribeStaleSecurityGroupsPaginator struct { // NewDescribeStaleSecurityGroupsPaginator returns a new // DescribeStaleSecurityGroupsPaginator func NewDescribeStaleSecurityGroupsPaginator(client DescribeStaleSecurityGroupsAPIClient, params *DescribeStaleSecurityGroupsInput, optFns ...func(*DescribeStaleSecurityGroupsPaginatorOptions)) *DescribeStaleSecurityGroupsPaginator { + if params == nil { + params = &DescribeStaleSecurityGroupsInput{} + } + options := DescribeStaleSecurityGroupsPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults + if params.MaxResults != nil { + options.Limit = *params.MaxResults } for _, fn := range optFns { fn(&options) } - if params == nil { - params = &DescribeStaleSecurityGroupsInput{} - } - return &DescribeStaleSecurityGroupsPaginator{ options: options, client: client, @@ -197,7 +197,11 @@ func (p *DescribeStaleSecurityGroupsPaginator) NextPage(ctx context.Context, opt params := *p.params params.NextToken = p.nextToken - params.MaxResults = p.options.Limit + var limit *int32 + if p.options.Limit > 0 { + limit = &p.options.Limit + } + params.MaxResults = limit result, err := p.client.DescribeStaleSecurityGroups(ctx, ¶ms, optFns...) if err != nil { diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeStoreImageTasks.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeStoreImageTasks.go new file mode 100644 index 000000000..5debace6d --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeStoreImageTasks.go @@ -0,0 +1,245 @@ +// 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/aws/signer/v4" + "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 progress of the AMI store tasks. You can describe the store tasks +// for specified AMIs. If you don't specify the AMIs, you get a paginated list of +// store tasks from the last 31 days. For each AMI task, the response indicates if +// the task is InProgress, Completed, or Failed. For tasks InProgress, the response +// shows the estimated progress as a percentage. Tasks are listed in reverse +// chronological order. Currently, only tasks from the past 31 days can be viewed. +// To use this API, you must have the required permissions. For more information, +// see Permissions for storing and restoring AMIs using S3 +// (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ami-store-restore.html#ami-s3-permissions) +// in the Amazon Elastic Compute Cloud User Guide. For more information, see Store +// and restore an AMI using S3 +// (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ami-store-restore.html) in +// the Amazon Elastic Compute Cloud User Guide. +func (c *Client) DescribeStoreImageTasks(ctx context.Context, params *DescribeStoreImageTasksInput, optFns ...func(*Options)) (*DescribeStoreImageTasksOutput, error) { + if params == nil { + params = &DescribeStoreImageTasksInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "DescribeStoreImageTasks", params, optFns, c.addOperationDescribeStoreImageTasksMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*DescribeStoreImageTasksOutput) + out.ResultMetadata = metadata + return out, nil +} + +type DescribeStoreImageTasksInput 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 + + // The filters. + // + // * task-state - Returns tasks in a certain state (InProgress | + // Completed | Failed) + // + // * bucket - Returns task information for tasks that targeted + // a specific bucket. For the filter value, specify the bucket name. + Filters []types.Filter + + // The AMI IDs for which to show progress. Up to 20 AMI IDs can be included in a + // request. + ImageIds []string + + // The maximum number of results to return in a single call. To retrieve the + // remaining results, make another call with the returned NextToken value. This + // value can be between 1 and 200. You cannot specify this parameter and the + // ImageIDs parameter in the same call. + MaxResults *int32 + + // The token for the next page of results. + NextToken *string +} + +type DescribeStoreImageTasksOutput struct { + + // 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 + + // The information about the AMI store tasks. + StoreImageTaskResults []types.StoreImageTaskResult + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata +} + +func (c *Client) addOperationDescribeStoreImageTasksMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeStoreImageTasks{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsEc2query_deserializeOpDescribeStoreImageTasks{}, middleware.After) + if err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = addHTTPSignerV4Middleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeStoreImageTasks(options.Region), middleware.Before); 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 + } + return nil +} + +// DescribeStoreImageTasksAPIClient is a client that implements the +// DescribeStoreImageTasks operation. +type DescribeStoreImageTasksAPIClient interface { + DescribeStoreImageTasks(context.Context, *DescribeStoreImageTasksInput, ...func(*Options)) (*DescribeStoreImageTasksOutput, error) +} + +var _ DescribeStoreImageTasksAPIClient = (*Client)(nil) + +// DescribeStoreImageTasksPaginatorOptions is the paginator options for +// DescribeStoreImageTasks +type DescribeStoreImageTasksPaginatorOptions struct { + // The maximum number of results to return in a single call. To retrieve the + // remaining results, make another call with the returned NextToken value. This + // value can be between 1 and 200. You cannot specify this parameter and the + // ImageIDs parameter in the same call. + 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 +} + +// DescribeStoreImageTasksPaginator is a paginator for DescribeStoreImageTasks +type DescribeStoreImageTasksPaginator struct { + options DescribeStoreImageTasksPaginatorOptions + client DescribeStoreImageTasksAPIClient + params *DescribeStoreImageTasksInput + nextToken *string + firstPage bool +} + +// NewDescribeStoreImageTasksPaginator returns a new +// DescribeStoreImageTasksPaginator +func NewDescribeStoreImageTasksPaginator(client DescribeStoreImageTasksAPIClient, params *DescribeStoreImageTasksInput, optFns ...func(*DescribeStoreImageTasksPaginatorOptions)) *DescribeStoreImageTasksPaginator { + if params == nil { + params = &DescribeStoreImageTasksInput{} + } + + options := DescribeStoreImageTasksPaginatorOptions{} + if params.MaxResults != nil { + options.Limit = *params.MaxResults + } + + for _, fn := range optFns { + fn(&options) + } + + return &DescribeStoreImageTasksPaginator{ + options: options, + client: client, + params: params, + firstPage: true, + } +} + +// HasMorePages returns a boolean indicating whether more pages are available +func (p *DescribeStoreImageTasksPaginator) HasMorePages() bool { + return p.firstPage || p.nextToken != nil +} + +// NextPage retrieves the next DescribeStoreImageTasks page. +func (p *DescribeStoreImageTasksPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*DescribeStoreImageTasksOutput, 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 + + result, err := p.client.DescribeStoreImageTasks(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 +} + +func newServiceMetadataMiddleware_opDescribeStoreImageTasks(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "ec2", + OperationName: "DescribeStoreImageTasks", + } +} 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 4c18e259f..bf8236f47 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 @@ -24,7 +24,7 @@ func (c *Client) DescribeSubnets(ctx context.Context, params *DescribeSubnetsInp params = &DescribeSubnetsInput{} } - result, metadata, err := c.invokeOperation(ctx, "DescribeSubnets", params, optFns, addOperationDescribeSubnetsMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "DescribeSubnets", params, optFns, c.addOperationDescribeSubnetsMiddlewares) if err != nil { return nil, err } @@ -40,7 +40,7 @@ type DescribeSubnetsInput struct { // 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 + DryRun *bool // One or more filters. // @@ -73,34 +73,36 @@ type DescribeSubnetsInput struct { // * ipv6-cidr-block-association.state - The // state of an IPv6 CIDR block associated with the subnet. // - // * owner-id - The ID of - // the AWS account that owns the subnet. + // * outpost-arn - The + // Amazon Resource Name (ARN) of the Outpost. // - // * state - The state of the subnet - // (pending | available). + // * owner-id - The ID of the AWS + // account that owns the subnet. // - // * subnet-arn - The Amazon Resource Name (ARN) of the - // subnet. + // * state - The state of the subnet (pending | + // available). // - // * subnet-id - The ID of the subnet. + // * subnet-arn - The Amazon Resource Name (ARN) of the subnet. // - // * 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. + // * + // subnet-id - The ID of the subnet. + // + // * 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-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. // - // * vpc-id - The ID of the VPC for the - // subnet. + // * vpc-id - The ID of the VPC for the subnet. Filters []types.Filter // The maximum number of results to return with a single call. To retrieve the // remaining results, make another call with the returned nextToken value. - MaxResults int32 + MaxResults *int32 // The token for the next page of results. NextToken *string @@ -122,7 +124,7 @@ type DescribeSubnetsOutput struct { ResultMetadata middleware.Metadata } -func addOperationDescribeSubnetsMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationDescribeSubnetsMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeSubnets{}, middleware.After) if err != nil { return err @@ -212,19 +214,19 @@ type DescribeSubnetsPaginator struct { // NewDescribeSubnetsPaginator returns a new DescribeSubnetsPaginator func NewDescribeSubnetsPaginator(client DescribeSubnetsAPIClient, params *DescribeSubnetsInput, optFns ...func(*DescribeSubnetsPaginatorOptions)) *DescribeSubnetsPaginator { + if params == nil { + params = &DescribeSubnetsInput{} + } + options := DescribeSubnetsPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults + if params.MaxResults != nil { + options.Limit = *params.MaxResults } for _, fn := range optFns { fn(&options) } - if params == nil { - params = &DescribeSubnetsInput{} - } - return &DescribeSubnetsPaginator{ options: options, client: client, @@ -247,7 +249,11 @@ func (p *DescribeSubnetsPaginator) NextPage(ctx context.Context, optFns ...func( params := *p.params params.NextToken = p.nextToken - params.MaxResults = p.options.Limit + var limit *int32 + if p.options.Limit > 0 { + limit = &p.options.Limit + } + params.MaxResults = limit result, err := p.client.DescribeSubnets(ctx, ¶ms, optFns...) if err != nil { @@ -404,16 +410,21 @@ func subnetAvailableStateRetryable(ctx context.Context, input *DescribeSubnetsIn expectedValue := "available" var match = true - listOfValues, ok := pathValue.([]string) + listOfValues, ok := pathValue.([]interface{}) if !ok { - return false, fmt.Errorf("waiter comparator expected []string value got %T", pathValue) + return false, fmt.Errorf("waiter comparator expected list got %T", pathValue) } if len(listOfValues) == 0 { match = false } for _, v := range listOfValues { - if v != expectedValue { + value, ok := v.(types.SubnetState) + if !ok { + return false, fmt.Errorf("waiter comparator expected types.SubnetState value, got %T", pathValue) + } + + if string(value) != expectedValue { match = false } } diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeTags.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeTags.go index 368ce1feb..63be06b90 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeTags.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeTags.go @@ -21,7 +21,7 @@ func (c *Client) DescribeTags(ctx context.Context, params *DescribeTagsInput, op params = &DescribeTagsInput{} } - result, metadata, err := c.invokeOperation(ctx, "DescribeTags", params, optFns, addOperationDescribeTagsMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "DescribeTags", params, optFns, c.addOperationDescribeTagsMiddlewares) if err != nil { return nil, err } @@ -37,7 +37,7 @@ type DescribeTagsInput struct { // 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 + DryRun *bool // The filters. // @@ -64,7 +64,7 @@ type DescribeTagsInput struct { // The maximum number of results to return in a single call. This value can be // between 5 and 1000. To retrieve the remaining results, make another call with // the returned NextToken value. - MaxResults int32 + MaxResults *int32 // The token to retrieve the next page of results. NextToken *string @@ -83,7 +83,7 @@ type DescribeTagsOutput struct { ResultMetadata middleware.Metadata } -func addOperationDescribeTagsMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationDescribeTagsMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeTags{}, middleware.After) if err != nil { return err @@ -173,19 +173,19 @@ type DescribeTagsPaginator struct { // NewDescribeTagsPaginator returns a new DescribeTagsPaginator func NewDescribeTagsPaginator(client DescribeTagsAPIClient, params *DescribeTagsInput, optFns ...func(*DescribeTagsPaginatorOptions)) *DescribeTagsPaginator { + if params == nil { + params = &DescribeTagsInput{} + } + options := DescribeTagsPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults + if params.MaxResults != nil { + options.Limit = *params.MaxResults } for _, fn := range optFns { fn(&options) } - if params == nil { - params = &DescribeTagsInput{} - } - return &DescribeTagsPaginator{ options: options, client: client, @@ -208,7 +208,11 @@ func (p *DescribeTagsPaginator) NextPage(ctx context.Context, optFns ...func(*Op params := *p.params params.NextToken = p.nextToken - params.MaxResults = p.options.Limit + var limit *int32 + if p.options.Limit > 0 { + limit = &p.options.Limit + } + params.MaxResults = limit result, err := p.client.DescribeTags(ctx, ¶ms, optFns...) if err != nil { diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeTrafficMirrorFilters.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeTrafficMirrorFilters.go index de2685fa7..4c66b48fc 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeTrafficMirrorFilters.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeTrafficMirrorFilters.go @@ -18,7 +18,7 @@ func (c *Client) DescribeTrafficMirrorFilters(ctx context.Context, params *Descr params = &DescribeTrafficMirrorFiltersInput{} } - result, metadata, err := c.invokeOperation(ctx, "DescribeTrafficMirrorFilters", params, optFns, addOperationDescribeTrafficMirrorFiltersMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "DescribeTrafficMirrorFilters", params, optFns, c.addOperationDescribeTrafficMirrorFiltersMiddlewares) if err != nil { return nil, err } @@ -34,7 +34,7 @@ type DescribeTrafficMirrorFiltersInput struct { // 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 + DryRun *bool // One or more filters. The possible values are: // @@ -47,7 +47,7 @@ type DescribeTrafficMirrorFiltersInput struct { // The maximum number of results to return with a single call. To retrieve the // remaining results, make another call with the returned nextToken value. - MaxResults int32 + MaxResults *int32 // The token for the next page of results. NextToken *string @@ -69,7 +69,7 @@ type DescribeTrafficMirrorFiltersOutput struct { ResultMetadata middleware.Metadata } -func addOperationDescribeTrafficMirrorFiltersMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationDescribeTrafficMirrorFiltersMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeTrafficMirrorFilters{}, middleware.After) if err != nil { return err @@ -162,19 +162,19 @@ type DescribeTrafficMirrorFiltersPaginator struct { // NewDescribeTrafficMirrorFiltersPaginator returns a new // DescribeTrafficMirrorFiltersPaginator func NewDescribeTrafficMirrorFiltersPaginator(client DescribeTrafficMirrorFiltersAPIClient, params *DescribeTrafficMirrorFiltersInput, optFns ...func(*DescribeTrafficMirrorFiltersPaginatorOptions)) *DescribeTrafficMirrorFiltersPaginator { + if params == nil { + params = &DescribeTrafficMirrorFiltersInput{} + } + options := DescribeTrafficMirrorFiltersPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults + if params.MaxResults != nil { + options.Limit = *params.MaxResults } for _, fn := range optFns { fn(&options) } - if params == nil { - params = &DescribeTrafficMirrorFiltersInput{} - } - return &DescribeTrafficMirrorFiltersPaginator{ options: options, client: client, @@ -197,7 +197,11 @@ func (p *DescribeTrafficMirrorFiltersPaginator) NextPage(ctx context.Context, op params := *p.params params.NextToken = p.nextToken - params.MaxResults = p.options.Limit + var limit *int32 + if p.options.Limit > 0 { + limit = &p.options.Limit + } + params.MaxResults = limit result, err := p.client.DescribeTrafficMirrorFilters(ctx, ¶ms, optFns...) if err != nil { diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeTrafficMirrorSessions.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeTrafficMirrorSessions.go index b6902c310..a6f778142 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeTrafficMirrorSessions.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeTrafficMirrorSessions.go @@ -19,7 +19,7 @@ func (c *Client) DescribeTrafficMirrorSessions(ctx context.Context, params *Desc params = &DescribeTrafficMirrorSessionsInput{} } - result, metadata, err := c.invokeOperation(ctx, "DescribeTrafficMirrorSessions", params, optFns, addOperationDescribeTrafficMirrorSessionsMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "DescribeTrafficMirrorSessions", params, optFns, c.addOperationDescribeTrafficMirrorSessionsMiddlewares) if err != nil { return nil, err } @@ -35,7 +35,7 @@ type DescribeTrafficMirrorSessionsInput struct { // 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 + DryRun *bool // One or more filters. The possible values are: // @@ -68,7 +68,7 @@ type DescribeTrafficMirrorSessionsInput struct { // The maximum number of results to return with a single call. To retrieve the // remaining results, make another call with the returned nextToken value. - MaxResults int32 + MaxResults *int32 // The token for the next page of results. NextToken *string @@ -91,7 +91,7 @@ type DescribeTrafficMirrorSessionsOutput struct { ResultMetadata middleware.Metadata } -func addOperationDescribeTrafficMirrorSessionsMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationDescribeTrafficMirrorSessionsMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeTrafficMirrorSessions{}, middleware.After) if err != nil { return err @@ -184,19 +184,19 @@ type DescribeTrafficMirrorSessionsPaginator struct { // NewDescribeTrafficMirrorSessionsPaginator returns a new // DescribeTrafficMirrorSessionsPaginator func NewDescribeTrafficMirrorSessionsPaginator(client DescribeTrafficMirrorSessionsAPIClient, params *DescribeTrafficMirrorSessionsInput, optFns ...func(*DescribeTrafficMirrorSessionsPaginatorOptions)) *DescribeTrafficMirrorSessionsPaginator { + if params == nil { + params = &DescribeTrafficMirrorSessionsInput{} + } + options := DescribeTrafficMirrorSessionsPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults + if params.MaxResults != nil { + options.Limit = *params.MaxResults } for _, fn := range optFns { fn(&options) } - if params == nil { - params = &DescribeTrafficMirrorSessionsInput{} - } - return &DescribeTrafficMirrorSessionsPaginator{ options: options, client: client, @@ -219,7 +219,11 @@ func (p *DescribeTrafficMirrorSessionsPaginator) NextPage(ctx context.Context, o params := *p.params params.NextToken = p.nextToken - params.MaxResults = p.options.Limit + var limit *int32 + if p.options.Limit > 0 { + limit = &p.options.Limit + } + params.MaxResults = limit result, err := p.client.DescribeTrafficMirrorSessions(ctx, ¶ms, optFns...) if err != nil { diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeTrafficMirrorTargets.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeTrafficMirrorTargets.go index 14dcbf6ff..5f91e02a6 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeTrafficMirrorTargets.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeTrafficMirrorTargets.go @@ -18,7 +18,7 @@ func (c *Client) DescribeTrafficMirrorTargets(ctx context.Context, params *Descr params = &DescribeTrafficMirrorTargetsInput{} } - result, metadata, err := c.invokeOperation(ctx, "DescribeTrafficMirrorTargets", params, optFns, addOperationDescribeTrafficMirrorTargetsMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "DescribeTrafficMirrorTargets", params, optFns, c.addOperationDescribeTrafficMirrorTargetsMiddlewares) if err != nil { return nil, err } @@ -34,7 +34,7 @@ type DescribeTrafficMirrorTargetsInput struct { // 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 + DryRun *bool // One or more filters. The possible values are: // @@ -56,7 +56,7 @@ type DescribeTrafficMirrorTargetsInput struct { // The maximum number of results to return with a single call. To retrieve the // remaining results, make another call with the returned nextToken value. - MaxResults int32 + MaxResults *int32 // The token for the next page of results. NextToken *string @@ -78,7 +78,7 @@ type DescribeTrafficMirrorTargetsOutput struct { ResultMetadata middleware.Metadata } -func addOperationDescribeTrafficMirrorTargetsMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationDescribeTrafficMirrorTargetsMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeTrafficMirrorTargets{}, middleware.After) if err != nil { return err @@ -171,19 +171,19 @@ type DescribeTrafficMirrorTargetsPaginator struct { // NewDescribeTrafficMirrorTargetsPaginator returns a new // DescribeTrafficMirrorTargetsPaginator func NewDescribeTrafficMirrorTargetsPaginator(client DescribeTrafficMirrorTargetsAPIClient, params *DescribeTrafficMirrorTargetsInput, optFns ...func(*DescribeTrafficMirrorTargetsPaginatorOptions)) *DescribeTrafficMirrorTargetsPaginator { + if params == nil { + params = &DescribeTrafficMirrorTargetsInput{} + } + options := DescribeTrafficMirrorTargetsPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults + if params.MaxResults != nil { + options.Limit = *params.MaxResults } for _, fn := range optFns { fn(&options) } - if params == nil { - params = &DescribeTrafficMirrorTargetsInput{} - } - return &DescribeTrafficMirrorTargetsPaginator{ options: options, client: client, @@ -206,7 +206,11 @@ func (p *DescribeTrafficMirrorTargetsPaginator) NextPage(ctx context.Context, op params := *p.params params.NextToken = p.nextToken - params.MaxResults = p.options.Limit + var limit *int32 + if p.options.Limit > 0 { + limit = &p.options.Limit + } + params.MaxResults = limit result, err := p.client.DescribeTrafficMirrorTargets(ctx, ¶ms, optFns...) if err != nil { diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeTransitGatewayAttachments.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeTransitGatewayAttachments.go index f7d5c2204..1af6be684 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeTransitGatewayAttachments.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeTransitGatewayAttachments.go @@ -20,7 +20,7 @@ func (c *Client) DescribeTransitGatewayAttachments(ctx context.Context, params * params = &DescribeTransitGatewayAttachmentsInput{} } - result, metadata, err := c.invokeOperation(ctx, "DescribeTransitGatewayAttachments", params, optFns, addOperationDescribeTransitGatewayAttachmentsMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "DescribeTransitGatewayAttachments", params, optFns, c.addOperationDescribeTransitGatewayAttachmentsMiddlewares) if err != nil { return nil, err } @@ -36,7 +36,7 @@ type DescribeTransitGatewayAttachmentsInput struct { // 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 + DryRun *bool // One or more filters. The possible values are: // @@ -72,7 +72,7 @@ type DescribeTransitGatewayAttachmentsInput struct { // The maximum number of results to return with a single call. To retrieve the // remaining results, make another call with the returned nextToken value. - MaxResults int32 + MaxResults *int32 // The token for the next page of results. NextToken *string @@ -94,7 +94,7 @@ type DescribeTransitGatewayAttachmentsOutput struct { ResultMetadata middleware.Metadata } -func addOperationDescribeTransitGatewayAttachmentsMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationDescribeTransitGatewayAttachmentsMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeTransitGatewayAttachments{}, middleware.After) if err != nil { return err @@ -187,19 +187,19 @@ type DescribeTransitGatewayAttachmentsPaginator struct { // NewDescribeTransitGatewayAttachmentsPaginator returns a new // DescribeTransitGatewayAttachmentsPaginator func NewDescribeTransitGatewayAttachmentsPaginator(client DescribeTransitGatewayAttachmentsAPIClient, params *DescribeTransitGatewayAttachmentsInput, optFns ...func(*DescribeTransitGatewayAttachmentsPaginatorOptions)) *DescribeTransitGatewayAttachmentsPaginator { + if params == nil { + params = &DescribeTransitGatewayAttachmentsInput{} + } + options := DescribeTransitGatewayAttachmentsPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults + if params.MaxResults != nil { + options.Limit = *params.MaxResults } for _, fn := range optFns { fn(&options) } - if params == nil { - params = &DescribeTransitGatewayAttachmentsInput{} - } - return &DescribeTransitGatewayAttachmentsPaginator{ options: options, client: client, @@ -222,7 +222,11 @@ func (p *DescribeTransitGatewayAttachmentsPaginator) NextPage(ctx context.Contex params := *p.params params.NextToken = p.nextToken - params.MaxResults = p.options.Limit + var limit *int32 + if p.options.Limit > 0 { + limit = &p.options.Limit + } + params.MaxResults = limit result, err := p.client.DescribeTransitGatewayAttachments(ctx, ¶ms, optFns...) if err != nil { diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeTransitGatewayConnectPeers.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeTransitGatewayConnectPeers.go index 0e7b3220c..ee732dbec 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeTransitGatewayConnectPeers.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeTransitGatewayConnectPeers.go @@ -18,7 +18,7 @@ func (c *Client) DescribeTransitGatewayConnectPeers(ctx context.Context, params params = &DescribeTransitGatewayConnectPeersInput{} } - result, metadata, err := c.invokeOperation(ctx, "DescribeTransitGatewayConnectPeers", params, optFns, addOperationDescribeTransitGatewayConnectPeersMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "DescribeTransitGatewayConnectPeers", params, optFns, c.addOperationDescribeTransitGatewayConnectPeersMiddlewares) if err != nil { return nil, err } @@ -34,7 +34,7 @@ type DescribeTransitGatewayConnectPeersInput struct { // 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 + DryRun *bool // One or more filters. The possible values are: // @@ -50,7 +50,7 @@ type DescribeTransitGatewayConnectPeersInput struct { // The maximum number of results to return with a single call. To retrieve the // remaining results, make another call with the returned nextToken value. - MaxResults int32 + MaxResults *int32 // The token for the next page of results. NextToken *string @@ -72,7 +72,7 @@ type DescribeTransitGatewayConnectPeersOutput struct { ResultMetadata middleware.Metadata } -func addOperationDescribeTransitGatewayConnectPeersMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationDescribeTransitGatewayConnectPeersMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeTransitGatewayConnectPeers{}, middleware.After) if err != nil { return err @@ -165,19 +165,19 @@ type DescribeTransitGatewayConnectPeersPaginator struct { // NewDescribeTransitGatewayConnectPeersPaginator returns a new // DescribeTransitGatewayConnectPeersPaginator func NewDescribeTransitGatewayConnectPeersPaginator(client DescribeTransitGatewayConnectPeersAPIClient, params *DescribeTransitGatewayConnectPeersInput, optFns ...func(*DescribeTransitGatewayConnectPeersPaginatorOptions)) *DescribeTransitGatewayConnectPeersPaginator { + if params == nil { + params = &DescribeTransitGatewayConnectPeersInput{} + } + options := DescribeTransitGatewayConnectPeersPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults + if params.MaxResults != nil { + options.Limit = *params.MaxResults } for _, fn := range optFns { fn(&options) } - if params == nil { - params = &DescribeTransitGatewayConnectPeersInput{} - } - return &DescribeTransitGatewayConnectPeersPaginator{ options: options, client: client, @@ -200,7 +200,11 @@ func (p *DescribeTransitGatewayConnectPeersPaginator) NextPage(ctx context.Conte params := *p.params params.NextToken = p.nextToken - params.MaxResults = p.options.Limit + var limit *int32 + if p.options.Limit > 0 { + limit = &p.options.Limit + } + params.MaxResults = limit result, err := p.client.DescribeTransitGatewayConnectPeers(ctx, ¶ms, optFns...) if err != nil { diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeTransitGatewayConnects.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeTransitGatewayConnects.go index 42979134a..cfd3e14c3 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeTransitGatewayConnects.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeTransitGatewayConnects.go @@ -18,7 +18,7 @@ func (c *Client) DescribeTransitGatewayConnects(ctx context.Context, params *Des params = &DescribeTransitGatewayConnectsInput{} } - result, metadata, err := c.invokeOperation(ctx, "DescribeTransitGatewayConnects", params, optFns, addOperationDescribeTransitGatewayConnectsMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "DescribeTransitGatewayConnects", params, optFns, c.addOperationDescribeTransitGatewayConnectsMiddlewares) if err != nil { return nil, err } @@ -34,7 +34,7 @@ type DescribeTransitGatewayConnectsInput struct { // 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 + DryRun *bool // One or more filters. The possible values are: // @@ -58,7 +58,7 @@ type DescribeTransitGatewayConnectsInput struct { // The maximum number of results to return with a single call. To retrieve the // remaining results, make another call with the returned nextToken value. - MaxResults int32 + MaxResults *int32 // The token for the next page of results. NextToken *string @@ -80,7 +80,7 @@ type DescribeTransitGatewayConnectsOutput struct { ResultMetadata middleware.Metadata } -func addOperationDescribeTransitGatewayConnectsMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationDescribeTransitGatewayConnectsMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeTransitGatewayConnects{}, middleware.After) if err != nil { return err @@ -173,19 +173,19 @@ type DescribeTransitGatewayConnectsPaginator struct { // NewDescribeTransitGatewayConnectsPaginator returns a new // DescribeTransitGatewayConnectsPaginator func NewDescribeTransitGatewayConnectsPaginator(client DescribeTransitGatewayConnectsAPIClient, params *DescribeTransitGatewayConnectsInput, optFns ...func(*DescribeTransitGatewayConnectsPaginatorOptions)) *DescribeTransitGatewayConnectsPaginator { + if params == nil { + params = &DescribeTransitGatewayConnectsInput{} + } + options := DescribeTransitGatewayConnectsPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults + if params.MaxResults != nil { + options.Limit = *params.MaxResults } for _, fn := range optFns { fn(&options) } - if params == nil { - params = &DescribeTransitGatewayConnectsInput{} - } - return &DescribeTransitGatewayConnectsPaginator{ options: options, client: client, @@ -208,7 +208,11 @@ func (p *DescribeTransitGatewayConnectsPaginator) NextPage(ctx context.Context, params := *p.params params.NextToken = p.nextToken - params.MaxResults = p.options.Limit + var limit *int32 + if p.options.Limit > 0 { + limit = &p.options.Limit + } + params.MaxResults = limit result, err := p.client.DescribeTransitGatewayConnects(ctx, ¶ms, optFns...) if err != nil { diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeTransitGatewayMulticastDomains.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeTransitGatewayMulticastDomains.go index e6df59300..0d09e847a 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeTransitGatewayMulticastDomains.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeTransitGatewayMulticastDomains.go @@ -18,7 +18,7 @@ func (c *Client) DescribeTransitGatewayMulticastDomains(ctx context.Context, par params = &DescribeTransitGatewayMulticastDomainsInput{} } - result, metadata, err := c.invokeOperation(ctx, "DescribeTransitGatewayMulticastDomains", params, optFns, addOperationDescribeTransitGatewayMulticastDomainsMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "DescribeTransitGatewayMulticastDomains", params, optFns, c.addOperationDescribeTransitGatewayMulticastDomainsMiddlewares) if err != nil { return nil, err } @@ -34,7 +34,7 @@ type DescribeTransitGatewayMulticastDomainsInput struct { // 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 + DryRun *bool // One or more filters. The possible values are: // @@ -51,7 +51,7 @@ type DescribeTransitGatewayMulticastDomainsInput struct { // The maximum number of results to return with a single call. To retrieve the // remaining results, make another call with the returned nextToken value. - MaxResults int32 + MaxResults *int32 // The token for the next page of results. NextToken *string @@ -73,7 +73,7 @@ type DescribeTransitGatewayMulticastDomainsOutput struct { ResultMetadata middleware.Metadata } -func addOperationDescribeTransitGatewayMulticastDomainsMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationDescribeTransitGatewayMulticastDomainsMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeTransitGatewayMulticastDomains{}, middleware.After) if err != nil { return err @@ -166,19 +166,19 @@ type DescribeTransitGatewayMulticastDomainsPaginator struct { // NewDescribeTransitGatewayMulticastDomainsPaginator returns a new // DescribeTransitGatewayMulticastDomainsPaginator func NewDescribeTransitGatewayMulticastDomainsPaginator(client DescribeTransitGatewayMulticastDomainsAPIClient, params *DescribeTransitGatewayMulticastDomainsInput, optFns ...func(*DescribeTransitGatewayMulticastDomainsPaginatorOptions)) *DescribeTransitGatewayMulticastDomainsPaginator { + if params == nil { + params = &DescribeTransitGatewayMulticastDomainsInput{} + } + options := DescribeTransitGatewayMulticastDomainsPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults + if params.MaxResults != nil { + options.Limit = *params.MaxResults } for _, fn := range optFns { fn(&options) } - if params == nil { - params = &DescribeTransitGatewayMulticastDomainsInput{} - } - return &DescribeTransitGatewayMulticastDomainsPaginator{ options: options, client: client, @@ -201,7 +201,11 @@ func (p *DescribeTransitGatewayMulticastDomainsPaginator) NextPage(ctx context.C params := *p.params params.NextToken = p.nextToken - params.MaxResults = p.options.Limit + var limit *int32 + if p.options.Limit > 0 { + limit = &p.options.Limit + } + params.MaxResults = limit result, err := p.client.DescribeTransitGatewayMulticastDomains(ctx, ¶ms, optFns...) if err != nil { diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeTransitGatewayPeeringAttachments.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeTransitGatewayPeeringAttachments.go index ed1cd23a6..21be82e7a 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeTransitGatewayPeeringAttachments.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeTransitGatewayPeeringAttachments.go @@ -18,7 +18,7 @@ func (c *Client) DescribeTransitGatewayPeeringAttachments(ctx context.Context, p params = &DescribeTransitGatewayPeeringAttachmentsInput{} } - result, metadata, err := c.invokeOperation(ctx, "DescribeTransitGatewayPeeringAttachments", params, optFns, addOperationDescribeTransitGatewayPeeringAttachmentsMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "DescribeTransitGatewayPeeringAttachments", params, optFns, c.addOperationDescribeTransitGatewayPeeringAttachmentsMiddlewares) if err != nil { return nil, err } @@ -34,7 +34,7 @@ type DescribeTransitGatewayPeeringAttachmentsInput struct { // 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 + DryRun *bool // One or more filters. The possible values are: // @@ -67,7 +67,7 @@ type DescribeTransitGatewayPeeringAttachmentsInput struct { // The maximum number of results to return with a single call. To retrieve the // remaining results, make another call with the returned nextToken value. - MaxResults int32 + MaxResults *int32 // The token for the next page of results. NextToken *string @@ -89,7 +89,7 @@ type DescribeTransitGatewayPeeringAttachmentsOutput struct { ResultMetadata middleware.Metadata } -func addOperationDescribeTransitGatewayPeeringAttachmentsMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationDescribeTransitGatewayPeeringAttachmentsMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeTransitGatewayPeeringAttachments{}, middleware.After) if err != nil { return err @@ -182,19 +182,19 @@ type DescribeTransitGatewayPeeringAttachmentsPaginator struct { // NewDescribeTransitGatewayPeeringAttachmentsPaginator returns a new // DescribeTransitGatewayPeeringAttachmentsPaginator func NewDescribeTransitGatewayPeeringAttachmentsPaginator(client DescribeTransitGatewayPeeringAttachmentsAPIClient, params *DescribeTransitGatewayPeeringAttachmentsInput, optFns ...func(*DescribeTransitGatewayPeeringAttachmentsPaginatorOptions)) *DescribeTransitGatewayPeeringAttachmentsPaginator { + if params == nil { + params = &DescribeTransitGatewayPeeringAttachmentsInput{} + } + options := DescribeTransitGatewayPeeringAttachmentsPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults + if params.MaxResults != nil { + options.Limit = *params.MaxResults } for _, fn := range optFns { fn(&options) } - if params == nil { - params = &DescribeTransitGatewayPeeringAttachmentsInput{} - } - return &DescribeTransitGatewayPeeringAttachmentsPaginator{ options: options, client: client, @@ -217,7 +217,11 @@ func (p *DescribeTransitGatewayPeeringAttachmentsPaginator) NextPage(ctx context params := *p.params params.NextToken = p.nextToken - params.MaxResults = p.options.Limit + var limit *int32 + if p.options.Limit > 0 { + limit = &p.options.Limit + } + params.MaxResults = limit result, err := p.client.DescribeTransitGatewayPeeringAttachments(ctx, ¶ms, optFns...) if err != nil { diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeTransitGatewayRouteTables.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeTransitGatewayRouteTables.go index 0e601a9a1..ef62b3960 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeTransitGatewayRouteTables.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeTransitGatewayRouteTables.go @@ -19,7 +19,7 @@ func (c *Client) DescribeTransitGatewayRouteTables(ctx context.Context, params * params = &DescribeTransitGatewayRouteTablesInput{} } - result, metadata, err := c.invokeOperation(ctx, "DescribeTransitGatewayRouteTables", params, optFns, addOperationDescribeTransitGatewayRouteTablesMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "DescribeTransitGatewayRouteTables", params, optFns, c.addOperationDescribeTransitGatewayRouteTablesMiddlewares) if err != nil { return nil, err } @@ -35,7 +35,7 @@ type DescribeTransitGatewayRouteTablesInput struct { // 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 + DryRun *bool // One or more filters. The possible values are: // @@ -58,7 +58,7 @@ type DescribeTransitGatewayRouteTablesInput struct { // The maximum number of results to return with a single call. To retrieve the // remaining results, make another call with the returned nextToken value. - MaxResults int32 + MaxResults *int32 // The token for the next page of results. NextToken *string @@ -80,7 +80,7 @@ type DescribeTransitGatewayRouteTablesOutput struct { ResultMetadata middleware.Metadata } -func addOperationDescribeTransitGatewayRouteTablesMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationDescribeTransitGatewayRouteTablesMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeTransitGatewayRouteTables{}, middleware.After) if err != nil { return err @@ -173,19 +173,19 @@ type DescribeTransitGatewayRouteTablesPaginator struct { // NewDescribeTransitGatewayRouteTablesPaginator returns a new // DescribeTransitGatewayRouteTablesPaginator func NewDescribeTransitGatewayRouteTablesPaginator(client DescribeTransitGatewayRouteTablesAPIClient, params *DescribeTransitGatewayRouteTablesInput, optFns ...func(*DescribeTransitGatewayRouteTablesPaginatorOptions)) *DescribeTransitGatewayRouteTablesPaginator { + if params == nil { + params = &DescribeTransitGatewayRouteTablesInput{} + } + options := DescribeTransitGatewayRouteTablesPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults + if params.MaxResults != nil { + options.Limit = *params.MaxResults } for _, fn := range optFns { fn(&options) } - if params == nil { - params = &DescribeTransitGatewayRouteTablesInput{} - } - return &DescribeTransitGatewayRouteTablesPaginator{ options: options, client: client, @@ -208,7 +208,11 @@ func (p *DescribeTransitGatewayRouteTablesPaginator) NextPage(ctx context.Contex params := *p.params params.NextToken = p.nextToken - params.MaxResults = p.options.Limit + var limit *int32 + if p.options.Limit > 0 { + limit = &p.options.Limit + } + params.MaxResults = limit result, err := p.client.DescribeTransitGatewayRouteTables(ctx, ¶ms, optFns...) if err != nil { diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeTransitGatewayVpcAttachments.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeTransitGatewayVpcAttachments.go index a8015b425..ec8f930fe 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeTransitGatewayVpcAttachments.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeTransitGatewayVpcAttachments.go @@ -19,7 +19,7 @@ func (c *Client) DescribeTransitGatewayVpcAttachments(ctx context.Context, param params = &DescribeTransitGatewayVpcAttachmentsInput{} } - result, metadata, err := c.invokeOperation(ctx, "DescribeTransitGatewayVpcAttachments", params, optFns, addOperationDescribeTransitGatewayVpcAttachmentsMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "DescribeTransitGatewayVpcAttachments", params, optFns, c.addOperationDescribeTransitGatewayVpcAttachmentsMiddlewares) if err != nil { return nil, err } @@ -35,7 +35,7 @@ type DescribeTransitGatewayVpcAttachmentsInput struct { // 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 + DryRun *bool // One or more filters. The possible values are: // @@ -55,7 +55,7 @@ type DescribeTransitGatewayVpcAttachmentsInput struct { // The maximum number of results to return with a single call. To retrieve the // remaining results, make another call with the returned nextToken value. - MaxResults int32 + MaxResults *int32 // The token for the next page of results. NextToken *string @@ -77,7 +77,7 @@ type DescribeTransitGatewayVpcAttachmentsOutput struct { ResultMetadata middleware.Metadata } -func addOperationDescribeTransitGatewayVpcAttachmentsMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationDescribeTransitGatewayVpcAttachmentsMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeTransitGatewayVpcAttachments{}, middleware.After) if err != nil { return err @@ -170,19 +170,19 @@ type DescribeTransitGatewayVpcAttachmentsPaginator struct { // NewDescribeTransitGatewayVpcAttachmentsPaginator returns a new // DescribeTransitGatewayVpcAttachmentsPaginator func NewDescribeTransitGatewayVpcAttachmentsPaginator(client DescribeTransitGatewayVpcAttachmentsAPIClient, params *DescribeTransitGatewayVpcAttachmentsInput, optFns ...func(*DescribeTransitGatewayVpcAttachmentsPaginatorOptions)) *DescribeTransitGatewayVpcAttachmentsPaginator { + if params == nil { + params = &DescribeTransitGatewayVpcAttachmentsInput{} + } + options := DescribeTransitGatewayVpcAttachmentsPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults + if params.MaxResults != nil { + options.Limit = *params.MaxResults } for _, fn := range optFns { fn(&options) } - if params == nil { - params = &DescribeTransitGatewayVpcAttachmentsInput{} - } - return &DescribeTransitGatewayVpcAttachmentsPaginator{ options: options, client: client, @@ -205,7 +205,11 @@ func (p *DescribeTransitGatewayVpcAttachmentsPaginator) NextPage(ctx context.Con params := *p.params params.NextToken = p.nextToken - params.MaxResults = p.options.Limit + var limit *int32 + if p.options.Limit > 0 { + limit = &p.options.Limit + } + params.MaxResults = limit result, err := p.client.DescribeTransitGatewayVpcAttachments(ctx, ¶ms, optFns...) if err != nil { diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeTransitGateways.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeTransitGateways.go index 39d5b5d13..677a9b87d 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeTransitGateways.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeTransitGateways.go @@ -19,7 +19,7 @@ func (c *Client) DescribeTransitGateways(ctx context.Context, params *DescribeTr params = &DescribeTransitGatewaysInput{} } - result, metadata, err := c.invokeOperation(ctx, "DescribeTransitGateways", params, optFns, addOperationDescribeTransitGatewaysMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "DescribeTransitGateways", params, optFns, c.addOperationDescribeTransitGatewaysMiddlewares) if err != nil { return nil, err } @@ -35,7 +35,7 @@ type DescribeTransitGatewaysInput struct { // 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 + DryRun *bool // One or more filters. The possible values are: // @@ -80,7 +80,7 @@ type DescribeTransitGatewaysInput struct { // The maximum number of results to return with a single call. To retrieve the // remaining results, make another call with the returned nextToken value. - MaxResults int32 + MaxResults *int32 // The token for the next page of results. NextToken *string @@ -102,7 +102,7 @@ type DescribeTransitGatewaysOutput struct { ResultMetadata middleware.Metadata } -func addOperationDescribeTransitGatewaysMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationDescribeTransitGatewaysMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeTransitGateways{}, middleware.After) if err != nil { return err @@ -194,19 +194,19 @@ type DescribeTransitGatewaysPaginator struct { // NewDescribeTransitGatewaysPaginator returns a new // DescribeTransitGatewaysPaginator func NewDescribeTransitGatewaysPaginator(client DescribeTransitGatewaysAPIClient, params *DescribeTransitGatewaysInput, optFns ...func(*DescribeTransitGatewaysPaginatorOptions)) *DescribeTransitGatewaysPaginator { + if params == nil { + params = &DescribeTransitGatewaysInput{} + } + options := DescribeTransitGatewaysPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults + if params.MaxResults != nil { + options.Limit = *params.MaxResults } for _, fn := range optFns { fn(&options) } - if params == nil { - params = &DescribeTransitGatewaysInput{} - } - return &DescribeTransitGatewaysPaginator{ options: options, client: client, @@ -229,7 +229,11 @@ func (p *DescribeTransitGatewaysPaginator) NextPage(ctx context.Context, optFns params := *p.params params.NextToken = p.nextToken - params.MaxResults = p.options.Limit + var limit *int32 + if p.options.Limit > 0 { + limit = &p.options.Limit + } + params.MaxResults = limit result, err := p.client.DescribeTransitGateways(ctx, ¶ms, optFns...) if err != nil { diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeTrunkInterfaceAssociations.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeTrunkInterfaceAssociations.go new file mode 100644 index 000000000..59d315fc9 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeTrunkInterfaceAssociations.go @@ -0,0 +1,137 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package ec2 + +import ( + "context" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "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 one or more network interface trunk associations. +func (c *Client) DescribeTrunkInterfaceAssociations(ctx context.Context, params *DescribeTrunkInterfaceAssociationsInput, optFns ...func(*Options)) (*DescribeTrunkInterfaceAssociationsOutput, error) { + if params == nil { + params = &DescribeTrunkInterfaceAssociationsInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "DescribeTrunkInterfaceAssociations", params, optFns, c.addOperationDescribeTrunkInterfaceAssociationsMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*DescribeTrunkInterfaceAssociationsOutput) + out.ResultMetadata = metadata + return out, nil +} + +type DescribeTrunkInterfaceAssociationsInput struct { + + // The IDs of the associations. + AssociationIds []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. + // + // * gre-key - The ID of a trunk interface association. + // + // * + // interface-protocol - The interface protocol. Valid values are VLAN and GRE. + Filters []types.Filter + + // The maximum number of results to return with a single call. To retrieve the + // remaining results, make another call with the returned nextToken value. + MaxResults *int32 + + // The token for the next page of results. + NextToken *string +} + +type DescribeTrunkInterfaceAssociationsOutput struct { + + // Information about the trunk associations. + InterfaceAssociations []types.TrunkInterfaceAssociation + + // 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 +} + +func (c *Client) addOperationDescribeTrunkInterfaceAssociationsMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeTrunkInterfaceAssociations{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsEc2query_deserializeOpDescribeTrunkInterfaceAssociations{}, middleware.After) + if err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = addHTTPSignerV4Middleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeTrunkInterfaceAssociations(options.Region), middleware.Before); 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 + } + return nil +} + +func newServiceMetadataMiddleware_opDescribeTrunkInterfaceAssociations(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "ec2", + OperationName: "DescribeTrunkInterfaceAssociations", + } +} diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeVolumeAttribute.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeVolumeAttribute.go index 2e4cde0a8..7e2e13d92 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeVolumeAttribute.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeVolumeAttribute.go @@ -20,7 +20,7 @@ func (c *Client) DescribeVolumeAttribute(ctx context.Context, params *DescribeVo params = &DescribeVolumeAttributeInput{} } - result, metadata, err := c.invokeOperation(ctx, "DescribeVolumeAttribute", params, optFns, addOperationDescribeVolumeAttributeMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "DescribeVolumeAttribute", params, optFns, c.addOperationDescribeVolumeAttributeMiddlewares) if err != nil { return nil, err } @@ -46,7 +46,7 @@ type DescribeVolumeAttributeInput struct { // 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 + DryRun *bool } type DescribeVolumeAttributeOutput struct { @@ -64,7 +64,7 @@ type DescribeVolumeAttributeOutput struct { ResultMetadata middleware.Metadata } -func addOperationDescribeVolumeAttributeMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationDescribeVolumeAttributeMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeVolumeAttribute{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeVolumeStatus.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeVolumeStatus.go index 312861e31..d0c2669ed 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeVolumeStatus.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeVolumeStatus.go @@ -46,7 +46,7 @@ func (c *Client) DescribeVolumeStatus(ctx context.Context, params *DescribeVolum params = &DescribeVolumeStatusInput{} } - result, metadata, err := c.invokeOperation(ctx, "DescribeVolumeStatus", params, optFns, addOperationDescribeVolumeStatusMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "DescribeVolumeStatus", params, optFns, c.addOperationDescribeVolumeStatusMiddlewares) if err != nil { return nil, err } @@ -62,7 +62,7 @@ type DescribeVolumeStatusInput struct { // 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 + DryRun *bool // The filters. // @@ -113,7 +113,7 @@ type DescribeVolumeStatusInput struct { // If this parameter is not used, then DescribeVolumeStatus returns all results. // You cannot specify this parameter and the volume IDs parameter in the same // request. - MaxResults int32 + MaxResults *int32 // The NextToken value to include in a future DescribeVolumeStatus request. When // the results of the request exceed MaxResults, this value can be used to retrieve @@ -138,7 +138,7 @@ type DescribeVolumeStatusOutput struct { ResultMetadata middleware.Metadata } -func addOperationDescribeVolumeStatusMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationDescribeVolumeStatusMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeVolumeStatus{}, middleware.After) if err != nil { return err @@ -236,19 +236,19 @@ type DescribeVolumeStatusPaginator struct { // NewDescribeVolumeStatusPaginator returns a new DescribeVolumeStatusPaginator func NewDescribeVolumeStatusPaginator(client DescribeVolumeStatusAPIClient, params *DescribeVolumeStatusInput, optFns ...func(*DescribeVolumeStatusPaginatorOptions)) *DescribeVolumeStatusPaginator { + if params == nil { + params = &DescribeVolumeStatusInput{} + } + options := DescribeVolumeStatusPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults + if params.MaxResults != nil { + options.Limit = *params.MaxResults } for _, fn := range optFns { fn(&options) } - if params == nil { - params = &DescribeVolumeStatusInput{} - } - return &DescribeVolumeStatusPaginator{ options: options, client: client, @@ -271,7 +271,11 @@ func (p *DescribeVolumeStatusPaginator) NextPage(ctx context.Context, optFns ... params := *p.params params.NextToken = p.nextToken - params.MaxResults = p.options.Limit + var limit *int32 + if p.options.Limit > 0 { + limit = &p.options.Limit + } + params.MaxResults = limit result, err := p.client.DescribeVolumeStatus(ctx, ¶ms, optFns...) if err != nil { diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeVolumes.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeVolumes.go index fec88b8fb..d7dc36547 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeVolumes.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeVolumes.go @@ -4,10 +4,12 @@ package ec2 import ( "context" + "errors" "fmt" awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" "github.com/aws/aws-sdk-go-v2/aws/signer/v4" "github.com/aws/aws-sdk-go-v2/service/ec2/types" + smithy "github.com/aws/smithy-go" "github.com/aws/smithy-go/middleware" smithytime "github.com/aws/smithy-go/time" smithyhttp "github.com/aws/smithy-go/transport/http" @@ -30,7 +32,7 @@ func (c *Client) DescribeVolumes(ctx context.Context, params *DescribeVolumesInp params = &DescribeVolumesInput{} } - result, metadata, err := c.invokeOperation(ctx, "DescribeVolumes", params, optFns, addOperationDescribeVolumesMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "DescribeVolumes", params, optFns, c.addOperationDescribeVolumesMiddlewares) if err != nil { return nil, err } @@ -46,7 +48,7 @@ type DescribeVolumesInput struct { // 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 + DryRun *bool // The filters. // @@ -114,7 +116,7 @@ type DescribeVolumesInput struct { // if MaxResults is given a value larger than 500, only 500 results are returned. // If this parameter is not used, then DescribeVolumes returns all results. You // cannot specify this parameter and the volume IDs parameter in the same request. - MaxResults int32 + MaxResults *int32 // The NextToken value returned from a previous paginated DescribeVolumes request // where MaxResults was used and the results exceeded the value of that parameter. @@ -141,7 +143,7 @@ type DescribeVolumesOutput struct { ResultMetadata middleware.Metadata } -func addOperationDescribeVolumesMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationDescribeVolumesMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeVolumes{}, middleware.After) if err != nil { return err @@ -237,19 +239,19 @@ type DescribeVolumesPaginator struct { // NewDescribeVolumesPaginator returns a new DescribeVolumesPaginator func NewDescribeVolumesPaginator(client DescribeVolumesAPIClient, params *DescribeVolumesInput, optFns ...func(*DescribeVolumesPaginatorOptions)) *DescribeVolumesPaginator { + if params == nil { + params = &DescribeVolumesInput{} + } + options := DescribeVolumesPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults + if params.MaxResults != nil { + options.Limit = *params.MaxResults } for _, fn := range optFns { fn(&options) } - if params == nil { - params = &DescribeVolumesInput{} - } - return &DescribeVolumesPaginator{ options: options, client: client, @@ -272,7 +274,11 @@ func (p *DescribeVolumesPaginator) NextPage(ctx context.Context, optFns ...func( params := *p.params params.NextToken = p.nextToken - params.MaxResults = p.options.Limit + var limit *int32 + if p.options.Limit > 0 { + limit = &p.options.Limit + } + params.MaxResults = limit result, err := p.client.DescribeVolumes(ctx, ¶ms, optFns...) if err != nil { @@ -429,16 +435,21 @@ func volumeAvailableStateRetryable(ctx context.Context, input *DescribeVolumesIn expectedValue := "available" var match = true - listOfValues, ok := pathValue.([]string) + listOfValues, ok := pathValue.([]interface{}) if !ok { - return false, fmt.Errorf("waiter comparator expected []string value got %T", pathValue) + return false, fmt.Errorf("waiter comparator expected list got %T", pathValue) } if len(listOfValues) == 0 { match = false } for _, v := range listOfValues { - if v != expectedValue { + value, ok := v.(types.VolumeState) + if !ok { + return false, fmt.Errorf("waiter comparator expected types.VolumeState value, got %T", pathValue) + } + + if string(value) != expectedValue { match = false } } @@ -455,13 +466,18 @@ func volumeAvailableStateRetryable(ctx context.Context, input *DescribeVolumesIn } expectedValue := "deleted" - listOfValues, ok := pathValue.([]string) + listOfValues, ok := pathValue.([]interface{}) if !ok { - return false, fmt.Errorf("waiter comparator expected []string value got %T", pathValue) + return false, fmt.Errorf("waiter comparator expected list got %T", pathValue) } for _, v := range listOfValues { - if v == expectedValue { + value, ok := v.(types.VolumeState) + if !ok { + return false, fmt.Errorf("waiter comparator expected types.VolumeState value, got %T", pathValue) + } + + if string(value) == expectedValue { return false, fmt.Errorf("waiter state transitioned to Failure") } } @@ -470,6 +486,184 @@ func volumeAvailableStateRetryable(ctx context.Context, input *DescribeVolumesIn return true, nil } +// VolumeDeletedWaiterOptions are waiter options for VolumeDeletedWaiter +type VolumeDeletedWaiterOptions struct { + + // Set of options to modify how an operation is invoked. These apply to all + // operations invoked for this client. Use functional options on operation call to + // modify this list for per operation behavior. + APIOptions []func(*middleware.Stack) error + + // MinDelay is the minimum amount of time to delay between retries. If unset, + // VolumeDeletedWaiter will use default minimum delay of 15 seconds. Note that + // MinDelay must resolve to a value lesser than or equal to the MaxDelay. + MinDelay time.Duration + + // MaxDelay is the maximum amount of time to delay between retries. If unset or set + // to zero, VolumeDeletedWaiter will use default max delay of 120 seconds. Note + // that MaxDelay must resolve to value greater than or equal to the MinDelay. + MaxDelay time.Duration + + // LogWaitAttempts is used to enable logging for waiter retry attempts + LogWaitAttempts bool + + // Retryable is function that can be used to override the service defined + // waiter-behavior based on operation output, or returned error. This function is + // used by the waiter to decide if a state is retryable or a terminal state. By + // default service-modeled logic will populate this option. This option can thus be + // used to define a custom waiter state with fall-back to service-modeled waiter + // state mutators.The function returns an error in case of a failure state. In case + // of retry state, this function returns a bool value of true and nil error, while + // in case of success it returns a bool value of false and nil error. + Retryable func(context.Context, *DescribeVolumesInput, *DescribeVolumesOutput, error) (bool, error) +} + +// VolumeDeletedWaiter defines the waiters for VolumeDeleted +type VolumeDeletedWaiter struct { + client DescribeVolumesAPIClient + + options VolumeDeletedWaiterOptions +} + +// NewVolumeDeletedWaiter constructs a VolumeDeletedWaiter. +func NewVolumeDeletedWaiter(client DescribeVolumesAPIClient, optFns ...func(*VolumeDeletedWaiterOptions)) *VolumeDeletedWaiter { + options := VolumeDeletedWaiterOptions{} + options.MinDelay = 15 * time.Second + options.MaxDelay = 120 * time.Second + options.Retryable = volumeDeletedStateRetryable + + for _, fn := range optFns { + fn(&options) + } + return &VolumeDeletedWaiter{ + client: client, + options: options, + } +} + +// Wait calls the waiter function for VolumeDeleted waiter. The maxWaitDur is the +// maximum wait duration the waiter will wait. The maxWaitDur is required and must +// be greater than zero. +func (w *VolumeDeletedWaiter) Wait(ctx context.Context, params *DescribeVolumesInput, maxWaitDur time.Duration, optFns ...func(*VolumeDeletedWaiterOptions)) error { + if maxWaitDur <= 0 { + return fmt.Errorf("maximum wait time for waiter must be greater than zero") + } + + options := w.options + for _, fn := range optFns { + fn(&options) + } + + if options.MaxDelay <= 0 { + options.MaxDelay = 120 * time.Second + } + + if options.MinDelay > options.MaxDelay { + return fmt.Errorf("minimum waiter delay %v must be lesser than or equal to maximum waiter delay of %v.", options.MinDelay, options.MaxDelay) + } + + ctx, cancelFn := context.WithTimeout(ctx, maxWaitDur) + defer cancelFn() + + logger := smithywaiter.Logger{} + remainingTime := maxWaitDur + + var attempt int64 + for { + + attempt++ + apiOptions := options.APIOptions + start := time.Now() + + if options.LogWaitAttempts { + logger.Attempt = attempt + apiOptions = append([]func(*middleware.Stack) error{}, options.APIOptions...) + apiOptions = append(apiOptions, logger.AddLogger) + } + + out, err := w.client.DescribeVolumes(ctx, params, func(o *Options) { + o.APIOptions = append(o.APIOptions, apiOptions...) + }) + + retryable, err := options.Retryable(ctx, params, out, err) + if err != nil { + return err + } + if !retryable { + return nil + } + + remainingTime -= time.Since(start) + if remainingTime < options.MinDelay || remainingTime <= 0 { + break + } + + // compute exponential backoff between waiter retries + delay, err := smithywaiter.ComputeDelay( + attempt, options.MinDelay, options.MaxDelay, remainingTime, + ) + if err != nil { + return fmt.Errorf("error computing waiter delay, %w", err) + } + + remainingTime -= delay + // sleep for the delay amount before invoking a request + if err := smithytime.SleepWithContext(ctx, delay); err != nil { + return fmt.Errorf("request cancelled while waiting, %w", err) + } + } + return fmt.Errorf("exceeded max wait time for VolumeDeleted waiter") +} + +func volumeDeletedStateRetryable(ctx context.Context, input *DescribeVolumesInput, output *DescribeVolumesOutput, err error) (bool, error) { + + if err == nil { + pathValue, err := jmespath.Search("Volumes[].State", output) + if err != nil { + return false, fmt.Errorf("error evaluating waiter state: %w", err) + } + + expectedValue := "deleted" + var match = true + listOfValues, ok := pathValue.([]interface{}) + if !ok { + return false, fmt.Errorf("waiter comparator expected list got %T", pathValue) + } + + if len(listOfValues) == 0 { + match = false + } + for _, v := range listOfValues { + value, ok := v.(types.VolumeState) + if !ok { + return false, fmt.Errorf("waiter comparator expected types.VolumeState value, got %T", pathValue) + } + + if string(value) != expectedValue { + match = false + } + } + + if match { + return false, nil + } + } + + if err != nil { + var apiErr smithy.APIError + ok := errors.As(err, &apiErr) + if !ok { + return false, fmt.Errorf("expected err to be of type smithy.APIError, got %w", err) + } + + if "InvalidVolume.NotFound" == apiErr.ErrorCode() { + return false, nil + } + } + + return true, nil +} + // VolumeInUseWaiterOptions are waiter options for VolumeInUseWaiter type VolumeInUseWaiterOptions struct { @@ -609,16 +803,21 @@ func volumeInUseStateRetryable(ctx context.Context, input *DescribeVolumesInput, expectedValue := "in-use" var match = true - listOfValues, ok := pathValue.([]string) + listOfValues, ok := pathValue.([]interface{}) if !ok { - return false, fmt.Errorf("waiter comparator expected []string value got %T", pathValue) + return false, fmt.Errorf("waiter comparator expected list got %T", pathValue) } if len(listOfValues) == 0 { match = false } for _, v := range listOfValues { - if v != expectedValue { + value, ok := v.(types.VolumeState) + if !ok { + return false, fmt.Errorf("waiter comparator expected types.VolumeState value, got %T", pathValue) + } + + if string(value) != expectedValue { match = false } } @@ -635,13 +834,18 @@ func volumeInUseStateRetryable(ctx context.Context, input *DescribeVolumesInput, } expectedValue := "deleted" - listOfValues, ok := pathValue.([]string) + listOfValues, ok := pathValue.([]interface{}) if !ok { - return false, fmt.Errorf("waiter comparator expected []string value got %T", pathValue) + return false, fmt.Errorf("waiter comparator expected list got %T", pathValue) } for _, v := range listOfValues { - if v == expectedValue { + value, ok := v.(types.VolumeState) + if !ok { + return false, fmt.Errorf("waiter comparator expected types.VolumeState value, got %T", pathValue) + } + + if string(value) == expectedValue { return false, fmt.Errorf("waiter state transitioned to Failure") } } diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeVolumesModifications.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeVolumesModifications.go index 9dc833e05..2200c27e6 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeVolumesModifications.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeVolumesModifications.go @@ -27,7 +27,7 @@ func (c *Client) DescribeVolumesModifications(ctx context.Context, params *Descr params = &DescribeVolumesModificationsInput{} } - result, metadata, err := c.invokeOperation(ctx, "DescribeVolumesModifications", params, optFns, addOperationDescribeVolumesModificationsMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "DescribeVolumesModifications", params, optFns, c.addOperationDescribeVolumesModificationsMiddlewares) if err != nil { return nil, err } @@ -43,7 +43,7 @@ type DescribeVolumesModificationsInput struct { // 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 + DryRun *bool // The filters. // @@ -82,7 +82,7 @@ type DescribeVolumesModificationsInput struct { // The maximum number of results (up to a limit of 500) to be returned in a // paginated request. - MaxResults int32 + MaxResults *int32 // The nextToken value returned by a previous paginated request. NextToken *string @@ -103,7 +103,7 @@ type DescribeVolumesModificationsOutput struct { ResultMetadata middleware.Metadata } -func addOperationDescribeVolumesModificationsMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationDescribeVolumesModificationsMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeVolumesModifications{}, middleware.After) if err != nil { return err @@ -196,19 +196,19 @@ type DescribeVolumesModificationsPaginator struct { // NewDescribeVolumesModificationsPaginator returns a new // DescribeVolumesModificationsPaginator func NewDescribeVolumesModificationsPaginator(client DescribeVolumesModificationsAPIClient, params *DescribeVolumesModificationsInput, optFns ...func(*DescribeVolumesModificationsPaginatorOptions)) *DescribeVolumesModificationsPaginator { + if params == nil { + params = &DescribeVolumesModificationsInput{} + } + options := DescribeVolumesModificationsPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults + if params.MaxResults != nil { + options.Limit = *params.MaxResults } for _, fn := range optFns { fn(&options) } - if params == nil { - params = &DescribeVolumesModificationsInput{} - } - return &DescribeVolumesModificationsPaginator{ options: options, client: client, @@ -231,7 +231,11 @@ func (p *DescribeVolumesModificationsPaginator) NextPage(ctx context.Context, op params := *p.params params.NextToken = p.nextToken - params.MaxResults = p.options.Limit + var limit *int32 + if p.options.Limit > 0 { + limit = &p.options.Limit + } + params.MaxResults = limit result, err := p.client.DescribeVolumesModifications(ctx, ¶ms, optFns...) if err != nil { diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeVpcAttribute.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeVpcAttribute.go index 8c3722b3d..5261e19f6 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeVpcAttribute.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeVpcAttribute.go @@ -18,7 +18,7 @@ func (c *Client) DescribeVpcAttribute(ctx context.Context, params *DescribeVpcAt params = &DescribeVpcAttributeInput{} } - result, metadata, err := c.invokeOperation(ctx, "DescribeVpcAttribute", params, optFns, addOperationDescribeVpcAttributeMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "DescribeVpcAttribute", params, optFns, c.addOperationDescribeVpcAttributeMiddlewares) if err != nil { return nil, err } @@ -44,7 +44,7 @@ type DescribeVpcAttributeInput struct { // 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 + DryRun *bool } type DescribeVpcAttributeOutput struct { @@ -66,7 +66,7 @@ type DescribeVpcAttributeOutput struct { ResultMetadata middleware.Metadata } -func addOperationDescribeVpcAttributeMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationDescribeVpcAttributeMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeVpcAttribute{}, middleware.After) if err != nil { return err 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 9e66c4c55..ed352ca92 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 @@ -17,7 +17,7 @@ func (c *Client) DescribeVpcClassicLink(ctx context.Context, params *DescribeVpc params = &DescribeVpcClassicLinkInput{} } - result, metadata, err := c.invokeOperation(ctx, "DescribeVpcClassicLink", params, optFns, addOperationDescribeVpcClassicLinkMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "DescribeVpcClassicLink", params, optFns, c.addOperationDescribeVpcClassicLinkMiddlewares) if err != nil { return nil, err } @@ -33,7 +33,7 @@ type DescribeVpcClassicLinkInput struct { // 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 + DryRun *bool // One or more filters. // @@ -64,7 +64,7 @@ type DescribeVpcClassicLinkOutput struct { ResultMetadata middleware.Metadata } -func addOperationDescribeVpcClassicLinkMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationDescribeVpcClassicLinkMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeVpcClassicLink{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeVpcClassicLinkDnsSupport.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeVpcClassicLinkDnsSupport.go index b091ddea8..861bf258b 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeVpcClassicLinkDnsSupport.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeVpcClassicLinkDnsSupport.go @@ -25,7 +25,7 @@ func (c *Client) DescribeVpcClassicLinkDnsSupport(ctx context.Context, params *D params = &DescribeVpcClassicLinkDnsSupportInput{} } - result, metadata, err := c.invokeOperation(ctx, "DescribeVpcClassicLinkDnsSupport", params, optFns, addOperationDescribeVpcClassicLinkDnsSupportMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "DescribeVpcClassicLinkDnsSupport", params, optFns, c.addOperationDescribeVpcClassicLinkDnsSupportMiddlewares) if err != nil { return nil, err } @@ -39,7 +39,7 @@ type DescribeVpcClassicLinkDnsSupportInput struct { // The maximum number of results to return with a single call. To retrieve the // remaining results, make another call with the returned nextToken value. - MaxResults int32 + MaxResults *int32 // The token for the next page of results. NextToken *string @@ -61,7 +61,7 @@ type DescribeVpcClassicLinkDnsSupportOutput struct { ResultMetadata middleware.Metadata } -func addOperationDescribeVpcClassicLinkDnsSupportMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationDescribeVpcClassicLinkDnsSupportMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeVpcClassicLinkDnsSupport{}, middleware.After) if err != nil { return err @@ -154,19 +154,19 @@ type DescribeVpcClassicLinkDnsSupportPaginator struct { // NewDescribeVpcClassicLinkDnsSupportPaginator returns a new // DescribeVpcClassicLinkDnsSupportPaginator func NewDescribeVpcClassicLinkDnsSupportPaginator(client DescribeVpcClassicLinkDnsSupportAPIClient, params *DescribeVpcClassicLinkDnsSupportInput, optFns ...func(*DescribeVpcClassicLinkDnsSupportPaginatorOptions)) *DescribeVpcClassicLinkDnsSupportPaginator { + if params == nil { + params = &DescribeVpcClassicLinkDnsSupportInput{} + } + options := DescribeVpcClassicLinkDnsSupportPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults + if params.MaxResults != nil { + options.Limit = *params.MaxResults } for _, fn := range optFns { fn(&options) } - if params == nil { - params = &DescribeVpcClassicLinkDnsSupportInput{} - } - return &DescribeVpcClassicLinkDnsSupportPaginator{ options: options, client: client, @@ -189,7 +189,11 @@ func (p *DescribeVpcClassicLinkDnsSupportPaginator) NextPage(ctx context.Context params := *p.params params.NextToken = p.nextToken - params.MaxResults = p.options.Limit + var limit *int32 + if p.options.Limit > 0 { + limit = &p.options.Limit + } + params.MaxResults = limit result, err := p.client.DescribeVpcClassicLinkDnsSupport(ctx, ¶ms, optFns...) if err != nil { diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeVpcEndpointConnectionNotifications.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeVpcEndpointConnectionNotifications.go index b5e290452..7a33135c8 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeVpcEndpointConnectionNotifications.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeVpcEndpointConnectionNotifications.go @@ -19,7 +19,7 @@ func (c *Client) DescribeVpcEndpointConnectionNotifications(ctx context.Context, params = &DescribeVpcEndpointConnectionNotificationsInput{} } - result, metadata, err := c.invokeOperation(ctx, "DescribeVpcEndpointConnectionNotifications", params, optFns, addOperationDescribeVpcEndpointConnectionNotificationsMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "DescribeVpcEndpointConnectionNotifications", params, optFns, c.addOperationDescribeVpcEndpointConnectionNotificationsMiddlewares) if err != nil { return nil, err } @@ -38,7 +38,7 @@ type DescribeVpcEndpointConnectionNotificationsInput struct { // 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 + DryRun *bool // One or more filters. // @@ -62,7 +62,7 @@ type DescribeVpcEndpointConnectionNotificationsInput struct { // The maximum number of results to return in a single call. To retrieve the // remaining results, make another request with the returned NextToken value. - MaxResults int32 + MaxResults *int32 // The token to request the next page of results. NextToken *string @@ -81,7 +81,7 @@ type DescribeVpcEndpointConnectionNotificationsOutput struct { ResultMetadata middleware.Metadata } -func addOperationDescribeVpcEndpointConnectionNotificationsMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationDescribeVpcEndpointConnectionNotificationsMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeVpcEndpointConnectionNotifications{}, middleware.After) if err != nil { return err @@ -174,19 +174,19 @@ type DescribeVpcEndpointConnectionNotificationsPaginator struct { // NewDescribeVpcEndpointConnectionNotificationsPaginator returns a new // DescribeVpcEndpointConnectionNotificationsPaginator func NewDescribeVpcEndpointConnectionNotificationsPaginator(client DescribeVpcEndpointConnectionNotificationsAPIClient, params *DescribeVpcEndpointConnectionNotificationsInput, optFns ...func(*DescribeVpcEndpointConnectionNotificationsPaginatorOptions)) *DescribeVpcEndpointConnectionNotificationsPaginator { + if params == nil { + params = &DescribeVpcEndpointConnectionNotificationsInput{} + } + options := DescribeVpcEndpointConnectionNotificationsPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults + if params.MaxResults != nil { + options.Limit = *params.MaxResults } for _, fn := range optFns { fn(&options) } - if params == nil { - params = &DescribeVpcEndpointConnectionNotificationsInput{} - } - return &DescribeVpcEndpointConnectionNotificationsPaginator{ options: options, client: client, @@ -209,7 +209,11 @@ func (p *DescribeVpcEndpointConnectionNotificationsPaginator) NextPage(ctx conte params := *p.params params.NextToken = p.nextToken - params.MaxResults = p.options.Limit + var limit *int32 + if p.options.Limit > 0 { + limit = &p.options.Limit + } + params.MaxResults = limit result, err := p.client.DescribeVpcEndpointConnectionNotifications(ctx, ¶ms, optFns...) if err != nil { diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeVpcEndpointConnections.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeVpcEndpointConnections.go index 94d23009c..7c1fff1fa 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeVpcEndpointConnections.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeVpcEndpointConnections.go @@ -19,7 +19,7 @@ func (c *Client) DescribeVpcEndpointConnections(ctx context.Context, params *Des params = &DescribeVpcEndpointConnectionsInput{} } - result, metadata, err := c.invokeOperation(ctx, "DescribeVpcEndpointConnections", params, optFns, addOperationDescribeVpcEndpointConnectionsMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "DescribeVpcEndpointConnections", params, optFns, c.addOperationDescribeVpcEndpointConnectionsMiddlewares) if err != nil { return nil, err } @@ -35,7 +35,7 @@ type DescribeVpcEndpointConnectionsInput struct { // 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 + DryRun *bool // One or more filters. // @@ -56,7 +56,7 @@ type DescribeVpcEndpointConnectionsInput struct { // remaining results of the initial request can be seen by sending another request // with the returned NextToken value. This value can be between 5 and 1,000; if // MaxResults is given a value larger than 1,000, only 1,000 results are returned. - MaxResults int32 + MaxResults *int32 // The token to retrieve the next page of results. NextToken *string @@ -75,7 +75,7 @@ type DescribeVpcEndpointConnectionsOutput struct { ResultMetadata middleware.Metadata } -func addOperationDescribeVpcEndpointConnectionsMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationDescribeVpcEndpointConnectionsMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeVpcEndpointConnections{}, middleware.After) if err != nil { return err @@ -170,19 +170,19 @@ type DescribeVpcEndpointConnectionsPaginator struct { // NewDescribeVpcEndpointConnectionsPaginator returns a new // DescribeVpcEndpointConnectionsPaginator func NewDescribeVpcEndpointConnectionsPaginator(client DescribeVpcEndpointConnectionsAPIClient, params *DescribeVpcEndpointConnectionsInput, optFns ...func(*DescribeVpcEndpointConnectionsPaginatorOptions)) *DescribeVpcEndpointConnectionsPaginator { + if params == nil { + params = &DescribeVpcEndpointConnectionsInput{} + } + options := DescribeVpcEndpointConnectionsPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults + if params.MaxResults != nil { + options.Limit = *params.MaxResults } for _, fn := range optFns { fn(&options) } - if params == nil { - params = &DescribeVpcEndpointConnectionsInput{} - } - return &DescribeVpcEndpointConnectionsPaginator{ options: options, client: client, @@ -205,7 +205,11 @@ func (p *DescribeVpcEndpointConnectionsPaginator) NextPage(ctx context.Context, params := *p.params params.NextToken = p.nextToken - params.MaxResults = p.options.Limit + var limit *int32 + if p.options.Limit > 0 { + limit = &p.options.Limit + } + params.MaxResults = limit result, err := p.client.DescribeVpcEndpointConnections(ctx, ¶ms, optFns...) if err != nil { diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeVpcEndpointServiceConfigurations.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeVpcEndpointServiceConfigurations.go index 0a15d2c6a..623674398 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeVpcEndpointServiceConfigurations.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeVpcEndpointServiceConfigurations.go @@ -19,7 +19,7 @@ func (c *Client) DescribeVpcEndpointServiceConfigurations(ctx context.Context, p params = &DescribeVpcEndpointServiceConfigurationsInput{} } - result, metadata, err := c.invokeOperation(ctx, "DescribeVpcEndpointServiceConfigurations", params, optFns, addOperationDescribeVpcEndpointServiceConfigurationsMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "DescribeVpcEndpointServiceConfigurations", params, optFns, c.addOperationDescribeVpcEndpointServiceConfigurationsMiddlewares) if err != nil { return nil, err } @@ -35,7 +35,7 @@ type DescribeVpcEndpointServiceConfigurationsInput struct { // 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 + DryRun *bool // One or more filters. // @@ -62,7 +62,7 @@ type DescribeVpcEndpointServiceConfigurationsInput struct { // remaining results of the initial request can be seen by sending another request // with the returned NextToken value. This value can be between 5 and 1,000; if // MaxResults is given a value larger than 1,000, only 1,000 results are returned. - MaxResults int32 + MaxResults *int32 // The token to retrieve the next page of results. NextToken *string @@ -84,7 +84,7 @@ type DescribeVpcEndpointServiceConfigurationsOutput struct { ResultMetadata middleware.Metadata } -func addOperationDescribeVpcEndpointServiceConfigurationsMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationDescribeVpcEndpointServiceConfigurationsMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeVpcEndpointServiceConfigurations{}, middleware.After) if err != nil { return err @@ -179,19 +179,19 @@ type DescribeVpcEndpointServiceConfigurationsPaginator struct { // NewDescribeVpcEndpointServiceConfigurationsPaginator returns a new // DescribeVpcEndpointServiceConfigurationsPaginator func NewDescribeVpcEndpointServiceConfigurationsPaginator(client DescribeVpcEndpointServiceConfigurationsAPIClient, params *DescribeVpcEndpointServiceConfigurationsInput, optFns ...func(*DescribeVpcEndpointServiceConfigurationsPaginatorOptions)) *DescribeVpcEndpointServiceConfigurationsPaginator { + if params == nil { + params = &DescribeVpcEndpointServiceConfigurationsInput{} + } + options := DescribeVpcEndpointServiceConfigurationsPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults + if params.MaxResults != nil { + options.Limit = *params.MaxResults } for _, fn := range optFns { fn(&options) } - if params == nil { - params = &DescribeVpcEndpointServiceConfigurationsInput{} - } - return &DescribeVpcEndpointServiceConfigurationsPaginator{ options: options, client: client, @@ -214,7 +214,11 @@ func (p *DescribeVpcEndpointServiceConfigurationsPaginator) NextPage(ctx context params := *p.params params.NextToken = p.nextToken - params.MaxResults = p.options.Limit + var limit *int32 + if p.options.Limit > 0 { + limit = &p.options.Limit + } + params.MaxResults = limit result, err := p.client.DescribeVpcEndpointServiceConfigurations(ctx, ¶ms, optFns...) if err != nil { diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeVpcEndpointServicePermissions.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeVpcEndpointServicePermissions.go index 84cbb448e..d78c4adac 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeVpcEndpointServicePermissions.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeVpcEndpointServicePermissions.go @@ -19,7 +19,7 @@ func (c *Client) DescribeVpcEndpointServicePermissions(ctx context.Context, para params = &DescribeVpcEndpointServicePermissionsInput{} } - result, metadata, err := c.invokeOperation(ctx, "DescribeVpcEndpointServicePermissions", params, optFns, addOperationDescribeVpcEndpointServicePermissionsMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "DescribeVpcEndpointServicePermissions", params, optFns, c.addOperationDescribeVpcEndpointServicePermissionsMiddlewares) if err != nil { return nil, err } @@ -40,7 +40,7 @@ type DescribeVpcEndpointServicePermissionsInput struct { // 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 + DryRun *bool // One or more filters. // @@ -54,7 +54,7 @@ type DescribeVpcEndpointServicePermissionsInput struct { // remaining results of the initial request can be seen by sending another request // with the returned NextToken value. This value can be between 5 and 1,000; if // MaxResults is given a value larger than 1,000, only 1,000 results are returned. - MaxResults int32 + MaxResults *int32 // The token to retrieve the next page of results. NextToken *string @@ -73,7 +73,7 @@ type DescribeVpcEndpointServicePermissionsOutput struct { ResultMetadata middleware.Metadata } -func addOperationDescribeVpcEndpointServicePermissionsMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationDescribeVpcEndpointServicePermissionsMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeVpcEndpointServicePermissions{}, middleware.After) if err != nil { return err @@ -171,19 +171,19 @@ type DescribeVpcEndpointServicePermissionsPaginator struct { // NewDescribeVpcEndpointServicePermissionsPaginator returns a new // DescribeVpcEndpointServicePermissionsPaginator func NewDescribeVpcEndpointServicePermissionsPaginator(client DescribeVpcEndpointServicePermissionsAPIClient, params *DescribeVpcEndpointServicePermissionsInput, optFns ...func(*DescribeVpcEndpointServicePermissionsPaginatorOptions)) *DescribeVpcEndpointServicePermissionsPaginator { + if params == nil { + params = &DescribeVpcEndpointServicePermissionsInput{} + } + options := DescribeVpcEndpointServicePermissionsPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults + if params.MaxResults != nil { + options.Limit = *params.MaxResults } for _, fn := range optFns { fn(&options) } - if params == nil { - params = &DescribeVpcEndpointServicePermissionsInput{} - } - return &DescribeVpcEndpointServicePermissionsPaginator{ options: options, client: client, @@ -206,7 +206,11 @@ func (p *DescribeVpcEndpointServicePermissionsPaginator) NextPage(ctx context.Co params := *p.params params.NextToken = p.nextToken - params.MaxResults = p.options.Limit + var limit *int32 + if p.options.Limit > 0 { + limit = &p.options.Limit + } + params.MaxResults = limit result, err := p.client.DescribeVpcEndpointServicePermissions(ctx, ¶ms, optFns...) if err != nil { diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeVpcEndpointServices.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeVpcEndpointServices.go index 9a1bc5a49..790e6497f 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeVpcEndpointServices.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeVpcEndpointServices.go @@ -12,18 +12,18 @@ import ( ) // Describes available services to which you can create a VPC endpoint. When the -// service provider and the consumer have different accounts multiple Availability -// Zones, and the consumer views the VPC endpoint service information, the response -// only includes the common Availability Zones. For example, when the service -// provider account uses us-east-1a and us-east-1c and the consumer uses us-east-1a -// and us-east-1a and us-east-1b, the response includes the VPC endpoint services -// in the common Availability Zone, us-east-1a. +// service provider and the consumer have different accounts in multiple +// Availability Zones, and the consumer views the VPC endpoint service information, +// the response only includes the common Availability Zones. For example, when the +// service provider account uses us-east-1a and us-east-1c and the consumer uses +// us-east-1a and us-east-1b, the response includes the VPC endpoint services in +// the common Availability Zone, us-east-1a. func (c *Client) DescribeVpcEndpointServices(ctx context.Context, params *DescribeVpcEndpointServicesInput, optFns ...func(*Options)) (*DescribeVpcEndpointServicesOutput, error) { if params == nil { params = &DescribeVpcEndpointServicesInput{} } - result, metadata, err := c.invokeOperation(ctx, "DescribeVpcEndpointServices", params, optFns, addOperationDescribeVpcEndpointServicesMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "DescribeVpcEndpointServices", params, optFns, c.addOperationDescribeVpcEndpointServicesMiddlewares) if err != nil { return nil, err } @@ -40,27 +40,30 @@ type DescribeVpcEndpointServicesInput struct { // 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 + DryRun *bool // One or more filters. // // * service-name - The name of the service. // - // * 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. + // * service-type + // - The type of service (Interface | Gateway). // - // * 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: - 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. Filters []types.Filter // The maximum number of items to return for this request. The request returns a // token that you can specify in a subsequent call to get the next set of results. // Constraint: If the value is greater than 1,000, we return only 1,000 items. - MaxResults int32 + MaxResults *int32 // The token for the next set of items to return. (You received this token from a // prior call.) @@ -87,7 +90,7 @@ type DescribeVpcEndpointServicesOutput struct { ResultMetadata middleware.Metadata } -func addOperationDescribeVpcEndpointServicesMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationDescribeVpcEndpointServicesMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeVpcEndpointServices{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeVpcEndpoints.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeVpcEndpoints.go index ab0bb942a..e38230824 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeVpcEndpoints.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeVpcEndpoints.go @@ -18,7 +18,7 @@ func (c *Client) DescribeVpcEndpoints(ctx context.Context, params *DescribeVpcEn params = &DescribeVpcEndpointsInput{} } - result, metadata, err := c.invokeOperation(ctx, "DescribeVpcEndpoints", params, optFns, addOperationDescribeVpcEndpointsMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "DescribeVpcEndpoints", params, optFns, c.addOperationDescribeVpcEndpointsMiddlewares) if err != nil { return nil, err } @@ -35,7 +35,7 @@ type DescribeVpcEndpointsInput struct { // 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 + DryRun *bool // One or more filters. // @@ -68,7 +68,7 @@ type DescribeVpcEndpointsInput struct { // The maximum number of items to return for this request. The request returns a // token that you can specify in a subsequent call to get the next set of results. // Constraint: If the value is greater than 1,000, we return only 1,000 items. - MaxResults int32 + MaxResults *int32 // The token for the next set of items to return. (You received this token from a // prior call.) @@ -92,7 +92,7 @@ type DescribeVpcEndpointsOutput struct { ResultMetadata middleware.Metadata } -func addOperationDescribeVpcEndpointsMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationDescribeVpcEndpointsMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeVpcEndpoints{}, middleware.After) if err != nil { return err @@ -184,19 +184,19 @@ type DescribeVpcEndpointsPaginator struct { // NewDescribeVpcEndpointsPaginator returns a new DescribeVpcEndpointsPaginator func NewDescribeVpcEndpointsPaginator(client DescribeVpcEndpointsAPIClient, params *DescribeVpcEndpointsInput, optFns ...func(*DescribeVpcEndpointsPaginatorOptions)) *DescribeVpcEndpointsPaginator { + if params == nil { + params = &DescribeVpcEndpointsInput{} + } + options := DescribeVpcEndpointsPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults + if params.MaxResults != nil { + options.Limit = *params.MaxResults } for _, fn := range optFns { fn(&options) } - if params == nil { - params = &DescribeVpcEndpointsInput{} - } - return &DescribeVpcEndpointsPaginator{ options: options, client: client, @@ -219,7 +219,11 @@ func (p *DescribeVpcEndpointsPaginator) NextPage(ctx context.Context, optFns ... params := *p.params params.NextToken = p.nextToken - params.MaxResults = p.options.Limit + var limit *int32 + if p.options.Limit > 0 { + limit = &p.options.Limit + } + params.MaxResults = limit result, err := p.client.DescribeVpcEndpoints(ctx, ¶ms, optFns...) if err != nil { 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 6057ff653..e7613faa1 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 @@ -4,12 +4,18 @@ package ec2 import ( "context" + "errors" "fmt" awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" "github.com/aws/aws-sdk-go-v2/aws/signer/v4" "github.com/aws/aws-sdk-go-v2/service/ec2/types" + smithy "github.com/aws/smithy-go" "github.com/aws/smithy-go/middleware" + smithytime "github.com/aws/smithy-go/time" smithyhttp "github.com/aws/smithy-go/transport/http" + smithywaiter "github.com/aws/smithy-go/waiter" + "github.com/jmespath/go-jmespath" + "time" ) // Describes one or more of your VPC peering connections. @@ -18,7 +24,7 @@ func (c *Client) DescribeVpcPeeringConnections(ctx context.Context, params *Desc params = &DescribeVpcPeeringConnectionsInput{} } - result, metadata, err := c.invokeOperation(ctx, "DescribeVpcPeeringConnections", params, optFns, addOperationDescribeVpcPeeringConnectionsMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "DescribeVpcPeeringConnections", params, optFns, c.addOperationDescribeVpcPeeringConnectionsMiddlewares) if err != nil { return nil, err } @@ -34,7 +40,7 @@ type DescribeVpcPeeringConnectionsInput struct { // 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 + DryRun *bool // One or more filters. // @@ -82,7 +88,7 @@ type DescribeVpcPeeringConnectionsInput struct { // The maximum number of results to return with a single call. To retrieve the // remaining results, make another call with the returned nextToken value. - MaxResults int32 + MaxResults *int32 // The token for the next page of results. NextToken *string @@ -105,7 +111,7 @@ type DescribeVpcPeeringConnectionsOutput struct { ResultMetadata middleware.Metadata } -func addOperationDescribeVpcPeeringConnectionsMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationDescribeVpcPeeringConnectionsMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeVpcPeeringConnections{}, middleware.After) if err != nil { return err @@ -198,19 +204,19 @@ type DescribeVpcPeeringConnectionsPaginator struct { // NewDescribeVpcPeeringConnectionsPaginator returns a new // DescribeVpcPeeringConnectionsPaginator func NewDescribeVpcPeeringConnectionsPaginator(client DescribeVpcPeeringConnectionsAPIClient, params *DescribeVpcPeeringConnectionsInput, optFns ...func(*DescribeVpcPeeringConnectionsPaginatorOptions)) *DescribeVpcPeeringConnectionsPaginator { + if params == nil { + params = &DescribeVpcPeeringConnectionsInput{} + } + options := DescribeVpcPeeringConnectionsPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults + if params.MaxResults != nil { + options.Limit = *params.MaxResults } for _, fn := range optFns { fn(&options) } - if params == nil { - params = &DescribeVpcPeeringConnectionsInput{} - } - return &DescribeVpcPeeringConnectionsPaginator{ options: options, client: client, @@ -233,7 +239,11 @@ func (p *DescribeVpcPeeringConnectionsPaginator) NextPage(ctx context.Context, o params := *p.params params.NextToken = p.nextToken - params.MaxResults = p.options.Limit + var limit *int32 + if p.options.Limit > 0 { + limit = &p.options.Limit + } + params.MaxResults = limit result, err := p.client.DescribeVpcPeeringConnections(ctx, ¶ms, optFns...) if err != nil { @@ -251,6 +261,342 @@ func (p *DescribeVpcPeeringConnectionsPaginator) NextPage(ctx context.Context, o return result, nil } +// VpcPeeringConnectionDeletedWaiterOptions are waiter options for +// VpcPeeringConnectionDeletedWaiter +type VpcPeeringConnectionDeletedWaiterOptions struct { + + // Set of options to modify how an operation is invoked. These apply to all + // operations invoked for this client. Use functional options on operation call to + // modify this list for per operation behavior. + APIOptions []func(*middleware.Stack) error + + // MinDelay is the minimum amount of time to delay between retries. If unset, + // VpcPeeringConnectionDeletedWaiter will use default minimum delay of 15 seconds. + // Note that MinDelay must resolve to a value lesser than or equal to the MaxDelay. + MinDelay time.Duration + + // MaxDelay is the maximum amount of time to delay between retries. If unset or set + // to zero, VpcPeeringConnectionDeletedWaiter will use default max delay of 120 + // seconds. Note that MaxDelay must resolve to value greater than or equal to the + // MinDelay. + MaxDelay time.Duration + + // LogWaitAttempts is used to enable logging for waiter retry attempts + LogWaitAttempts bool + + // Retryable is function that can be used to override the service defined + // waiter-behavior based on operation output, or returned error. This function is + // used by the waiter to decide if a state is retryable or a terminal state. By + // default service-modeled logic will populate this option. This option can thus be + // used to define a custom waiter state with fall-back to service-modeled waiter + // state mutators.The function returns an error in case of a failure state. In case + // of retry state, this function returns a bool value of true and nil error, while + // in case of success it returns a bool value of false and nil error. + Retryable func(context.Context, *DescribeVpcPeeringConnectionsInput, *DescribeVpcPeeringConnectionsOutput, error) (bool, error) +} + +// VpcPeeringConnectionDeletedWaiter defines the waiters for +// VpcPeeringConnectionDeleted +type VpcPeeringConnectionDeletedWaiter struct { + client DescribeVpcPeeringConnectionsAPIClient + + options VpcPeeringConnectionDeletedWaiterOptions +} + +// NewVpcPeeringConnectionDeletedWaiter constructs a +// VpcPeeringConnectionDeletedWaiter. +func NewVpcPeeringConnectionDeletedWaiter(client DescribeVpcPeeringConnectionsAPIClient, optFns ...func(*VpcPeeringConnectionDeletedWaiterOptions)) *VpcPeeringConnectionDeletedWaiter { + options := VpcPeeringConnectionDeletedWaiterOptions{} + options.MinDelay = 15 * time.Second + options.MaxDelay = 120 * time.Second + options.Retryable = vpcPeeringConnectionDeletedStateRetryable + + for _, fn := range optFns { + fn(&options) + } + return &VpcPeeringConnectionDeletedWaiter{ + client: client, + options: options, + } +} + +// Wait calls the waiter function for VpcPeeringConnectionDeleted waiter. The +// maxWaitDur is the maximum wait duration the waiter will wait. The maxWaitDur is +// required and must be greater than zero. +func (w *VpcPeeringConnectionDeletedWaiter) Wait(ctx context.Context, params *DescribeVpcPeeringConnectionsInput, maxWaitDur time.Duration, optFns ...func(*VpcPeeringConnectionDeletedWaiterOptions)) error { + if maxWaitDur <= 0 { + return fmt.Errorf("maximum wait time for waiter must be greater than zero") + } + + options := w.options + for _, fn := range optFns { + fn(&options) + } + + if options.MaxDelay <= 0 { + options.MaxDelay = 120 * time.Second + } + + if options.MinDelay > options.MaxDelay { + return fmt.Errorf("minimum waiter delay %v must be lesser than or equal to maximum waiter delay of %v.", options.MinDelay, options.MaxDelay) + } + + ctx, cancelFn := context.WithTimeout(ctx, maxWaitDur) + defer cancelFn() + + logger := smithywaiter.Logger{} + remainingTime := maxWaitDur + + var attempt int64 + for { + + attempt++ + apiOptions := options.APIOptions + start := time.Now() + + if options.LogWaitAttempts { + logger.Attempt = attempt + apiOptions = append([]func(*middleware.Stack) error{}, options.APIOptions...) + apiOptions = append(apiOptions, logger.AddLogger) + } + + out, err := w.client.DescribeVpcPeeringConnections(ctx, params, func(o *Options) { + o.APIOptions = append(o.APIOptions, apiOptions...) + }) + + retryable, err := options.Retryable(ctx, params, out, err) + if err != nil { + return err + } + if !retryable { + return nil + } + + remainingTime -= time.Since(start) + if remainingTime < options.MinDelay || remainingTime <= 0 { + break + } + + // compute exponential backoff between waiter retries + delay, err := smithywaiter.ComputeDelay( + attempt, options.MinDelay, options.MaxDelay, remainingTime, + ) + if err != nil { + return fmt.Errorf("error computing waiter delay, %w", err) + } + + remainingTime -= delay + // sleep for the delay amount before invoking a request + if err := smithytime.SleepWithContext(ctx, delay); err != nil { + return fmt.Errorf("request cancelled while waiting, %w", err) + } + } + return fmt.Errorf("exceeded max wait time for VpcPeeringConnectionDeleted waiter") +} + +func vpcPeeringConnectionDeletedStateRetryable(ctx context.Context, input *DescribeVpcPeeringConnectionsInput, output *DescribeVpcPeeringConnectionsOutput, err error) (bool, error) { + + if err == nil { + pathValue, err := jmespath.Search("VpcPeeringConnections[].Status.Code", output) + if err != nil { + return false, fmt.Errorf("error evaluating waiter state: %w", err) + } + + expectedValue := "deleted" + var match = true + listOfValues, ok := pathValue.([]interface{}) + if !ok { + return false, fmt.Errorf("waiter comparator expected list got %T", pathValue) + } + + if len(listOfValues) == 0 { + match = false + } + for _, v := range listOfValues { + value, ok := v.(types.VpcPeeringConnectionStateReasonCode) + if !ok { + return false, fmt.Errorf("waiter comparator expected types.VpcPeeringConnectionStateReasonCode value, got %T", pathValue) + } + + if string(value) != expectedValue { + match = false + } + } + + if match { + return false, nil + } + } + + if err != nil { + var apiErr smithy.APIError + ok := errors.As(err, &apiErr) + if !ok { + return false, fmt.Errorf("expected err to be of type smithy.APIError, got %w", err) + } + + if "InvalidVpcPeeringConnectionID.NotFound" == apiErr.ErrorCode() { + return false, nil + } + } + + return true, nil +} + +// VpcPeeringConnectionExistsWaiterOptions are waiter options for +// VpcPeeringConnectionExistsWaiter +type VpcPeeringConnectionExistsWaiterOptions struct { + + // Set of options to modify how an operation is invoked. These apply to all + // operations invoked for this client. Use functional options on operation call to + // modify this list for per operation behavior. + APIOptions []func(*middleware.Stack) error + + // MinDelay is the minimum amount of time to delay between retries. If unset, + // VpcPeeringConnectionExistsWaiter will use default minimum delay of 15 seconds. + // Note that MinDelay must resolve to a value lesser than or equal to the MaxDelay. + MinDelay time.Duration + + // MaxDelay is the maximum amount of time to delay between retries. If unset or set + // to zero, VpcPeeringConnectionExistsWaiter will use default max delay of 120 + // seconds. Note that MaxDelay must resolve to value greater than or equal to the + // MinDelay. + MaxDelay time.Duration + + // LogWaitAttempts is used to enable logging for waiter retry attempts + LogWaitAttempts bool + + // Retryable is function that can be used to override the service defined + // waiter-behavior based on operation output, or returned error. This function is + // used by the waiter to decide if a state is retryable or a terminal state. By + // default service-modeled logic will populate this option. This option can thus be + // used to define a custom waiter state with fall-back to service-modeled waiter + // state mutators.The function returns an error in case of a failure state. In case + // of retry state, this function returns a bool value of true and nil error, while + // in case of success it returns a bool value of false and nil error. + Retryable func(context.Context, *DescribeVpcPeeringConnectionsInput, *DescribeVpcPeeringConnectionsOutput, error) (bool, error) +} + +// VpcPeeringConnectionExistsWaiter defines the waiters for +// VpcPeeringConnectionExists +type VpcPeeringConnectionExistsWaiter struct { + client DescribeVpcPeeringConnectionsAPIClient + + options VpcPeeringConnectionExistsWaiterOptions +} + +// NewVpcPeeringConnectionExistsWaiter constructs a +// VpcPeeringConnectionExistsWaiter. +func NewVpcPeeringConnectionExistsWaiter(client DescribeVpcPeeringConnectionsAPIClient, optFns ...func(*VpcPeeringConnectionExistsWaiterOptions)) *VpcPeeringConnectionExistsWaiter { + options := VpcPeeringConnectionExistsWaiterOptions{} + options.MinDelay = 15 * time.Second + options.MaxDelay = 120 * time.Second + options.Retryable = vpcPeeringConnectionExistsStateRetryable + + for _, fn := range optFns { + fn(&options) + } + return &VpcPeeringConnectionExistsWaiter{ + client: client, + options: options, + } +} + +// Wait calls the waiter function for VpcPeeringConnectionExists waiter. The +// maxWaitDur is the maximum wait duration the waiter will wait. The maxWaitDur is +// required and must be greater than zero. +func (w *VpcPeeringConnectionExistsWaiter) Wait(ctx context.Context, params *DescribeVpcPeeringConnectionsInput, maxWaitDur time.Duration, optFns ...func(*VpcPeeringConnectionExistsWaiterOptions)) error { + if maxWaitDur <= 0 { + return fmt.Errorf("maximum wait time for waiter must be greater than zero") + } + + options := w.options + for _, fn := range optFns { + fn(&options) + } + + if options.MaxDelay <= 0 { + options.MaxDelay = 120 * time.Second + } + + if options.MinDelay > options.MaxDelay { + return fmt.Errorf("minimum waiter delay %v must be lesser than or equal to maximum waiter delay of %v.", options.MinDelay, options.MaxDelay) + } + + ctx, cancelFn := context.WithTimeout(ctx, maxWaitDur) + defer cancelFn() + + logger := smithywaiter.Logger{} + remainingTime := maxWaitDur + + var attempt int64 + for { + + attempt++ + apiOptions := options.APIOptions + start := time.Now() + + if options.LogWaitAttempts { + logger.Attempt = attempt + apiOptions = append([]func(*middleware.Stack) error{}, options.APIOptions...) + apiOptions = append(apiOptions, logger.AddLogger) + } + + out, err := w.client.DescribeVpcPeeringConnections(ctx, params, func(o *Options) { + o.APIOptions = append(o.APIOptions, apiOptions...) + }) + + retryable, err := options.Retryable(ctx, params, out, err) + if err != nil { + return err + } + if !retryable { + return nil + } + + remainingTime -= time.Since(start) + if remainingTime < options.MinDelay || remainingTime <= 0 { + break + } + + // compute exponential backoff between waiter retries + delay, err := smithywaiter.ComputeDelay( + attempt, options.MinDelay, options.MaxDelay, remainingTime, + ) + if err != nil { + return fmt.Errorf("error computing waiter delay, %w", err) + } + + remainingTime -= delay + // sleep for the delay amount before invoking a request + if err := smithytime.SleepWithContext(ctx, delay); err != nil { + return fmt.Errorf("request cancelled while waiting, %w", err) + } + } + return fmt.Errorf("exceeded max wait time for VpcPeeringConnectionExists waiter") +} + +func vpcPeeringConnectionExistsStateRetryable(ctx context.Context, input *DescribeVpcPeeringConnectionsInput, output *DescribeVpcPeeringConnectionsOutput, err error) (bool, error) { + + if err == nil { + return false, nil + } + + if err != nil { + var apiErr smithy.APIError + ok := errors.As(err, &apiErr) + if !ok { + return false, fmt.Errorf("expected err to be of type smithy.APIError, got %w", err) + } + + if "InvalidVpcPeeringConnectionID.NotFound" == apiErr.ErrorCode() { + return true, nil + } + } + + return true, nil +} + func newServiceMetadataMiddleware_opDescribeVpcPeeringConnections(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, 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 9cb2c0a69..7dd9d8ffb 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 @@ -4,10 +4,12 @@ package ec2 import ( "context" + "errors" "fmt" awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" "github.com/aws/aws-sdk-go-v2/aws/signer/v4" "github.com/aws/aws-sdk-go-v2/service/ec2/types" + smithy "github.com/aws/smithy-go" "github.com/aws/smithy-go/middleware" smithytime "github.com/aws/smithy-go/time" smithyhttp "github.com/aws/smithy-go/transport/http" @@ -22,7 +24,7 @@ func (c *Client) DescribeVpcs(ctx context.Context, params *DescribeVpcsInput, op params = &DescribeVpcsInput{} } - result, metadata, err := c.invokeOperation(ctx, "DescribeVpcs", params, optFns, addOperationDescribeVpcsMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "DescribeVpcs", params, optFns, c.addOperationDescribeVpcsMiddlewares) if err != nil { return nil, err } @@ -38,7 +40,7 @@ type DescribeVpcsInput struct { // 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 + DryRun *bool // One or more filters. // @@ -97,7 +99,7 @@ type DescribeVpcsInput struct { // The maximum number of results to return with a single call. To retrieve the // remaining results, make another call with the returned nextToken value. - MaxResults int32 + MaxResults *int32 // The token for the next page of results. NextToken *string @@ -119,7 +121,7 @@ type DescribeVpcsOutput struct { ResultMetadata middleware.Metadata } -func addOperationDescribeVpcsMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationDescribeVpcsMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeVpcs{}, middleware.After) if err != nil { return err @@ -208,19 +210,19 @@ type DescribeVpcsPaginator struct { // NewDescribeVpcsPaginator returns a new DescribeVpcsPaginator func NewDescribeVpcsPaginator(client DescribeVpcsAPIClient, params *DescribeVpcsInput, optFns ...func(*DescribeVpcsPaginatorOptions)) *DescribeVpcsPaginator { + if params == nil { + params = &DescribeVpcsInput{} + } + options := DescribeVpcsPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults + if params.MaxResults != nil { + options.Limit = *params.MaxResults } for _, fn := range optFns { fn(&options) } - if params == nil { - params = &DescribeVpcsInput{} - } - return &DescribeVpcsPaginator{ options: options, client: client, @@ -243,7 +245,11 @@ func (p *DescribeVpcsPaginator) NextPage(ctx context.Context, optFns ...func(*Op params := *p.params params.NextToken = p.nextToken - params.MaxResults = p.options.Limit + var limit *int32 + if p.options.Limit > 0 { + limit = &p.options.Limit + } + params.MaxResults = limit result, err := p.client.DescribeVpcs(ctx, ¶ms, optFns...) if err != nil { @@ -400,16 +406,21 @@ func vpcAvailableStateRetryable(ctx context.Context, input *DescribeVpcsInput, o expectedValue := "available" var match = true - listOfValues, ok := pathValue.([]string) + listOfValues, ok := pathValue.([]interface{}) if !ok { - return false, fmt.Errorf("waiter comparator expected []string value got %T", pathValue) + return false, fmt.Errorf("waiter comparator expected list got %T", pathValue) } if len(listOfValues) == 0 { match = false } for _, v := range listOfValues { - if v != expectedValue { + value, ok := v.(types.VpcState) + if !ok { + return false, fmt.Errorf("waiter comparator expected types.VpcState value, got %T", pathValue) + } + + if string(value) != expectedValue { match = false } } @@ -422,6 +433,156 @@ func vpcAvailableStateRetryable(ctx context.Context, input *DescribeVpcsInput, o return true, nil } +// VpcExistsWaiterOptions are waiter options for VpcExistsWaiter +type VpcExistsWaiterOptions struct { + + // Set of options to modify how an operation is invoked. These apply to all + // operations invoked for this client. Use functional options on operation call to + // modify this list for per operation behavior. + APIOptions []func(*middleware.Stack) error + + // MinDelay is the minimum amount of time to delay between retries. If unset, + // VpcExistsWaiter will use default minimum delay of 1 seconds. Note that MinDelay + // must resolve to a value lesser than or equal to the MaxDelay. + MinDelay time.Duration + + // MaxDelay is the maximum amount of time to delay between retries. If unset or set + // to zero, VpcExistsWaiter will use default max delay of 120 seconds. Note that + // MaxDelay must resolve to value greater than or equal to the MinDelay. + MaxDelay time.Duration + + // LogWaitAttempts is used to enable logging for waiter retry attempts + LogWaitAttempts bool + + // Retryable is function that can be used to override the service defined + // waiter-behavior based on operation output, or returned error. This function is + // used by the waiter to decide if a state is retryable or a terminal state. By + // default service-modeled logic will populate this option. This option can thus be + // used to define a custom waiter state with fall-back to service-modeled waiter + // state mutators.The function returns an error in case of a failure state. In case + // of retry state, this function returns a bool value of true and nil error, while + // in case of success it returns a bool value of false and nil error. + Retryable func(context.Context, *DescribeVpcsInput, *DescribeVpcsOutput, error) (bool, error) +} + +// VpcExistsWaiter defines the waiters for VpcExists +type VpcExistsWaiter struct { + client DescribeVpcsAPIClient + + options VpcExistsWaiterOptions +} + +// NewVpcExistsWaiter constructs a VpcExistsWaiter. +func NewVpcExistsWaiter(client DescribeVpcsAPIClient, optFns ...func(*VpcExistsWaiterOptions)) *VpcExistsWaiter { + options := VpcExistsWaiterOptions{} + options.MinDelay = 1 * time.Second + options.MaxDelay = 120 * time.Second + options.Retryable = vpcExistsStateRetryable + + for _, fn := range optFns { + fn(&options) + } + return &VpcExistsWaiter{ + client: client, + options: options, + } +} + +// Wait calls the waiter function for VpcExists waiter. The maxWaitDur is the +// maximum wait duration the waiter will wait. The maxWaitDur is required and must +// be greater than zero. +func (w *VpcExistsWaiter) Wait(ctx context.Context, params *DescribeVpcsInput, maxWaitDur time.Duration, optFns ...func(*VpcExistsWaiterOptions)) error { + if maxWaitDur <= 0 { + return fmt.Errorf("maximum wait time for waiter must be greater than zero") + } + + options := w.options + for _, fn := range optFns { + fn(&options) + } + + if options.MaxDelay <= 0 { + options.MaxDelay = 120 * time.Second + } + + if options.MinDelay > options.MaxDelay { + return fmt.Errorf("minimum waiter delay %v must be lesser than or equal to maximum waiter delay of %v.", options.MinDelay, options.MaxDelay) + } + + ctx, cancelFn := context.WithTimeout(ctx, maxWaitDur) + defer cancelFn() + + logger := smithywaiter.Logger{} + remainingTime := maxWaitDur + + var attempt int64 + for { + + attempt++ + apiOptions := options.APIOptions + start := time.Now() + + if options.LogWaitAttempts { + logger.Attempt = attempt + apiOptions = append([]func(*middleware.Stack) error{}, options.APIOptions...) + apiOptions = append(apiOptions, logger.AddLogger) + } + + out, err := w.client.DescribeVpcs(ctx, params, func(o *Options) { + o.APIOptions = append(o.APIOptions, apiOptions...) + }) + + retryable, err := options.Retryable(ctx, params, out, err) + if err != nil { + return err + } + if !retryable { + return nil + } + + remainingTime -= time.Since(start) + if remainingTime < options.MinDelay || remainingTime <= 0 { + break + } + + // compute exponential backoff between waiter retries + delay, err := smithywaiter.ComputeDelay( + attempt, options.MinDelay, options.MaxDelay, remainingTime, + ) + if err != nil { + return fmt.Errorf("error computing waiter delay, %w", err) + } + + remainingTime -= delay + // sleep for the delay amount before invoking a request + if err := smithytime.SleepWithContext(ctx, delay); err != nil { + return fmt.Errorf("request cancelled while waiting, %w", err) + } + } + return fmt.Errorf("exceeded max wait time for VpcExists waiter") +} + +func vpcExistsStateRetryable(ctx context.Context, input *DescribeVpcsInput, output *DescribeVpcsOutput, err error) (bool, error) { + + if err == nil { + return false, nil + } + + if err != nil { + var apiErr smithy.APIError + ok := errors.As(err, &apiErr) + if !ok { + return false, fmt.Errorf("expected err to be of type smithy.APIError, got %w", err) + } + + if "InvalidVpcID.NotFound" == apiErr.ErrorCode() { + return true, nil + } + } + + return true, nil +} + func newServiceMetadataMiddleware_opDescribeVpcs(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeVpnConnections.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeVpnConnections.go index 6cb5d560a..86f1bb66d 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeVpnConnections.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeVpnConnections.go @@ -24,7 +24,7 @@ func (c *Client) DescribeVpnConnections(ctx context.Context, params *DescribeVpn params = &DescribeVpnConnectionsInput{} } - result, metadata, err := c.invokeOperation(ctx, "DescribeVpnConnections", params, optFns, addOperationDescribeVpnConnectionsMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "DescribeVpnConnections", params, optFns, c.addOperationDescribeVpnConnectionsMiddlewares) if err != nil { return nil, err } @@ -41,7 +41,7 @@ type DescribeVpnConnectionsInput struct { // 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 + DryRun *bool // One or more filters. // @@ -102,7 +102,7 @@ type DescribeVpnConnectionsOutput struct { ResultMetadata middleware.Metadata } -func addOperationDescribeVpnConnectionsMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationDescribeVpnConnectionsMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeVpnConnections{}, middleware.After) if err != nil { return err @@ -310,16 +310,21 @@ func vpnConnectionAvailableStateRetryable(ctx context.Context, input *DescribeVp expectedValue := "available" var match = true - listOfValues, ok := pathValue.([]string) + listOfValues, ok := pathValue.([]interface{}) if !ok { - return false, fmt.Errorf("waiter comparator expected []string value got %T", pathValue) + return false, fmt.Errorf("waiter comparator expected list got %T", pathValue) } if len(listOfValues) == 0 { match = false } for _, v := range listOfValues { - if v != expectedValue { + value, ok := v.(types.VpnState) + if !ok { + return false, fmt.Errorf("waiter comparator expected types.VpnState value, got %T", pathValue) + } + + if string(value) != expectedValue { match = false } } @@ -336,13 +341,18 @@ func vpnConnectionAvailableStateRetryable(ctx context.Context, input *DescribeVp } expectedValue := "deleting" - listOfValues, ok := pathValue.([]string) + listOfValues, ok := pathValue.([]interface{}) if !ok { - return false, fmt.Errorf("waiter comparator expected []string value got %T", pathValue) + return false, fmt.Errorf("waiter comparator expected list got %T", pathValue) } for _, v := range listOfValues { - if v == expectedValue { + value, ok := v.(types.VpnState) + if !ok { + return false, fmt.Errorf("waiter comparator expected types.VpnState value, got %T", pathValue) + } + + if string(value) == expectedValue { return false, fmt.Errorf("waiter state transitioned to Failure") } } @@ -355,13 +365,18 @@ func vpnConnectionAvailableStateRetryable(ctx context.Context, input *DescribeVp } expectedValue := "deleted" - listOfValues, ok := pathValue.([]string) + listOfValues, ok := pathValue.([]interface{}) if !ok { - return false, fmt.Errorf("waiter comparator expected []string value got %T", pathValue) + return false, fmt.Errorf("waiter comparator expected list got %T", pathValue) } for _, v := range listOfValues { - if v == expectedValue { + value, ok := v.(types.VpnState) + if !ok { + return false, fmt.Errorf("waiter comparator expected types.VpnState value, got %T", pathValue) + } + + if string(value) == expectedValue { return false, fmt.Errorf("waiter state transitioned to Failure") } } @@ -510,16 +525,21 @@ func vpnConnectionDeletedStateRetryable(ctx context.Context, input *DescribeVpnC expectedValue := "deleted" var match = true - listOfValues, ok := pathValue.([]string) + listOfValues, ok := pathValue.([]interface{}) if !ok { - return false, fmt.Errorf("waiter comparator expected []string value got %T", pathValue) + return false, fmt.Errorf("waiter comparator expected list got %T", pathValue) } if len(listOfValues) == 0 { match = false } for _, v := range listOfValues { - if v != expectedValue { + value, ok := v.(types.VpnState) + if !ok { + return false, fmt.Errorf("waiter comparator expected types.VpnState value, got %T", pathValue) + } + + if string(value) != expectedValue { match = false } } @@ -536,13 +556,18 @@ func vpnConnectionDeletedStateRetryable(ctx context.Context, input *DescribeVpnC } expectedValue := "pending" - listOfValues, ok := pathValue.([]string) + listOfValues, ok := pathValue.([]interface{}) if !ok { - return false, fmt.Errorf("waiter comparator expected []string value got %T", pathValue) + return false, fmt.Errorf("waiter comparator expected list got %T", pathValue) } for _, v := range listOfValues { - if v == expectedValue { + value, ok := v.(types.VpnState) + if !ok { + return false, fmt.Errorf("waiter comparator expected types.VpnState value, got %T", pathValue) + } + + if string(value) == expectedValue { return false, fmt.Errorf("waiter state transitioned to Failure") } } diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeVpnGateways.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeVpnGateways.go index dc73a601c..e04148397 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeVpnGateways.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeVpnGateways.go @@ -20,7 +20,7 @@ func (c *Client) DescribeVpnGateways(ctx context.Context, params *DescribeVpnGat params = &DescribeVpnGatewaysInput{} } - result, metadata, err := c.invokeOperation(ctx, "DescribeVpnGateways", params, optFns, addOperationDescribeVpnGatewaysMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "DescribeVpnGateways", params, optFns, c.addOperationDescribeVpnGatewaysMiddlewares) if err != nil { return nil, err } @@ -37,7 +37,7 @@ type DescribeVpnGatewaysInput struct { // 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 + DryRun *bool // One or more filters. // @@ -89,7 +89,7 @@ type DescribeVpnGatewaysOutput struct { ResultMetadata middleware.Metadata } -func addOperationDescribeVpnGatewaysMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationDescribeVpnGatewaysMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpDescribeVpnGateways{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DetachClassicLinkVpc.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DetachClassicLinkVpc.go index ddaf884d2..639613550 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DetachClassicLinkVpc.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DetachClassicLinkVpc.go @@ -18,7 +18,7 @@ func (c *Client) DetachClassicLinkVpc(ctx context.Context, params *DetachClassic params = &DetachClassicLinkVpcInput{} } - result, metadata, err := c.invokeOperation(ctx, "DetachClassicLinkVpc", params, optFns, addOperationDetachClassicLinkVpcMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "DetachClassicLinkVpc", params, optFns, c.addOperationDetachClassicLinkVpcMiddlewares) if err != nil { return nil, err } @@ -44,19 +44,19 @@ type DetachClassicLinkVpcInput struct { // 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 + DryRun *bool } type DetachClassicLinkVpcOutput struct { // Returns true if the request succeeds; otherwise, it returns an error. - Return bool + Return *bool // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata } -func addOperationDetachClassicLinkVpcMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationDetachClassicLinkVpcMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpDetachClassicLinkVpc{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DetachInternetGateway.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DetachInternetGateway.go index e721f6e4e..efd305e3b 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DetachInternetGateway.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DetachInternetGateway.go @@ -18,7 +18,7 @@ func (c *Client) DetachInternetGateway(ctx context.Context, params *DetachIntern params = &DetachInternetGatewayInput{} } - result, metadata, err := c.invokeOperation(ctx, "DetachInternetGateway", params, optFns, addOperationDetachInternetGatewayMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "DetachInternetGateway", params, optFns, c.addOperationDetachInternetGatewayMiddlewares) if err != nil { return nil, err } @@ -44,7 +44,7 @@ type DetachInternetGatewayInput struct { // 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 + DryRun *bool } type DetachInternetGatewayOutput struct { @@ -52,7 +52,7 @@ type DetachInternetGatewayOutput struct { ResultMetadata middleware.Metadata } -func addOperationDetachInternetGatewayMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationDetachInternetGatewayMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpDetachInternetGateway{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DetachNetworkInterface.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DetachNetworkInterface.go index f3fabe1f8..3088e99cd 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DetachNetworkInterface.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DetachNetworkInterface.go @@ -16,7 +16,7 @@ func (c *Client) DetachNetworkInterface(ctx context.Context, params *DetachNetwo params = &DetachNetworkInterfaceInput{} } - result, metadata, err := c.invokeOperation(ctx, "DetachNetworkInterface", params, optFns, addOperationDetachNetworkInterfaceMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "DetachNetworkInterface", params, optFns, c.addOperationDetachNetworkInterfaceMiddlewares) if err != nil { return nil, err } @@ -38,7 +38,7 @@ type DetachNetworkInterfaceInput struct { // 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 + DryRun *bool // Specifies whether to force a detachment. // @@ -56,7 +56,7 @@ type DetachNetworkInterfaceInput struct { // might not get updated. This means that the attributes associated with the // detached network interface might still be visible. The instance metadata will // get updated when you stop and start the instance. - Force bool + Force *bool } type DetachNetworkInterfaceOutput struct { @@ -64,7 +64,7 @@ type DetachNetworkInterfaceOutput struct { ResultMetadata middleware.Metadata } -func addOperationDetachNetworkInterfaceMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationDetachNetworkInterfaceMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpDetachNetworkInterface{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DetachVolume.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DetachVolume.go index 3a086e07a..4c4dbbc01 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DetachVolume.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DetachVolume.go @@ -29,7 +29,7 @@ func (c *Client) DetachVolume(ctx context.Context, params *DetachVolumeInput, op params = &DetachVolumeInput{} } - result, metadata, err := c.invokeOperation(ctx, "DetachVolume", params, optFns, addOperationDetachVolumeMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "DetachVolume", params, optFns, c.addOperationDetachVolumeMiddlewares) if err != nil { return nil, err } @@ -53,7 +53,7 @@ type DetachVolumeInput struct { // 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 + DryRun *bool // Forces detachment if the previous detachment attempt did not occur cleanly (for // example, logging into an instance, unmounting the volume, and detaching @@ -62,7 +62,7 @@ type DetachVolumeInput struct { // instance won't have an opportunity to flush file system caches or file system // metadata. If you use this option, you must perform file system check and repair // procedures. - Force bool + Force *bool // The ID of the instance. If you are detaching a Multi-Attach enabled volume, you // must specify an instance ID. @@ -76,7 +76,7 @@ type DetachVolumeOutput struct { AttachTime *time.Time // Indicates whether the EBS volume is deleted on instance termination. - DeleteOnTermination bool + DeleteOnTermination *bool // The device name. Device *string @@ -94,7 +94,7 @@ type DetachVolumeOutput struct { ResultMetadata middleware.Metadata } -func addOperationDetachVolumeMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationDetachVolumeMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpDetachVolume{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DetachVpnGateway.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DetachVpnGateway.go index 8725139f8..d2bca57a0 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DetachVpnGateway.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DetachVpnGateway.go @@ -22,7 +22,7 @@ func (c *Client) DetachVpnGateway(ctx context.Context, params *DetachVpnGatewayI params = &DetachVpnGatewayInput{} } - result, metadata, err := c.invokeOperation(ctx, "DetachVpnGateway", params, optFns, addOperationDetachVpnGatewayMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "DetachVpnGateway", params, optFns, c.addOperationDetachVpnGatewayMiddlewares) if err != nil { return nil, err } @@ -49,7 +49,7 @@ type DetachVpnGatewayInput struct { // 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 + DryRun *bool } type DetachVpnGatewayOutput struct { @@ -57,7 +57,7 @@ type DetachVpnGatewayOutput struct { ResultMetadata middleware.Metadata } -func addOperationDetachVpnGatewayMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationDetachVpnGatewayMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpDetachVpnGateway{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisableEbsEncryptionByDefault.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisableEbsEncryptionByDefault.go index 5b3678fcd..cfab8843f 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisableEbsEncryptionByDefault.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisableEbsEncryptionByDefault.go @@ -22,7 +22,7 @@ func (c *Client) DisableEbsEncryptionByDefault(ctx context.Context, params *Disa params = &DisableEbsEncryptionByDefaultInput{} } - result, metadata, err := c.invokeOperation(ctx, "DisableEbsEncryptionByDefault", params, optFns, addOperationDisableEbsEncryptionByDefaultMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "DisableEbsEncryptionByDefault", params, optFns, c.addOperationDisableEbsEncryptionByDefaultMiddlewares) if err != nil { return nil, err } @@ -38,19 +38,19 @@ type DisableEbsEncryptionByDefaultInput struct { // 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 + DryRun *bool } type DisableEbsEncryptionByDefaultOutput struct { // The updated status of encryption by default. - EbsEncryptionByDefault bool + EbsEncryptionByDefault *bool // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata } -func addOperationDisableEbsEncryptionByDefaultMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationDisableEbsEncryptionByDefaultMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpDisableEbsEncryptionByDefault{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisableFastSnapshotRestores.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisableFastSnapshotRestores.go index 841aa81da..60cca3ce3 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisableFastSnapshotRestores.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisableFastSnapshotRestores.go @@ -18,7 +18,7 @@ func (c *Client) DisableFastSnapshotRestores(ctx context.Context, params *Disabl params = &DisableFastSnapshotRestoresInput{} } - result, metadata, err := c.invokeOperation(ctx, "DisableFastSnapshotRestores", params, optFns, addOperationDisableFastSnapshotRestoresMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "DisableFastSnapshotRestores", params, optFns, c.addOperationDisableFastSnapshotRestoresMiddlewares) if err != nil { return nil, err } @@ -44,7 +44,7 @@ type DisableFastSnapshotRestoresInput struct { // 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 + DryRun *bool } type DisableFastSnapshotRestoresOutput struct { @@ -61,7 +61,7 @@ type DisableFastSnapshotRestoresOutput struct { ResultMetadata middleware.Metadata } -func addOperationDisableFastSnapshotRestoresMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationDisableFastSnapshotRestoresMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpDisableFastSnapshotRestores{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisableImageDeprecation.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisableImageDeprecation.go new file mode 100644 index 000000000..4e5704d65 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisableImageDeprecation.go @@ -0,0 +1,125 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package ec2 + +import ( + "context" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Cancels the deprecation of the specified AMI. For more information, see +// Deprecate an AMI +// (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ami-deprecate.html) in the +// Amazon Elastic Compute Cloud User Guide. +func (c *Client) DisableImageDeprecation(ctx context.Context, params *DisableImageDeprecationInput, optFns ...func(*Options)) (*DisableImageDeprecationOutput, error) { + if params == nil { + params = &DisableImageDeprecationInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "DisableImageDeprecation", params, optFns, c.addOperationDisableImageDeprecationMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*DisableImageDeprecationOutput) + out.ResultMetadata = metadata + return out, nil +} + +type DisableImageDeprecationInput struct { + + // The ID of the AMI. + // + // This member is required. + ImageId *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 +} + +type DisableImageDeprecationOutput struct { + + // Returns true if the request succeeds; otherwise, it returns an error. + Return *bool + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata +} + +func (c *Client) addOperationDisableImageDeprecationMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsEc2query_serializeOpDisableImageDeprecation{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsEc2query_deserializeOpDisableImageDeprecation{}, middleware.After) + if err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = addHTTPSignerV4Middleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addOpDisableImageDeprecationValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDisableImageDeprecation(options.Region), middleware.Before); 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 + } + return nil +} + +func newServiceMetadataMiddleware_opDisableImageDeprecation(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "ec2", + OperationName: "DisableImageDeprecation", + } +} diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisableSerialConsoleAccess.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisableSerialConsoleAccess.go new file mode 100644 index 000000000..b4b73a45c --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisableSerialConsoleAccess.go @@ -0,0 +1,120 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package ec2 + +import ( + "context" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Disables access to the EC2 serial console of all instances for your account. By +// default, access to the EC2 serial console is disabled for your account. For more +// information, see Manage account access to the EC2 serial console +// (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/configure-access-to-serial-console.html#serial-console-account-access) +// in the Amazon EC2 User Guide. +func (c *Client) DisableSerialConsoleAccess(ctx context.Context, params *DisableSerialConsoleAccessInput, optFns ...func(*Options)) (*DisableSerialConsoleAccessOutput, error) { + if params == nil { + params = &DisableSerialConsoleAccessInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "DisableSerialConsoleAccess", params, optFns, c.addOperationDisableSerialConsoleAccessMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*DisableSerialConsoleAccessOutput) + out.ResultMetadata = metadata + return out, nil +} + +type DisableSerialConsoleAccessInput 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 +} + +type DisableSerialConsoleAccessOutput struct { + + // If true, access to the EC2 serial console of all instances is enabled for your + // account. If false, access to the EC2 serial console of all instances is disabled + // for your account. + SerialConsoleAccessEnabled *bool + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata +} + +func (c *Client) addOperationDisableSerialConsoleAccessMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsEc2query_serializeOpDisableSerialConsoleAccess{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsEc2query_deserializeOpDisableSerialConsoleAccess{}, middleware.After) + if err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = addHTTPSignerV4Middleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDisableSerialConsoleAccess(options.Region), middleware.Before); 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 + } + return nil +} + +func newServiceMetadataMiddleware_opDisableSerialConsoleAccess(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "ec2", + OperationName: "DisableSerialConsoleAccess", + } +} diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisableTransitGatewayRouteTablePropagation.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisableTransitGatewayRouteTablePropagation.go index 07e7743f3..21fb7af69 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisableTransitGatewayRouteTablePropagation.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisableTransitGatewayRouteTablePropagation.go @@ -18,7 +18,7 @@ func (c *Client) DisableTransitGatewayRouteTablePropagation(ctx context.Context, params = &DisableTransitGatewayRouteTablePropagationInput{} } - result, metadata, err := c.invokeOperation(ctx, "DisableTransitGatewayRouteTablePropagation", params, optFns, addOperationDisableTransitGatewayRouteTablePropagationMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "DisableTransitGatewayRouteTablePropagation", params, optFns, c.addOperationDisableTransitGatewayRouteTablePropagationMiddlewares) if err != nil { return nil, err } @@ -44,7 +44,7 @@ type DisableTransitGatewayRouteTablePropagationInput struct { // 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 + DryRun *bool } type DisableTransitGatewayRouteTablePropagationOutput struct { @@ -56,7 +56,7 @@ type DisableTransitGatewayRouteTablePropagationOutput struct { ResultMetadata middleware.Metadata } -func addOperationDisableTransitGatewayRouteTablePropagationMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationDisableTransitGatewayRouteTablePropagationMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpDisableTransitGatewayRouteTablePropagation{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisableVgwRoutePropagation.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisableVgwRoutePropagation.go index acbf1ed69..bd8adef1a 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisableVgwRoutePropagation.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisableVgwRoutePropagation.go @@ -17,7 +17,7 @@ func (c *Client) DisableVgwRoutePropagation(ctx context.Context, params *Disable params = &DisableVgwRoutePropagationInput{} } - result, metadata, err := c.invokeOperation(ctx, "DisableVgwRoutePropagation", params, optFns, addOperationDisableVgwRoutePropagationMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "DisableVgwRoutePropagation", params, optFns, c.addOperationDisableVgwRoutePropagationMiddlewares) if err != nil { return nil, err } @@ -44,7 +44,7 @@ type DisableVgwRoutePropagationInput struct { // 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 + DryRun *bool } type DisableVgwRoutePropagationOutput struct { @@ -52,7 +52,7 @@ type DisableVgwRoutePropagationOutput struct { ResultMetadata middleware.Metadata } -func addOperationDisableVgwRoutePropagationMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationDisableVgwRoutePropagationMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpDisableVgwRoutePropagation{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisableVpcClassicLink.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisableVpcClassicLink.go index 88655293a..ea52c1764 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisableVpcClassicLink.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisableVpcClassicLink.go @@ -17,7 +17,7 @@ func (c *Client) DisableVpcClassicLink(ctx context.Context, params *DisableVpcCl params = &DisableVpcClassicLinkInput{} } - result, metadata, err := c.invokeOperation(ctx, "DisableVpcClassicLink", params, optFns, addOperationDisableVpcClassicLinkMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "DisableVpcClassicLink", params, optFns, c.addOperationDisableVpcClassicLinkMiddlewares) if err != nil { return nil, err } @@ -38,19 +38,19 @@ type DisableVpcClassicLinkInput struct { // 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 + DryRun *bool } type DisableVpcClassicLinkOutput struct { // Returns true if the request succeeds; otherwise, it returns an error. - Return bool + Return *bool // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata } -func addOperationDisableVpcClassicLinkMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationDisableVpcClassicLinkMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpDisableVpcClassicLink{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisableVpcClassicLinkDnsSupport.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisableVpcClassicLinkDnsSupport.go index 973a1bb62..3239c80aa 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisableVpcClassicLinkDnsSupport.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisableVpcClassicLinkDnsSupport.go @@ -21,7 +21,7 @@ func (c *Client) DisableVpcClassicLinkDnsSupport(ctx context.Context, params *Di params = &DisableVpcClassicLinkDnsSupportInput{} } - result, metadata, err := c.invokeOperation(ctx, "DisableVpcClassicLinkDnsSupport", params, optFns, addOperationDisableVpcClassicLinkDnsSupportMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "DisableVpcClassicLinkDnsSupport", params, optFns, c.addOperationDisableVpcClassicLinkDnsSupportMiddlewares) if err != nil { return nil, err } @@ -40,13 +40,13 @@ type DisableVpcClassicLinkDnsSupportInput struct { type DisableVpcClassicLinkDnsSupportOutput struct { // Returns true if the request succeeds; otherwise, it returns an error. - Return bool + Return *bool // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata } -func addOperationDisableVpcClassicLinkDnsSupportMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationDisableVpcClassicLinkDnsSupportMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpDisableVpcClassicLinkDnsSupport{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisassociateAddress.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisassociateAddress.go index 6a0dfc0ee..8052f78d3 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisassociateAddress.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisassociateAddress.go @@ -21,7 +21,7 @@ func (c *Client) DisassociateAddress(ctx context.Context, params *DisassociateAd params = &DisassociateAddressInput{} } - result, metadata, err := c.invokeOperation(ctx, "DisassociateAddress", params, optFns, addOperationDisassociateAddressMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "DisassociateAddress", params, optFns, c.addOperationDisassociateAddressMiddlewares) if err != nil { return nil, err } @@ -40,7 +40,7 @@ type DisassociateAddressInput struct { // 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 + DryRun *bool // [EC2-Classic] The Elastic IP address. Required for EC2-Classic. PublicIp *string @@ -51,7 +51,7 @@ type DisassociateAddressOutput struct { ResultMetadata middleware.Metadata } -func addOperationDisassociateAddressMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationDisassociateAddressMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpDisassociateAddress{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisassociateClientVpnTargetNetwork.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisassociateClientVpnTargetNetwork.go index c746c618c..b06bfc503 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisassociateClientVpnTargetNetwork.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisassociateClientVpnTargetNetwork.go @@ -29,7 +29,7 @@ func (c *Client) DisassociateClientVpnTargetNetwork(ctx context.Context, params params = &DisassociateClientVpnTargetNetworkInput{} } - result, metadata, err := c.invokeOperation(ctx, "DisassociateClientVpnTargetNetwork", params, optFns, addOperationDisassociateClientVpnTargetNetworkMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "DisassociateClientVpnTargetNetwork", params, optFns, c.addOperationDisassociateClientVpnTargetNetworkMiddlewares) if err != nil { return nil, err } @@ -55,7 +55,7 @@ type DisassociateClientVpnTargetNetworkInput struct { // 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 + DryRun *bool } type DisassociateClientVpnTargetNetworkOutput struct { @@ -70,7 +70,7 @@ type DisassociateClientVpnTargetNetworkOutput struct { ResultMetadata middleware.Metadata } -func addOperationDisassociateClientVpnTargetNetworkMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationDisassociateClientVpnTargetNetworkMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpDisassociateClientVpnTargetNetwork{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisassociateEnclaveCertificateIamRole.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisassociateEnclaveCertificateIamRole.go index 12da32db9..1c9f597fa 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisassociateEnclaveCertificateIamRole.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisassociateEnclaveCertificateIamRole.go @@ -22,7 +22,7 @@ func (c *Client) DisassociateEnclaveCertificateIamRole(ctx context.Context, para params = &DisassociateEnclaveCertificateIamRoleInput{} } - result, metadata, err := c.invokeOperation(ctx, "DisassociateEnclaveCertificateIamRole", params, optFns, addOperationDisassociateEnclaveCertificateIamRoleMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "DisassociateEnclaveCertificateIamRole", params, optFns, c.addOperationDisassociateEnclaveCertificateIamRoleMiddlewares) if err != nil { return nil, err } @@ -41,7 +41,7 @@ type DisassociateEnclaveCertificateIamRoleInput struct { // 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 + DryRun *bool // The ARN of the IAM role to disassociate. RoleArn *string @@ -50,13 +50,13 @@ type DisassociateEnclaveCertificateIamRoleInput struct { type DisassociateEnclaveCertificateIamRoleOutput struct { // Returns true if the request succeeds; otherwise, it returns an error. - Return bool + Return *bool // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata } -func addOperationDisassociateEnclaveCertificateIamRoleMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationDisassociateEnclaveCertificateIamRoleMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpDisassociateEnclaveCertificateIamRole{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisassociateIamInstanceProfile.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisassociateIamInstanceProfile.go index 9352689fd..da2b2876c 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisassociateIamInstanceProfile.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisassociateIamInstanceProfile.go @@ -18,7 +18,7 @@ func (c *Client) DisassociateIamInstanceProfile(ctx context.Context, params *Dis params = &DisassociateIamInstanceProfileInput{} } - result, metadata, err := c.invokeOperation(ctx, "DisassociateIamInstanceProfile", params, optFns, addOperationDisassociateIamInstanceProfileMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "DisassociateIamInstanceProfile", params, optFns, c.addOperationDisassociateIamInstanceProfileMiddlewares) if err != nil { return nil, err } @@ -45,7 +45,7 @@ type DisassociateIamInstanceProfileOutput struct { ResultMetadata middleware.Metadata } -func addOperationDisassociateIamInstanceProfileMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationDisassociateIamInstanceProfileMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpDisassociateIamInstanceProfile{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisassociateRouteTable.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisassociateRouteTable.go index f182c20ad..ebbdb2838 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisassociateRouteTable.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisassociateRouteTable.go @@ -21,7 +21,7 @@ func (c *Client) DisassociateRouteTable(ctx context.Context, params *Disassociat params = &DisassociateRouteTableInput{} } - result, metadata, err := c.invokeOperation(ctx, "DisassociateRouteTable", params, optFns, addOperationDisassociateRouteTableMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "DisassociateRouteTable", params, optFns, c.addOperationDisassociateRouteTableMiddlewares) if err != nil { return nil, err } @@ -43,7 +43,7 @@ type DisassociateRouteTableInput struct { // 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 + DryRun *bool } type DisassociateRouteTableOutput struct { @@ -51,7 +51,7 @@ type DisassociateRouteTableOutput struct { ResultMetadata middleware.Metadata } -func addOperationDisassociateRouteTableMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationDisassociateRouteTableMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpDisassociateRouteTable{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisassociateSubnetCidrBlock.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisassociateSubnetCidrBlock.go index 9c2f182f2..4dcac58dc 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisassociateSubnetCidrBlock.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisassociateSubnetCidrBlock.go @@ -19,7 +19,7 @@ func (c *Client) DisassociateSubnetCidrBlock(ctx context.Context, params *Disass params = &DisassociateSubnetCidrBlockInput{} } - result, metadata, err := c.invokeOperation(ctx, "DisassociateSubnetCidrBlock", params, optFns, addOperationDisassociateSubnetCidrBlockMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "DisassociateSubnetCidrBlock", params, optFns, c.addOperationDisassociateSubnetCidrBlockMiddlewares) if err != nil { return nil, err } @@ -49,7 +49,7 @@ type DisassociateSubnetCidrBlockOutput struct { ResultMetadata middleware.Metadata } -func addOperationDisassociateSubnetCidrBlockMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationDisassociateSubnetCidrBlockMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpDisassociateSubnetCidrBlock{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisassociateTransitGatewayMulticastDomain.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisassociateTransitGatewayMulticastDomain.go index 118911891..9112c71cd 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisassociateTransitGatewayMulticastDomain.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisassociateTransitGatewayMulticastDomain.go @@ -17,7 +17,7 @@ func (c *Client) DisassociateTransitGatewayMulticastDomain(ctx context.Context, params = &DisassociateTransitGatewayMulticastDomainInput{} } - result, metadata, err := c.invokeOperation(ctx, "DisassociateTransitGatewayMulticastDomain", params, optFns, addOperationDisassociateTransitGatewayMulticastDomainMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "DisassociateTransitGatewayMulticastDomain", params, optFns, c.addOperationDisassociateTransitGatewayMulticastDomainMiddlewares) if err != nil { return nil, err } @@ -33,7 +33,7 @@ type DisassociateTransitGatewayMulticastDomainInput struct { // 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 + DryRun *bool // The IDs of the subnets; SubnetIds []string @@ -54,7 +54,7 @@ type DisassociateTransitGatewayMulticastDomainOutput struct { ResultMetadata middleware.Metadata } -func addOperationDisassociateTransitGatewayMulticastDomainMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationDisassociateTransitGatewayMulticastDomainMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpDisassociateTransitGatewayMulticastDomain{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisassociateTransitGatewayRouteTable.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisassociateTransitGatewayRouteTable.go index 398c6cf4d..9eda2ab1e 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisassociateTransitGatewayRouteTable.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisassociateTransitGatewayRouteTable.go @@ -17,7 +17,7 @@ func (c *Client) DisassociateTransitGatewayRouteTable(ctx context.Context, param params = &DisassociateTransitGatewayRouteTableInput{} } - result, metadata, err := c.invokeOperation(ctx, "DisassociateTransitGatewayRouteTable", params, optFns, addOperationDisassociateTransitGatewayRouteTableMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "DisassociateTransitGatewayRouteTable", params, optFns, c.addOperationDisassociateTransitGatewayRouteTableMiddlewares) if err != nil { return nil, err } @@ -43,7 +43,7 @@ type DisassociateTransitGatewayRouteTableInput struct { // 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 + DryRun *bool } type DisassociateTransitGatewayRouteTableOutput struct { @@ -55,7 +55,7 @@ type DisassociateTransitGatewayRouteTableOutput struct { ResultMetadata middleware.Metadata } -func addOperationDisassociateTransitGatewayRouteTableMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationDisassociateTransitGatewayRouteTableMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpDisassociateTransitGatewayRouteTable{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisassociateTrunkInterface.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisassociateTrunkInterface.go new file mode 100644 index 000000000..f981b8768 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisassociateTrunkInterface.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/aws/signer/v4" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Removes an association between a branch network interface with a trunk network +// interface. +func (c *Client) DisassociateTrunkInterface(ctx context.Context, params *DisassociateTrunkInterfaceInput, optFns ...func(*Options)) (*DisassociateTrunkInterfaceOutput, error) { + if params == nil { + params = &DisassociateTrunkInterfaceInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "DisassociateTrunkInterface", params, optFns, c.addOperationDisassociateTrunkInterfaceMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*DisassociateTrunkInterfaceOutput) + out.ResultMetadata = metadata + return out, nil +} + +type DisassociateTrunkInterfaceInput struct { + + // The ID ofthe association + // + // This member is required. + AssociationId *string + + // Unique, case-sensitive identifier that you provide to ensure the idempotency of + // the request. For more information, see How to Ensure Idempotency + // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Run_Instance_Idempotency.html). + ClientToken *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 +} + +type DisassociateTrunkInterfaceOutput struct { + + // Unique, case-sensitive identifier that you provide to ensure the idempotency of + // the request. For more information, see How to Ensure Idempotency + // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Run_Instance_Idempotency.html). + ClientToken *string + + // Returns true if the request succeeds; otherwise, it returns an error. + Return *bool + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata +} + +func (c *Client) addOperationDisassociateTrunkInterfaceMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsEc2query_serializeOpDisassociateTrunkInterface{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsEc2query_deserializeOpDisassociateTrunkInterface{}, middleware.After) + if err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = addHTTPSignerV4Middleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addIdempotencyToken_opDisassociateTrunkInterfaceMiddleware(stack, options); err != nil { + return err + } + if err = addOpDisassociateTrunkInterfaceValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDisassociateTrunkInterface(options.Region), middleware.Before); 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 + } + return nil +} + +type idempotencyToken_initializeOpDisassociateTrunkInterface struct { + tokenProvider IdempotencyTokenProvider +} + +func (*idempotencyToken_initializeOpDisassociateTrunkInterface) ID() string { + return "OperationIdempotencyTokenAutoFill" +} + +func (m *idempotencyToken_initializeOpDisassociateTrunkInterface) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + if m.tokenProvider == nil { + return next.HandleInitialize(ctx, in) + } + + input, ok := in.Parameters.(*DisassociateTrunkInterfaceInput) + if !ok { + return out, metadata, fmt.Errorf("expected middleware input to be of type *DisassociateTrunkInterfaceInput ") + } + + if input.ClientToken == nil { + t, err := m.tokenProvider.GetIdempotencyToken() + if err != nil { + return out, metadata, err + } + input.ClientToken = &t + } + return next.HandleInitialize(ctx, in) +} +func addIdempotencyToken_opDisassociateTrunkInterfaceMiddleware(stack *middleware.Stack, cfg Options) error { + return stack.Initialize.Add(&idempotencyToken_initializeOpDisassociateTrunkInterface{tokenProvider: cfg.IdempotencyTokenProvider}, middleware.Before) +} + +func newServiceMetadataMiddleware_opDisassociateTrunkInterface(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "ec2", + OperationName: "DisassociateTrunkInterface", + } +} diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisassociateVpcCidrBlock.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisassociateVpcCidrBlock.go index 18ca36c3e..0c84617a1 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisassociateVpcCidrBlock.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DisassociateVpcCidrBlock.go @@ -22,7 +22,7 @@ func (c *Client) DisassociateVpcCidrBlock(ctx context.Context, params *Disassoci params = &DisassociateVpcCidrBlockInput{} } - result, metadata, err := c.invokeOperation(ctx, "DisassociateVpcCidrBlock", params, optFns, addOperationDisassociateVpcCidrBlockMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "DisassociateVpcCidrBlock", params, optFns, c.addOperationDisassociateVpcCidrBlockMiddlewares) if err != nil { return nil, err } @@ -55,7 +55,7 @@ type DisassociateVpcCidrBlockOutput struct { ResultMetadata middleware.Metadata } -func addOperationDisassociateVpcCidrBlockMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationDisassociateVpcCidrBlockMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpDisassociateVpcCidrBlock{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_EnableEbsEncryptionByDefault.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_EnableEbsEncryptionByDefault.go index 4ae652e4f..946a16173 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_EnableEbsEncryptionByDefault.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_EnableEbsEncryptionByDefault.go @@ -11,7 +11,7 @@ import ( ) // Enables EBS encryption by default for your account in the current Region. After -// you enable encryption by default, the EBS volumes that you create are are always +// you enable encryption by default, the EBS volumes that you create are always // encrypted, either using the default CMK or the CMK that you specified when you // created each volume. For more information, see Amazon EBS encryption // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSEncryption.html) in the @@ -27,7 +27,7 @@ func (c *Client) EnableEbsEncryptionByDefault(ctx context.Context, params *Enabl params = &EnableEbsEncryptionByDefaultInput{} } - result, metadata, err := c.invokeOperation(ctx, "EnableEbsEncryptionByDefault", params, optFns, addOperationEnableEbsEncryptionByDefaultMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "EnableEbsEncryptionByDefault", params, optFns, c.addOperationEnableEbsEncryptionByDefaultMiddlewares) if err != nil { return nil, err } @@ -43,19 +43,19 @@ type EnableEbsEncryptionByDefaultInput struct { // 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 + DryRun *bool } type EnableEbsEncryptionByDefaultOutput struct { // The updated status of encryption by default. - EbsEncryptionByDefault bool + EbsEncryptionByDefault *bool // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata } -func addOperationEnableEbsEncryptionByDefaultMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationEnableEbsEncryptionByDefaultMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpEnableEbsEncryptionByDefault{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_EnableFastSnapshotRestores.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_EnableFastSnapshotRestores.go index 09d9bf3a4..641073fff 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_EnableFastSnapshotRestores.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_EnableFastSnapshotRestores.go @@ -24,7 +24,7 @@ func (c *Client) EnableFastSnapshotRestores(ctx context.Context, params *EnableF params = &EnableFastSnapshotRestoresInput{} } - result, metadata, err := c.invokeOperation(ctx, "EnableFastSnapshotRestores", params, optFns, addOperationEnableFastSnapshotRestoresMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "EnableFastSnapshotRestores", params, optFns, c.addOperationEnableFastSnapshotRestoresMiddlewares) if err != nil { return nil, err } @@ -51,7 +51,7 @@ type EnableFastSnapshotRestoresInput struct { // 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 + DryRun *bool } type EnableFastSnapshotRestoresOutput struct { @@ -68,7 +68,7 @@ type EnableFastSnapshotRestoresOutput struct { ResultMetadata middleware.Metadata } -func addOperationEnableFastSnapshotRestoresMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationEnableFastSnapshotRestoresMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpEnableFastSnapshotRestores{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_EnableImageDeprecation.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_EnableImageDeprecation.go new file mode 100644 index 000000000..a2578d22b --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_EnableImageDeprecation.go @@ -0,0 +1,134 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package ec2 + +import ( + "context" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" + "time" +) + +// Enables deprecation of the specified AMI at the specified date and time. For +// more information, see Deprecate an AMI +// (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ami-deprecate.html) in the +// Amazon Elastic Compute Cloud User Guide. +func (c *Client) EnableImageDeprecation(ctx context.Context, params *EnableImageDeprecationInput, optFns ...func(*Options)) (*EnableImageDeprecationOutput, error) { + if params == nil { + params = &EnableImageDeprecationInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "EnableImageDeprecation", params, optFns, c.addOperationEnableImageDeprecationMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*EnableImageDeprecationOutput) + out.ResultMetadata = metadata + return out, nil +} + +type EnableImageDeprecationInput struct { + + // The date and time to deprecate the AMI, in UTC, in the following format: + // YYYY-MM-DDTHH:MM:SSZ. If you specify a value for seconds, Amazon EC2 rounds the + // seconds to the nearest minute. You can’t specify a date in the past. The upper + // limit for DeprecateAt is 10 years from now. + // + // This member is required. + DeprecateAt *time.Time + + // The ID of the AMI. + // + // This member is required. + ImageId *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 +} + +type EnableImageDeprecationOutput struct { + + // Returns true if the request succeeds; otherwise, it returns an error. + Return *bool + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata +} + +func (c *Client) addOperationEnableImageDeprecationMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsEc2query_serializeOpEnableImageDeprecation{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsEc2query_deserializeOpEnableImageDeprecation{}, middleware.After) + if err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = addHTTPSignerV4Middleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addOpEnableImageDeprecationValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opEnableImageDeprecation(options.Region), middleware.Before); 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 + } + return nil +} + +func newServiceMetadataMiddleware_opEnableImageDeprecation(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "ec2", + OperationName: "EnableImageDeprecation", + } +} diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_EnableSerialConsoleAccess.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_EnableSerialConsoleAccess.go new file mode 100644 index 000000000..997fa35eb --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_EnableSerialConsoleAccess.go @@ -0,0 +1,120 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package ec2 + +import ( + "context" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Enables access to the EC2 serial console of all instances for your account. By +// default, access to the EC2 serial console is disabled for your account. For more +// information, see Manage account access to the EC2 serial console +// (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/configure-access-to-serial-console.html#serial-console-account-access) +// in the Amazon EC2 User Guide. +func (c *Client) EnableSerialConsoleAccess(ctx context.Context, params *EnableSerialConsoleAccessInput, optFns ...func(*Options)) (*EnableSerialConsoleAccessOutput, error) { + if params == nil { + params = &EnableSerialConsoleAccessInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "EnableSerialConsoleAccess", params, optFns, c.addOperationEnableSerialConsoleAccessMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*EnableSerialConsoleAccessOutput) + out.ResultMetadata = metadata + return out, nil +} + +type EnableSerialConsoleAccessInput 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 +} + +type EnableSerialConsoleAccessOutput struct { + + // If true, access to the EC2 serial console of all instances is enabled for your + // account. If false, access to the EC2 serial console of all instances is disabled + // for your account. + SerialConsoleAccessEnabled *bool + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata +} + +func (c *Client) addOperationEnableSerialConsoleAccessMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsEc2query_serializeOpEnableSerialConsoleAccess{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsEc2query_deserializeOpEnableSerialConsoleAccess{}, middleware.After) + if err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = addHTTPSignerV4Middleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opEnableSerialConsoleAccess(options.Region), middleware.Before); 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 + } + return nil +} + +func newServiceMetadataMiddleware_opEnableSerialConsoleAccess(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "ec2", + OperationName: "EnableSerialConsoleAccess", + } +} diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_EnableTransitGatewayRouteTablePropagation.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_EnableTransitGatewayRouteTablePropagation.go index 5e34afbf5..a3256f383 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_EnableTransitGatewayRouteTablePropagation.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_EnableTransitGatewayRouteTablePropagation.go @@ -18,7 +18,7 @@ func (c *Client) EnableTransitGatewayRouteTablePropagation(ctx context.Context, params = &EnableTransitGatewayRouteTablePropagationInput{} } - result, metadata, err := c.invokeOperation(ctx, "EnableTransitGatewayRouteTablePropagation", params, optFns, addOperationEnableTransitGatewayRouteTablePropagationMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "EnableTransitGatewayRouteTablePropagation", params, optFns, c.addOperationEnableTransitGatewayRouteTablePropagationMiddlewares) if err != nil { return nil, err } @@ -44,7 +44,7 @@ type EnableTransitGatewayRouteTablePropagationInput struct { // 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 + DryRun *bool } type EnableTransitGatewayRouteTablePropagationOutput struct { @@ -56,7 +56,7 @@ type EnableTransitGatewayRouteTablePropagationOutput struct { ResultMetadata middleware.Metadata } -func addOperationEnableTransitGatewayRouteTablePropagationMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationEnableTransitGatewayRouteTablePropagationMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpEnableTransitGatewayRouteTablePropagation{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_EnableVgwRoutePropagation.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_EnableVgwRoutePropagation.go index ae37f9375..e461af690 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_EnableVgwRoutePropagation.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_EnableVgwRoutePropagation.go @@ -17,7 +17,7 @@ func (c *Client) EnableVgwRoutePropagation(ctx context.Context, params *EnableVg params = &EnableVgwRoutePropagationInput{} } - result, metadata, err := c.invokeOperation(ctx, "EnableVgwRoutePropagation", params, optFns, addOperationEnableVgwRoutePropagationMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "EnableVgwRoutePropagation", params, optFns, c.addOperationEnableVgwRoutePropagationMiddlewares) if err != nil { return nil, err } @@ -47,7 +47,7 @@ type EnableVgwRoutePropagationInput struct { // 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 + DryRun *bool } type EnableVgwRoutePropagationOutput struct { @@ -55,7 +55,7 @@ type EnableVgwRoutePropagationOutput struct { ResultMetadata middleware.Metadata } -func addOperationEnableVgwRoutePropagationMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationEnableVgwRoutePropagationMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpEnableVgwRoutePropagation{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_EnableVolumeIO.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_EnableVolumeIO.go index ea20be99c..47689cd3f 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_EnableVolumeIO.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_EnableVolumeIO.go @@ -17,7 +17,7 @@ func (c *Client) EnableVolumeIO(ctx context.Context, params *EnableVolumeIOInput params = &EnableVolumeIOInput{} } - result, metadata, err := c.invokeOperation(ctx, "EnableVolumeIO", params, optFns, addOperationEnableVolumeIOMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "EnableVolumeIO", params, optFns, c.addOperationEnableVolumeIOMiddlewares) if err != nil { return nil, err } @@ -38,7 +38,7 @@ type EnableVolumeIOInput struct { // 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 + DryRun *bool } type EnableVolumeIOOutput struct { @@ -46,7 +46,7 @@ type EnableVolumeIOOutput struct { ResultMetadata middleware.Metadata } -func addOperationEnableVolumeIOMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationEnableVolumeIOMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpEnableVolumeIO{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_EnableVpcClassicLink.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_EnableVpcClassicLink.go index 13d8965e2..720c5a3b5 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_EnableVpcClassicLink.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_EnableVpcClassicLink.go @@ -23,7 +23,7 @@ func (c *Client) EnableVpcClassicLink(ctx context.Context, params *EnableVpcClas params = &EnableVpcClassicLinkInput{} } - result, metadata, err := c.invokeOperation(ctx, "EnableVpcClassicLink", params, optFns, addOperationEnableVpcClassicLinkMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "EnableVpcClassicLink", params, optFns, c.addOperationEnableVpcClassicLinkMiddlewares) if err != nil { return nil, err } @@ -44,19 +44,19 @@ type EnableVpcClassicLinkInput struct { // 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 + DryRun *bool } type EnableVpcClassicLinkOutput struct { // Returns true if the request succeeds; otherwise, it returns an error. - Return bool + Return *bool // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata } -func addOperationEnableVpcClassicLinkMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationEnableVpcClassicLinkMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpEnableVpcClassicLink{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_EnableVpcClassicLinkDnsSupport.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_EnableVpcClassicLinkDnsSupport.go index d3ffd0732..b3fe67d4c 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_EnableVpcClassicLinkDnsSupport.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_EnableVpcClassicLinkDnsSupport.go @@ -24,7 +24,7 @@ func (c *Client) EnableVpcClassicLinkDnsSupport(ctx context.Context, params *Ena params = &EnableVpcClassicLinkDnsSupportInput{} } - result, metadata, err := c.invokeOperation(ctx, "EnableVpcClassicLinkDnsSupport", params, optFns, addOperationEnableVpcClassicLinkDnsSupportMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "EnableVpcClassicLinkDnsSupport", params, optFns, c.addOperationEnableVpcClassicLinkDnsSupportMiddlewares) if err != nil { return nil, err } @@ -43,13 +43,13 @@ type EnableVpcClassicLinkDnsSupportInput struct { type EnableVpcClassicLinkDnsSupportOutput struct { // Returns true if the request succeeds; otherwise, it returns an error. - Return bool + Return *bool // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata } -func addOperationEnableVpcClassicLinkDnsSupportMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationEnableVpcClassicLinkDnsSupportMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpEnableVpcClassicLinkDnsSupport{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ExportClientVpnClientCertificateRevocationList.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ExportClientVpnClientCertificateRevocationList.go index e16914550..37cefce86 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ExportClientVpnClientCertificateRevocationList.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ExportClientVpnClientCertificateRevocationList.go @@ -18,7 +18,7 @@ func (c *Client) ExportClientVpnClientCertificateRevocationList(ctx context.Cont params = &ExportClientVpnClientCertificateRevocationListInput{} } - result, metadata, err := c.invokeOperation(ctx, "ExportClientVpnClientCertificateRevocationList", params, optFns, addOperationExportClientVpnClientCertificateRevocationListMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "ExportClientVpnClientCertificateRevocationList", params, optFns, c.addOperationExportClientVpnClientCertificateRevocationListMiddlewares) if err != nil { return nil, err } @@ -39,7 +39,7 @@ type ExportClientVpnClientCertificateRevocationListInput struct { // 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 + DryRun *bool } type ExportClientVpnClientCertificateRevocationListOutput struct { @@ -54,7 +54,7 @@ type ExportClientVpnClientCertificateRevocationListOutput struct { ResultMetadata middleware.Metadata } -func addOperationExportClientVpnClientCertificateRevocationListMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationExportClientVpnClientCertificateRevocationListMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpExportClientVpnClientCertificateRevocationList{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ExportClientVpnClientConfiguration.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ExportClientVpnClientConfiguration.go index 7a9af5f56..5b7e0ff54 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ExportClientVpnClientConfiguration.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ExportClientVpnClientConfiguration.go @@ -19,7 +19,7 @@ func (c *Client) ExportClientVpnClientConfiguration(ctx context.Context, params params = &ExportClientVpnClientConfigurationInput{} } - result, metadata, err := c.invokeOperation(ctx, "ExportClientVpnClientConfiguration", params, optFns, addOperationExportClientVpnClientConfigurationMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "ExportClientVpnClientConfiguration", params, optFns, c.addOperationExportClientVpnClientConfigurationMiddlewares) if err != nil { return nil, err } @@ -40,7 +40,7 @@ type ExportClientVpnClientConfigurationInput struct { // 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 + DryRun *bool } type ExportClientVpnClientConfigurationOutput struct { @@ -52,7 +52,7 @@ type ExportClientVpnClientConfigurationOutput struct { ResultMetadata middleware.Metadata } -func addOperationExportClientVpnClientConfigurationMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationExportClientVpnClientConfigurationMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpExportClientVpnClientConfiguration{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ExportImage.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ExportImage.go index 7831d771e..97979e169 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ExportImage.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ExportImage.go @@ -13,7 +13,7 @@ import ( ) // Exports an Amazon Machine Image (AMI) to a VM file. For more information, see -// Exporting a VM Directory from an Amazon Machine Image (AMI) +// Exporting a VM directly from an Amazon Machine Image (AMI) // (https://docs.aws.amazon.com/vm-import/latest/userguide/vmexport_image.html) in // the VM Import/Export User Guide. func (c *Client) ExportImage(ctx context.Context, params *ExportImageInput, optFns ...func(*Options)) (*ExportImageOutput, error) { @@ -21,7 +21,7 @@ func (c *Client) ExportImage(ctx context.Context, params *ExportImageInput, optF params = &ExportImageInput{} } - result, metadata, err := c.invokeOperation(ctx, "ExportImage", params, optFns, addOperationExportImageMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "ExportImage", params, optFns, c.addOperationExportImageMiddlewares) if err != nil { return nil, err } @@ -60,14 +60,14 @@ type ExportImageInput struct { // 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 + DryRun *bool // The name of the role that grants VM Import/Export permission to export images to // your Amazon S3 bucket. If this parameter is not specified, the default role is // named 'vmimport'. RoleName *string - // The tags to apply to the image being exported. + // The tags to apply to the export image task during creation. TagSpecifications []types.TagSpecification } @@ -102,14 +102,14 @@ type ExportImageOutput struct { // The status message for the export image task. StatusMessage *string - // Any tags assigned to the image being exported. + // Any tags assigned to the export image task. Tags []types.Tag // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata } -func addOperationExportImageMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationExportImageMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpExportImage{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ExportTransitGatewayRoutes.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ExportTransitGatewayRoutes.go index 706c2216a..b4a9b21a0 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ExportTransitGatewayRoutes.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ExportTransitGatewayRoutes.go @@ -22,7 +22,7 @@ func (c *Client) ExportTransitGatewayRoutes(ctx context.Context, params *ExportT params = &ExportTransitGatewayRoutesInput{} } - result, metadata, err := c.invokeOperation(ctx, "ExportTransitGatewayRoutes", params, optFns, addOperationExportTransitGatewayRoutesMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "ExportTransitGatewayRoutes", params, optFns, c.addOperationExportTransitGatewayRoutesMiddlewares) if err != nil { return nil, err } @@ -48,7 +48,7 @@ type ExportTransitGatewayRoutesInput struct { // 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 + DryRun *bool // One or more filters. The possible values are: // @@ -93,7 +93,7 @@ type ExportTransitGatewayRoutesOutput struct { ResultMetadata middleware.Metadata } -func addOperationExportTransitGatewayRoutesMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationExportTransitGatewayRoutesMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpExportTransitGatewayRoutes{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetAssociatedEnclaveCertificateIamRoles.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetAssociatedEnclaveCertificateIamRoles.go index d432213a2..530a20819 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetAssociatedEnclaveCertificateIamRoles.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetAssociatedEnclaveCertificateIamRoles.go @@ -21,7 +21,7 @@ func (c *Client) GetAssociatedEnclaveCertificateIamRoles(ctx context.Context, pa params = &GetAssociatedEnclaveCertificateIamRolesInput{} } - result, metadata, err := c.invokeOperation(ctx, "GetAssociatedEnclaveCertificateIamRoles", params, optFns, addOperationGetAssociatedEnclaveCertificateIamRolesMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "GetAssociatedEnclaveCertificateIamRoles", params, optFns, c.addOperationGetAssociatedEnclaveCertificateIamRolesMiddlewares) if err != nil { return nil, err } @@ -41,7 +41,7 @@ type GetAssociatedEnclaveCertificateIamRolesInput struct { // 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 + DryRun *bool } type GetAssociatedEnclaveCertificateIamRolesOutput struct { @@ -53,7 +53,7 @@ type GetAssociatedEnclaveCertificateIamRolesOutput struct { ResultMetadata middleware.Metadata } -func addOperationGetAssociatedEnclaveCertificateIamRolesMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationGetAssociatedEnclaveCertificateIamRolesMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpGetAssociatedEnclaveCertificateIamRoles{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetAssociatedIpv6PoolCidrs.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetAssociatedIpv6PoolCidrs.go index 90b54ace6..404193e02 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetAssociatedIpv6PoolCidrs.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetAssociatedIpv6PoolCidrs.go @@ -19,7 +19,7 @@ func (c *Client) GetAssociatedIpv6PoolCidrs(ctx context.Context, params *GetAsso params = &GetAssociatedIpv6PoolCidrsInput{} } - result, metadata, err := c.invokeOperation(ctx, "GetAssociatedIpv6PoolCidrs", params, optFns, addOperationGetAssociatedIpv6PoolCidrsMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "GetAssociatedIpv6PoolCidrs", params, optFns, c.addOperationGetAssociatedIpv6PoolCidrsMiddlewares) if err != nil { return nil, err } @@ -40,11 +40,11 @@ type GetAssociatedIpv6PoolCidrsInput struct { // 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 + DryRun *bool // The maximum number of results to return with a single call. To retrieve the // remaining results, make another call with the returned nextToken value. - MaxResults int32 + MaxResults *int32 // The token for the next page of results. NextToken *string @@ -63,7 +63,7 @@ type GetAssociatedIpv6PoolCidrsOutput struct { ResultMetadata middleware.Metadata } -func addOperationGetAssociatedIpv6PoolCidrsMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationGetAssociatedIpv6PoolCidrsMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpGetAssociatedIpv6PoolCidrs{}, middleware.After) if err != nil { return err @@ -159,19 +159,19 @@ type GetAssociatedIpv6PoolCidrsPaginator struct { // NewGetAssociatedIpv6PoolCidrsPaginator returns a new // GetAssociatedIpv6PoolCidrsPaginator func NewGetAssociatedIpv6PoolCidrsPaginator(client GetAssociatedIpv6PoolCidrsAPIClient, params *GetAssociatedIpv6PoolCidrsInput, optFns ...func(*GetAssociatedIpv6PoolCidrsPaginatorOptions)) *GetAssociatedIpv6PoolCidrsPaginator { + if params == nil { + params = &GetAssociatedIpv6PoolCidrsInput{} + } + options := GetAssociatedIpv6PoolCidrsPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults + if params.MaxResults != nil { + options.Limit = *params.MaxResults } for _, fn := range optFns { fn(&options) } - if params == nil { - params = &GetAssociatedIpv6PoolCidrsInput{} - } - return &GetAssociatedIpv6PoolCidrsPaginator{ options: options, client: client, @@ -194,7 +194,11 @@ func (p *GetAssociatedIpv6PoolCidrsPaginator) NextPage(ctx context.Context, optF params := *p.params params.NextToken = p.nextToken - params.MaxResults = p.options.Limit + var limit *int32 + if p.options.Limit > 0 { + limit = &p.options.Limit + } + params.MaxResults = limit result, err := p.client.GetAssociatedIpv6PoolCidrs(ctx, ¶ms, optFns...) if err != nil { 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 55140d07d..d42616df2 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 @@ -13,14 +13,14 @@ import ( // Gets usage information about a Capacity Reservation. If the Capacity Reservation // is shared, it shows usage information for the Capacity Reservation owner and -// each AWS account that is currently using the shared capacity. If the Capacity +// each account that is currently using the shared capacity. If the Capacity // Reservation is not shared, it shows only the Capacity Reservation owner's usage. func (c *Client) GetCapacityReservationUsage(ctx context.Context, params *GetCapacityReservationUsageInput, optFns ...func(*Options)) (*GetCapacityReservationUsageOutput, error) { if params == nil { params = &GetCapacityReservationUsageInput{} } - result, metadata, err := c.invokeOperation(ctx, "GetCapacityReservationUsage", params, optFns, addOperationGetCapacityReservationUsageMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "GetCapacityReservationUsage", params, optFns, c.addOperationGetCapacityReservationUsageMiddlewares) if err != nil { return nil, err } @@ -41,14 +41,14 @@ type GetCapacityReservationUsageInput struct { // 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 + DryRun *bool // The maximum number of results to return for the request in a single page. The // remaining results can be seen by sending another request with the returned // nextToken value. This value can be between 5 and 500. If maxResults is given a // larger value than 500, you receive an error. Valid range: Minimum value of 1. // Maximum value of 1000. - MaxResults int32 + MaxResults *int32 // The token to use to retrieve the next page of results. NextToken *string @@ -58,7 +58,7 @@ type GetCapacityReservationUsageOutput struct { // The remaining capacity. Indicates the number of instances that can be launched // in the Capacity Reservation. - AvailableInstanceCount int32 + AvailableInstanceCount *int32 // The ID of the Capacity Reservation. CapacityReservationId *string @@ -84,26 +84,26 @@ type GetCapacityReservationUsageOutput struct { // reserved capacity is no longer available for your use. // // * cancelled - The - // Capacity Reservation was manually cancelled. The reserved capacity is no longer - // available for your use. + // Capacity Reservation was cancelled. The reserved capacity is no longer available + // for your use. // - // * pending - The Capacity Reservation request was - // successful but the capacity provisioning is still pending. + // * 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 might fail due to invalid request parameters, + // capacity constraints, or instance limit constraints. Failed requests are + // retained for 60 minutes. State types.CapacityReservationState // The number of instances for which the Capacity Reservation reserves capacity. - TotalInstanceCount int32 + TotalInstanceCount *int32 // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata } -func addOperationGetCapacityReservationUsageMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationGetCapacityReservationUsageMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpGetCapacityReservationUsage{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetCoipPoolUsage.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetCoipPoolUsage.go index b26cd0b99..1b04b87de 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetCoipPoolUsage.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetCoipPoolUsage.go @@ -17,7 +17,7 @@ func (c *Client) GetCoipPoolUsage(ctx context.Context, params *GetCoipPoolUsageI params = &GetCoipPoolUsageInput{} } - result, metadata, err := c.invokeOperation(ctx, "GetCoipPoolUsage", params, optFns, addOperationGetCoipPoolUsageMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "GetCoipPoolUsage", params, optFns, c.addOperationGetCoipPoolUsageMiddlewares) if err != nil { return nil, err } @@ -38,7 +38,7 @@ type GetCoipPoolUsageInput struct { // 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 + DryRun *bool // The filters. The following are the possible values: // @@ -55,7 +55,7 @@ type GetCoipPoolUsageInput struct { // The maximum number of results to return with a single call. To retrieve the // remaining results, make another call with the returned nextToken value. - MaxResults int32 + MaxResults *int32 // The token for the next page of results. NextToken *string @@ -76,7 +76,7 @@ type GetCoipPoolUsageOutput struct { ResultMetadata middleware.Metadata } -func addOperationGetCoipPoolUsageMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationGetCoipPoolUsageMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpGetCoipPoolUsage{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetConsoleOutput.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetConsoleOutput.go index acd055821..79e206325 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetConsoleOutput.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetConsoleOutput.go @@ -21,15 +21,15 @@ import ( // the most recent 64 KB of console output is available. You can optionally // retrieve the latest serial console output at any time during the instance // lifecycle. This option is supported on instance types that use the Nitro -// hypervisor. For more information, see Instance Console Output +// hypervisor. For more information, see Instance console output // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-console.html#instance-console-console-output) -// in the Amazon Elastic Compute Cloud User Guide. +// in the Amazon EC2 User Guide. func (c *Client) GetConsoleOutput(ctx context.Context, params *GetConsoleOutputInput, optFns ...func(*Options)) (*GetConsoleOutputOutput, error) { if params == nil { params = &GetConsoleOutputInput{} } - result, metadata, err := c.invokeOperation(ctx, "GetConsoleOutput", params, optFns, addOperationGetConsoleOutputMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "GetConsoleOutput", params, optFns, c.addOperationGetConsoleOutputMiddlewares) if err != nil { return nil, err } @@ -50,11 +50,11 @@ type GetConsoleOutputInput struct { // 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 + DryRun *bool // When enabled, retrieves the latest console output for the instance. Default: // disabled (false) - Latest bool + Latest *bool } type GetConsoleOutputOutput struct { @@ -73,7 +73,7 @@ type GetConsoleOutputOutput struct { ResultMetadata middleware.Metadata } -func addOperationGetConsoleOutputMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationGetConsoleOutputMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpGetConsoleOutput{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetConsoleScreenshot.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetConsoleScreenshot.go index 14a4cf4e7..89a1d9774 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetConsoleScreenshot.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetConsoleScreenshot.go @@ -17,7 +17,7 @@ func (c *Client) GetConsoleScreenshot(ctx context.Context, params *GetConsoleScr params = &GetConsoleScreenshotInput{} } - result, metadata, err := c.invokeOperation(ctx, "GetConsoleScreenshot", params, optFns, addOperationGetConsoleScreenshotMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "GetConsoleScreenshot", params, optFns, c.addOperationGetConsoleScreenshotMiddlewares) if err != nil { return nil, err } @@ -38,11 +38,11 @@ type GetConsoleScreenshotInput struct { // 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 + DryRun *bool // When set to true, acts as keystroke input and wakes up an instance that's in // standby or "sleep" mode. - WakeUp bool + WakeUp *bool } type GetConsoleScreenshotOutput struct { @@ -57,7 +57,7 @@ type GetConsoleScreenshotOutput struct { ResultMetadata middleware.Metadata } -func addOperationGetConsoleScreenshotMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationGetConsoleScreenshotMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpGetConsoleScreenshot{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetDefaultCreditSpecification.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetDefaultCreditSpecification.go index 2b9c52f7d..56da67414 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetDefaultCreditSpecification.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetDefaultCreditSpecification.go @@ -14,13 +14,13 @@ import ( // Describes the default credit option for CPU usage of a burstable performance // instance family. For more information, see Burstable performance instances // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/burstable-performance-instances.html) -// in the Amazon Elastic Compute Cloud User Guide. +// in the Amazon EC2 User Guide. func (c *Client) GetDefaultCreditSpecification(ctx context.Context, params *GetDefaultCreditSpecificationInput, optFns ...func(*Options)) (*GetDefaultCreditSpecificationOutput, error) { if params == nil { params = &GetDefaultCreditSpecificationInput{} } - result, metadata, err := c.invokeOperation(ctx, "GetDefaultCreditSpecification", params, optFns, addOperationGetDefaultCreditSpecificationMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "GetDefaultCreditSpecification", params, optFns, c.addOperationGetDefaultCreditSpecificationMiddlewares) if err != nil { return nil, err } @@ -41,7 +41,7 @@ type GetDefaultCreditSpecificationInput struct { // 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 + DryRun *bool } type GetDefaultCreditSpecificationOutput struct { @@ -53,7 +53,7 @@ type GetDefaultCreditSpecificationOutput struct { ResultMetadata middleware.Metadata } -func addOperationGetDefaultCreditSpecificationMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationGetDefaultCreditSpecificationMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpGetDefaultCreditSpecification{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetEbsDefaultKmsKeyId.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetEbsDefaultKmsKeyId.go index aff326ba1..300dbdfda 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetEbsDefaultKmsKeyId.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetEbsDefaultKmsKeyId.go @@ -21,7 +21,7 @@ func (c *Client) GetEbsDefaultKmsKeyId(ctx context.Context, params *GetEbsDefaul params = &GetEbsDefaultKmsKeyIdInput{} } - result, metadata, err := c.invokeOperation(ctx, "GetEbsDefaultKmsKeyId", params, optFns, addOperationGetEbsDefaultKmsKeyIdMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "GetEbsDefaultKmsKeyId", params, optFns, c.addOperationGetEbsDefaultKmsKeyIdMiddlewares) if err != nil { return nil, err } @@ -37,7 +37,7 @@ type GetEbsDefaultKmsKeyIdInput struct { // 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 + DryRun *bool } type GetEbsDefaultKmsKeyIdOutput struct { @@ -49,7 +49,7 @@ type GetEbsDefaultKmsKeyIdOutput struct { ResultMetadata middleware.Metadata } -func addOperationGetEbsDefaultKmsKeyIdMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationGetEbsDefaultKmsKeyIdMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpGetEbsDefaultKmsKeyId{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetEbsEncryptionByDefault.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetEbsEncryptionByDefault.go index 77dc15180..5852df760 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetEbsEncryptionByDefault.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetEbsEncryptionByDefault.go @@ -19,7 +19,7 @@ func (c *Client) GetEbsEncryptionByDefault(ctx context.Context, params *GetEbsEn params = &GetEbsEncryptionByDefaultInput{} } - result, metadata, err := c.invokeOperation(ctx, "GetEbsEncryptionByDefault", params, optFns, addOperationGetEbsEncryptionByDefaultMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "GetEbsEncryptionByDefault", params, optFns, c.addOperationGetEbsEncryptionByDefaultMiddlewares) if err != nil { return nil, err } @@ -35,19 +35,19 @@ type GetEbsEncryptionByDefaultInput struct { // 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 + DryRun *bool } type GetEbsEncryptionByDefaultOutput struct { // Indicates whether encryption by default is enabled. - EbsEncryptionByDefault bool + EbsEncryptionByDefault *bool // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata } -func addOperationGetEbsEncryptionByDefaultMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationGetEbsEncryptionByDefaultMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpGetEbsEncryptionByDefault{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetFlowLogsIntegrationTemplate.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetFlowLogsIntegrationTemplate.go new file mode 100644 index 000000000..64bbd39c5 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetFlowLogsIntegrationTemplate.go @@ -0,0 +1,150 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package ec2 + +import ( + "context" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/aws-sdk-go-v2/service/ec2/types" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Generates a CloudFormation template that streamlines and automates the +// integration of VPC flow logs with Amazon Athena. This make it easier for you to +// query and gain insights from VPC flow logs data. Based on the information that +// you provide, we configure resources in the template to do the following: +// +// * +// Create a table in Athena that maps fields to a custom log format +// +// * Create a +// Lambda function that updates the table with new partitions on a daily, weekly, +// or monthly basis +// +// * Create a table partitioned between two timestamps in the +// past +// +// * Create a set of named queries in Athena that you can use to get started +// quickly +func (c *Client) GetFlowLogsIntegrationTemplate(ctx context.Context, params *GetFlowLogsIntegrationTemplateInput, optFns ...func(*Options)) (*GetFlowLogsIntegrationTemplateOutput, error) { + if params == nil { + params = &GetFlowLogsIntegrationTemplateInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "GetFlowLogsIntegrationTemplate", params, optFns, c.addOperationGetFlowLogsIntegrationTemplateMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*GetFlowLogsIntegrationTemplateOutput) + out.ResultMetadata = metadata + return out, nil +} + +type GetFlowLogsIntegrationTemplateInput struct { + + // To store the CloudFormation template in Amazon S3, specify the location in + // Amazon S3. + // + // This member is required. + ConfigDeliveryS3DestinationArn *string + + // The ID of the flow log. + // + // This member is required. + FlowLogId *string + + // Information about the service integration. + // + // This member is required. + IntegrateServices *types.IntegrateServices + + // 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 +} + +type GetFlowLogsIntegrationTemplateOutput struct { + + // The generated CloudFormation template. + Result *string + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata +} + +func (c *Client) addOperationGetFlowLogsIntegrationTemplateMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsEc2query_serializeOpGetFlowLogsIntegrationTemplate{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsEc2query_deserializeOpGetFlowLogsIntegrationTemplate{}, middleware.After) + if err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = addHTTPSignerV4Middleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = addOpGetFlowLogsIntegrationTemplateValidationMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opGetFlowLogsIntegrationTemplate(options.Region), middleware.Before); 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 + } + return nil +} + +func newServiceMetadataMiddleware_opGetFlowLogsIntegrationTemplate(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "ec2", + OperationName: "GetFlowLogsIntegrationTemplate", + } +} diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetGroupsForCapacityReservation.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetGroupsForCapacityReservation.go index 10435d15d..fc8ba0286 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetGroupsForCapacityReservation.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetGroupsForCapacityReservation.go @@ -18,7 +18,7 @@ func (c *Client) GetGroupsForCapacityReservation(ctx context.Context, params *Ge params = &GetGroupsForCapacityReservationInput{} } - result, metadata, err := c.invokeOperation(ctx, "GetGroupsForCapacityReservation", params, optFns, addOperationGetGroupsForCapacityReservationMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "GetGroupsForCapacityReservation", params, optFns, c.addOperationGetGroupsForCapacityReservationMiddlewares) if err != nil { return nil, err } @@ -39,13 +39,13 @@ type GetGroupsForCapacityReservationInput struct { // 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 + DryRun *bool // The maximum number of results to return for the request in a single page. The // remaining results can be seen by sending another request with the returned // nextToken value. This value can be between 5 and 500. If maxResults is given a // larger value than 500, you receive an error. - MaxResults int32 + MaxResults *int32 // The token to use to retrieve the next page of results. NextToken *string @@ -65,7 +65,7 @@ type GetGroupsForCapacityReservationOutput struct { ResultMetadata middleware.Metadata } -func addOperationGetGroupsForCapacityReservationMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationGetGroupsForCapacityReservationMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpGetGroupsForCapacityReservation{}, middleware.After) if err != nil { return err @@ -163,19 +163,19 @@ type GetGroupsForCapacityReservationPaginator struct { // NewGetGroupsForCapacityReservationPaginator returns a new // GetGroupsForCapacityReservationPaginator func NewGetGroupsForCapacityReservationPaginator(client GetGroupsForCapacityReservationAPIClient, params *GetGroupsForCapacityReservationInput, optFns ...func(*GetGroupsForCapacityReservationPaginatorOptions)) *GetGroupsForCapacityReservationPaginator { + if params == nil { + params = &GetGroupsForCapacityReservationInput{} + } + options := GetGroupsForCapacityReservationPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults + if params.MaxResults != nil { + options.Limit = *params.MaxResults } for _, fn := range optFns { fn(&options) } - if params == nil { - params = &GetGroupsForCapacityReservationInput{} - } - return &GetGroupsForCapacityReservationPaginator{ options: options, client: client, @@ -198,7 +198,11 @@ func (p *GetGroupsForCapacityReservationPaginator) NextPage(ctx context.Context, params := *p.params params.NextToken = p.nextToken - params.MaxResults = p.options.Limit + var limit *int32 + if p.options.Limit > 0 { + limit = &p.options.Limit + } + params.MaxResults = limit result, err := p.client.GetGroupsForCapacityReservation(ctx, ¶ms, optFns...) if err != nil { diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetHostReservationPurchasePreview.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetHostReservationPurchasePreview.go index 451c7921c..4c73a4e50 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetHostReservationPurchasePreview.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetHostReservationPurchasePreview.go @@ -20,7 +20,7 @@ func (c *Client) GetHostReservationPurchasePreview(ctx context.Context, params * params = &GetHostReservationPurchasePreviewInput{} } - result, metadata, err := c.invokeOperation(ctx, "GetHostReservationPurchasePreview", params, optFns, addOperationGetHostReservationPurchasePreviewMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "GetHostReservationPurchasePreview", params, optFns, c.addOperationGetHostReservationPurchasePreviewMiddlewares) if err != nil { return nil, err } @@ -63,7 +63,7 @@ type GetHostReservationPurchasePreviewOutput struct { ResultMetadata middleware.Metadata } -func addOperationGetHostReservationPurchasePreviewMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationGetHostReservationPurchasePreviewMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpGetHostReservationPurchasePreview{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetLaunchTemplateData.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetLaunchTemplateData.go index d8aad3655..bcf2fc059 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetLaunchTemplateData.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetLaunchTemplateData.go @@ -23,7 +23,7 @@ func (c *Client) GetLaunchTemplateData(ctx context.Context, params *GetLaunchTem params = &GetLaunchTemplateDataInput{} } - result, metadata, err := c.invokeOperation(ctx, "GetLaunchTemplateData", params, optFns, addOperationGetLaunchTemplateDataMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "GetLaunchTemplateData", params, optFns, c.addOperationGetLaunchTemplateDataMiddlewares) if err != nil { return nil, err } @@ -44,7 +44,7 @@ type GetLaunchTemplateDataInput struct { // 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 + DryRun *bool } type GetLaunchTemplateDataOutput struct { @@ -56,7 +56,7 @@ type GetLaunchTemplateDataOutput struct { ResultMetadata middleware.Metadata } -func addOperationGetLaunchTemplateDataMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationGetLaunchTemplateDataMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpGetLaunchTemplateData{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetManagedPrefixListAssociations.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetManagedPrefixListAssociations.go index dd833b8e8..ab87ea5cf 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetManagedPrefixListAssociations.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetManagedPrefixListAssociations.go @@ -19,7 +19,7 @@ func (c *Client) GetManagedPrefixListAssociations(ctx context.Context, params *G params = &GetManagedPrefixListAssociationsInput{} } - result, metadata, err := c.invokeOperation(ctx, "GetManagedPrefixListAssociations", params, optFns, addOperationGetManagedPrefixListAssociationsMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "GetManagedPrefixListAssociations", params, optFns, c.addOperationGetManagedPrefixListAssociationsMiddlewares) if err != nil { return nil, err } @@ -40,11 +40,11 @@ type GetManagedPrefixListAssociationsInput struct { // 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 + DryRun *bool // The maximum number of results to return with a single call. To retrieve the // remaining results, make another call with the returned nextToken value. - MaxResults int32 + MaxResults *int32 // The token for the next page of results. NextToken *string @@ -63,7 +63,7 @@ type GetManagedPrefixListAssociationsOutput struct { ResultMetadata middleware.Metadata } -func addOperationGetManagedPrefixListAssociationsMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationGetManagedPrefixListAssociationsMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpGetManagedPrefixListAssociations{}, middleware.After) if err != nil { return err @@ -159,19 +159,19 @@ type GetManagedPrefixListAssociationsPaginator struct { // NewGetManagedPrefixListAssociationsPaginator returns a new // GetManagedPrefixListAssociationsPaginator func NewGetManagedPrefixListAssociationsPaginator(client GetManagedPrefixListAssociationsAPIClient, params *GetManagedPrefixListAssociationsInput, optFns ...func(*GetManagedPrefixListAssociationsPaginatorOptions)) *GetManagedPrefixListAssociationsPaginator { + if params == nil { + params = &GetManagedPrefixListAssociationsInput{} + } + options := GetManagedPrefixListAssociationsPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults + if params.MaxResults != nil { + options.Limit = *params.MaxResults } for _, fn := range optFns { fn(&options) } - if params == nil { - params = &GetManagedPrefixListAssociationsInput{} - } - return &GetManagedPrefixListAssociationsPaginator{ options: options, client: client, @@ -194,7 +194,11 @@ func (p *GetManagedPrefixListAssociationsPaginator) NextPage(ctx context.Context params := *p.params params.NextToken = p.nextToken - params.MaxResults = p.options.Limit + var limit *int32 + if p.options.Limit > 0 { + limit = &p.options.Limit + } + params.MaxResults = limit result, err := p.client.GetManagedPrefixListAssociations(ctx, ¶ms, optFns...) if err != nil { diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetManagedPrefixListEntries.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetManagedPrefixListEntries.go index 7e45c4fd5..0088977a5 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetManagedPrefixListEntries.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetManagedPrefixListEntries.go @@ -18,7 +18,7 @@ func (c *Client) GetManagedPrefixListEntries(ctx context.Context, params *GetMan params = &GetManagedPrefixListEntriesInput{} } - result, metadata, err := c.invokeOperation(ctx, "GetManagedPrefixListEntries", params, optFns, addOperationGetManagedPrefixListEntriesMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "GetManagedPrefixListEntries", params, optFns, c.addOperationGetManagedPrefixListEntriesMiddlewares) if err != nil { return nil, err } @@ -39,18 +39,18 @@ type GetManagedPrefixListEntriesInput struct { // 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 + DryRun *bool // The maximum number of results to return with a single call. To retrieve the // remaining results, make another call with the returned nextToken value. - MaxResults int32 + MaxResults *int32 // The token for the next page of results. NextToken *string // The version of the prefix list for which to return the entries. The default is // the current version. - TargetVersion int64 + TargetVersion *int64 } type GetManagedPrefixListEntriesOutput struct { @@ -66,7 +66,7 @@ type GetManagedPrefixListEntriesOutput struct { ResultMetadata middleware.Metadata } -func addOperationGetManagedPrefixListEntriesMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationGetManagedPrefixListEntriesMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpGetManagedPrefixListEntries{}, middleware.After) if err != nil { return err @@ -162,19 +162,19 @@ type GetManagedPrefixListEntriesPaginator struct { // NewGetManagedPrefixListEntriesPaginator returns a new // GetManagedPrefixListEntriesPaginator func NewGetManagedPrefixListEntriesPaginator(client GetManagedPrefixListEntriesAPIClient, params *GetManagedPrefixListEntriesInput, optFns ...func(*GetManagedPrefixListEntriesPaginatorOptions)) *GetManagedPrefixListEntriesPaginator { + if params == nil { + params = &GetManagedPrefixListEntriesInput{} + } + options := GetManagedPrefixListEntriesPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults + if params.MaxResults != nil { + options.Limit = *params.MaxResults } for _, fn := range optFns { fn(&options) } - if params == nil { - params = &GetManagedPrefixListEntriesInput{} - } - return &GetManagedPrefixListEntriesPaginator{ options: options, client: client, @@ -197,7 +197,11 @@ func (p *GetManagedPrefixListEntriesPaginator) NextPage(ctx context.Context, opt params := *p.params params.NextToken = p.nextToken - params.MaxResults = p.options.Limit + var limit *int32 + if p.options.Limit > 0 { + limit = &p.options.Limit + } + params.MaxResults = limit result, err := p.client.GetManagedPrefixListEntries(ctx, ¶ms, optFns...) if err != nil { diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetPasswordData.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetPasswordData.go index e9013b1ee..c0f315167 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetPasswordData.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetPasswordData.go @@ -23,20 +23,20 @@ import ( // (https://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/UsingConfig_WinAMI.html) // and EC2Launch // (https://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/ec2launch.html) in the -// Amazon Elastic Compute Cloud User Guide. For the EC2Config service, the password -// is not generated for rebundled AMIs unless Ec2SetPassword is enabled before -// bundling. The password is encrypted using the key pair that you specified when -// you launched the instance. You must provide the corresponding key pair file. -// When you launch an instance, password generation and encryption may take a few -// minutes. If you try to retrieve the password before it's available, the output -// returns an empty string. We recommend that you wait up to 15 minutes after -// launching an instance before trying to retrieve the generated password. +// Amazon EC2 User Guide. For the EC2Config service, the password is not generated +// for rebundled AMIs unless Ec2SetPassword is enabled before bundling. The +// password is encrypted using the key pair that you specified when you launched +// the instance. You must provide the corresponding key pair file. When you launch +// an instance, password generation and encryption may take a few minutes. If you +// try to retrieve the password before it's available, the output returns an empty +// string. We recommend that you wait up to 15 minutes after launching an instance +// before trying to retrieve the generated password. func (c *Client) GetPasswordData(ctx context.Context, params *GetPasswordDataInput, optFns ...func(*Options)) (*GetPasswordDataOutput, error) { if params == nil { params = &GetPasswordDataInput{} } - result, metadata, err := c.invokeOperation(ctx, "GetPasswordData", params, optFns, addOperationGetPasswordDataMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "GetPasswordData", params, optFns, c.addOperationGetPasswordDataMiddlewares) if err != nil { return nil, err } @@ -57,7 +57,7 @@ type GetPasswordDataInput struct { // 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 + DryRun *bool } type GetPasswordDataOutput struct { @@ -76,7 +76,7 @@ type GetPasswordDataOutput struct { ResultMetadata middleware.Metadata } -func addOperationGetPasswordDataMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationGetPasswordDataMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpGetPasswordData{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetReservedInstancesExchangeQuote.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetReservedInstancesExchangeQuote.go index 050adaa12..23937c687 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetReservedInstancesExchangeQuote.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetReservedInstancesExchangeQuote.go @@ -21,7 +21,7 @@ func (c *Client) GetReservedInstancesExchangeQuote(ctx context.Context, params * params = &GetReservedInstancesExchangeQuoteInput{} } - result, metadata, err := c.invokeOperation(ctx, "GetReservedInstancesExchangeQuote", params, optFns, addOperationGetReservedInstancesExchangeQuoteMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "GetReservedInstancesExchangeQuote", params, optFns, c.addOperationGetReservedInstancesExchangeQuoteMiddlewares) if err != nil { return nil, err } @@ -43,7 +43,7 @@ type GetReservedInstancesExchangeQuoteInput struct { // 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 + DryRun *bool // The configuration of the target Convertible Reserved Instance to exchange for // your current Convertible Reserved Instances. @@ -57,7 +57,7 @@ type GetReservedInstancesExchangeQuoteOutput struct { CurrencyCode *string // If true, the exchange is valid. If false, the exchange cannot be completed. - IsValidExchange bool + IsValidExchange *bool // The new end date of the reservation term. OutputReservedInstancesWillExpireAt *time.Time @@ -84,7 +84,7 @@ type GetReservedInstancesExchangeQuoteOutput struct { ResultMetadata middleware.Metadata } -func addOperationGetReservedInstancesExchangeQuoteMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationGetReservedInstancesExchangeQuoteMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpGetReservedInstancesExchangeQuote{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetSerialConsoleAccessStatus.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetSerialConsoleAccessStatus.go new file mode 100644 index 000000000..304283c46 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetSerialConsoleAccessStatus.go @@ -0,0 +1,121 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package ec2 + +import ( + "context" + awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" + "github.com/aws/aws-sdk-go-v2/aws/signer/v4" + "github.com/aws/smithy-go/middleware" + smithyhttp "github.com/aws/smithy-go/transport/http" +) + +// Retrieves the access status of your account to the EC2 serial console of all +// instances. By default, access to the EC2 serial console is disabled for your +// account. For more information, see Manage account access to the EC2 serial +// console +// (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/configure-access-to-serial-console.html#serial-console-account-access) +// in the Amazon EC2 User Guide. +func (c *Client) GetSerialConsoleAccessStatus(ctx context.Context, params *GetSerialConsoleAccessStatusInput, optFns ...func(*Options)) (*GetSerialConsoleAccessStatusOutput, error) { + if params == nil { + params = &GetSerialConsoleAccessStatusInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "GetSerialConsoleAccessStatus", params, optFns, c.addOperationGetSerialConsoleAccessStatusMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*GetSerialConsoleAccessStatusOutput) + out.ResultMetadata = metadata + return out, nil +} + +type GetSerialConsoleAccessStatusInput 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 +} + +type GetSerialConsoleAccessStatusOutput struct { + + // If true, access to the EC2 serial console of all instances is enabled for your + // account. If false, access to the EC2 serial console of all instances is disabled + // for your account. + SerialConsoleAccessEnabled *bool + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata +} + +func (c *Client) addOperationGetSerialConsoleAccessStatusMiddlewares(stack *middleware.Stack, options Options) (err error) { + err = stack.Serialize.Add(&awsEc2query_serializeOpGetSerialConsoleAccessStatus{}, middleware.After) + if err != nil { + return err + } + err = stack.Deserialize.Add(&awsEc2query_deserializeOpGetSerialConsoleAccessStatus{}, middleware.After) + if err != nil { + return err + } + if err = addSetLoggerMiddleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { + return err + } + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { + return err + } + if err = addRetryMiddlewares(stack, options); err != nil { + return err + } + if err = addHTTPSignerV4Middleware(stack, options); err != nil { + return err + } + if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { + return err + } + if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { + return err + } + if err = addClientUserAgent(stack); err != nil { + return err + } + if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { + return err + } + if err = stack.Initialize.Add(newServiceMetadataMiddleware_opGetSerialConsoleAccessStatus(options.Region), middleware.Before); 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 + } + return nil +} + +func newServiceMetadataMiddleware_opGetSerialConsoleAccessStatus(region string) *awsmiddleware.RegisterServiceMetadata { + return &awsmiddleware.RegisterServiceMetadata{ + Region: region, + ServiceID: ServiceID, + SigningName: "ec2", + OperationName: "GetSerialConsoleAccessStatus", + } +} diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetTransitGatewayAttachmentPropagations.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetTransitGatewayAttachmentPropagations.go index 4199cc69e..8bab67aaf 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetTransitGatewayAttachmentPropagations.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetTransitGatewayAttachmentPropagations.go @@ -19,7 +19,7 @@ func (c *Client) GetTransitGatewayAttachmentPropagations(ctx context.Context, pa params = &GetTransitGatewayAttachmentPropagationsInput{} } - result, metadata, err := c.invokeOperation(ctx, "GetTransitGatewayAttachmentPropagations", params, optFns, addOperationGetTransitGatewayAttachmentPropagationsMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "GetTransitGatewayAttachmentPropagations", params, optFns, c.addOperationGetTransitGatewayAttachmentPropagationsMiddlewares) if err != nil { return nil, err } @@ -40,7 +40,7 @@ type GetTransitGatewayAttachmentPropagationsInput struct { // 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 + DryRun *bool // One or more filters. The possible values are: // @@ -50,7 +50,7 @@ type GetTransitGatewayAttachmentPropagationsInput struct { // The maximum number of results to return with a single call. To retrieve the // remaining results, make another call with the returned nextToken value. - MaxResults int32 + MaxResults *int32 // The token for the next page of results. NextToken *string @@ -69,7 +69,7 @@ type GetTransitGatewayAttachmentPropagationsOutput struct { ResultMetadata middleware.Metadata } -func addOperationGetTransitGatewayAttachmentPropagationsMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationGetTransitGatewayAttachmentPropagationsMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpGetTransitGatewayAttachmentPropagations{}, middleware.After) if err != nil { return err @@ -165,19 +165,19 @@ type GetTransitGatewayAttachmentPropagationsPaginator struct { // NewGetTransitGatewayAttachmentPropagationsPaginator returns a new // GetTransitGatewayAttachmentPropagationsPaginator func NewGetTransitGatewayAttachmentPropagationsPaginator(client GetTransitGatewayAttachmentPropagationsAPIClient, params *GetTransitGatewayAttachmentPropagationsInput, optFns ...func(*GetTransitGatewayAttachmentPropagationsPaginatorOptions)) *GetTransitGatewayAttachmentPropagationsPaginator { + if params == nil { + params = &GetTransitGatewayAttachmentPropagationsInput{} + } + options := GetTransitGatewayAttachmentPropagationsPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults + if params.MaxResults != nil { + options.Limit = *params.MaxResults } for _, fn := range optFns { fn(&options) } - if params == nil { - params = &GetTransitGatewayAttachmentPropagationsInput{} - } - return &GetTransitGatewayAttachmentPropagationsPaginator{ options: options, client: client, @@ -200,7 +200,11 @@ func (p *GetTransitGatewayAttachmentPropagationsPaginator) NextPage(ctx context. params := *p.params params.NextToken = p.nextToken - params.MaxResults = p.options.Limit + var limit *int32 + if p.options.Limit > 0 { + limit = &p.options.Limit + } + params.MaxResults = limit result, err := p.client.GetTransitGatewayAttachmentPropagations(ctx, ¶ms, optFns...) if err != nil { diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetTransitGatewayMulticastDomainAssociations.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetTransitGatewayMulticastDomainAssociations.go index dc3cea732..c92bfd9cd 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetTransitGatewayMulticastDomainAssociations.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetTransitGatewayMulticastDomainAssociations.go @@ -19,7 +19,7 @@ func (c *Client) GetTransitGatewayMulticastDomainAssociations(ctx context.Contex params = &GetTransitGatewayMulticastDomainAssociationsInput{} } - result, metadata, err := c.invokeOperation(ctx, "GetTransitGatewayMulticastDomainAssociations", params, optFns, addOperationGetTransitGatewayMulticastDomainAssociationsMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "GetTransitGatewayMulticastDomainAssociations", params, optFns, c.addOperationGetTransitGatewayMulticastDomainAssociationsMiddlewares) if err != nil { return nil, err } @@ -35,7 +35,7 @@ type GetTransitGatewayMulticastDomainAssociationsInput struct { // 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 + DryRun *bool // One or more filters. The possible values are: // @@ -57,7 +57,7 @@ type GetTransitGatewayMulticastDomainAssociationsInput struct { // The maximum number of results to return with a single call. To retrieve the // remaining results, make another call with the returned nextToken value. - MaxResults int32 + MaxResults *int32 // The token for the next page of results. NextToken *string @@ -79,7 +79,7 @@ type GetTransitGatewayMulticastDomainAssociationsOutput struct { ResultMetadata middleware.Metadata } -func addOperationGetTransitGatewayMulticastDomainAssociationsMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationGetTransitGatewayMulticastDomainAssociationsMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpGetTransitGatewayMulticastDomainAssociations{}, middleware.After) if err != nil { return err @@ -172,19 +172,19 @@ type GetTransitGatewayMulticastDomainAssociationsPaginator struct { // NewGetTransitGatewayMulticastDomainAssociationsPaginator returns a new // GetTransitGatewayMulticastDomainAssociationsPaginator func NewGetTransitGatewayMulticastDomainAssociationsPaginator(client GetTransitGatewayMulticastDomainAssociationsAPIClient, params *GetTransitGatewayMulticastDomainAssociationsInput, optFns ...func(*GetTransitGatewayMulticastDomainAssociationsPaginatorOptions)) *GetTransitGatewayMulticastDomainAssociationsPaginator { + if params == nil { + params = &GetTransitGatewayMulticastDomainAssociationsInput{} + } + options := GetTransitGatewayMulticastDomainAssociationsPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults + if params.MaxResults != nil { + options.Limit = *params.MaxResults } for _, fn := range optFns { fn(&options) } - if params == nil { - params = &GetTransitGatewayMulticastDomainAssociationsInput{} - } - return &GetTransitGatewayMulticastDomainAssociationsPaginator{ options: options, client: client, @@ -207,7 +207,11 @@ func (p *GetTransitGatewayMulticastDomainAssociationsPaginator) NextPage(ctx con params := *p.params params.NextToken = p.nextToken - params.MaxResults = p.options.Limit + var limit *int32 + if p.options.Limit > 0 { + limit = &p.options.Limit + } + params.MaxResults = limit result, err := p.client.GetTransitGatewayMulticastDomainAssociations(ctx, ¶ms, optFns...) if err != nil { diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetTransitGatewayPrefixListReferences.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetTransitGatewayPrefixListReferences.go index 749fe16cb..380287ff2 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetTransitGatewayPrefixListReferences.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetTransitGatewayPrefixListReferences.go @@ -19,7 +19,7 @@ func (c *Client) GetTransitGatewayPrefixListReferences(ctx context.Context, para params = &GetTransitGatewayPrefixListReferencesInput{} } - result, metadata, err := c.invokeOperation(ctx, "GetTransitGatewayPrefixListReferences", params, optFns, addOperationGetTransitGatewayPrefixListReferencesMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "GetTransitGatewayPrefixListReferences", params, optFns, c.addOperationGetTransitGatewayPrefixListReferencesMiddlewares) if err != nil { return nil, err } @@ -40,7 +40,7 @@ type GetTransitGatewayPrefixListReferencesInput struct { // 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 + DryRun *bool // One or more filters. The possible values are: // @@ -68,7 +68,7 @@ type GetTransitGatewayPrefixListReferencesInput struct { // The maximum number of results to return with a single call. To retrieve the // remaining results, make another call with the returned nextToken value. - MaxResults int32 + MaxResults *int32 // The token for the next page of results. NextToken *string @@ -87,7 +87,7 @@ type GetTransitGatewayPrefixListReferencesOutput struct { ResultMetadata middleware.Metadata } -func addOperationGetTransitGatewayPrefixListReferencesMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationGetTransitGatewayPrefixListReferencesMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpGetTransitGatewayPrefixListReferences{}, middleware.After) if err != nil { return err @@ -183,19 +183,19 @@ type GetTransitGatewayPrefixListReferencesPaginator struct { // NewGetTransitGatewayPrefixListReferencesPaginator returns a new // GetTransitGatewayPrefixListReferencesPaginator func NewGetTransitGatewayPrefixListReferencesPaginator(client GetTransitGatewayPrefixListReferencesAPIClient, params *GetTransitGatewayPrefixListReferencesInput, optFns ...func(*GetTransitGatewayPrefixListReferencesPaginatorOptions)) *GetTransitGatewayPrefixListReferencesPaginator { + if params == nil { + params = &GetTransitGatewayPrefixListReferencesInput{} + } + options := GetTransitGatewayPrefixListReferencesPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults + if params.MaxResults != nil { + options.Limit = *params.MaxResults } for _, fn := range optFns { fn(&options) } - if params == nil { - params = &GetTransitGatewayPrefixListReferencesInput{} - } - return &GetTransitGatewayPrefixListReferencesPaginator{ options: options, client: client, @@ -218,7 +218,11 @@ func (p *GetTransitGatewayPrefixListReferencesPaginator) NextPage(ctx context.Co params := *p.params params.NextToken = p.nextToken - params.MaxResults = p.options.Limit + var limit *int32 + if p.options.Limit > 0 { + limit = &p.options.Limit + } + params.MaxResults = limit result, err := p.client.GetTransitGatewayPrefixListReferences(ctx, ¶ms, optFns...) if err != nil { diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetTransitGatewayRouteTableAssociations.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetTransitGatewayRouteTableAssociations.go index 8731ebf2d..3948b9eac 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetTransitGatewayRouteTableAssociations.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetTransitGatewayRouteTableAssociations.go @@ -19,7 +19,7 @@ func (c *Client) GetTransitGatewayRouteTableAssociations(ctx context.Context, pa params = &GetTransitGatewayRouteTableAssociationsInput{} } - result, metadata, err := c.invokeOperation(ctx, "GetTransitGatewayRouteTableAssociations", params, optFns, addOperationGetTransitGatewayRouteTableAssociationsMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "GetTransitGatewayRouteTableAssociations", params, optFns, c.addOperationGetTransitGatewayRouteTableAssociationsMiddlewares) if err != nil { return nil, err } @@ -40,7 +40,7 @@ type GetTransitGatewayRouteTableAssociationsInput struct { // 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 + DryRun *bool // One or more filters. The possible values are: // @@ -56,7 +56,7 @@ type GetTransitGatewayRouteTableAssociationsInput struct { // The maximum number of results to return with a single call. To retrieve the // remaining results, make another call with the returned nextToken value. - MaxResults int32 + MaxResults *int32 // The token for the next page of results. NextToken *string @@ -75,7 +75,7 @@ type GetTransitGatewayRouteTableAssociationsOutput struct { ResultMetadata middleware.Metadata } -func addOperationGetTransitGatewayRouteTableAssociationsMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationGetTransitGatewayRouteTableAssociationsMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpGetTransitGatewayRouteTableAssociations{}, middleware.After) if err != nil { return err @@ -171,19 +171,19 @@ type GetTransitGatewayRouteTableAssociationsPaginator struct { // NewGetTransitGatewayRouteTableAssociationsPaginator returns a new // GetTransitGatewayRouteTableAssociationsPaginator func NewGetTransitGatewayRouteTableAssociationsPaginator(client GetTransitGatewayRouteTableAssociationsAPIClient, params *GetTransitGatewayRouteTableAssociationsInput, optFns ...func(*GetTransitGatewayRouteTableAssociationsPaginatorOptions)) *GetTransitGatewayRouteTableAssociationsPaginator { + if params == nil { + params = &GetTransitGatewayRouteTableAssociationsInput{} + } + options := GetTransitGatewayRouteTableAssociationsPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults + if params.MaxResults != nil { + options.Limit = *params.MaxResults } for _, fn := range optFns { fn(&options) } - if params == nil { - params = &GetTransitGatewayRouteTableAssociationsInput{} - } - return &GetTransitGatewayRouteTableAssociationsPaginator{ options: options, client: client, @@ -206,7 +206,11 @@ func (p *GetTransitGatewayRouteTableAssociationsPaginator) NextPage(ctx context. params := *p.params params.NextToken = p.nextToken - params.MaxResults = p.options.Limit + var limit *int32 + if p.options.Limit > 0 { + limit = &p.options.Limit + } + params.MaxResults = limit result, err := p.client.GetTransitGatewayRouteTableAssociations(ctx, ¶ms, optFns...) if err != nil { diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetTransitGatewayRouteTablePropagations.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetTransitGatewayRouteTablePropagations.go index 75810918d..84667b437 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetTransitGatewayRouteTablePropagations.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_GetTransitGatewayRouteTablePropagations.go @@ -19,7 +19,7 @@ func (c *Client) GetTransitGatewayRouteTablePropagations(ctx context.Context, pa params = &GetTransitGatewayRouteTablePropagationsInput{} } - result, metadata, err := c.invokeOperation(ctx, "GetTransitGatewayRouteTablePropagations", params, optFns, addOperationGetTransitGatewayRouteTablePropagationsMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "GetTransitGatewayRouteTablePropagations", params, optFns, c.addOperationGetTransitGatewayRouteTablePropagationsMiddlewares) if err != nil { return nil, err } @@ -40,7 +40,7 @@ type GetTransitGatewayRouteTablePropagationsInput struct { // 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 + DryRun *bool // One or more filters. The possible values are: // @@ -56,7 +56,7 @@ type GetTransitGatewayRouteTablePropagationsInput struct { // The maximum number of results to return with a single call. To retrieve the // remaining results, make another call with the returned nextToken value. - MaxResults int32 + MaxResults *int32 // The token for the next page of results. NextToken *string @@ -75,7 +75,7 @@ type GetTransitGatewayRouteTablePropagationsOutput struct { ResultMetadata middleware.Metadata } -func addOperationGetTransitGatewayRouteTablePropagationsMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationGetTransitGatewayRouteTablePropagationsMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpGetTransitGatewayRouteTablePropagations{}, middleware.After) if err != nil { return err @@ -171,19 +171,19 @@ type GetTransitGatewayRouteTablePropagationsPaginator struct { // NewGetTransitGatewayRouteTablePropagationsPaginator returns a new // GetTransitGatewayRouteTablePropagationsPaginator func NewGetTransitGatewayRouteTablePropagationsPaginator(client GetTransitGatewayRouteTablePropagationsAPIClient, params *GetTransitGatewayRouteTablePropagationsInput, optFns ...func(*GetTransitGatewayRouteTablePropagationsPaginatorOptions)) *GetTransitGatewayRouteTablePropagationsPaginator { + if params == nil { + params = &GetTransitGatewayRouteTablePropagationsInput{} + } + options := GetTransitGatewayRouteTablePropagationsPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults + if params.MaxResults != nil { + options.Limit = *params.MaxResults } for _, fn := range optFns { fn(&options) } - if params == nil { - params = &GetTransitGatewayRouteTablePropagationsInput{} - } - return &GetTransitGatewayRouteTablePropagationsPaginator{ options: options, client: client, @@ -206,7 +206,11 @@ func (p *GetTransitGatewayRouteTablePropagationsPaginator) NextPage(ctx context. params := *p.params params.NextToken = p.nextToken - params.MaxResults = p.options.Limit + var limit *int32 + if p.options.Limit > 0 { + limit = &p.options.Limit + } + params.MaxResults = limit result, err := p.client.GetTransitGatewayRouteTablePropagations(ctx, ¶ms, optFns...) if err != nil { diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ImportClientVpnClientCertificateRevocationList.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ImportClientVpnClientCertificateRevocationList.go index 80091f273..57d91e642 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ImportClientVpnClientCertificateRevocationList.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ImportClientVpnClientCertificateRevocationList.go @@ -19,7 +19,7 @@ func (c *Client) ImportClientVpnClientCertificateRevocationList(ctx context.Cont params = &ImportClientVpnClientCertificateRevocationListInput{} } - result, metadata, err := c.invokeOperation(ctx, "ImportClientVpnClientCertificateRevocationList", params, optFns, addOperationImportClientVpnClientCertificateRevocationListMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "ImportClientVpnClientCertificateRevocationList", params, optFns, c.addOperationImportClientVpnClientCertificateRevocationListMiddlewares) if err != nil { return nil, err } @@ -49,19 +49,19 @@ type ImportClientVpnClientCertificateRevocationListInput struct { // 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 + DryRun *bool } type ImportClientVpnClientCertificateRevocationListOutput struct { // Returns true if the request succeeds; otherwise, it returns an error. - Return bool + Return *bool // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata } -func addOperationImportClientVpnClientCertificateRevocationListMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationImportClientVpnClientCertificateRevocationListMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpImportClientVpnClientCertificateRevocationList{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ImportImage.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ImportImage.go index 4c8ab7d0e..78c8869a0 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ImportImage.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ImportImage.go @@ -12,7 +12,7 @@ import ( ) // Import single or multi-volume disk images or EBS snapshots into an Amazon -// Machine Image (AMI). For more information, see Importing a VM as an Image Using +// Machine Image (AMI). For more information, see Importing a VM as an image using // VM Import/Export // (https://docs.aws.amazon.com/vm-import/latest/userguide/vmimport-image-import.html) // in the VM Import/Export User Guide. @@ -21,7 +21,7 @@ func (c *Client) ImportImage(ctx context.Context, params *ImportImageInput, optF params = &ImportImageInput{} } - result, metadata, err := c.invokeOperation(ctx, "ImportImage", params, optFns, addOperationImportImageMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "ImportImage", params, optFns, c.addOperationImportImageMiddlewares) if err != nil { return nil, err } @@ -52,7 +52,7 @@ type ImportImageInput struct { // 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 + DryRun *bool // Specifies whether the destination AMI of the imported image should be encrypted. // The default CMK for EBS is used unless you specify a non-default AWS Key @@ -60,7 +60,7 @@ type ImportImageInput struct { // Amazon EBS Encryption // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSEncryption.html) in the // Amazon Elastic Compute Cloud User Guide. - Encrypted bool + Encrypted *bool // The target hypervisor platform. Valid values: xen Hypervisor *string @@ -118,7 +118,7 @@ type ImportImageInput struct { // The name of the role to use when not using the default role, 'vmimport'. RoleName *string - // The tags to apply to the image being imported. + // The tags to apply to the import image task during creation. TagSpecifications []types.TagSpecification } @@ -131,7 +131,7 @@ type ImportImageOutput struct { Description *string // Indicates whether the AMI is encrypted. - Encrypted bool + Encrypted *bool // The target hypervisor of the import task. Hypervisor *string @@ -167,14 +167,14 @@ type ImportImageOutput struct { // A detailed status message of the import task. StatusMessage *string - // Any tags assigned to the image being imported. + // Any tags assigned to the import image task. Tags []types.Tag // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata } -func addOperationImportImageMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationImportImageMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpImportImage{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ImportInstance.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ImportInstance.go index 3944027db..cd1586344 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ImportInstance.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ImportInstance.go @@ -12,19 +12,20 @@ import ( ) // Creates an import instance task using metadata from the specified disk image. -// ImportInstance only supports single-volume VMs. To import multi-volume VMs, use -// ImportImage. For more information, see Importing a Virtual Machine Using the -// Amazon EC2 CLI -// (https://docs.aws.amazon.com/AWSEC2/latest/CommandLineReference/ec2-cli-vmimport-export.html). -// For information about the import manifest referenced by this API action, see VM -// Import Manifest +// This API action supports only single-volume VMs. To import multi-volume VMs, use +// ImportImage instead. This API action is not supported by the AWS Command Line +// Interface (AWS CLI). For information about using the Amazon EC2 CLI, which is +// deprecated, see Importing a VM to Amazon EC2 +// (https://awsdocs.s3.amazonaws.com/EC2/ec2-clt.pdf#UsingVirtualMachinesinAmazonEC2) +// in the Amazon EC2 CLI Reference PDF file. For information about the import +// manifest referenced by this API action, see VM Import Manifest // (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/manifest.html). func (c *Client) ImportInstance(ctx context.Context, params *ImportInstanceInput, optFns ...func(*Options)) (*ImportInstanceOutput, error) { if params == nil { params = &ImportInstanceInput{} } - result, metadata, err := c.invokeOperation(ctx, "ImportInstance", params, optFns, addOperationImportInstanceMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "ImportInstance", params, optFns, c.addOperationImportInstanceMiddlewares) if err != nil { return nil, err } @@ -51,7 +52,7 @@ type ImportInstanceInput struct { // 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 + DryRun *bool // The launch specification. LaunchSpecification *types.ImportInstanceLaunchSpecification @@ -66,7 +67,7 @@ type ImportInstanceOutput struct { ResultMetadata middleware.Metadata } -func addOperationImportInstanceMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationImportInstanceMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpImportInstance{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ImportKeyPair.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ImportKeyPair.go index be8a4a252..972cc0bad 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ImportKeyPair.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ImportKeyPair.go @@ -24,7 +24,7 @@ func (c *Client) ImportKeyPair(ctx context.Context, params *ImportKeyPairInput, params = &ImportKeyPairInput{} } - result, metadata, err := c.invokeOperation(ctx, "ImportKeyPair", params, optFns, addOperationImportKeyPairMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "ImportKeyPair", params, optFns, c.addOperationImportKeyPairMiddlewares) if err != nil { return nil, err } @@ -51,7 +51,7 @@ type ImportKeyPairInput struct { // 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 + DryRun *bool // The tags to apply to the imported key pair. TagSpecifications []types.TagSpecification @@ -75,7 +75,7 @@ type ImportKeyPairOutput struct { ResultMetadata middleware.Metadata } -func addOperationImportKeyPairMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationImportKeyPairMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpImportKeyPair{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ImportSnapshot.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ImportSnapshot.go index 611fe08d5..cb73b1f86 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ImportSnapshot.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ImportSnapshot.go @@ -11,13 +11,16 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Imports a disk into an EBS snapshot. +// Imports a disk into an EBS snapshot. For more information, see Importing a disk +// as a snapshot using VM Import/Export +// (https://docs.aws.amazon.com/vm-import/latest/userguide/vmimport-import-snapshot.html) +// in the VM Import/Export User Guide. func (c *Client) ImportSnapshot(ctx context.Context, params *ImportSnapshotInput, optFns ...func(*Options)) (*ImportSnapshotOutput, error) { if params == nil { params = &ImportSnapshotInput{} } - result, metadata, err := c.invokeOperation(ctx, "ImportSnapshot", params, optFns, addOperationImportSnapshotMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "ImportSnapshot", params, optFns, c.addOperationImportSnapshotMiddlewares) if err != nil { return nil, err } @@ -45,7 +48,7 @@ type ImportSnapshotInput struct { // 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 + DryRun *bool // Specifies whether the destination snapshot of the imported image should be // encrypted. The default CMK for EBS is used unless you specify a non-default AWS @@ -53,7 +56,7 @@ type ImportSnapshotInput struct { // Amazon EBS Encryption // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSEncryption.html) in the // Amazon Elastic Compute Cloud User Guide. - Encrypted bool + Encrypted *bool // An identifier for the symmetric AWS Key Management Service (AWS KMS) customer // master key (CMK) to use when creating the encrypted snapshot. This parameter is @@ -91,7 +94,7 @@ type ImportSnapshotInput struct { // The name of the role to use when not using the default role, 'vmimport'. RoleName *string - // The tags to apply to the snapshot being imported. + // The tags to apply to the import snapshot task during creation. TagSpecifications []types.TagSpecification } @@ -106,14 +109,14 @@ type ImportSnapshotOutput struct { // Information about the import snapshot task. SnapshotTaskDetail *types.SnapshotTaskDetail - // Any tags assigned to the snapshot being imported. + // Any tags assigned to the import snapshot task. Tags []types.Tag // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata } -func addOperationImportSnapshotMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationImportSnapshotMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpImportSnapshot{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ImportVolume.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ImportVolume.go index a80ec6673..dc12598fb 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ImportVolume.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ImportVolume.go @@ -11,18 +11,22 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Creates an import volume task using metadata from the specified disk image.For -// more information, see Importing Disks to Amazon EBS -// (https://docs.aws.amazon.com/AWSEC2/latest/CommandLineReference/importing-your-volumes-into-amazon-ebs.html). -// For information about the import manifest referenced by this API action, see VM -// Import Manifest +// Creates an import volume task using metadata from the specified disk image. This +// API action supports only single-volume VMs. To import multi-volume VMs, use +// ImportImage instead. To import a disk to a snapshot, use ImportSnapshot instead. +// This API action is not supported by the AWS Command Line Interface (AWS CLI). +// For information about using the Amazon EC2 CLI, which is deprecated, see +// Importing Disks to Amazon EBS +// (https://awsdocs.s3.amazonaws.com/EC2/ec2-clt.pdf#importing-your-volumes-into-amazon-ebs) +// in the Amazon EC2 CLI Reference PDF file. For information about the import +// manifest referenced by this API action, see VM Import Manifest // (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/manifest.html). func (c *Client) ImportVolume(ctx context.Context, params *ImportVolumeInput, optFns ...func(*Options)) (*ImportVolumeOutput, error) { if params == nil { params = &ImportVolumeInput{} } - result, metadata, err := c.invokeOperation(ctx, "ImportVolume", params, optFns, addOperationImportVolumeMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "ImportVolume", params, optFns, c.addOperationImportVolumeMiddlewares) if err != nil { return nil, err } @@ -56,7 +60,7 @@ type ImportVolumeInput struct { // 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 + DryRun *bool } type ImportVolumeOutput struct { @@ -68,7 +72,7 @@ type ImportVolumeOutput struct { ResultMetadata middleware.Metadata } -func addOperationImportVolumeMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationImportVolumeMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpImportVolume{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyAddressAttribute.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyAddressAttribute.go index f938fc2cf..e4bb0b68a 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyAddressAttribute.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyAddressAttribute.go @@ -11,12 +11,15 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) +// Modifies an attribute of the specified Elastic IP address. For requirements, see +// Using reverse DNS for email applications +// (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/elastic-ip-addresses-eip.html#Using_Elastic_Addressing_Reverse_DNS). func (c *Client) ModifyAddressAttribute(ctx context.Context, params *ModifyAddressAttributeInput, optFns ...func(*Options)) (*ModifyAddressAttributeOutput, error) { if params == nil { params = &ModifyAddressAttributeInput{} } - result, metadata, err := c.invokeOperation(ctx, "ModifyAddressAttribute", params, optFns, addOperationModifyAddressAttributeMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "ModifyAddressAttribute", params, optFns, c.addOperationModifyAddressAttributeMiddlewares) if err != nil { return nil, err } @@ -28,22 +31,31 @@ func (c *Client) ModifyAddressAttribute(ctx context.Context, params *ModifyAddre type ModifyAddressAttributeInput struct { + // [EC2-VPC] The allocation ID. + // // This member is required. AllocationId *string + // The domain name to modify for the IP address. DomainName *string - DryRun bool + // 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 } type ModifyAddressAttributeOutput struct { + + // Information about the Elastic IP address. Address *types.AddressAttribute // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata } -func addOperationModifyAddressAttributeMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationModifyAddressAttributeMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpModifyAddressAttribute{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyAvailabilityZoneGroup.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyAvailabilityZoneGroup.go index 3c3a3b983..8cc2aa4c9 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyAvailabilityZoneGroup.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyAvailabilityZoneGroup.go @@ -20,7 +20,7 @@ func (c *Client) ModifyAvailabilityZoneGroup(ctx context.Context, params *Modify params = &ModifyAvailabilityZoneGroupInput{} } - result, metadata, err := c.invokeOperation(ctx, "ModifyAvailabilityZoneGroup", params, optFns, addOperationModifyAvailabilityZoneGroupMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "ModifyAvailabilityZoneGroup", params, optFns, c.addOperationModifyAvailabilityZoneGroupMiddlewares) if err != nil { return nil, err } @@ -50,19 +50,19 @@ type ModifyAvailabilityZoneGroupInput struct { // 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 + DryRun *bool } type ModifyAvailabilityZoneGroupOutput struct { // Is true if the request succeeds, and an error otherwise. - Return bool + Return *bool // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata } -func addOperationModifyAvailabilityZoneGroupMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationModifyAvailabilityZoneGroupMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpModifyAvailabilityZoneGroup{}, middleware.After) if err != nil { return err 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 6c4bd48ed..b11800fbd 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 @@ -23,7 +23,7 @@ func (c *Client) ModifyCapacityReservation(ctx context.Context, params *ModifyCa params = &ModifyCapacityReservationInput{} } - result, metadata, err := c.invokeOperation(ctx, "ModifyCapacityReservation", params, optFns, addOperationModifyCapacityReservationMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "ModifyCapacityReservation", params, optFns, c.addOperationModifyCapacityReservationMiddlewares) if err != nil { return nil, err } @@ -40,11 +40,14 @@ type ModifyCapacityReservationInput struct { // This member is required. CapacityReservationId *string + // Reserved. Capacity Reservations you have created are accepted by default. + Accept *bool + // 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 + DryRun *bool // The date and time at which the Capacity Reservation expires. When a Capacity // Reservation expires, the reserved capacity is released and you can no longer @@ -69,19 +72,19 @@ type ModifyCapacityReservationInput struct { EndDateType types.EndDateType // The number of instances for which to reserve capacity. - InstanceCount int32 + InstanceCount *int32 } type ModifyCapacityReservationOutput struct { // Returns true if the request succeeds; otherwise, it returns an error. - Return bool + Return *bool // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata } -func addOperationModifyCapacityReservationMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationModifyCapacityReservationMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpModifyCapacityReservation{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyClientVpnEndpoint.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyClientVpnEndpoint.go index ce855d09d..8fb97492e 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyClientVpnEndpoint.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyClientVpnEndpoint.go @@ -18,7 +18,7 @@ func (c *Client) ModifyClientVpnEndpoint(ctx context.Context, params *ModifyClie params = &ModifyClientVpnEndpointInput{} } - result, metadata, err := c.invokeOperation(ctx, "ModifyClientVpnEndpoint", params, optFns, addOperationModifyClientVpnEndpointMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "ModifyClientVpnEndpoint", params, optFns, c.addOperationModifyClientVpnEndpointMiddlewares) if err != nil { return nil, err } @@ -65,7 +65,7 @@ type ModifyClientVpnEndpointInput struct { // 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 + DryRun *bool // The IDs of one or more security groups to apply to the target network. SecurityGroupIds []string @@ -81,26 +81,26 @@ type ModifyClientVpnEndpointInput struct { // VPN endpoints, see Split-Tunnel AWS Client VPN Endpoint // (https://docs.aws.amazon.com/vpn/latest/clientvpn-admin/split-tunnel-vpn.html) // in the AWS Client VPN Administrator Guide. - SplitTunnel bool + SplitTunnel *bool // The ID of the VPC to associate with the Client VPN endpoint. VpcId *string // The port number to assign to the Client VPN endpoint for TCP and UDP traffic. // Valid Values: 443 | 1194 Default Value: 443 - VpnPort int32 + VpnPort *int32 } type ModifyClientVpnEndpointOutput struct { // Returns true if the request succeeds; otherwise, it returns an error. - Return bool + Return *bool // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata } -func addOperationModifyClientVpnEndpointMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationModifyClientVpnEndpointMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpModifyClientVpnEndpoint{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyDefaultCreditSpecification.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyDefaultCreditSpecification.go index 401ee386f..01b7ee57e 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyDefaultCreditSpecification.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyDefaultCreditSpecification.go @@ -12,24 +12,24 @@ import ( ) // Modifies the default credit option for CPU usage of burstable performance -// instances. The default credit option is set at the account level per AWS Region, -// and is specified per instance family. All new burstable performance instances in -// the account launch using the default credit option. -// ModifyDefaultCreditSpecification is an asynchronous operation, which works at an -// AWS Region level and modifies the credit option for each Availability Zone. All -// zones in a Region are updated within five minutes. But if instances are launched -// during this operation, they might not get the new credit option until the zone -// is updated. To verify whether the update has occurred, you can call -// GetDefaultCreditSpecification and check DefaultCreditSpecification for updates. -// For more information, see Burstable performance instances +// instances. The default credit option is set at the account level per Region, and +// is specified per instance family. All new burstable performance instances in the +// account launch using the default credit option. ModifyDefaultCreditSpecification +// is an asynchronous operation, which works at an Region level and modifies the +// credit option for each Availability Zone. All zones in a Region are updated +// within five minutes. But if instances are launched during this operation, they +// might not get the new credit option until the zone is updated. To verify whether +// the update has occurred, you can call GetDefaultCreditSpecification and check +// DefaultCreditSpecification for updates. For more information, see Burstable +// performance instances // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/burstable-performance-instances.html) -// in the Amazon Elastic Compute Cloud User Guide. +// in the Amazon EC2 User Guide. func (c *Client) ModifyDefaultCreditSpecification(ctx context.Context, params *ModifyDefaultCreditSpecificationInput, optFns ...func(*Options)) (*ModifyDefaultCreditSpecificationOutput, error) { if params == nil { params = &ModifyDefaultCreditSpecificationInput{} } - result, metadata, err := c.invokeOperation(ctx, "ModifyDefaultCreditSpecification", params, optFns, addOperationModifyDefaultCreditSpecificationMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "ModifyDefaultCreditSpecification", params, optFns, c.addOperationModifyDefaultCreditSpecificationMiddlewares) if err != nil { return nil, err } @@ -56,7 +56,7 @@ type ModifyDefaultCreditSpecificationInput struct { // 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 + DryRun *bool } type ModifyDefaultCreditSpecificationOutput struct { @@ -68,7 +68,7 @@ type ModifyDefaultCreditSpecificationOutput struct { ResultMetadata middleware.Metadata } -func addOperationModifyDefaultCreditSpecificationMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationModifyDefaultCreditSpecificationMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpModifyDefaultCreditSpecification{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyEbsDefaultKmsKeyId.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyEbsDefaultKmsKeyId.go index 4c3c84c5b..328459a65 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyEbsDefaultKmsKeyId.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyEbsDefaultKmsKeyId.go @@ -25,7 +25,7 @@ func (c *Client) ModifyEbsDefaultKmsKeyId(ctx context.Context, params *ModifyEbs params = &ModifyEbsDefaultKmsKeyIdInput{} } - result, metadata, err := c.invokeOperation(ctx, "ModifyEbsDefaultKmsKeyId", params, optFns, addOperationModifyEbsDefaultKmsKeyIdMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "ModifyEbsDefaultKmsKeyId", params, optFns, c.addOperationModifyEbsDefaultKmsKeyIdMiddlewares) if err != nil { return nil, err } @@ -67,7 +67,7 @@ type ModifyEbsDefaultKmsKeyIdInput struct { // 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 + DryRun *bool } type ModifyEbsDefaultKmsKeyIdOutput struct { @@ -79,7 +79,7 @@ type ModifyEbsDefaultKmsKeyIdOutput struct { ResultMetadata middleware.Metadata } -func addOperationModifyEbsDefaultKmsKeyIdMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationModifyEbsDefaultKmsKeyIdMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpModifyEbsDefaultKmsKeyId{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyFleet.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyFleet.go index 229967034..6b6582163 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyFleet.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyFleet.go @@ -39,7 +39,7 @@ func (c *Client) ModifyFleet(ctx context.Context, params *ModifyFleetInput, optF params = &ModifyFleetInput{} } - result, metadata, err := c.invokeOperation(ctx, "ModifyFleet", params, optFns, addOperationModifyFleetMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "ModifyFleet", params, optFns, c.addOperationModifyFleetMiddlewares) if err != nil { return nil, err } @@ -56,11 +56,14 @@ type ModifyFleetInput struct { // This member is required. FleetId *string + // Reserved. + Context *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 + DryRun *bool // Indicates whether running instances should be terminated if the total target // capacity of the EC2 Fleet is decreased below the current size of the EC2 Fleet. @@ -76,13 +79,13 @@ type ModifyFleetInput struct { type ModifyFleetOutput struct { // Is true if the request succeeds, and an error otherwise. - Return bool + Return *bool // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata } -func addOperationModifyFleetMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationModifyFleetMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpModifyFleet{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyFpgaImageAttribute.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyFpgaImageAttribute.go index 7733b4830..ece2ce917 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyFpgaImageAttribute.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyFpgaImageAttribute.go @@ -17,7 +17,7 @@ func (c *Client) ModifyFpgaImageAttribute(ctx context.Context, params *ModifyFpg params = &ModifyFpgaImageAttributeInput{} } - result, metadata, err := c.invokeOperation(ctx, "ModifyFpgaImageAttribute", params, optFns, addOperationModifyFpgaImageAttributeMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "ModifyFpgaImageAttribute", params, optFns, c.addOperationModifyFpgaImageAttributeMiddlewares) if err != nil { return nil, err } @@ -44,7 +44,7 @@ type ModifyFpgaImageAttributeInput struct { // 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 + DryRun *bool // The load permission for the AFI. LoadPermission *types.LoadPermissionModifications @@ -77,7 +77,7 @@ type ModifyFpgaImageAttributeOutput struct { ResultMetadata middleware.Metadata } -func addOperationModifyFpgaImageAttributeMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationModifyFpgaImageAttributeMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpModifyFpgaImageAttribute{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyHosts.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyHosts.go index 1c749bc51..bc9a61eab 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyHosts.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyHosts.go @@ -25,7 +25,7 @@ func (c *Client) ModifyHosts(ctx context.Context, params *ModifyHostsInput, optF params = &ModifyHostsInput{} } - result, metadata, err := c.invokeOperation(ctx, "ModifyHosts", params, optFns, addOperationModifyHostsMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "ModifyHosts", params, optFns, c.addOperationModifyHostsMiddlewares) if err != nil { return nil, err } @@ -46,9 +46,9 @@ type ModifyHostsInput struct { AutoPlacement types.AutoPlacement // Indicates whether to enable or disable host recovery for the Dedicated Host. For - // more information, see Host Recovery + // more information, see Host recovery // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/dedicated-hosts-recovery.html) - // in the Amazon Elastic Compute Cloud User Guide. + // in the Amazon EC2 User Guide. HostRecovery types.HostRecovery // Specifies the instance family to be supported by the Dedicated Host. Specify @@ -80,7 +80,7 @@ type ModifyHostsOutput struct { ResultMetadata middleware.Metadata } -func addOperationModifyHostsMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationModifyHostsMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpModifyHosts{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyIdFormat.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyIdFormat.go index f0c4b0c3a..b42af2135 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyIdFormat.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyIdFormat.go @@ -36,7 +36,7 @@ func (c *Client) ModifyIdFormat(ctx context.Context, params *ModifyIdFormatInput params = &ModifyIdFormatInput{} } - result, metadata, err := c.invokeOperation(ctx, "ModifyIdFormat", params, optFns, addOperationModifyIdFormatMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "ModifyIdFormat", params, optFns, c.addOperationModifyIdFormatMiddlewares) if err != nil { return nil, err } @@ -64,7 +64,7 @@ type ModifyIdFormatInput struct { // Indicate whether the resource should use longer IDs (17-character IDs). // // This member is required. - UseLongIds bool + UseLongIds *bool } type ModifyIdFormatOutput struct { @@ -72,7 +72,7 @@ type ModifyIdFormatOutput struct { ResultMetadata middleware.Metadata } -func addOperationModifyIdFormatMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationModifyIdFormatMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpModifyIdFormat{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyIdentityIdFormat.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyIdentityIdFormat.go index da2cfbe32..ed6f2a545 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyIdentityIdFormat.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyIdentityIdFormat.go @@ -34,7 +34,7 @@ func (c *Client) ModifyIdentityIdFormat(ctx context.Context, params *ModifyIdent params = &ModifyIdentityIdFormatInput{} } - result, metadata, err := c.invokeOperation(ctx, "ModifyIdentityIdFormat", params, optFns, addOperationModifyIdentityIdFormatMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "ModifyIdentityIdFormat", params, optFns, c.addOperationModifyIdentityIdFormatMiddlewares) if err != nil { return nil, err } @@ -69,7 +69,7 @@ type ModifyIdentityIdFormatInput struct { // Indicates whether the resource should use longer IDs (17-character IDs) // // This member is required. - UseLongIds bool + UseLongIds *bool } type ModifyIdentityIdFormatOutput struct { @@ -77,7 +77,7 @@ type ModifyIdentityIdFormatOutput struct { ResultMetadata middleware.Metadata } -func addOperationModifyIdentityIdFormatMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationModifyIdentityIdFormatMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpModifyIdentityIdFormat{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyImageAttribute.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyImageAttribute.go index 52f9a1428..8d142464f 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyImageAttribute.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyImageAttribute.go @@ -23,7 +23,7 @@ func (c *Client) ModifyImageAttribute(ctx context.Context, params *ModifyImageAt params = &ModifyImageAttributeInput{} } - result, metadata, err := c.invokeOperation(ctx, "ModifyImageAttribute", params, optFns, addOperationModifyImageAttributeMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "ModifyImageAttribute", params, optFns, c.addOperationModifyImageAttributeMiddlewares) if err != nil { return nil, err } @@ -52,7 +52,7 @@ type ModifyImageAttributeInput struct { // 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 + DryRun *bool // A new launch permission for the AMI. LaunchPermission *types.LaunchPermissionModifications @@ -83,7 +83,7 @@ type ModifyImageAttributeOutput struct { ResultMetadata middleware.Metadata } -func addOperationModifyImageAttributeMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationModifyImageAttributeMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpModifyImageAttribute{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyInstanceAttribute.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyInstanceAttribute.go index c7a5cee65..8d7306d13 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyInstanceAttribute.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyInstanceAttribute.go @@ -20,13 +20,13 @@ import ( // modify some attributes, the instance must be stopped. For more information, see // Modifying attributes of a stopped instance // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Using_ChangingAttributesWhileInstanceStopped.html) -// in the Amazon Elastic Compute Cloud User Guide. +// in the Amazon EC2 User Guide. func (c *Client) ModifyInstanceAttribute(ctx context.Context, params *ModifyInstanceAttributeInput, optFns ...func(*Options)) (*ModifyInstanceAttributeOutput, error) { if params == nil { params = &ModifyInstanceAttributeInput{} } - result, metadata, err := c.invokeOperation(ctx, "ModifyInstanceAttribute", params, optFns, addOperationModifyInstanceAttributeMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "ModifyInstanceAttribute", params, optFns, c.addOperationModifyInstanceAttributeMiddlewares) if err != nil { return nil, err } @@ -53,7 +53,7 @@ type ModifyInstanceAttributeInput struct { // instance, you must add them when you launch the instance. For more information, // see Updating the block device mapping when launching an instance // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/block-device-mapping-concepts.html#Using_OverridingAMIBDM) - // in the Amazon Elastic Compute Cloud User Guide. + // in the Amazon EC2 User Guide. BlockDeviceMappings []types.InstanceBlockDeviceMappingSpecification // If the value is true, you can't terminate the instance using the Amazon EC2 @@ -65,7 +65,7 @@ type ModifyInstanceAttributeInput struct { // 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 + DryRun *bool // Specifies whether the instance is optimized for Amazon EBS I/O. This // optimization provides dedicated throughput to Amazon EBS and an optimized @@ -79,9 +79,10 @@ type ModifyInstanceAttributeInput struct { // can make it unreachable. EnaSupport *types.AttributeBooleanValue - // [EC2-VPC] Changes the security groups of the instance. You must specify at least - // one security group, even if it's just the default security group for the VPC. - // You must specify the security group ID, not the security group name. + // [EC2-VPC] Replaces the security groups of the instance with the specified + // security groups. You must specify at least one security group, even if it's just + // the default security group for the VPC. You must specify the security group ID, + // not the security group name. Groups []string // Specifies whether an instance stops or terminates when you initiate shutdown @@ -90,8 +91,8 @@ type ModifyInstanceAttributeInput struct { // Changes the instance type to the specified value. For more information, see // Instance types - // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html). If - // the instance type is not valid, the error returned is + // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html) in the + // Amazon EC2 User Guide. If the instance type is not valid, the error returned is // InvalidInstanceAttributeValue. InstanceType *types.AttributeValue @@ -105,9 +106,12 @@ type ModifyInstanceAttributeInput struct { // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/UserProvidedKernels.html). Ramdisk *types.AttributeValue - // Specifies whether source/destination checking is enabled. A value of true means - // that checking is enabled, and false means that checking is disabled. This value - // must be false for a NAT instance to perform NAT. + // Enable or disable source/destination checks, which ensure that the instance is + // either the source or the destination of any traffic that it receives. If the + // value is true, source/destination checks are enabled; otherwise, they are + // disabled. The default value is true. You must disable source/destination checks + // if the instance runs services such as network address translation, routing, or + // firewalls. SourceDestCheck *types.AttributeBooleanValue // Set to simple to enable enhanced networking with the Intel 82599 Virtual @@ -117,9 +121,10 @@ type ModifyInstanceAttributeInput struct { // instance can make it unreachable. SriovNetSupport *types.AttributeValue - // Changes the instance's user data to the specified value. If you are using an AWS - // SDK or command line tool, base64-encoding is performed for you, and you can load - // the text from a file. Otherwise, you must provide base64-encoded text. + // Changes the instance's user data to the specified value. If you are using an + // Amazon Web Services SDK or command line tool, base64-encoding is performed for + // you, and you can load the text from a file. Otherwise, you must provide + // base64-encoded text. UserData *types.BlobAttributeValue // A new value for the attribute. Use only with the kernel, ramdisk, userData, @@ -132,7 +137,7 @@ type ModifyInstanceAttributeOutput struct { ResultMetadata middleware.Metadata } -func addOperationModifyInstanceAttributeMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationModifyInstanceAttributeMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpModifyInstanceAttribute{}, middleware.After) if err != nil { return err 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 fdcea51b7..fd47986ff 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 @@ -20,7 +20,7 @@ func (c *Client) ModifyInstanceCapacityReservationAttributes(ctx context.Context params = &ModifyInstanceCapacityReservationAttributesInput{} } - result, metadata, err := c.invokeOperation(ctx, "ModifyInstanceCapacityReservationAttributes", params, optFns, addOperationModifyInstanceCapacityReservationAttributesMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "ModifyInstanceCapacityReservationAttributes", params, optFns, c.addOperationModifyInstanceCapacityReservationAttributesMiddlewares) if err != nil { return nil, err } @@ -46,19 +46,19 @@ type ModifyInstanceCapacityReservationAttributesInput struct { // 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 + DryRun *bool } type ModifyInstanceCapacityReservationAttributesOutput struct { // Returns true if the request succeeds; otherwise, it returns an error. - Return bool + Return *bool // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata } -func addOperationModifyInstanceCapacityReservationAttributesMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationModifyInstanceCapacityReservationAttributesMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpModifyInstanceCapacityReservationAttributes{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyInstanceCreditSpecification.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyInstanceCreditSpecification.go index 20b1229ad..b000c565e 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyInstanceCreditSpecification.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyInstanceCreditSpecification.go @@ -15,13 +15,13 @@ import ( // performance instance. The credit options are standard and unlimited. For more // information, see Burstable performance instances // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/burstable-performance-instances.html) -// in the Amazon Elastic Compute Cloud User Guide. +// in the Amazon EC2 User Guide. func (c *Client) ModifyInstanceCreditSpecification(ctx context.Context, params *ModifyInstanceCreditSpecificationInput, optFns ...func(*Options)) (*ModifyInstanceCreditSpecificationOutput, error) { if params == nil { params = &ModifyInstanceCreditSpecificationInput{} } - result, metadata, err := c.invokeOperation(ctx, "ModifyInstanceCreditSpecification", params, optFns, addOperationModifyInstanceCreditSpecificationMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "ModifyInstanceCreditSpecification", params, optFns, c.addOperationModifyInstanceCreditSpecificationMiddlewares) if err != nil { return nil, err } @@ -47,7 +47,7 @@ type ModifyInstanceCreditSpecificationInput struct { // 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 + DryRun *bool } type ModifyInstanceCreditSpecificationOutput struct { @@ -64,7 +64,7 @@ type ModifyInstanceCreditSpecificationOutput struct { ResultMetadata middleware.Metadata } -func addOperationModifyInstanceCreditSpecificationMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationModifyInstanceCreditSpecificationMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpModifyInstanceCreditSpecification{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyInstanceEventStartTime.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyInstanceEventStartTime.go index 7caeecd5b..8a62318bb 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyInstanceEventStartTime.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyInstanceEventStartTime.go @@ -18,7 +18,7 @@ func (c *Client) ModifyInstanceEventStartTime(ctx context.Context, params *Modif params = &ModifyInstanceEventStartTimeInput{} } - result, metadata, err := c.invokeOperation(ctx, "ModifyInstanceEventStartTime", params, optFns, addOperationModifyInstanceEventStartTimeMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "ModifyInstanceEventStartTime", params, optFns, c.addOperationModifyInstanceEventStartTimeMiddlewares) if err != nil { return nil, err } @@ -49,7 +49,7 @@ type ModifyInstanceEventStartTimeInput struct { // 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 + DryRun *bool } type ModifyInstanceEventStartTimeOutput struct { @@ -61,7 +61,7 @@ type ModifyInstanceEventStartTimeOutput struct { ResultMetadata middleware.Metadata } -func addOperationModifyInstanceEventStartTimeMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationModifyInstanceEventStartTimeMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpModifyInstanceEventStartTime{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyInstanceMetadataOptions.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyInstanceMetadataOptions.go index b8f465950..7bfade4ab 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyInstanceMetadataOptions.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyInstanceMetadataOptions.go @@ -18,13 +18,14 @@ import ( // successfully applied to the instance, the state of the modifications changes // from “pending” to “applied” in subsequent describe-instances API calls. For more // information, see Instance metadata and user data -// (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-metadata.html). +// (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-metadata.html) +// in the Amazon EC2 User Guide. func (c *Client) ModifyInstanceMetadataOptions(ctx context.Context, params *ModifyInstanceMetadataOptionsInput, optFns ...func(*Options)) (*ModifyInstanceMetadataOptionsOutput, error) { if params == nil { params = &ModifyInstanceMetadataOptionsInput{} } - result, metadata, err := c.invokeOperation(ctx, "ModifyInstanceMetadataOptions", params, optFns, addOperationModifyInstanceMetadataOptionsMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "ModifyInstanceMetadataOptions", params, optFns, c.addOperationModifyInstanceMetadataOptionsMiddlewares) if err != nil { return nil, err } @@ -45,7 +46,7 @@ type ModifyInstanceMetadataOptionsInput struct { // 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 + DryRun *bool // This parameter enables or disables the HTTP metadata endpoint on your instances. // If the parameter is not specified, the existing state is maintained. If you @@ -57,7 +58,7 @@ type ModifyInstanceMetadataOptionsInput struct { // larger the number, the further instance metadata requests can travel. If no // parameter is specified, the existing state is maintained. Possible values: // Integers from 1 to 64 - HttpPutResponseHopLimit int32 + HttpPutResponseHopLimit *int32 // The state of token usage for your instance metadata requests. If the parameter // is not specified in the request, the default state is optional. If the state is @@ -84,7 +85,7 @@ type ModifyInstanceMetadataOptionsOutput struct { ResultMetadata middleware.Metadata } -func addOperationModifyInstanceMetadataOptionsMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationModifyInstanceMetadataOptionsMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpModifyInstanceMetadataOptions{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyInstancePlacement.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyInstancePlacement.go index 6c0e9992b..217c63fd5 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyInstancePlacement.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyInstancePlacement.go @@ -41,7 +41,7 @@ func (c *Client) ModifyInstancePlacement(ctx context.Context, params *ModifyInst params = &ModifyInstancePlacementInput{} } - result, metadata, err := c.invokeOperation(ctx, "ModifyInstancePlacement", params, optFns, addOperationModifyInstancePlacementMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "ModifyInstancePlacement", params, optFns, c.addOperationModifyInstancePlacementMiddlewares) if err != nil { return nil, err } @@ -75,7 +75,7 @@ type ModifyInstancePlacementInput struct { HostResourceGroupArn *string // Reserved for future use. - PartitionNumber int32 + PartitionNumber *int32 // The tenancy for the instance. Tenancy types.HostTenancy @@ -84,13 +84,13 @@ type ModifyInstancePlacementInput struct { type ModifyInstancePlacementOutput struct { // Is true if the request succeeds, and an error otherwise. - Return bool + Return *bool // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata } -func addOperationModifyInstancePlacementMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationModifyInstancePlacementMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpModifyInstancePlacement{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyLaunchTemplate.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyLaunchTemplate.go index 6569524a6..29f5deebd 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyLaunchTemplate.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyLaunchTemplate.go @@ -19,7 +19,7 @@ func (c *Client) ModifyLaunchTemplate(ctx context.Context, params *ModifyLaunchT params = &ModifyLaunchTemplateInput{} } - result, metadata, err := c.invokeOperation(ctx, "ModifyLaunchTemplate", params, optFns, addOperationModifyLaunchTemplateMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "ModifyLaunchTemplate", params, optFns, c.addOperationModifyLaunchTemplateMiddlewares) if err != nil { return nil, err } @@ -44,7 +44,7 @@ type ModifyLaunchTemplateInput struct { // 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 + DryRun *bool // The ID of the launch template. You must specify either the launch template ID or // launch template name in the request. @@ -64,7 +64,7 @@ type ModifyLaunchTemplateOutput struct { ResultMetadata middleware.Metadata } -func addOperationModifyLaunchTemplateMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationModifyLaunchTemplateMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpModifyLaunchTemplate{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyManagedPrefixList.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyManagedPrefixList.go index 8f71a4e21..70fcec376 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyManagedPrefixList.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyManagedPrefixList.go @@ -20,7 +20,7 @@ func (c *Client) ModifyManagedPrefixList(ctx context.Context, params *ModifyMana params = &ModifyManagedPrefixListInput{} } - result, metadata, err := c.invokeOperation(ctx, "ModifyManagedPrefixList", params, optFns, addOperationModifyManagedPrefixListMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "ModifyManagedPrefixList", params, optFns, c.addOperationModifyManagedPrefixListMiddlewares) if err != nil { return nil, err } @@ -41,13 +41,13 @@ type ModifyManagedPrefixListInput struct { AddEntries []types.AddPrefixListEntry // The current version of the prefix list. - CurrentVersion int64 + CurrentVersion *int64 // 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 + DryRun *bool // A name for the prefix list. PrefixListName *string @@ -65,7 +65,7 @@ type ModifyManagedPrefixListOutput struct { ResultMetadata middleware.Metadata } -func addOperationModifyManagedPrefixListMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationModifyManagedPrefixListMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpModifyManagedPrefixList{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyNetworkInterfaceAttribute.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyNetworkInterfaceAttribute.go index a3e121e61..b86c4613a 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyNetworkInterfaceAttribute.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyNetworkInterfaceAttribute.go @@ -19,7 +19,7 @@ func (c *Client) ModifyNetworkInterfaceAttribute(ctx context.Context, params *Mo params = &ModifyNetworkInterfaceAttributeInput{} } - result, metadata, err := c.invokeOperation(ctx, "ModifyNetworkInterfaceAttribute", params, optFns, addOperationModifyNetworkInterfaceAttributeMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "ModifyNetworkInterfaceAttribute", params, optFns, c.addOperationModifyNetworkInterfaceAttributeMiddlewares) if err != nil { return nil, err } @@ -48,7 +48,7 @@ type ModifyNetworkInterfaceAttributeInput struct { // 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 + DryRun *bool // Changes the security groups for the network interface. The new set of groups you // specify replaces the current set. You must specify at least one group, even if @@ -56,11 +56,12 @@ type ModifyNetworkInterfaceAttributeInput struct { // security group, not the name. Groups []string - // Indicates whether source/destination checking is enabled. A value of true means - // checking is enabled, and false means checking is disabled. This value must be - // false for a NAT instance to perform NAT. For more information, see NAT Instances - // (https://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_NAT_Instance.html) - // in the Amazon Virtual Private Cloud User Guide. + // Enable or disable source/destination checks, which ensure that the instance is + // either the source or the destination of any traffic that it receives. If the + // value is true, source/destination checks are enabled; otherwise, they are + // disabled. The default value is true. You must disable source/destination checks + // if the instance runs services such as network address translation, routing, or + // firewalls. SourceDestCheck *types.AttributeBooleanValue } @@ -69,7 +70,7 @@ type ModifyNetworkInterfaceAttributeOutput struct { ResultMetadata middleware.Metadata } -func addOperationModifyNetworkInterfaceAttributeMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationModifyNetworkInterfaceAttributeMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpModifyNetworkInterfaceAttribute{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyReservedInstances.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyReservedInstances.go index 7389190b2..8c530e122 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyReservedInstances.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyReservedInstances.go @@ -17,13 +17,13 @@ import ( // network platform, and instance type. For more information, see Modifying // Reserved Instances // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ri-modifying.html) in the -// Amazon Elastic Compute Cloud User Guide. +// Amazon EC2 User Guide. func (c *Client) ModifyReservedInstances(ctx context.Context, params *ModifyReservedInstancesInput, optFns ...func(*Options)) (*ModifyReservedInstancesOutput, error) { if params == nil { params = &ModifyReservedInstancesInput{} } - result, metadata, err := c.invokeOperation(ctx, "ModifyReservedInstances", params, optFns, addOperationModifyReservedInstancesMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "ModifyReservedInstances", params, optFns, c.addOperationModifyReservedInstancesMiddlewares) if err != nil { return nil, err } @@ -62,7 +62,7 @@ type ModifyReservedInstancesOutput struct { ResultMetadata middleware.Metadata } -func addOperationModifyReservedInstancesMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationModifyReservedInstancesMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpModifyReservedInstances{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifySnapshotAttribute.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifySnapshotAttribute.go index d25165d29..1277e4b89 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifySnapshotAttribute.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifySnapshotAttribute.go @@ -27,7 +27,7 @@ func (c *Client) ModifySnapshotAttribute(ctx context.Context, params *ModifySnap params = &ModifySnapshotAttributeInput{} } - result, metadata, err := c.invokeOperation(ctx, "ModifySnapshotAttribute", params, optFns, addOperationModifySnapshotAttributeMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "ModifySnapshotAttribute", params, optFns, c.addOperationModifySnapshotAttributeMiddlewares) if err != nil { return nil, err } @@ -55,7 +55,7 @@ type ModifySnapshotAttributeInput struct { // 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 + DryRun *bool // The group to modify for the snapshot. GroupNames []string @@ -72,7 +72,7 @@ type ModifySnapshotAttributeOutput struct { ResultMetadata middleware.Metadata } -func addOperationModifySnapshotAttributeMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationModifySnapshotAttributeMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpModifySnapshotAttribute{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifySpotFleetRequest.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifySpotFleetRequest.go index c6c78df03..f9d6eb56b 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifySpotFleetRequest.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifySpotFleetRequest.go @@ -39,7 +39,7 @@ func (c *Client) ModifySpotFleetRequest(ctx context.Context, params *ModifySpotF params = &ModifySpotFleetRequestInput{} } - result, metadata, err := c.invokeOperation(ctx, "ModifySpotFleetRequest", params, optFns, addOperationModifySpotFleetRequestMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "ModifySpotFleetRequest", params, optFns, c.addOperationModifySpotFleetRequestMiddlewares) if err != nil { return nil, err } @@ -57,6 +57,9 @@ type ModifySpotFleetRequestInput struct { // This member is required. SpotFleetRequestId *string + // Reserved. + Context *string + // Indicates whether running Spot Instances should be terminated if the target // capacity of the Spot Fleet request is decreased below the current size of the // Spot Fleet. @@ -69,23 +72,23 @@ type ModifySpotFleetRequestInput struct { LaunchTemplateConfigs []types.LaunchTemplateConfig // The number of On-Demand Instances in the fleet. - OnDemandTargetCapacity int32 + OnDemandTargetCapacity *int32 // The size of the fleet. - TargetCapacity int32 + TargetCapacity *int32 } // Contains the output of ModifySpotFleetRequest. type ModifySpotFleetRequestOutput struct { // Is true if the request succeeds, and an error otherwise. - Return bool + Return *bool // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata } -func addOperationModifySpotFleetRequestMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationModifySpotFleetRequestMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpModifySpotFleetRequest{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifySubnetAttribute.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifySubnetAttribute.go index e62b2fe9b..95ee9c8eb 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifySubnetAttribute.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifySubnetAttribute.go @@ -17,7 +17,7 @@ func (c *Client) ModifySubnetAttribute(ctx context.Context, params *ModifySubnet params = &ModifySubnetAttributeInput{} } - result, metadata, err := c.invokeOperation(ctx, "ModifySubnetAttribute", params, optFns, addOperationModifySubnetAttributeMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "ModifySubnetAttribute", params, optFns, c.addOperationModifySubnetAttributeMiddlewares) if err != nil { return nil, err } @@ -62,7 +62,7 @@ type ModifySubnetAttributeOutput struct { ResultMetadata middleware.Metadata } -func addOperationModifySubnetAttributeMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationModifySubnetAttributeMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpModifySubnetAttribute{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyTrafficMirrorFilterNetworkServices.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyTrafficMirrorFilterNetworkServices.go index 2f14b939c..0be1f2711 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyTrafficMirrorFilterNetworkServices.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyTrafficMirrorFilterNetworkServices.go @@ -25,7 +25,7 @@ func (c *Client) ModifyTrafficMirrorFilterNetworkServices(ctx context.Context, p params = &ModifyTrafficMirrorFilterNetworkServicesInput{} } - result, metadata, err := c.invokeOperation(ctx, "ModifyTrafficMirrorFilterNetworkServices", params, optFns, addOperationModifyTrafficMirrorFilterNetworkServicesMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "ModifyTrafficMirrorFilterNetworkServices", params, optFns, c.addOperationModifyTrafficMirrorFilterNetworkServicesMiddlewares) if err != nil { return nil, err } @@ -49,7 +49,7 @@ type ModifyTrafficMirrorFilterNetworkServicesInput struct { // 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 + DryRun *bool // The network service, for example Amazon DNS, that you no longer want to mirror. RemoveNetworkServices []types.TrafficMirrorNetworkService @@ -64,7 +64,7 @@ type ModifyTrafficMirrorFilterNetworkServicesOutput struct { ResultMetadata middleware.Metadata } -func addOperationModifyTrafficMirrorFilterNetworkServicesMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationModifyTrafficMirrorFilterNetworkServicesMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpModifyTrafficMirrorFilterNetworkServices{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyTrafficMirrorFilterRule.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyTrafficMirrorFilterRule.go index 54fe90f63..e8772ccc6 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyTrafficMirrorFilterRule.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyTrafficMirrorFilterRule.go @@ -18,7 +18,7 @@ func (c *Client) ModifyTrafficMirrorFilterRule(ctx context.Context, params *Modi params = &ModifyTrafficMirrorFilterRuleInput{} } - result, metadata, err := c.invokeOperation(ctx, "ModifyTrafficMirrorFilterRule", params, optFns, addOperationModifyTrafficMirrorFilterRuleMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "ModifyTrafficMirrorFilterRule", params, optFns, c.addOperationModifyTrafficMirrorFilterRuleMiddlewares) if err != nil { return nil, err } @@ -48,10 +48,10 @@ type ModifyTrafficMirrorFilterRuleInput struct { // 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 + DryRun *bool // The protocol, for example TCP, to assign to the Traffic Mirror rule. - Protocol int32 + Protocol *int32 // The properties that you want to remove from the Traffic Mirror filter rule. When // you remove a property from a Traffic Mirror filter rule, the property is set to @@ -64,7 +64,7 @@ type ModifyTrafficMirrorFilterRuleInput struct { // The number of the Traffic Mirror rule. This number must be unique for each // Traffic Mirror rule in a given direction. The rules are processed in ascending // order by rule number. - RuleNumber int32 + RuleNumber *int32 // The source CIDR block to assign to the Traffic Mirror rule. SourceCidrBlock *string @@ -85,7 +85,7 @@ type ModifyTrafficMirrorFilterRuleOutput struct { ResultMetadata middleware.Metadata } -func addOperationModifyTrafficMirrorFilterRuleMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationModifyTrafficMirrorFilterRuleMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpModifyTrafficMirrorFilterRule{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyTrafficMirrorSession.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyTrafficMirrorSession.go index 666f63bf3..cd1415cde 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyTrafficMirrorSession.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyTrafficMirrorSession.go @@ -17,7 +17,7 @@ func (c *Client) ModifyTrafficMirrorSession(ctx context.Context, params *ModifyT params = &ModifyTrafficMirrorSessionInput{} } - result, metadata, err := c.invokeOperation(ctx, "ModifyTrafficMirrorSession", params, optFns, addOperationModifyTrafficMirrorSessionMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "ModifyTrafficMirrorSession", params, optFns, c.addOperationModifyTrafficMirrorSessionMiddlewares) if err != nil { return nil, err } @@ -41,14 +41,14 @@ type ModifyTrafficMirrorSessionInput struct { // 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 + DryRun *bool // The number of bytes in each packet to mirror. These are bytes after the VXLAN // header. To mirror a subset, set this to the length (in bytes) to mirror. For // example, if you set this value to 100, then the first 100 bytes that meet the // filter criteria are copied to the target. Do not specify this parameter when you // want to mirror the entire packet. - PacketLength int32 + PacketLength *int32 // The properties that you want to remove from the Traffic Mirror session. When you // remove a property from a Traffic Mirror session, the property is set to the @@ -58,7 +58,7 @@ type ModifyTrafficMirrorSessionInput struct { // The session number determines the order in which sessions are evaluated when an // interface is used by multiple sessions. The first session with a matching filter // is the one that mirrors the packets. Valid values are 1-32766. - SessionNumber int32 + SessionNumber *int32 // The ID of the Traffic Mirror filter. TrafficMirrorFilterId *string @@ -68,7 +68,7 @@ type ModifyTrafficMirrorSessionInput struct { TrafficMirrorTargetId *string // The virtual network ID of the Traffic Mirror session. - VirtualNetworkId int32 + VirtualNetworkId *int32 } type ModifyTrafficMirrorSessionOutput struct { @@ -80,7 +80,7 @@ type ModifyTrafficMirrorSessionOutput struct { ResultMetadata middleware.Metadata } -func addOperationModifyTrafficMirrorSessionMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationModifyTrafficMirrorSessionMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpModifyTrafficMirrorSession{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyTransitGateway.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyTransitGateway.go index b62ba4c3e..58d969f47 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyTransitGateway.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyTransitGateway.go @@ -19,7 +19,7 @@ func (c *Client) ModifyTransitGateway(ctx context.Context, params *ModifyTransit params = &ModifyTransitGatewayInput{} } - result, metadata, err := c.invokeOperation(ctx, "ModifyTransitGateway", params, optFns, addOperationModifyTransitGatewayMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "ModifyTransitGateway", params, optFns, c.addOperationModifyTransitGatewayMiddlewares) if err != nil { return nil, err } @@ -43,7 +43,7 @@ type ModifyTransitGatewayInput struct { // 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 + DryRun *bool // The options to modify. Options *types.ModifyTransitGatewayOptions @@ -58,7 +58,7 @@ type ModifyTransitGatewayOutput struct { ResultMetadata middleware.Metadata } -func addOperationModifyTransitGatewayMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationModifyTransitGatewayMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpModifyTransitGateway{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyTransitGatewayPrefixListReference.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyTransitGatewayPrefixListReference.go index 13d1f6647..7fb11b44c 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyTransitGatewayPrefixListReference.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyTransitGatewayPrefixListReference.go @@ -18,7 +18,7 @@ func (c *Client) ModifyTransitGatewayPrefixListReference(ctx context.Context, pa params = &ModifyTransitGatewayPrefixListReferenceInput{} } - result, metadata, err := c.invokeOperation(ctx, "ModifyTransitGatewayPrefixListReference", params, optFns, addOperationModifyTransitGatewayPrefixListReferenceMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "ModifyTransitGatewayPrefixListReference", params, optFns, c.addOperationModifyTransitGatewayPrefixListReferenceMiddlewares) if err != nil { return nil, err } @@ -41,13 +41,13 @@ type ModifyTransitGatewayPrefixListReferenceInput struct { TransitGatewayRouteTableId *string // Indicates whether to drop traffic that matches this route. - Blackhole bool + Blackhole *bool // 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 + DryRun *bool // The ID of the attachment to which traffic is routed. TransitGatewayAttachmentId *string @@ -62,7 +62,7 @@ type ModifyTransitGatewayPrefixListReferenceOutput struct { ResultMetadata middleware.Metadata } -func addOperationModifyTransitGatewayPrefixListReferenceMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationModifyTransitGatewayPrefixListReferenceMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpModifyTransitGatewayPrefixListReference{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyTransitGatewayVpcAttachment.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyTransitGatewayVpcAttachment.go index b2955c532..82455f1f2 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyTransitGatewayVpcAttachment.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyTransitGatewayVpcAttachment.go @@ -17,7 +17,7 @@ func (c *Client) ModifyTransitGatewayVpcAttachment(ctx context.Context, params * params = &ModifyTransitGatewayVpcAttachmentInput{} } - result, metadata, err := c.invokeOperation(ctx, "ModifyTransitGatewayVpcAttachment", params, optFns, addOperationModifyTransitGatewayVpcAttachmentMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "ModifyTransitGatewayVpcAttachment", params, optFns, c.addOperationModifyTransitGatewayVpcAttachmentMiddlewares) if err != nil { return nil, err } @@ -42,7 +42,7 @@ type ModifyTransitGatewayVpcAttachmentInput struct { // 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 + DryRun *bool // The new VPC attachment options. You cannot modify the IPv6 options. Options *types.ModifyTransitGatewayVpcAttachmentRequestOptions @@ -60,7 +60,7 @@ type ModifyTransitGatewayVpcAttachmentOutput struct { ResultMetadata middleware.Metadata } -func addOperationModifyTransitGatewayVpcAttachmentMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationModifyTransitGatewayVpcAttachmentMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpModifyTransitGatewayVpcAttachment{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyVolume.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyVolume.go index bdd32405c..216ac5d38 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyVolume.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyVolume.go @@ -50,7 +50,7 @@ func (c *Client) ModifyVolume(ctx context.Context, params *ModifyVolumeInput, op params = &ModifyVolumeInput{} } - result, metadata, err := c.invokeOperation(ctx, "ModifyVolume", params, optFns, addOperationModifyVolumeMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "ModifyVolume", params, optFns, c.addOperationModifyVolumeMiddlewares) if err != nil { return nil, err } @@ -71,7 +71,7 @@ type ModifyVolumeInput struct { // 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 + DryRun *bool // The target IOPS rate of the volume. This parameter is valid only for gp3, io1, // and io2 volumes. The following are the supported values for each volume type: @@ -84,8 +84,9 @@ type ModifyVolumeInput struct { // * io2: 100-64,000 IOPS // // Default: - // If no IOPS value is specified, the existing value is retained. - Iops int32 + // If no IOPS value is specified, the existing value is retained, unless a volume + // type is modified that supports different values. + Iops *int32 // Specifies whether to enable Amazon EBS Multi-Attach. If you enable Multi-Attach, // you can attach the volume to up to 16 Nitro-based instances @@ -94,7 +95,7 @@ type ModifyVolumeInput struct { // volumes only. For more information, see Amazon EBS Multi-Attach // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-volumes-multi.html) in // the Amazon Elastic Compute Cloud User Guide. - MultiAttachEnabled bool + MultiAttachEnabled *bool // The target size of the volume, in GiB. The target volume size must be greater // than or equal to the existing size of the volume. The following are the @@ -111,13 +112,13 @@ type ModifyVolumeInput struct { // // Default: If // no size is specified, the existing size is retained. - Size int32 + Size *int32 // The target throughput of the volume, in MiB/s. This parameter is valid only for // gp3 volumes. The maximum value is 1,000. Default: If no throughput value is // specified, the existing value is retained. Valid Range: Minimum value of 125. // Maximum value of 1000. - Throughput int32 + Throughput *int32 // The target EBS volume type of the volume. For more information, see Amazon EBS // volume types @@ -136,7 +137,7 @@ type ModifyVolumeOutput struct { ResultMetadata middleware.Metadata } -func addOperationModifyVolumeMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationModifyVolumeMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpModifyVolume{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyVolumeAttribute.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyVolumeAttribute.go index b98d2b51e..e60e6c3f4 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyVolumeAttribute.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyVolumeAttribute.go @@ -23,7 +23,7 @@ func (c *Client) ModifyVolumeAttribute(ctx context.Context, params *ModifyVolume params = &ModifyVolumeAttributeInput{} } - result, metadata, err := c.invokeOperation(ctx, "ModifyVolumeAttribute", params, optFns, addOperationModifyVolumeAttributeMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "ModifyVolumeAttribute", params, optFns, c.addOperationModifyVolumeAttributeMiddlewares) if err != nil { return nil, err } @@ -47,7 +47,7 @@ type ModifyVolumeAttributeInput struct { // 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 + DryRun *bool } type ModifyVolumeAttributeOutput struct { @@ -55,7 +55,7 @@ type ModifyVolumeAttributeOutput struct { ResultMetadata middleware.Metadata } -func addOperationModifyVolumeAttributeMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationModifyVolumeAttributeMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpModifyVolumeAttribute{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyVpcAttribute.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyVpcAttribute.go index deed2e638..f3f72927a 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyVpcAttribute.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyVpcAttribute.go @@ -17,7 +17,7 @@ func (c *Client) ModifyVpcAttribute(ctx context.Context, params *ModifyVpcAttrib params = &ModifyVpcAttributeInput{} } - result, metadata, err := c.invokeOperation(ctx, "ModifyVpcAttribute", params, optFns, addOperationModifyVpcAttributeMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "ModifyVpcAttribute", params, optFns, c.addOperationModifyVpcAttributeMiddlewares) if err != nil { return nil, err } @@ -56,7 +56,7 @@ type ModifyVpcAttributeOutput struct { ResultMetadata middleware.Metadata } -func addOperationModifyVpcAttributeMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationModifyVpcAttributeMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpModifyVpcAttribute{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyVpcEndpoint.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyVpcEndpoint.go index ee131f9f5..cc37c5bdf 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyVpcEndpoint.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyVpcEndpoint.go @@ -20,7 +20,7 @@ func (c *Client) ModifyVpcEndpoint(ctx context.Context, params *ModifyVpcEndpoin params = &ModifyVpcEndpointInput{} } - result, metadata, err := c.invokeOperation(ctx, "ModifyVpcEndpoint", params, optFns, addOperationModifyVpcEndpointMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "ModifyVpcEndpoint", params, optFns, c.addOperationModifyVpcEndpointMiddlewares) if err != nil { return nil, err } @@ -54,7 +54,7 @@ type ModifyVpcEndpointInput struct { // 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 + DryRun *bool // (Interface and gateway endpoints) A policy to attach to the endpoint that // controls access to the service. The policy must be in valid JSON format. @@ -62,7 +62,7 @@ type ModifyVpcEndpointInput struct { // (Interface endpoint) Indicates whether a private hosted zone is associated with // the VPC. - PrivateDnsEnabled bool + PrivateDnsEnabled *bool // (Gateway endpoint) One or more route table IDs to disassociate from the // endpoint. @@ -77,19 +77,19 @@ type ModifyVpcEndpointInput struct { // (Gateway endpoint) Specify true to reset the policy document to the default // policy. The default policy allows full access to the service. - ResetPolicy bool + ResetPolicy *bool } type ModifyVpcEndpointOutput struct { // Returns true if the request succeeds; otherwise, it returns an error. - Return bool + Return *bool // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata } -func addOperationModifyVpcEndpointMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationModifyVpcEndpointMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpModifyVpcEndpoint{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyVpcEndpointConnectionNotification.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyVpcEndpointConnectionNotification.go index e9b983026..b9e080434 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyVpcEndpointConnectionNotification.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyVpcEndpointConnectionNotification.go @@ -18,7 +18,7 @@ func (c *Client) ModifyVpcEndpointConnectionNotification(ctx context.Context, pa params = &ModifyVpcEndpointConnectionNotificationInput{} } - result, metadata, err := c.invokeOperation(ctx, "ModifyVpcEndpointConnectionNotification", params, optFns, addOperationModifyVpcEndpointConnectionNotificationMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "ModifyVpcEndpointConnectionNotification", params, optFns, c.addOperationModifyVpcEndpointConnectionNotificationMiddlewares) if err != nil { return nil, err } @@ -46,19 +46,19 @@ type ModifyVpcEndpointConnectionNotificationInput struct { // 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 + DryRun *bool } type ModifyVpcEndpointConnectionNotificationOutput struct { // Returns true if the request succeeds; otherwise, it returns an error. - ReturnValue bool + ReturnValue *bool // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata } -func addOperationModifyVpcEndpointConnectionNotificationMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationModifyVpcEndpointConnectionNotificationMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpModifyVpcEndpointConnectionNotification{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyVpcEndpointServiceConfiguration.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyVpcEndpointServiceConfiguration.go index f390ce424..18b3a4b8d 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyVpcEndpointServiceConfiguration.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyVpcEndpointServiceConfiguration.go @@ -23,7 +23,7 @@ func (c *Client) ModifyVpcEndpointServiceConfiguration(ctx context.Context, para params = &ModifyVpcEndpointServiceConfigurationInput{} } - result, metadata, err := c.invokeOperation(ctx, "ModifyVpcEndpointServiceConfiguration", params, optFns, addOperationModifyVpcEndpointServiceConfigurationMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "ModifyVpcEndpointServiceConfiguration", params, optFns, c.addOperationModifyVpcEndpointServiceConfigurationMiddlewares) if err != nil { return nil, err } @@ -42,7 +42,7 @@ type ModifyVpcEndpointServiceConfigurationInput struct { // Indicates whether requests to create an endpoint to your service must be // accepted. - AcceptanceRequired bool + AcceptanceRequired *bool // The Amazon Resource Names (ARNs) of Gateway Load Balancers to add to your // service configuration. @@ -56,7 +56,7 @@ type ModifyVpcEndpointServiceConfigurationInput struct { // 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 + DryRun *bool // (Interface endpoint configuration) The private DNS name to assign to the // endpoint service. @@ -72,19 +72,19 @@ type ModifyVpcEndpointServiceConfigurationInput struct { // (Interface endpoint configuration) Removes the private DNS name of the endpoint // service. - RemovePrivateDnsName bool + RemovePrivateDnsName *bool } type ModifyVpcEndpointServiceConfigurationOutput struct { // Returns true if the request succeeds; otherwise, it returns an error. - Return bool + Return *bool // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata } -func addOperationModifyVpcEndpointServiceConfigurationMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationModifyVpcEndpointServiceConfigurationMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpModifyVpcEndpointServiceConfiguration{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyVpcEndpointServicePermissions.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyVpcEndpointServicePermissions.go index 68f26918f..a371c4799 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyVpcEndpointServicePermissions.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyVpcEndpointServicePermissions.go @@ -22,7 +22,7 @@ func (c *Client) ModifyVpcEndpointServicePermissions(ctx context.Context, params params = &ModifyVpcEndpointServicePermissionsInput{} } - result, metadata, err := c.invokeOperation(ctx, "ModifyVpcEndpointServicePermissions", params, optFns, addOperationModifyVpcEndpointServicePermissionsMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "ModifyVpcEndpointServicePermissions", params, optFns, c.addOperationModifyVpcEndpointServicePermissionsMiddlewares) if err != nil { return nil, err } @@ -48,7 +48,7 @@ type ModifyVpcEndpointServicePermissionsInput struct { // 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 + DryRun *bool // The Amazon Resource Names (ARN) of one or more principals. Permissions are // revoked for principals in this list. @@ -58,13 +58,13 @@ type ModifyVpcEndpointServicePermissionsInput struct { type ModifyVpcEndpointServicePermissionsOutput struct { // Returns true if the request succeeds; otherwise, it returns an error. - ReturnValue bool + ReturnValue *bool // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata } -func addOperationModifyVpcEndpointServicePermissionsMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationModifyVpcEndpointServicePermissionsMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpModifyVpcEndpointServicePermissions{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyVpcPeeringConnectionOptions.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyVpcPeeringConnectionOptions.go index 48062a140..a27c6724c 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyVpcPeeringConnectionOptions.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyVpcPeeringConnectionOptions.go @@ -42,7 +42,7 @@ func (c *Client) ModifyVpcPeeringConnectionOptions(ctx context.Context, params * params = &ModifyVpcPeeringConnectionOptionsInput{} } - result, metadata, err := c.invokeOperation(ctx, "ModifyVpcPeeringConnectionOptions", params, optFns, addOperationModifyVpcPeeringConnectionOptionsMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "ModifyVpcPeeringConnectionOptions", params, optFns, c.addOperationModifyVpcPeeringConnectionOptionsMiddlewares) if err != nil { return nil, err } @@ -66,7 +66,7 @@ type ModifyVpcPeeringConnectionOptionsInput struct { // 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 + DryRun *bool // The VPC peering connection options for the requester VPC. RequesterPeeringConnectionOptions *types.PeeringConnectionOptionsRequest @@ -84,7 +84,7 @@ type ModifyVpcPeeringConnectionOptionsOutput struct { ResultMetadata middleware.Metadata } -func addOperationModifyVpcPeeringConnectionOptionsMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationModifyVpcPeeringConnectionOptionsMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpModifyVpcPeeringConnectionOptions{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyVpcTenancy.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyVpcTenancy.go index 7e48ecff3..b06a85f16 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyVpcTenancy.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyVpcTenancy.go @@ -25,7 +25,7 @@ func (c *Client) ModifyVpcTenancy(ctx context.Context, params *ModifyVpcTenancyI params = &ModifyVpcTenancyInput{} } - result, metadata, err := c.invokeOperation(ctx, "ModifyVpcTenancy", params, optFns, addOperationModifyVpcTenancyMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "ModifyVpcTenancy", params, optFns, c.addOperationModifyVpcTenancyMiddlewares) if err != nil { return nil, err } @@ -51,19 +51,19 @@ type ModifyVpcTenancyInput struct { // 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 + DryRun *bool } type ModifyVpcTenancyOutput struct { // Returns true if the request succeeds; otherwise, returns an error. - ReturnValue bool + ReturnValue *bool // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata } -func addOperationModifyVpcTenancyMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationModifyVpcTenancyMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpModifyVpcTenancy{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyVpnConnection.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyVpnConnection.go index eea487ec6..959eca0a1 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyVpnConnection.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyVpnConnection.go @@ -51,7 +51,7 @@ func (c *Client) ModifyVpnConnection(ctx context.Context, params *ModifyVpnConne params = &ModifyVpnConnectionInput{} } - result, metadata, err := c.invokeOperation(ctx, "ModifyVpnConnection", params, optFns, addOperationModifyVpnConnectionMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "ModifyVpnConnection", params, optFns, c.addOperationModifyVpnConnectionMiddlewares) if err != nil { return nil, err } @@ -75,7 +75,7 @@ type ModifyVpnConnectionInput struct { // 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 + DryRun *bool // The ID of the transit gateway. TransitGatewayId *string @@ -93,7 +93,7 @@ type ModifyVpnConnectionOutput struct { ResultMetadata middleware.Metadata } -func addOperationModifyVpnConnectionMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationModifyVpnConnectionMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpModifyVpnConnection{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyVpnConnectionOptions.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyVpnConnectionOptions.go index 3be36592f..f216e5e02 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyVpnConnectionOptions.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyVpnConnectionOptions.go @@ -20,7 +20,7 @@ func (c *Client) ModifyVpnConnectionOptions(ctx context.Context, params *ModifyV params = &ModifyVpnConnectionOptionsInput{} } - result, metadata, err := c.invokeOperation(ctx, "ModifyVpnConnectionOptions", params, optFns, addOperationModifyVpnConnectionOptionsMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "ModifyVpnConnectionOptions", params, optFns, c.addOperationModifyVpnConnectionOptionsMiddlewares) if err != nil { return nil, err } @@ -41,7 +41,7 @@ type ModifyVpnConnectionOptionsInput struct { // 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 + DryRun *bool // The IPv4 CIDR on the customer gateway (on-premises) side of the VPN connection. // Default: 0.0.0.0/0 @@ -67,7 +67,7 @@ type ModifyVpnConnectionOptionsOutput struct { ResultMetadata middleware.Metadata } -func addOperationModifyVpnConnectionOptionsMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationModifyVpnConnectionOptionsMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpModifyVpnConnectionOptions{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyVpnTunnelCertificate.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyVpnTunnelCertificate.go index 49e8c6bf9..46786500c 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyVpnTunnelCertificate.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyVpnTunnelCertificate.go @@ -17,7 +17,7 @@ func (c *Client) ModifyVpnTunnelCertificate(ctx context.Context, params *ModifyV params = &ModifyVpnTunnelCertificateInput{} } - result, metadata, err := c.invokeOperation(ctx, "ModifyVpnTunnelCertificate", params, optFns, addOperationModifyVpnTunnelCertificateMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "ModifyVpnTunnelCertificate", params, optFns, c.addOperationModifyVpnTunnelCertificateMiddlewares) if err != nil { return nil, err } @@ -43,7 +43,7 @@ type ModifyVpnTunnelCertificateInput struct { // 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 + DryRun *bool } type ModifyVpnTunnelCertificateOutput struct { @@ -55,7 +55,7 @@ type ModifyVpnTunnelCertificateOutput struct { ResultMetadata middleware.Metadata } -func addOperationModifyVpnTunnelCertificateMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationModifyVpnTunnelCertificateMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpModifyVpnTunnelCertificate{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyVpnTunnelOptions.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyVpnTunnelOptions.go index ca070b4ff..a622ec761 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyVpnTunnelOptions.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyVpnTunnelOptions.go @@ -22,7 +22,7 @@ func (c *Client) ModifyVpnTunnelOptions(ctx context.Context, params *ModifyVpnTu params = &ModifyVpnTunnelOptionsInput{} } - result, metadata, err := c.invokeOperation(ctx, "ModifyVpnTunnelOptions", params, optFns, addOperationModifyVpnTunnelOptionsMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "ModifyVpnTunnelOptions", params, optFns, c.addOperationModifyVpnTunnelOptionsMiddlewares) if err != nil { return nil, err } @@ -53,7 +53,7 @@ type ModifyVpnTunnelOptionsInput struct { // 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 + DryRun *bool } type ModifyVpnTunnelOptionsOutput struct { @@ -65,7 +65,7 @@ type ModifyVpnTunnelOptionsOutput struct { ResultMetadata middleware.Metadata } -func addOperationModifyVpnTunnelOptionsMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationModifyVpnTunnelOptionsMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpModifyVpnTunnelOptions{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_MonitorInstances.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_MonitorInstances.go index fcce35d2c..1155460b8 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_MonitorInstances.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_MonitorInstances.go @@ -14,14 +14,13 @@ import ( // Enables detailed monitoring for a running instance. Otherwise, basic monitoring // is enabled. For more information, see Monitoring your instances and volumes // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-cloudwatch.html) in -// the Amazon Elastic Compute Cloud User Guide. To disable detailed monitoring, see -// . +// the Amazon EC2 User Guide. To disable detailed monitoring, see . func (c *Client) MonitorInstances(ctx context.Context, params *MonitorInstancesInput, optFns ...func(*Options)) (*MonitorInstancesOutput, error) { if params == nil { params = &MonitorInstancesInput{} } - result, metadata, err := c.invokeOperation(ctx, "MonitorInstances", params, optFns, addOperationMonitorInstancesMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "MonitorInstances", params, optFns, c.addOperationMonitorInstancesMiddlewares) if err != nil { return nil, err } @@ -42,7 +41,7 @@ type MonitorInstancesInput struct { // 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 + DryRun *bool } type MonitorInstancesOutput struct { @@ -54,7 +53,7 @@ type MonitorInstancesOutput struct { ResultMetadata middleware.Metadata } -func addOperationMonitorInstancesMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationMonitorInstancesMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpMonitorInstances{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_MoveAddressToVpc.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_MoveAddressToVpc.go index 4b72b3555..74ced64a2 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_MoveAddressToVpc.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_MoveAddressToVpc.go @@ -23,7 +23,7 @@ func (c *Client) MoveAddressToVpc(ctx context.Context, params *MoveAddressToVpcI params = &MoveAddressToVpcInput{} } - result, metadata, err := c.invokeOperation(ctx, "MoveAddressToVpc", params, optFns, addOperationMoveAddressToVpcMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "MoveAddressToVpc", params, optFns, c.addOperationMoveAddressToVpcMiddlewares) if err != nil { return nil, err } @@ -44,7 +44,7 @@ type MoveAddressToVpcInput struct { // 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 + DryRun *bool } type MoveAddressToVpcOutput struct { @@ -59,7 +59,7 @@ type MoveAddressToVpcOutput struct { ResultMetadata middleware.Metadata } -func addOperationMoveAddressToVpcMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationMoveAddressToVpcMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpMoveAddressToVpc{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ProvisionByoipCidr.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ProvisionByoipCidr.go index f8500a86f..014bbdf80 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ProvisionByoipCidr.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ProvisionByoipCidr.go @@ -11,14 +11,14 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Provisions an IPv4 or IPv6 address range for use with your AWS resources through -// bring your own IP addresses (BYOIP) and creates a corresponding address pool. -// After the address range is provisioned, it is ready to be advertised using -// AdvertiseByoipCidr. AWS verifies that you own the address range and are -// authorized to advertise it. You must ensure that the address range is registered -// to you and that you created an RPKI ROA to authorize Amazon ASNs 16509 and 14618 -// to advertise the address range. For more information, see Bring Your Own IP -// Addresses (BYOIP) +// Provisions an IPv4 or IPv6 address range for use with your Amazon Web Services +// resources through bring your own IP addresses (BYOIP) and creates a +// corresponding address pool. After the address range is provisioned, it is ready +// to be advertised using AdvertiseByoipCidr. Amazon Web Services verifies that you +// own the address range and are authorized to advertise it. You must ensure that +// the address range is registered to you and that you created an RPKI ROA to +// authorize Amazon ASNs 16509 and 14618 to advertise the address range. For more +// information, see Bring your own IP addresses (BYOIP) // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-byoip.html) in the // Amazon Elastic Compute Cloud User Guide. Provisioning an address range is an // asynchronous operation, so the call returns immediately, but the address range @@ -32,7 +32,7 @@ func (c *Client) ProvisionByoipCidr(ctx context.Context, params *ProvisionByoipC params = &ProvisionByoipCidrInput{} } - result, metadata, err := c.invokeOperation(ctx, "ProvisionByoipCidr", params, optFns, addOperationProvisionByoipCidrMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "ProvisionByoipCidr", params, optFns, c.addOperationProvisionByoipCidrMiddlewares) if err != nil { return nil, err } @@ -63,14 +63,17 @@ type ProvisionByoipCidrInput struct { // 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 + DryRun *bool + + // Reserved. + MultiRegion *bool // The tags to apply to the address pool. PoolTagSpecifications []types.TagSpecification // (IPv6 only) Indicate whether the address range will be publicly advertised to // the internet. Default: true - PubliclyAdvertisable bool + PubliclyAdvertisable *bool } type ProvisionByoipCidrOutput struct { @@ -82,7 +85,7 @@ type ProvisionByoipCidrOutput struct { ResultMetadata middleware.Metadata } -func addOperationProvisionByoipCidrMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationProvisionByoipCidrMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpProvisionByoipCidr{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_PurchaseHostReservation.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_PurchaseHostReservation.go index 13e74b333..de92577d2 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_PurchaseHostReservation.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_PurchaseHostReservation.go @@ -20,7 +20,7 @@ func (c *Client) PurchaseHostReservation(ctx context.Context, params *PurchaseHo params = &PurchaseHostReservationInput{} } - result, metadata, err := c.invokeOperation(ctx, "PurchaseHostReservation", params, optFns, addOperationPurchaseHostReservationMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "PurchaseHostReservation", params, optFns, c.addOperationPurchaseHostReservationMiddlewares) if err != nil { return nil, err } @@ -43,7 +43,7 @@ type PurchaseHostReservationInput struct { OfferingId *string // Unique, case-sensitive identifier that you provide to ensure the idempotency of - // the request. For more information, see How to Ensure Idempotency + // the request. For more information, see Ensuring Idempotency // (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html). ClientToken *string @@ -66,7 +66,7 @@ type PurchaseHostReservationInput struct { type PurchaseHostReservationOutput struct { // Unique, case-sensitive identifier that you provide to ensure the idempotency of - // the request. For more information, see How to Ensure Idempotency + // the request. For more information, see Ensuring Idempotency // (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html). ClientToken *string @@ -87,7 +87,7 @@ type PurchaseHostReservationOutput struct { ResultMetadata middleware.Metadata } -func addOperationPurchaseHostReservationMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationPurchaseHostReservationMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpPurchaseHostReservation{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_PurchaseReservedInstancesOffering.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_PurchaseReservedInstancesOffering.go index 59b00ca36..244924b41 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_PurchaseReservedInstancesOffering.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_PurchaseReservedInstancesOffering.go @@ -23,13 +23,13 @@ import ( // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/concepts-on-demand-reserved-instances.html) // and Reserved Instance Marketplace // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ri-market-general.html) in -// the Amazon Elastic Compute Cloud User Guide. +// the Amazon EC2 User Guide. func (c *Client) PurchaseReservedInstancesOffering(ctx context.Context, params *PurchaseReservedInstancesOfferingInput, optFns ...func(*Options)) (*PurchaseReservedInstancesOfferingOutput, error) { if params == nil { params = &PurchaseReservedInstancesOfferingInput{} } - result, metadata, err := c.invokeOperation(ctx, "PurchaseReservedInstancesOffering", params, optFns, addOperationPurchaseReservedInstancesOfferingMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "PurchaseReservedInstancesOffering", params, optFns, c.addOperationPurchaseReservedInstancesOfferingMiddlewares) if err != nil { return nil, err } @@ -45,7 +45,7 @@ type PurchaseReservedInstancesOfferingInput struct { // The number of Reserved Instances to purchase. // // This member is required. - InstanceCount int32 + InstanceCount *int32 // The ID of the Reserved Instance offering to purchase. // @@ -56,7 +56,7 @@ type PurchaseReservedInstancesOfferingInput struct { // 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 + DryRun *bool // Specified for Reserved Instance Marketplace offerings to limit the total order // and ensure that the Reserved Instances are not purchased at unexpected prices. @@ -70,14 +70,18 @@ type PurchaseReservedInstancesOfferingInput struct { // Contains the output of PurchaseReservedInstancesOffering. type PurchaseReservedInstancesOfferingOutput struct { - // The IDs of the purchased Reserved Instances. + // The IDs of the purchased Reserved Instances. If your purchase crosses into a + // discounted pricing tier, the final Reserved Instances IDs might change. For more + // information, see Crossing pricing tiers + // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/concepts-reserved-instances-application.html#crossing-pricing-tiers) + // in the Amazon Elastic Compute Cloud User Guide. ReservedInstancesId *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata } -func addOperationPurchaseReservedInstancesOfferingMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationPurchaseReservedInstancesOfferingMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpPurchaseReservedInstancesOffering{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_PurchaseScheduledInstances.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_PurchaseScheduledInstances.go index ec00de6b1..4922d739e 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_PurchaseScheduledInstances.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_PurchaseScheduledInstances.go @@ -24,7 +24,7 @@ func (c *Client) PurchaseScheduledInstances(ctx context.Context, params *Purchas params = &PurchaseScheduledInstancesInput{} } - result, metadata, err := c.invokeOperation(ctx, "PurchaseScheduledInstances", params, optFns, addOperationPurchaseScheduledInstancesMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "PurchaseScheduledInstances", params, optFns, c.addOperationPurchaseScheduledInstancesMiddlewares) if err != nil { return nil, err } @@ -51,7 +51,7 @@ type PurchaseScheduledInstancesInput struct { // 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 + DryRun *bool } // Contains the output of PurchaseScheduledInstances. @@ -64,7 +64,7 @@ type PurchaseScheduledInstancesOutput struct { ResultMetadata middleware.Metadata } -func addOperationPurchaseScheduledInstancesMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationPurchaseScheduledInstancesMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpPurchaseScheduledInstances{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_RebootInstances.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_RebootInstances.go index 15e01cd3f..5f1dc5e9c 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_RebootInstances.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_RebootInstances.go @@ -17,13 +17,13 @@ import ( // minutes, Amazon EC2 performs a hard reboot. For more information about // troubleshooting, see Getting console output and rebooting instances // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-console.html) in -// the Amazon Elastic Compute Cloud User Guide. +// the Amazon EC2 User Guide. func (c *Client) RebootInstances(ctx context.Context, params *RebootInstancesInput, optFns ...func(*Options)) (*RebootInstancesOutput, error) { if params == nil { params = &RebootInstancesInput{} } - result, metadata, err := c.invokeOperation(ctx, "RebootInstances", params, optFns, addOperationRebootInstancesMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "RebootInstances", params, optFns, c.addOperationRebootInstancesMiddlewares) if err != nil { return nil, err } @@ -44,7 +44,7 @@ type RebootInstancesInput struct { // 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 + DryRun *bool } type RebootInstancesOutput struct { @@ -52,7 +52,7 @@ type RebootInstancesOutput struct { ResultMetadata middleware.Metadata } -func addOperationRebootInstancesMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationRebootInstancesMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpRebootInstances{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_RegisterImage.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_RegisterImage.go index cba432549..51b37b75e 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_RegisterImage.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_RegisterImage.go @@ -17,19 +17,27 @@ import ( // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/creating-an-ami.html) in // the Amazon Elastic Compute Cloud User Guide. For Amazon EBS-backed instances, // CreateImage creates and registers the AMI in a single request, so you don't have -// to register the AMI yourself. You can also use RegisterImage to create an Amazon -// EBS-backed Linux AMI from a snapshot of a root device volume. You specify the -// snapshot using the block device mapping. For more information, see Launching a -// Linux instance from a backup -// (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-launch-snapshot.html) -// in the Amazon Elastic Compute Cloud User Guide. If any snapshots have AWS -// Marketplace product codes, they are copied to the new AMI. Windows and some -// Linux distributions, such as Red Hat Enterprise Linux (RHEL) and SUSE Linux -// Enterprise Server (SLES), use the EC2 billing product code associated with an -// AMI to verify the subscription status for package updates. To create a new AMI -// for operating systems that require a billing product code, instead of -// registering the AMI, do the following to preserve the billing product code -// association: +// to register the AMI yourself. If needed, you can deregister an AMI at any time. +// Any modifications you make to an AMI backed by an instance store volume +// invalidates its registration. If you make changes to an image, deregister the +// previous image and register the new image. Register a snapshot of a root device +// volume You can use RegisterImage to create an Amazon EBS-backed Linux AMI from a +// snapshot of a root device volume. You specify the snapshot using a block device +// mapping. You can't set the encryption state of the volume using the block device +// mapping. If the snapshot is encrypted, or encryption by default is enabled, the +// root volume of an instance launched from the AMI is encrypted. For more +// information, see Create a Linux AMI from a snapshot +// (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/creating-an-ami-ebs.html#creating-launching-ami-from-snapshot) +// and Use encryption with EBS-backed AMIs +// (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/AMIEncryption.html) in the +// Amazon Elastic Compute Cloud User Guide. AWS Marketplace product codes If any +// snapshots have AWS Marketplace product codes, they are copied to the new AMI. +// Windows and some Linux distributions, such as Red Hat Enterprise Linux (RHEL) +// and SUSE Linux Enterprise Server (SLES), use the EC2 billing product code +// associated with an AMI to verify the subscription status for package updates. To +// create a new AMI for operating systems that require a billing product code, +// instead of registering the AMI, do the following to preserve the billing product +// code association: // // * Launch an instance from an existing AMI with that billing // product code. @@ -48,17 +56,12 @@ import ( // Obtaining billing information // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ami-billing-info.html) in // the Amazon Elastic Compute Cloud User Guide. -// -// If needed, you can deregister an -// AMI at any time. Any modifications you make to an AMI backed by an instance -// store volume invalidates its registration. If you make changes to an image, -// deregister the previous image and register the new image. func (c *Client) RegisterImage(ctx context.Context, params *RegisterImageInput, optFns ...func(*Options)) (*RegisterImageOutput, error) { if params == nil { params = &RegisterImageInput{} } - result, metadata, err := c.invokeOperation(ctx, "RegisterImage", params, optFns, addOperationRegisterImageMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "RegisterImage", params, optFns, c.addOperationRegisterImageMiddlewares) if err != nil { return nil, err } @@ -87,9 +90,19 @@ type RegisterImageInput struct { // an AMI. BillingProducts []string - // The block device mapping entries. + // The block device mapping entries. If you specify an EBS volume using the ID of + // an EBS snapshot, you can't specify the encryption state of the volume. If you + // create an AMI on an Outpost, then all backing snapshots must be on the same + // Outpost or in the Region of that Outpost. AMIs on an Outpost that include local + // snapshots can be used to launch instances on the same Outpost only. For more + // information, Amazon EBS local snapshots on Outposts + // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/snapshots-outposts.html#ami) + // in the Amazon Elastic Compute Cloud User Guide. BlockDeviceMappings []types.BlockDeviceMapping + // The boot mode of the AMI. For more information, see Boot modes + // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ami-boot.html) in the + // Amazon Elastic Compute Cloud User Guide. BootMode types.BootModeValues // A description for your AMI. @@ -99,13 +112,13 @@ type RegisterImageInput struct { // 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 + DryRun *bool // Set to true to enable enhanced networking with ENA for the AMI and any instances // that you launch from the AMI. This option is supported only for HVM AMIs. // Specifying this option with a PV AMI can make instances launched from the AMI // unreachable. - EnaSupport bool + EnaSupport *bool // The full path to your AMI manifest in Amazon S3 storage. The specified bucket // must have the aws-exec-read canned access control list (ACL) to ensure that it @@ -144,7 +157,7 @@ type RegisterImageOutput struct { ResultMetadata middleware.Metadata } -func addOperationRegisterImageMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationRegisterImageMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpRegisterImage{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_RegisterInstanceEventNotificationAttributes.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_RegisterInstanceEventNotificationAttributes.go index 9846b3251..37a1acf96 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_RegisterInstanceEventNotificationAttributes.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_RegisterInstanceEventNotificationAttributes.go @@ -18,7 +18,7 @@ func (c *Client) RegisterInstanceEventNotificationAttributes(ctx context.Context params = &RegisterInstanceEventNotificationAttributesInput{} } - result, metadata, err := c.invokeOperation(ctx, "RegisterInstanceEventNotificationAttributes", params, optFns, addOperationRegisterInstanceEventNotificationAttributesMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "RegisterInstanceEventNotificationAttributes", params, optFns, c.addOperationRegisterInstanceEventNotificationAttributesMiddlewares) if err != nil { return nil, err } @@ -34,7 +34,7 @@ type RegisterInstanceEventNotificationAttributesInput struct { // 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 + DryRun *bool // Information about the tag keys to register. InstanceTagAttribute *types.RegisterInstanceTagAttributeRequest @@ -49,7 +49,7 @@ type RegisterInstanceEventNotificationAttributesOutput struct { ResultMetadata middleware.Metadata } -func addOperationRegisterInstanceEventNotificationAttributesMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationRegisterInstanceEventNotificationAttributesMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpRegisterInstanceEventNotificationAttributes{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_RegisterTransitGatewayMulticastGroupMembers.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_RegisterTransitGatewayMulticastGroupMembers.go index cec3c27c4..46ad9b763 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_RegisterTransitGatewayMulticastGroupMembers.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_RegisterTransitGatewayMulticastGroupMembers.go @@ -25,7 +25,7 @@ func (c *Client) RegisterTransitGatewayMulticastGroupMembers(ctx context.Context params = &RegisterTransitGatewayMulticastGroupMembersInput{} } - result, metadata, err := c.invokeOperation(ctx, "RegisterTransitGatewayMulticastGroupMembers", params, optFns, addOperationRegisterTransitGatewayMulticastGroupMembersMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "RegisterTransitGatewayMulticastGroupMembers", params, optFns, c.addOperationRegisterTransitGatewayMulticastGroupMembersMiddlewares) if err != nil { return nil, err } @@ -41,7 +41,7 @@ type RegisterTransitGatewayMulticastGroupMembersInput struct { // 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 + DryRun *bool // The IP address assigned to the transit gateway multicast group. GroupIpAddress *string @@ -63,7 +63,7 @@ type RegisterTransitGatewayMulticastGroupMembersOutput struct { ResultMetadata middleware.Metadata } -func addOperationRegisterTransitGatewayMulticastGroupMembersMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationRegisterTransitGatewayMulticastGroupMembersMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpRegisterTransitGatewayMulticastGroupMembers{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_RegisterTransitGatewayMulticastGroupSources.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_RegisterTransitGatewayMulticastGroupSources.go index 632d43503..f19508727 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_RegisterTransitGatewayMulticastGroupSources.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_RegisterTransitGatewayMulticastGroupSources.go @@ -25,7 +25,7 @@ func (c *Client) RegisterTransitGatewayMulticastGroupSources(ctx context.Context params = &RegisterTransitGatewayMulticastGroupSourcesInput{} } - result, metadata, err := c.invokeOperation(ctx, "RegisterTransitGatewayMulticastGroupSources", params, optFns, addOperationRegisterTransitGatewayMulticastGroupSourcesMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "RegisterTransitGatewayMulticastGroupSources", params, optFns, c.addOperationRegisterTransitGatewayMulticastGroupSourcesMiddlewares) if err != nil { return nil, err } @@ -41,7 +41,7 @@ type RegisterTransitGatewayMulticastGroupSourcesInput struct { // 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 + DryRun *bool // The IP address assigned to the transit gateway multicast group. GroupIpAddress *string @@ -63,7 +63,7 @@ type RegisterTransitGatewayMulticastGroupSourcesOutput struct { ResultMetadata middleware.Metadata } -func addOperationRegisterTransitGatewayMulticastGroupSourcesMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationRegisterTransitGatewayMulticastGroupSourcesMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpRegisterTransitGatewayMulticastGroupSources{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_RejectTransitGatewayMulticastDomainAssociations.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_RejectTransitGatewayMulticastDomainAssociations.go index ba5433e3d..b3c13f579 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_RejectTransitGatewayMulticastDomainAssociations.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_RejectTransitGatewayMulticastDomainAssociations.go @@ -18,7 +18,7 @@ func (c *Client) RejectTransitGatewayMulticastDomainAssociations(ctx context.Con params = &RejectTransitGatewayMulticastDomainAssociationsInput{} } - result, metadata, err := c.invokeOperation(ctx, "RejectTransitGatewayMulticastDomainAssociations", params, optFns, addOperationRejectTransitGatewayMulticastDomainAssociationsMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "RejectTransitGatewayMulticastDomainAssociations", params, optFns, c.addOperationRejectTransitGatewayMulticastDomainAssociationsMiddlewares) if err != nil { return nil, err } @@ -34,7 +34,7 @@ type RejectTransitGatewayMulticastDomainAssociationsInput struct { // 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 + DryRun *bool // The IDs of the subnets to associate with the transit gateway multicast domain. SubnetIds []string @@ -55,7 +55,7 @@ type RejectTransitGatewayMulticastDomainAssociationsOutput struct { ResultMetadata middleware.Metadata } -func addOperationRejectTransitGatewayMulticastDomainAssociationsMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationRejectTransitGatewayMulticastDomainAssociationsMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpRejectTransitGatewayMulticastDomainAssociations{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_RejectTransitGatewayPeeringAttachment.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_RejectTransitGatewayPeeringAttachment.go index 93dbe1046..8bd5aff7a 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_RejectTransitGatewayPeeringAttachment.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_RejectTransitGatewayPeeringAttachment.go @@ -17,7 +17,7 @@ func (c *Client) RejectTransitGatewayPeeringAttachment(ctx context.Context, para params = &RejectTransitGatewayPeeringAttachmentInput{} } - result, metadata, err := c.invokeOperation(ctx, "RejectTransitGatewayPeeringAttachment", params, optFns, addOperationRejectTransitGatewayPeeringAttachmentMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "RejectTransitGatewayPeeringAttachment", params, optFns, c.addOperationRejectTransitGatewayPeeringAttachmentMiddlewares) if err != nil { return nil, err } @@ -38,7 +38,7 @@ type RejectTransitGatewayPeeringAttachmentInput struct { // 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 + DryRun *bool } type RejectTransitGatewayPeeringAttachmentOutput struct { @@ -50,7 +50,7 @@ type RejectTransitGatewayPeeringAttachmentOutput struct { ResultMetadata middleware.Metadata } -func addOperationRejectTransitGatewayPeeringAttachmentMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationRejectTransitGatewayPeeringAttachmentMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpRejectTransitGatewayPeeringAttachment{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_RejectTransitGatewayVpcAttachment.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_RejectTransitGatewayVpcAttachment.go index 8c773afe7..01d6b6798 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_RejectTransitGatewayVpcAttachment.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_RejectTransitGatewayVpcAttachment.go @@ -20,7 +20,7 @@ func (c *Client) RejectTransitGatewayVpcAttachment(ctx context.Context, params * params = &RejectTransitGatewayVpcAttachmentInput{} } - result, metadata, err := c.invokeOperation(ctx, "RejectTransitGatewayVpcAttachment", params, optFns, addOperationRejectTransitGatewayVpcAttachmentMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "RejectTransitGatewayVpcAttachment", params, optFns, c.addOperationRejectTransitGatewayVpcAttachmentMiddlewares) if err != nil { return nil, err } @@ -41,7 +41,7 @@ type RejectTransitGatewayVpcAttachmentInput struct { // 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 + DryRun *bool } type RejectTransitGatewayVpcAttachmentOutput struct { @@ -53,7 +53,7 @@ type RejectTransitGatewayVpcAttachmentOutput struct { ResultMetadata middleware.Metadata } -func addOperationRejectTransitGatewayVpcAttachmentMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationRejectTransitGatewayVpcAttachmentMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpRejectTransitGatewayVpcAttachment{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_RejectVpcEndpointConnections.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_RejectVpcEndpointConnections.go index 25e0475d3..abe7c9aaa 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_RejectVpcEndpointConnections.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_RejectVpcEndpointConnections.go @@ -18,7 +18,7 @@ func (c *Client) RejectVpcEndpointConnections(ctx context.Context, params *Rejec params = &RejectVpcEndpointConnectionsInput{} } - result, metadata, err := c.invokeOperation(ctx, "RejectVpcEndpointConnections", params, optFns, addOperationRejectVpcEndpointConnectionsMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "RejectVpcEndpointConnections", params, optFns, c.addOperationRejectVpcEndpointConnectionsMiddlewares) if err != nil { return nil, err } @@ -44,7 +44,7 @@ type RejectVpcEndpointConnectionsInput struct { // 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 + DryRun *bool } type RejectVpcEndpointConnectionsOutput struct { @@ -56,7 +56,7 @@ type RejectVpcEndpointConnectionsOutput struct { ResultMetadata middleware.Metadata } -func addOperationRejectVpcEndpointConnectionsMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationRejectVpcEndpointConnectionsMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpRejectVpcEndpointConnections{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_RejectVpcPeeringConnection.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_RejectVpcPeeringConnection.go index 16cecff54..d1a63e918 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_RejectVpcPeeringConnection.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_RejectVpcPeeringConnection.go @@ -20,7 +20,7 @@ func (c *Client) RejectVpcPeeringConnection(ctx context.Context, params *RejectV params = &RejectVpcPeeringConnectionInput{} } - result, metadata, err := c.invokeOperation(ctx, "RejectVpcPeeringConnection", params, optFns, addOperationRejectVpcPeeringConnectionMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "RejectVpcPeeringConnection", params, optFns, c.addOperationRejectVpcPeeringConnectionMiddlewares) if err != nil { return nil, err } @@ -41,19 +41,19 @@ type RejectVpcPeeringConnectionInput struct { // 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 + DryRun *bool } type RejectVpcPeeringConnectionOutput struct { // Returns true if the request succeeds; otherwise, it returns an error. - Return bool + Return *bool // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata } -func addOperationRejectVpcPeeringConnectionMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationRejectVpcPeeringConnectionMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpRejectVpcPeeringConnection{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ReleaseAddress.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ReleaseAddress.go index 52c65d796..bc735bcbb 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ReleaseAddress.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ReleaseAddress.go @@ -19,7 +19,7 @@ import ( // address, it is released to the IP address pool. Be sure to update your DNS // records and any servers or devices that communicate with the address. If you // attempt to release an Elastic IP address that you already released, you'll get -// an AuthFailure error if the address is already allocated to another AWS account. +// an AuthFailure error if the address is already allocated to another account. // [EC2-VPC] After you release an Elastic IP address for use in a VPC, you might be // able to recover it. For more information, see AllocateAddress. func (c *Client) ReleaseAddress(ctx context.Context, params *ReleaseAddressInput, optFns ...func(*Options)) (*ReleaseAddressOutput, error) { @@ -27,7 +27,7 @@ func (c *Client) ReleaseAddress(ctx context.Context, params *ReleaseAddressInput params = &ReleaseAddressInput{} } - result, metadata, err := c.invokeOperation(ctx, "ReleaseAddress", params, optFns, addOperationReleaseAddressMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "ReleaseAddress", params, optFns, c.addOperationReleaseAddressMiddlewares) if err != nil { return nil, err } @@ -46,7 +46,7 @@ type ReleaseAddressInput struct { // 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 + DryRun *bool // The set of Availability Zones, Local Zones, or Wavelength Zones from which AWS // advertises IP addresses. If you provide an incorrect network border group, you @@ -68,7 +68,7 @@ type ReleaseAddressOutput struct { ResultMetadata middleware.Metadata } -func addOperationReleaseAddressMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationReleaseAddressMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpReleaseAddress{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ReleaseHosts.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ReleaseHosts.go index bd9c64a5a..402b765a7 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ReleaseHosts.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ReleaseHosts.go @@ -25,7 +25,7 @@ func (c *Client) ReleaseHosts(ctx context.Context, params *ReleaseHostsInput, op params = &ReleaseHostsInput{} } - result, metadata, err := c.invokeOperation(ctx, "ReleaseHosts", params, optFns, addOperationReleaseHostsMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "ReleaseHosts", params, optFns, c.addOperationReleaseHostsMiddlewares) if err != nil { return nil, err } @@ -56,7 +56,7 @@ type ReleaseHostsOutput struct { ResultMetadata middleware.Metadata } -func addOperationReleaseHostsMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationReleaseHostsMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpReleaseHosts{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ReplaceIamInstanceProfileAssociation.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ReplaceIamInstanceProfileAssociation.go index 110f5bd3f..821dec295 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ReplaceIamInstanceProfileAssociation.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ReplaceIamInstanceProfileAssociation.go @@ -20,7 +20,7 @@ func (c *Client) ReplaceIamInstanceProfileAssociation(ctx context.Context, param params = &ReplaceIamInstanceProfileAssociationInput{} } - result, metadata, err := c.invokeOperation(ctx, "ReplaceIamInstanceProfileAssociation", params, optFns, addOperationReplaceIamInstanceProfileAssociationMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "ReplaceIamInstanceProfileAssociation", params, optFns, c.addOperationReplaceIamInstanceProfileAssociationMiddlewares) if err != nil { return nil, err } @@ -52,7 +52,7 @@ type ReplaceIamInstanceProfileAssociationOutput struct { ResultMetadata middleware.Metadata } -func addOperationReplaceIamInstanceProfileAssociationMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationReplaceIamInstanceProfileAssociationMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpReplaceIamInstanceProfileAssociation{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ReplaceNetworkAclAssociation.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ReplaceNetworkAclAssociation.go index db45337a6..9d600cf91 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ReplaceNetworkAclAssociation.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ReplaceNetworkAclAssociation.go @@ -20,7 +20,7 @@ func (c *Client) ReplaceNetworkAclAssociation(ctx context.Context, params *Repla params = &ReplaceNetworkAclAssociationInput{} } - result, metadata, err := c.invokeOperation(ctx, "ReplaceNetworkAclAssociation", params, optFns, addOperationReplaceNetworkAclAssociationMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "ReplaceNetworkAclAssociation", params, optFns, c.addOperationReplaceNetworkAclAssociationMiddlewares) if err != nil { return nil, err } @@ -47,7 +47,7 @@ type ReplaceNetworkAclAssociationInput struct { // 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 + DryRun *bool } type ReplaceNetworkAclAssociationOutput struct { @@ -59,7 +59,7 @@ type ReplaceNetworkAclAssociationOutput struct { ResultMetadata middleware.Metadata } -func addOperationReplaceNetworkAclAssociationMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationReplaceNetworkAclAssociationMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpReplaceNetworkAclAssociation{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ReplaceNetworkAclEntry.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ReplaceNetworkAclEntry.go index 37ccd83ff..f4e5a0ab0 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ReplaceNetworkAclEntry.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ReplaceNetworkAclEntry.go @@ -19,7 +19,7 @@ func (c *Client) ReplaceNetworkAclEntry(ctx context.Context, params *ReplaceNetw params = &ReplaceNetworkAclEntryInput{} } - result, metadata, err := c.invokeOperation(ctx, "ReplaceNetworkAclEntry", params, optFns, addOperationReplaceNetworkAclEntryMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "ReplaceNetworkAclEntry", params, optFns, c.addOperationReplaceNetworkAclEntryMiddlewares) if err != nil { return nil, err } @@ -35,7 +35,7 @@ type ReplaceNetworkAclEntryInput struct { // we replace the ingress rule. // // This member is required. - Egress bool + Egress *bool // The ID of the ACL. // @@ -61,7 +61,7 @@ type ReplaceNetworkAclEntryInput struct { // The rule number of the entry to replace. // // This member is required. - RuleNumber int32 + RuleNumber *int32 // The IPv4 network range to allow or deny, in CIDR notation (for example // 172.16.0.0/24). @@ -71,7 +71,7 @@ type ReplaceNetworkAclEntryInput struct { // 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 + DryRun *bool // ICMP protocol: The ICMP or ICMPv6 type and code. Required if specifying protocol // 1 (ICMP) or protocol 58 (ICMPv6) with an IPv6 CIDR block. @@ -91,7 +91,7 @@ type ReplaceNetworkAclEntryOutput struct { ResultMetadata middleware.Metadata } -func addOperationReplaceNetworkAclEntryMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationReplaceNetworkAclEntryMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpReplaceNetworkAclEntry{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ReplaceRoute.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ReplaceRoute.go index af6b5c13e..00afb9a41 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ReplaceRoute.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ReplaceRoute.go @@ -21,7 +21,7 @@ func (c *Client) ReplaceRoute(ctx context.Context, params *ReplaceRouteInput, op params = &ReplaceRouteInput{} } - result, metadata, err := c.invokeOperation(ctx, "ReplaceRoute", params, optFns, addOperationReplaceRouteMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "ReplaceRoute", params, optFns, c.addOperationReplaceRouteMiddlewares) if err != nil { return nil, err } @@ -56,7 +56,7 @@ type ReplaceRouteInput struct { // 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 + DryRun *bool // [IPv6 traffic only] The ID of an egress-only internet gateway. EgressOnlyInternetGatewayId *string @@ -71,7 +71,7 @@ type ReplaceRouteInput struct { LocalGatewayId *string // Specifies whether to reset the local route to its default target (local). - LocalTarget bool + LocalTarget *bool // [IPv4 traffic only] The ID of a NAT gateway. NatGatewayId *string @@ -94,7 +94,7 @@ type ReplaceRouteOutput struct { ResultMetadata middleware.Metadata } -func addOperationReplaceRouteMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationReplaceRouteMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpReplaceRoute{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ReplaceRouteTableAssociation.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ReplaceRouteTableAssociation.go index e78530ac6..61da765e1 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ReplaceRouteTableAssociation.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ReplaceRouteTableAssociation.go @@ -24,7 +24,7 @@ func (c *Client) ReplaceRouteTableAssociation(ctx context.Context, params *Repla params = &ReplaceRouteTableAssociationInput{} } - result, metadata, err := c.invokeOperation(ctx, "ReplaceRouteTableAssociation", params, optFns, addOperationReplaceRouteTableAssociationMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "ReplaceRouteTableAssociation", params, optFns, c.addOperationReplaceRouteTableAssociationMiddlewares) if err != nil { return nil, err } @@ -50,7 +50,7 @@ type ReplaceRouteTableAssociationInput struct { // 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 + DryRun *bool } type ReplaceRouteTableAssociationOutput struct { @@ -65,7 +65,7 @@ type ReplaceRouteTableAssociationOutput struct { ResultMetadata middleware.Metadata } -func addOperationReplaceRouteTableAssociationMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationReplaceRouteTableAssociationMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpReplaceRouteTableAssociation{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ReplaceTransitGatewayRoute.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ReplaceTransitGatewayRoute.go index c2372000b..74f77cd52 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ReplaceTransitGatewayRoute.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ReplaceTransitGatewayRoute.go @@ -17,7 +17,7 @@ func (c *Client) ReplaceTransitGatewayRoute(ctx context.Context, params *Replace params = &ReplaceTransitGatewayRouteInput{} } - result, metadata, err := c.invokeOperation(ctx, "ReplaceTransitGatewayRoute", params, optFns, addOperationReplaceTransitGatewayRouteMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "ReplaceTransitGatewayRoute", params, optFns, c.addOperationReplaceTransitGatewayRouteMiddlewares) if err != nil { return nil, err } @@ -41,13 +41,13 @@ type ReplaceTransitGatewayRouteInput struct { TransitGatewayRouteTableId *string // Indicates whether traffic matching this route is to be dropped. - Blackhole bool + Blackhole *bool // 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 + DryRun *bool // The ID of the attachment. TransitGatewayAttachmentId *string @@ -62,7 +62,7 @@ type ReplaceTransitGatewayRouteOutput struct { ResultMetadata middleware.Metadata } -func addOperationReplaceTransitGatewayRouteMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationReplaceTransitGatewayRouteMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpReplaceTransitGatewayRoute{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ReportInstanceStatus.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ReportInstanceStatus.go index 87f9031d6..c294f17ba 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ReportInstanceStatus.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ReportInstanceStatus.go @@ -23,7 +23,7 @@ func (c *Client) ReportInstanceStatus(ctx context.Context, params *ReportInstanc params = &ReportInstanceStatusInput{} } - result, metadata, err := c.invokeOperation(ctx, "ReportInstanceStatus", params, optFns, addOperationReportInstanceStatusMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "ReportInstanceStatus", params, optFns, c.addOperationReportInstanceStatusMiddlewares) if err != nil { return nil, err } @@ -85,7 +85,7 @@ type ReportInstanceStatusInput struct { // 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 + DryRun *bool // The time at which the reported instance health state ended. EndTime *time.Time @@ -99,7 +99,7 @@ type ReportInstanceStatusOutput struct { ResultMetadata middleware.Metadata } -func addOperationReportInstanceStatusMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationReportInstanceStatusMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpReportInstanceStatus{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_RequestSpotFleet.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_RequestSpotFleet.go index 32345bc83..4727a98a3 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_RequestSpotFleet.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_RequestSpotFleet.go @@ -34,7 +34,7 @@ func (c *Client) RequestSpotFleet(ctx context.Context, params *RequestSpotFleetI params = &RequestSpotFleetInput{} } - result, metadata, err := c.invokeOperation(ctx, "RequestSpotFleet", params, optFns, addOperationRequestSpotFleetMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "RequestSpotFleet", params, optFns, c.addOperationRequestSpotFleetMiddlewares) if err != nil { return nil, err } @@ -56,7 +56,7 @@ type RequestSpotFleetInput struct { // 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 + DryRun *bool } // Contains the output of RequestSpotFleet. @@ -69,7 +69,7 @@ type RequestSpotFleetOutput struct { ResultMetadata middleware.Metadata } -func addOperationRequestSpotFleetMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationRequestSpotFleetMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpRequestSpotFleet{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_RequestSpotInstances.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_RequestSpotInstances.go index 1ac4fe700..6a1a6a3e5 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_RequestSpotInstances.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_RequestSpotInstances.go @@ -21,7 +21,7 @@ func (c *Client) RequestSpotInstances(ctx context.Context, params *RequestSpotIn params = &RequestSpotInstancesInput{} } - result, metadata, err := c.invokeOperation(ctx, "RequestSpotInstances", params, optFns, addOperationRequestSpotInstancesMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "RequestSpotInstances", params, optFns, c.addOperationRequestSpotInstancesMiddlewares) if err != nil { return nil, err } @@ -52,16 +52,8 @@ type RequestSpotInstancesInput struct { // Availability Zone. AvailabilityZoneGroup *string - // The required duration for the Spot Instances (also known as Spot blocks), in - // minutes. This value must be a multiple of 60 (60, 120, 180, 240, 300, or 360). - // The duration period starts as soon as your Spot Instance receives its instance - // ID. At the end of the duration period, Amazon EC2 marks the Spot Instance for - // termination and provides a Spot Instance termination notice, which gives the - // instance a two-minute warning before it terminates. You can't specify an - // Availability Zone group or a launch group if you specify a duration. New - // accounts or accounts with no previous billing history with AWS are not eligible - // for Spot Instances with a defined duration (also known as Spot blocks). - BlockDurationMinutes int32 + // Deprecated. + BlockDurationMinutes *int32 // Unique, case-sensitive identifier that you provide to ensure the idempotency of // the request. For more information, see How to Ensure Idempotency @@ -73,10 +65,10 @@ type RequestSpotInstancesInput struct { // 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 + DryRun *bool // The maximum number of Spot Instances to launch. Default: 1 - InstanceCount int32 + InstanceCount *int32 // The behavior when a Spot Instance is interrupted. The default is terminate. InstanceInterruptionBehavior types.InstanceInterruptionBehavior @@ -135,7 +127,7 @@ type RequestSpotInstancesOutput struct { ResultMetadata middleware.Metadata } -func addOperationRequestSpotInstancesMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationRequestSpotInstancesMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpRequestSpotInstances{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ResetAddressAttribute.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ResetAddressAttribute.go index 0dacc1eb5..0f1d5064f 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ResetAddressAttribute.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ResetAddressAttribute.go @@ -11,12 +11,15 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) +// Resets the attribute of the specified IP address. For requirements, see Using +// reverse DNS for email applications +// (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/elastic-ip-addresses-eip.html#Using_Elastic_Addressing_Reverse_DNS). func (c *Client) ResetAddressAttribute(ctx context.Context, params *ResetAddressAttributeInput, optFns ...func(*Options)) (*ResetAddressAttributeOutput, error) { if params == nil { params = &ResetAddressAttributeInput{} } - result, metadata, err := c.invokeOperation(ctx, "ResetAddressAttribute", params, optFns, addOperationResetAddressAttributeMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "ResetAddressAttribute", params, optFns, c.addOperationResetAddressAttributeMiddlewares) if err != nil { return nil, err } @@ -28,23 +31,33 @@ func (c *Client) ResetAddressAttribute(ctx context.Context, params *ResetAddress type ResetAddressAttributeInput struct { + // [EC2-VPC] The allocation ID. + // // This member is required. AllocationId *string + // The attribute of the IP address. + // // This member is required. Attribute types.AddressAttributeName - DryRun bool + // 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 } type ResetAddressAttributeOutput struct { + + // Information about the IP address. Address *types.AddressAttribute // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata } -func addOperationResetAddressAttributeMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationResetAddressAttributeMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpResetAddressAttribute{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ResetEbsDefaultKmsKeyId.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ResetEbsDefaultKmsKeyId.go index 3d009cdc6..2d79a86f4 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ResetEbsDefaultKmsKeyId.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ResetEbsDefaultKmsKeyId.go @@ -22,7 +22,7 @@ func (c *Client) ResetEbsDefaultKmsKeyId(ctx context.Context, params *ResetEbsDe params = &ResetEbsDefaultKmsKeyIdInput{} } - result, metadata, err := c.invokeOperation(ctx, "ResetEbsDefaultKmsKeyId", params, optFns, addOperationResetEbsDefaultKmsKeyIdMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "ResetEbsDefaultKmsKeyId", params, optFns, c.addOperationResetEbsDefaultKmsKeyIdMiddlewares) if err != nil { return nil, err } @@ -38,7 +38,7 @@ type ResetEbsDefaultKmsKeyIdInput struct { // 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 + DryRun *bool } type ResetEbsDefaultKmsKeyIdOutput struct { @@ -50,7 +50,7 @@ type ResetEbsDefaultKmsKeyIdOutput struct { ResultMetadata middleware.Metadata } -func addOperationResetEbsDefaultKmsKeyIdMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationResetEbsDefaultKmsKeyIdMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpResetEbsDefaultKmsKeyId{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ResetFpgaImageAttribute.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ResetFpgaImageAttribute.go index 1c44d8594..264dadb80 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ResetFpgaImageAttribute.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ResetFpgaImageAttribute.go @@ -18,7 +18,7 @@ func (c *Client) ResetFpgaImageAttribute(ctx context.Context, params *ResetFpgaI params = &ResetFpgaImageAttributeInput{} } - result, metadata, err := c.invokeOperation(ctx, "ResetFpgaImageAttribute", params, optFns, addOperationResetFpgaImageAttributeMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "ResetFpgaImageAttribute", params, optFns, c.addOperationResetFpgaImageAttributeMiddlewares) if err != nil { return nil, err } @@ -42,19 +42,19 @@ type ResetFpgaImageAttributeInput struct { // 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 + DryRun *bool } type ResetFpgaImageAttributeOutput struct { // Is true if the request succeeds, and an error otherwise. - Return bool + Return *bool // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata } -func addOperationResetFpgaImageAttributeMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationResetFpgaImageAttributeMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpResetFpgaImageAttribute{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ResetImageAttribute.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ResetImageAttribute.go index f2fc83491..645563a9b 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ResetImageAttribute.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ResetImageAttribute.go @@ -18,7 +18,7 @@ func (c *Client) ResetImageAttribute(ctx context.Context, params *ResetImageAttr params = &ResetImageAttributeInput{} } - result, metadata, err := c.invokeOperation(ctx, "ResetImageAttribute", params, optFns, addOperationResetImageAttributeMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "ResetImageAttribute", params, optFns, c.addOperationResetImageAttributeMiddlewares) if err != nil { return nil, err } @@ -46,7 +46,7 @@ type ResetImageAttributeInput struct { // 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 + DryRun *bool } type ResetImageAttributeOutput struct { @@ -54,7 +54,7 @@ type ResetImageAttributeOutput struct { ResultMetadata middleware.Metadata } -func addOperationResetImageAttributeMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationResetImageAttributeMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpResetImageAttribute{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ResetInstanceAttribute.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ResetInstanceAttribute.go index 4a17d5264..091631014 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ResetInstanceAttribute.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ResetInstanceAttribute.go @@ -18,13 +18,13 @@ import ( // true, which means checking is enabled. This value must be false for a NAT // instance to perform NAT. For more information, see NAT Instances // (https://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_NAT_Instance.html) -// in the Amazon Virtual Private Cloud User Guide. +// in the Amazon VPC User Guide. func (c *Client) ResetInstanceAttribute(ctx context.Context, params *ResetInstanceAttributeInput, optFns ...func(*Options)) (*ResetInstanceAttributeOutput, error) { if params == nil { params = &ResetInstanceAttributeInput{} } - result, metadata, err := c.invokeOperation(ctx, "ResetInstanceAttribute", params, optFns, addOperationResetInstanceAttributeMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "ResetInstanceAttribute", params, optFns, c.addOperationResetInstanceAttributeMiddlewares) if err != nil { return nil, err } @@ -52,7 +52,7 @@ type ResetInstanceAttributeInput struct { // 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 + DryRun *bool } type ResetInstanceAttributeOutput struct { @@ -60,7 +60,7 @@ type ResetInstanceAttributeOutput struct { ResultMetadata middleware.Metadata } -func addOperationResetInstanceAttributeMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationResetInstanceAttributeMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpResetInstanceAttribute{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ResetNetworkInterfaceAttribute.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ResetNetworkInterfaceAttribute.go index d19c711c2..67ff76f5e 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ResetNetworkInterfaceAttribute.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ResetNetworkInterfaceAttribute.go @@ -17,7 +17,7 @@ func (c *Client) ResetNetworkInterfaceAttribute(ctx context.Context, params *Res params = &ResetNetworkInterfaceAttributeInput{} } - result, metadata, err := c.invokeOperation(ctx, "ResetNetworkInterfaceAttribute", params, optFns, addOperationResetNetworkInterfaceAttributeMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "ResetNetworkInterfaceAttribute", params, optFns, c.addOperationResetNetworkInterfaceAttributeMiddlewares) if err != nil { return nil, err } @@ -39,7 +39,7 @@ type ResetNetworkInterfaceAttributeInput struct { // 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 + DryRun *bool // The source/destination checking attribute. Resets the value to true. SourceDestCheck *string @@ -50,7 +50,7 @@ type ResetNetworkInterfaceAttributeOutput struct { ResultMetadata middleware.Metadata } -func addOperationResetNetworkInterfaceAttributeMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationResetNetworkInterfaceAttributeMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpResetNetworkInterfaceAttribute{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ResetSnapshotAttribute.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ResetSnapshotAttribute.go index 484d08624..71394de0f 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ResetSnapshotAttribute.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ResetSnapshotAttribute.go @@ -20,7 +20,7 @@ func (c *Client) ResetSnapshotAttribute(ctx context.Context, params *ResetSnapsh params = &ResetSnapshotAttributeInput{} } - result, metadata, err := c.invokeOperation(ctx, "ResetSnapshotAttribute", params, optFns, addOperationResetSnapshotAttributeMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "ResetSnapshotAttribute", params, optFns, c.addOperationResetSnapshotAttributeMiddlewares) if err != nil { return nil, err } @@ -47,7 +47,7 @@ type ResetSnapshotAttributeInput struct { // 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 + DryRun *bool } type ResetSnapshotAttributeOutput struct { @@ -55,7 +55,7 @@ type ResetSnapshotAttributeOutput struct { ResultMetadata middleware.Metadata } -func addOperationResetSnapshotAttributeMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationResetSnapshotAttributeMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpResetSnapshotAttribute{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_RestoreAddressToClassic.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_RestoreAddressToClassic.go index 9f1737a25..e83b2ecac 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_RestoreAddressToClassic.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_RestoreAddressToClassic.go @@ -20,7 +20,7 @@ func (c *Client) RestoreAddressToClassic(ctx context.Context, params *RestoreAdd params = &RestoreAddressToClassicInput{} } - result, metadata, err := c.invokeOperation(ctx, "RestoreAddressToClassic", params, optFns, addOperationRestoreAddressToClassicMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "RestoreAddressToClassic", params, optFns, c.addOperationRestoreAddressToClassicMiddlewares) if err != nil { return nil, err } @@ -41,7 +41,7 @@ type RestoreAddressToClassicInput struct { // 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 + DryRun *bool } type RestoreAddressToClassicOutput struct { @@ -56,7 +56,7 @@ type RestoreAddressToClassicOutput struct { ResultMetadata middleware.Metadata } -func addOperationRestoreAddressToClassicMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationRestoreAddressToClassicMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpRestoreAddressToClassic{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_RestoreManagedPrefixListVersion.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_RestoreManagedPrefixListVersion.go index 3851edb14..88e03c2f0 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_RestoreManagedPrefixListVersion.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_RestoreManagedPrefixListVersion.go @@ -18,7 +18,7 @@ func (c *Client) RestoreManagedPrefixListVersion(ctx context.Context, params *Re params = &RestoreManagedPrefixListVersionInput{} } - result, metadata, err := c.invokeOperation(ctx, "RestoreManagedPrefixListVersion", params, optFns, addOperationRestoreManagedPrefixListVersionMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "RestoreManagedPrefixListVersion", params, optFns, c.addOperationRestoreManagedPrefixListVersionMiddlewares) if err != nil { return nil, err } @@ -33,7 +33,7 @@ type RestoreManagedPrefixListVersionInput struct { // The current version number for the prefix list. // // This member is required. - CurrentVersion int64 + CurrentVersion *int64 // The ID of the prefix list. // @@ -43,13 +43,13 @@ type RestoreManagedPrefixListVersionInput struct { // The version to restore. // // This member is required. - PreviousVersion int64 + PreviousVersion *int64 // 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 + DryRun *bool } type RestoreManagedPrefixListVersionOutput struct { @@ -61,7 +61,7 @@ type RestoreManagedPrefixListVersionOutput struct { ResultMetadata middleware.Metadata } -func addOperationRestoreManagedPrefixListVersionMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationRestoreManagedPrefixListVersionMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpRestoreManagedPrefixListVersion{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_RevokeClientVpnIngress.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_RevokeClientVpnIngress.go index 7fecb7f8e..4e2861a29 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_RevokeClientVpnIngress.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_RevokeClientVpnIngress.go @@ -17,7 +17,7 @@ func (c *Client) RevokeClientVpnIngress(ctx context.Context, params *RevokeClien params = &RevokeClientVpnIngressInput{} } - result, metadata, err := c.invokeOperation(ctx, "RevokeClientVpnIngress", params, optFns, addOperationRevokeClientVpnIngressMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "RevokeClientVpnIngress", params, optFns, c.addOperationRevokeClientVpnIngressMiddlewares) if err != nil { return nil, err } @@ -48,10 +48,10 @@ type RevokeClientVpnIngressInput struct { // 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 + DryRun *bool // Indicates whether access should be revoked for all clients. - RevokeAllGroups bool + RevokeAllGroups *bool } type RevokeClientVpnIngressOutput struct { @@ -63,7 +63,7 @@ type RevokeClientVpnIngressOutput struct { ResultMetadata middleware.Metadata } -func addOperationRevokeClientVpnIngressMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationRevokeClientVpnIngressMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpRevokeClientVpnIngress{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_RevokeSecurityGroupEgress.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_RevokeSecurityGroupEgress.go index e03aa6f93..54562fcbf 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_RevokeSecurityGroupEgress.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_RevokeSecurityGroupEgress.go @@ -30,7 +30,7 @@ func (c *Client) RevokeSecurityGroupEgress(ctx context.Context, params *RevokeSe params = &RevokeSecurityGroupEgressInput{} } - result, metadata, err := c.invokeOperation(ctx, "RevokeSecurityGroupEgress", params, optFns, addOperationRevokeSecurityGroupEgressMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "RevokeSecurityGroupEgress", params, optFns, c.addOperationRevokeSecurityGroupEgressMiddlewares) if err != nil { return nil, err } @@ -54,10 +54,10 @@ type RevokeSecurityGroupEgressInput struct { // 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 + DryRun *bool // Not supported. Use a set of IP permissions to specify the port. - FromPort int32 + FromPort *int32 // The sets of IP permissions. You can't specify a destination security group and a // CIDR IP address range in the same set of permissions. @@ -76,13 +76,13 @@ type RevokeSecurityGroupEgressInput struct { SourceSecurityGroupOwnerId *string // Not supported. Use a set of IP permissions to specify the port. - ToPort int32 + ToPort *int32 } type RevokeSecurityGroupEgressOutput struct { // Returns true if the request succeeds; otherwise, returns an error. - Return bool + Return *bool // The outbound rules that were unknown to the service. In some cases, // unknownIpPermissionSet might be in a different format from the request @@ -93,7 +93,7 @@ type RevokeSecurityGroupEgressOutput struct { ResultMetadata middleware.Metadata } -func addOperationRevokeSecurityGroupEgressMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationRevokeSecurityGroupEgressMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpRevokeSecurityGroupEgress{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_RevokeSecurityGroupIngress.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_RevokeSecurityGroupIngress.go index 3f381a86c..9942c9a0e 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_RevokeSecurityGroupIngress.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_RevokeSecurityGroupIngress.go @@ -28,7 +28,7 @@ func (c *Client) RevokeSecurityGroupIngress(ctx context.Context, params *RevokeS params = &RevokeSecurityGroupIngressInput{} } - result, metadata, err := c.invokeOperation(ctx, "RevokeSecurityGroupIngress", params, optFns, addOperationRevokeSecurityGroupIngressMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "RevokeSecurityGroupIngress", params, optFns, c.addOperationRevokeSecurityGroupIngressMiddlewares) if err != nil { return nil, err } @@ -48,11 +48,11 @@ type RevokeSecurityGroupIngressInput struct { // 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 + DryRun *bool // The start of port range for the TCP and UDP protocols, or an ICMP type number. // For the ICMP type number, use -1 to specify all ICMP types. - FromPort int32 + FromPort *int32 // The ID of the security group. You must specify either the security group ID or // the security group name in the request. For security groups in a nondefault VPC, @@ -90,13 +90,13 @@ type RevokeSecurityGroupIngressInput struct { // The end of port range for the TCP and UDP protocols, or an ICMP code number. For // the ICMP code number, use -1 to specify all ICMP codes for the ICMP type. - ToPort int32 + ToPort *int32 } type RevokeSecurityGroupIngressOutput struct { // Returns true if the request succeeds; otherwise, returns an error. - Return bool + Return *bool // The inbound rules that were unknown to the service. In some cases, // unknownIpPermissionSet might be in a different format from the request @@ -107,7 +107,7 @@ type RevokeSecurityGroupIngressOutput struct { ResultMetadata middleware.Metadata } -func addOperationRevokeSecurityGroupIngressMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationRevokeSecurityGroupIngressMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpRevokeSecurityGroupIngress{}, middleware.After) if err != nil { return err 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 39fd65415..24c90343c 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 @@ -63,19 +63,17 @@ import ( // this key to provide secure access to the instance. Amazon EC2 public images use // this feature to provide secure access without passwords. For more information, // see Key pairs -// (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-key-pairs.html) in the -// Amazon Elastic Compute Cloud User Guide. For troubleshooting, see What to do if -// an instance immediately terminates +// (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-key-pairs.html). For +// troubleshooting, see What to do if an instance immediately terminates // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Using_InstanceStraightToTerminated.html), // and Troubleshooting connecting to your instance -// (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/TroubleshootingInstancesConnecting.html) -// in the Amazon Elastic Compute Cloud User Guide. +// (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/TroubleshootingInstancesConnecting.html). func (c *Client) RunInstances(ctx context.Context, params *RunInstancesInput, optFns ...func(*Options)) (*RunInstancesOutput, error) { if params == nil { params = &RunInstancesInput{} } - result, metadata, err := c.invokeOperation(ctx, "RunInstances", params, optFns, addOperationRunInstancesMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "RunInstances", params, optFns, c.addOperationRunInstancesMiddlewares) if err != nil { return nil, err } @@ -97,7 +95,7 @@ type RunInstancesInput struct { // the Amazon EC2 FAQ. // // This member is required. - MaxCount int32 + MaxCount *int32 // The minimum number of instances to launch. If you specify a minimum that is more // instances than Amazon EC2 can launch in the target Availability Zone, Amazon EC2 @@ -109,7 +107,7 @@ type RunInstancesInput struct { // the Amazon EC2 General FAQ. // // This member is required. - MinCount int32 + MinCount *int32 // Reserved. AdditionalInfo *string @@ -134,7 +132,7 @@ type RunInstancesInput struct { // The CPU options for the instance. For more information, see Optimizing CPU // options // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-optimize-cpu.html) - // in the Amazon Elastic Compute Cloud User Guide. + // in the Amazon EC2 User Guide. CpuOptions *types.CpuOptionsRequest // The credit option for CPU usage of the burstable performance instance. Valid @@ -143,8 +141,8 @@ type RunInstancesInput struct { // (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_ModifyInstanceCreditSpecification.html). // For more information, see Burstable performance instances // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/burstable-performance-instances.html) - // in the Amazon Elastic Compute Cloud User Guide. Default: standard (T2 instances) - // or unlimited (T3/T3a instances) + // in the Amazon EC2 User Guide. Default: standard (T2 instances) or unlimited + // (T3/T3a instances) CreditSpecification *types.CreditSpecificationRequest // If you set this parameter to true, you can't terminate the instance using the @@ -154,27 +152,27 @@ type RunInstancesInput struct { // Alternatively, if you set InstanceInitiatedShutdownBehavior to terminate, you // can terminate the instance by running the shutdown command from the instance. // Default: false - DisableApiTermination bool + DisableApiTermination *bool // 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 + DryRun *bool // Indicates whether the instance is optimized for Amazon EBS I/O. This // optimization provides dedicated throughput to Amazon EBS and an optimized // configuration stack to provide optimal Amazon EBS I/O performance. This // optimization isn't available with all instance types. Additional usage charges // apply when using an EBS-optimized instance. Default: false - EbsOptimized bool + EbsOptimized *bool // An elastic GPU to associate with the instance. An Elastic GPU is a GPU resource // that you can attach to your Windows instance to accelerate the graphics - // performance of your applications. For more information, see Amazon EC2 Elastic + // performance of your applications. For more information, see Amazon EC2 Elastic // GPUs // (https://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/elastic-graphics.html) - // in the Amazon Elastic Compute Cloud User Guide. + // in the Amazon EC2 User Guide. ElasticGpuSpecification []types.ElasticGpuSpecification // An elastic inference accelerator to associate with the instance. Elastic @@ -183,21 +181,21 @@ type RunInstancesInput struct { // specify accelerators from different generations in the same request. ElasticInferenceAccelerators []types.ElasticInferenceAccelerator - // Indicates whether the instance is enabled for AWS Nitro Enclaves. For more - // information, see What is AWS Nitro Enclaves? - // (https://docs.aws.amazon.com/enclaves/latest/user/nitro-enclave.html) in the AWS - // Nitro Enclaves User Guide. You can't enable AWS Nitro Enclaves and hibernation - // on the same instance. + // Indicates whether the instance is enabled for Amazon Web Services Nitro + // Enclaves. For more information, see What is Amazon Web Services Nitro Enclaves? + // (https://docs.aws.amazon.com/enclaves/latest/user/nitro-enclave.html) in the + // Amazon Web Services Nitro Enclaves User Guide. You can't enable Amazon Web + // Services Nitro Enclaves and hibernation on the same instance. EnclaveOptions *types.EnclaveOptionsRequest // Indicates whether an instance is enabled for hibernation. For more information, // see Hibernate your instance // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Hibernate.html) in the - // Amazon Elastic Compute Cloud User Guide. You can't enable hibernation and AWS + // Amazon EC2 User Guide. You can't enable hibernation and Amazon Web Services // Nitro Enclaves on the same instance. HibernationOptions *types.HibernationOptionsRequest - // The IAM instance profile. + // The name or Amazon Resource Name (ARN) of an IAM instance profile. IamInstanceProfile *types.IamInstanceProfileSpecification // The ID of the AMI. An AMI ID is required to launch an instance and must be @@ -216,7 +214,7 @@ type RunInstancesInput struct { // The instance type. For more information, see Instance types // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html) in the - // Amazon Elastic Compute Cloud User Guide. Default: m1.small + // Amazon EC2 User Guide. Default: m1.small InstanceType types.InstanceType // [EC2-VPC] The number of IPv6 addresses to associate with the primary network @@ -225,7 +223,7 @@ type RunInstancesInput struct { // in the same request. You can specify this option if you've specified a minimum // number of instances to launch. You cannot specify this option and the network // interfaces option in the same request. - Ipv6AddressCount int32 + Ipv6AddressCount *int32 // [EC2-VPC] The IPv6 addresses from the range of the subnet to associate with the // primary network interface. You cannot specify this option and the option to @@ -237,7 +235,7 @@ type RunInstancesInput struct { // The ID of the kernel. We recommend that you use PV-GRUB instead of kernels and // RAM disks. For more information, see PV-GRUB // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/UserProvidedkernels.html) - // in the Amazon Elastic Compute Cloud User Guide. + // in the Amazon EC2 User Guide. KernelId *string // The name of the key pair. You can create a key pair using CreateKeyPair @@ -283,11 +281,11 @@ type RunInstancesInput struct { // The ID of the RAM disk to select. Some kernels require additional drivers at // launch. Check the kernel requirements for information about whether you need to - // specify a RAM disk. To find kernel requirements, go to the AWS Resource Center - // and search for the kernel ID. We recommend that you use PV-GRUB instead of - // kernels and RAM disks. For more information, see PV-GRUB + // specify a RAM disk. To find kernel requirements, go to the Amazon Web Services + // Resource Center and search for the kernel ID. We recommend that you use PV-GRUB + // instead of kernels and RAM disks. For more information, see PV-GRUB // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/UserProvidedkernels.html) - // in the Amazon Elastic Compute Cloud User Guide. + // in the Amazon EC2 User Guide. RamdiskId *string // The IDs of the security groups. You can create a security group using @@ -337,11 +335,11 @@ type RunInstancesOutput struct { // The instances. Instances []types.Instance - // The ID of the AWS account that owns the reservation. + // The ID of the account that owns the reservation. OwnerId *string // The ID of the requester that launched the instances on your behalf (for example, - // AWS Management Console or Auto Scaling). + // Management Console or Auto Scaling). RequesterId *string // The ID of the reservation. @@ -351,7 +349,7 @@ type RunInstancesOutput struct { ResultMetadata middleware.Metadata } -func addOperationRunInstancesMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationRunInstancesMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpRunInstances{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_RunScheduledInstances.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_RunScheduledInstances.go index 6ebaa6ce3..465a3d1bf 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_RunScheduledInstances.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_RunScheduledInstances.go @@ -20,13 +20,13 @@ import ( // current scheduled time period ends, you can launch it again after a few minutes. // For more information, see Scheduled Instances // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-scheduled-instances.html) -// in the Amazon Elastic Compute Cloud User Guide. +// in the Amazon EC2 User Guide. func (c *Client) RunScheduledInstances(ctx context.Context, params *RunScheduledInstancesInput, optFns ...func(*Options)) (*RunScheduledInstancesOutput, error) { if params == nil { params = &RunScheduledInstancesInput{} } - result, metadata, err := c.invokeOperation(ctx, "RunScheduledInstances", params, optFns, addOperationRunScheduledInstancesMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "RunScheduledInstances", params, optFns, c.addOperationRunScheduledInstancesMiddlewares) if err != nil { return nil, err } @@ -59,10 +59,10 @@ type RunScheduledInstancesInput struct { // 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 + DryRun *bool // The number of instances. Default: 1 - InstanceCount int32 + InstanceCount *int32 } // Contains the output of RunScheduledInstances. @@ -75,7 +75,7 @@ type RunScheduledInstancesOutput struct { ResultMetadata middleware.Metadata } -func addOperationRunScheduledInstancesMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationRunScheduledInstancesMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpRunScheduledInstances{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_SearchLocalGatewayRoutes.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_SearchLocalGatewayRoutes.go index 634de9c1a..499004703 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_SearchLocalGatewayRoutes.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_SearchLocalGatewayRoutes.go @@ -18,7 +18,7 @@ func (c *Client) SearchLocalGatewayRoutes(ctx context.Context, params *SearchLoc params = &SearchLocalGatewayRoutesInput{} } - result, metadata, err := c.invokeOperation(ctx, "SearchLocalGatewayRoutes", params, optFns, addOperationSearchLocalGatewayRoutesMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "SearchLocalGatewayRoutes", params, optFns, c.addOperationSearchLocalGatewayRoutesMiddlewares) if err != nil { return nil, err } @@ -44,7 +44,7 @@ type SearchLocalGatewayRoutesInput struct { // 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 + DryRun *bool // The maximum number of results to return with a single call. To retrieve the // remaining results, make another call with the returned nextToken value. @@ -67,7 +67,7 @@ type SearchLocalGatewayRoutesOutput struct { ResultMetadata middleware.Metadata } -func addOperationSearchLocalGatewayRoutesMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationSearchLocalGatewayRoutesMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpSearchLocalGatewayRoutes{}, middleware.After) if err != nil { return err @@ -162,6 +162,10 @@ type SearchLocalGatewayRoutesPaginator struct { // NewSearchLocalGatewayRoutesPaginator returns a new // SearchLocalGatewayRoutesPaginator func NewSearchLocalGatewayRoutesPaginator(client SearchLocalGatewayRoutesAPIClient, params *SearchLocalGatewayRoutesInput, optFns ...func(*SearchLocalGatewayRoutesPaginatorOptions)) *SearchLocalGatewayRoutesPaginator { + if params == nil { + params = &SearchLocalGatewayRoutesInput{} + } + options := SearchLocalGatewayRoutesPaginatorOptions{} if params.MaxResults != nil { options.Limit = *params.MaxResults @@ -171,10 +175,6 @@ func NewSearchLocalGatewayRoutesPaginator(client SearchLocalGatewayRoutesAPIClie fn(&options) } - if params == nil { - params = &SearchLocalGatewayRoutesInput{} - } - return &SearchLocalGatewayRoutesPaginator{ options: options, client: client, diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_SearchTransitGatewayMulticastGroups.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_SearchTransitGatewayMulticastGroups.go index 32112292e..c7b331654 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_SearchTransitGatewayMulticastGroups.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_SearchTransitGatewayMulticastGroups.go @@ -19,7 +19,7 @@ func (c *Client) SearchTransitGatewayMulticastGroups(ctx context.Context, params params = &SearchTransitGatewayMulticastGroupsInput{} } - result, metadata, err := c.invokeOperation(ctx, "SearchTransitGatewayMulticastGroups", params, optFns, addOperationSearchTransitGatewayMulticastGroupsMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "SearchTransitGatewayMulticastGroups", params, optFns, c.addOperationSearchTransitGatewayMulticastGroupsMiddlewares) if err != nil { return nil, err } @@ -35,7 +35,7 @@ type SearchTransitGatewayMulticastGroupsInput struct { // 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 + DryRun *bool // One or more filters. The possible values are: // @@ -72,7 +72,7 @@ type SearchTransitGatewayMulticastGroupsInput struct { // The maximum number of results to return with a single call. To retrieve the // remaining results, make another call with the returned nextToken value. - MaxResults int32 + MaxResults *int32 // The token for the next page of results. NextToken *string @@ -94,7 +94,7 @@ type SearchTransitGatewayMulticastGroupsOutput struct { ResultMetadata middleware.Metadata } -func addOperationSearchTransitGatewayMulticastGroupsMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationSearchTransitGatewayMulticastGroupsMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpSearchTransitGatewayMulticastGroups{}, middleware.After) if err != nil { return err @@ -187,19 +187,19 @@ type SearchTransitGatewayMulticastGroupsPaginator struct { // NewSearchTransitGatewayMulticastGroupsPaginator returns a new // SearchTransitGatewayMulticastGroupsPaginator func NewSearchTransitGatewayMulticastGroupsPaginator(client SearchTransitGatewayMulticastGroupsAPIClient, params *SearchTransitGatewayMulticastGroupsInput, optFns ...func(*SearchTransitGatewayMulticastGroupsPaginatorOptions)) *SearchTransitGatewayMulticastGroupsPaginator { + if params == nil { + params = &SearchTransitGatewayMulticastGroupsInput{} + } + options := SearchTransitGatewayMulticastGroupsPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults + if params.MaxResults != nil { + options.Limit = *params.MaxResults } for _, fn := range optFns { fn(&options) } - if params == nil { - params = &SearchTransitGatewayMulticastGroupsInput{} - } - return &SearchTransitGatewayMulticastGroupsPaginator{ options: options, client: client, @@ -222,7 +222,11 @@ func (p *SearchTransitGatewayMulticastGroupsPaginator) NextPage(ctx context.Cont params := *p.params params.NextToken = p.nextToken - params.MaxResults = p.options.Limit + var limit *int32 + if p.options.Limit > 0 { + limit = &p.options.Limit + } + params.MaxResults = limit result, err := p.client.SearchTransitGatewayMulticastGroups(ctx, ¶ms, optFns...) if err != nil { diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_SearchTransitGatewayRoutes.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_SearchTransitGatewayRoutes.go index 50d17c4ab..d62fc25f0 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_SearchTransitGatewayRoutes.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_SearchTransitGatewayRoutes.go @@ -17,7 +17,7 @@ func (c *Client) SearchTransitGatewayRoutes(ctx context.Context, params *SearchT params = &SearchTransitGatewayRoutesInput{} } - result, metadata, err := c.invokeOperation(ctx, "SearchTransitGatewayRoutes", params, optFns, addOperationSearchTransitGatewayRoutesMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "SearchTransitGatewayRoutes", params, optFns, c.addOperationSearchTransitGatewayRoutesMiddlewares) if err != nil { return nil, err } @@ -76,16 +76,16 @@ type SearchTransitGatewayRoutesInput struct { // 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 + DryRun *bool // The maximum number of routes to return. - MaxResults int32 + MaxResults *int32 } type SearchTransitGatewayRoutesOutput struct { // Indicates whether there are additional routes available. - AdditionalRoutesAvailable bool + AdditionalRoutesAvailable *bool // Information about the routes. Routes []types.TransitGatewayRoute @@ -94,7 +94,7 @@ type SearchTransitGatewayRoutesOutput struct { ResultMetadata middleware.Metadata } -func addOperationSearchTransitGatewayRoutesMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationSearchTransitGatewayRoutesMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpSearchTransitGatewayRoutes{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_SendDiagnosticInterrupt.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_SendDiagnosticInterrupt.go index 50e81ee8b..8801a2eff 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_SendDiagnosticInterrupt.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_SendDiagnosticInterrupt.go @@ -30,7 +30,7 @@ func (c *Client) SendDiagnosticInterrupt(ctx context.Context, params *SendDiagno params = &SendDiagnosticInterruptInput{} } - result, metadata, err := c.invokeOperation(ctx, "SendDiagnosticInterrupt", params, optFns, addOperationSendDiagnosticInterruptMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "SendDiagnosticInterrupt", params, optFns, c.addOperationSendDiagnosticInterruptMiddlewares) if err != nil { return nil, err } @@ -51,7 +51,7 @@ type SendDiagnosticInterruptInput struct { // 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 + DryRun *bool } type SendDiagnosticInterruptOutput struct { @@ -59,7 +59,7 @@ type SendDiagnosticInterruptOutput struct { ResultMetadata middleware.Metadata } -func addOperationSendDiagnosticInterruptMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationSendDiagnosticInterruptMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpSendDiagnosticInterrupt{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_StartInstances.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_StartInstances.go index 48647d313..5620618a3 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_StartInstances.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_StartInstances.go @@ -17,24 +17,20 @@ import ( // are not billed for instance usage. However, your root partition Amazon EBS // volume remains and continues to persist your data, and you are charged for // Amazon EBS volume usage. You can restart your instance at any time. Every time -// you start your Windows instance, Amazon EC2 charges you for a full instance -// hour. If you stop and restart your Windows instance, a new instance hour begins -// and Amazon EC2 charges you for another full instance hour even if you are still -// within the same 60-minute period when it was stopped. Every time you start your -// Linux instance, Amazon EC2 charges a one-minute minimum for instance usage, and -// thereafter charges per second for instance usage. Before stopping an instance, -// make sure it is in a state from which it can be restarted. Stopping an instance -// does not preserve data stored in RAM. Performing this operation on an instance -// that uses an instance store as its root device returns an error. For more -// information, see Stopping instances +// you start your instance, Amazon EC2 charges a one-minute minimum for instance +// usage, and thereafter charges per second for instance usage. Before stopping an +// instance, make sure it is in a state from which it can be restarted. Stopping an +// instance does not preserve data stored in RAM. Performing this operation on an +// instance that uses an instance store as its root device returns an error. For +// more information, see Stopping instances // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Stop_Start.html) in the -// Amazon Elastic Compute Cloud User Guide. +// Amazon EC2 User Guide. func (c *Client) StartInstances(ctx context.Context, params *StartInstancesInput, optFns ...func(*Options)) (*StartInstancesOutput, error) { if params == nil { params = &StartInstancesInput{} } - result, metadata, err := c.invokeOperation(ctx, "StartInstances", params, optFns, addOperationStartInstancesMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "StartInstances", params, optFns, c.addOperationStartInstancesMiddlewares) if err != nil { return nil, err } @@ -58,7 +54,7 @@ type StartInstancesInput struct { // 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 + DryRun *bool } type StartInstancesOutput struct { @@ -70,7 +66,7 @@ type StartInstancesOutput struct { ResultMetadata middleware.Metadata } -func addOperationStartInstancesMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationStartInstancesMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpStartInstances{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_StartNetworkInsightsAnalysis.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_StartNetworkInsightsAnalysis.go index 775c8e611..7c3ace3a3 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_StartNetworkInsightsAnalysis.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_StartNetworkInsightsAnalysis.go @@ -19,7 +19,7 @@ func (c *Client) StartNetworkInsightsAnalysis(ctx context.Context, params *Start params = &StartNetworkInsightsAnalysisInput{} } - result, metadata, err := c.invokeOperation(ctx, "StartNetworkInsightsAnalysis", params, optFns, addOperationStartNetworkInsightsAnalysisMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "StartNetworkInsightsAnalysis", params, optFns, c.addOperationStartNetworkInsightsAnalysisMiddlewares) if err != nil { return nil, err } @@ -47,7 +47,7 @@ type StartNetworkInsightsAnalysisInput struct { // 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 + DryRun *bool // The Amazon Resource Names (ARN) of the resources that the path must traverse. FilterInArns []string @@ -65,7 +65,7 @@ type StartNetworkInsightsAnalysisOutput struct { ResultMetadata middleware.Metadata } -func addOperationStartNetworkInsightsAnalysisMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationStartNetworkInsightsAnalysisMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpStartNetworkInsightsAnalysis{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_StartVpcEndpointServicePrivateDnsVerification.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_StartVpcEndpointServicePrivateDnsVerification.go index b81cb63fd..49da9f435 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_StartVpcEndpointServicePrivateDnsVerification.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_StartVpcEndpointServicePrivateDnsVerification.go @@ -23,7 +23,7 @@ func (c *Client) StartVpcEndpointServicePrivateDnsVerification(ctx context.Conte params = &StartVpcEndpointServicePrivateDnsVerificationInput{} } - result, metadata, err := c.invokeOperation(ctx, "StartVpcEndpointServicePrivateDnsVerification", params, optFns, addOperationStartVpcEndpointServicePrivateDnsVerificationMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "StartVpcEndpointServicePrivateDnsVerification", params, optFns, c.addOperationStartVpcEndpointServicePrivateDnsVerificationMiddlewares) if err != nil { return nil, err } @@ -44,19 +44,19 @@ type StartVpcEndpointServicePrivateDnsVerificationInput struct { // 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 + DryRun *bool } type StartVpcEndpointServicePrivateDnsVerificationOutput struct { // Returns true if the request succeeds; otherwise, it returns an error. - ReturnValue bool + ReturnValue *bool // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata } -func addOperationStartVpcEndpointServicePrivateDnsVerificationMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationStartVpcEndpointServicePrivateDnsVerificationMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpStartVpcEndpointServicePrivateDnsVerification{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_StopInstances.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_StopInstances.go index 10d22bd74..4c18c90e7 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_StopInstances.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_StopInstances.go @@ -18,46 +18,41 @@ import ( // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Hibernate.html#hibernating-prerequisites). // For more information, see Hibernate your instance // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Hibernate.html) in the -// Amazon Elastic Compute Cloud User Guide. We don't charge usage for a stopped -// instance, or data transfer fees; however, your root partition Amazon EBS volume -// remains and continues to persist your data, and you are charged for Amazon EBS -// volume usage. Every time you start your Windows instance, Amazon EC2 charges you -// for a full instance hour. If you stop and restart your Windows instance, a new -// instance hour begins and Amazon EC2 charges you for another full instance hour -// even if you are still within the same 60-minute period when it was stopped. -// Every time you start your Linux instance, Amazon EC2 charges a one-minute -// minimum for instance usage, and thereafter charges per second for instance -// usage. You can't stop or hibernate instance store-backed instances. You can't -// use the Stop action to hibernate Spot Instances, but you can specify that Amazon -// EC2 should hibernate Spot Instances when they are interrupted. For more -// information, see Hibernating interrupted Spot Instances +// Amazon EC2 User Guide. We don't charge usage for a stopped instance, or data +// transfer fees; however, your root partition Amazon EBS volume remains and +// continues to persist your data, and you are charged for Amazon EBS volume usage. +// Every time you start your instance, Amazon EC2 charges a one-minute minimum for +// instance usage, and thereafter charges per second for instance usage. You can't +// stop or hibernate instance store-backed instances. You can't use the Stop action +// to hibernate Spot Instances, but you can specify that Amazon EC2 should +// hibernate Spot Instances when they are interrupted. For more information, see +// Hibernating interrupted Spot Instances // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-interruptions.html#hibernate-spot-instances) -// in the Amazon Elastic Compute Cloud User Guide. When you stop or hibernate an -// instance, we shut it down. You can restart your instance at any time. Before -// stopping or hibernating an instance, make sure it is in a state from which it -// can be restarted. Stopping an instance does not preserve data stored in RAM, but -// hibernating an instance does preserve data stored in RAM. If an instance cannot -// hibernate successfully, a normal shutdown occurs. Stopping and hibernating an -// instance is different to rebooting or terminating it. For example, when you stop -// or hibernate an instance, the root device and any other devices attached to the -// instance persist. When you terminate an instance, the root device and any other -// devices attached during the instance launch are automatically deleted. For more +// in the Amazon EC2 User Guide. When you stop or hibernate an instance, we shut it +// down. You can restart your instance at any time. Before stopping or hibernating +// an instance, make sure it is in a state from which it can be restarted. Stopping +// an instance does not preserve data stored in RAM, but hibernating an instance +// does preserve data stored in RAM. If an instance cannot hibernate successfully, +// a normal shutdown occurs. Stopping and hibernating an instance is different to +// rebooting or terminating it. For example, when you stop or hibernate an +// instance, the root device and any other devices attached to the instance +// persist. When you terminate an instance, the root device and any other devices +// attached during the instance launch are automatically deleted. For more // information about the differences between rebooting, stopping, hibernating, and // terminating instances, see Instance lifecycle // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-lifecycle.html) -// in the Amazon Elastic Compute Cloud User Guide. When you stop an instance, we -// attempt to shut it down forcibly after a short while. If your instance appears -// stuck in the stopping state after a period of time, there may be an issue with -// the underlying host computer. For more information, see Troubleshooting stopping -// your instance +// in the Amazon EC2 User Guide. When you stop an instance, we attempt to shut it +// down forcibly after a short while. If your instance appears stuck in the +// stopping state after a period of time, there may be an issue with the underlying +// host computer. For more information, see Troubleshooting stopping your instance // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/TroubleshootingInstancesStopping.html) -// in the Amazon Elastic Compute Cloud User Guide. +// in the Amazon EC2 User Guide. func (c *Client) StopInstances(ctx context.Context, params *StopInstancesInput, optFns ...func(*Options)) (*StopInstancesOutput, error) { if params == nil { params = &StopInstancesInput{} } - result, metadata, err := c.invokeOperation(ctx, "StopInstances", params, optFns, addOperationStopInstancesMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "StopInstances", params, optFns, c.addOperationStopInstancesMiddlewares) if err != nil { return nil, err } @@ -78,20 +73,20 @@ type StopInstancesInput struct { // 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 + DryRun *bool // Forces the instances to stop. The instances do not have an opportunity to flush // file system caches or file system metadata. If you use this option, you must // perform file system check and repair procedures. This option is not recommended // for Windows instances. Default: false - Force bool + Force *bool // Hibernates the instance if the instance was enabled for hibernation at launch. // If the instance cannot hibernate successfully, a normal shutdown occurs. For // more information, see Hibernate your instance // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Hibernate.html) in the - // Amazon Elastic Compute Cloud User Guide. Default: false - Hibernate bool + // Amazon EC2 User Guide. Default: false + Hibernate *bool } type StopInstancesOutput struct { @@ -103,7 +98,7 @@ type StopInstancesOutput struct { ResultMetadata middleware.Metadata } -func addOperationStopInstancesMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationStopInstancesMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpStopInstances{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_TerminateClientVpnConnections.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_TerminateClientVpnConnections.go index b0c64a417..cbf641999 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_TerminateClientVpnConnections.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_TerminateClientVpnConnections.go @@ -19,7 +19,7 @@ func (c *Client) TerminateClientVpnConnections(ctx context.Context, params *Term params = &TerminateClientVpnConnectionsInput{} } - result, metadata, err := c.invokeOperation(ctx, "TerminateClientVpnConnections", params, optFns, addOperationTerminateClientVpnConnectionsMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "TerminateClientVpnConnections", params, optFns, c.addOperationTerminateClientVpnConnectionsMiddlewares) if err != nil { return nil, err } @@ -43,7 +43,7 @@ type TerminateClientVpnConnectionsInput struct { // 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 + DryRun *bool // The name of the user who initiated the connection. Use this option to terminate // all active connections for the specified user. This option can only be used if @@ -66,7 +66,7 @@ type TerminateClientVpnConnectionsOutput struct { ResultMetadata middleware.Metadata } -func addOperationTerminateClientVpnConnectionsMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationTerminateClientVpnConnectionsMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpTerminateClientVpnConnections{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_TerminateInstances.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_TerminateInstances.go index 2fbdbbf06..3aaad467b 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_TerminateInstances.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_TerminateInstances.go @@ -14,28 +14,65 @@ import ( // Shuts down the specified instances. This operation is idempotent; if you // terminate an instance more than once, each call succeeds. If you specify // multiple instances and the request fails (for example, because of a single -// incorrect instance ID), none of the instances are terminated. Terminated -// instances remain visible after termination (for approximately one hour). By -// default, Amazon EC2 deletes all EBS volumes that were attached when the instance -// launched. Volumes attached after instance launch continue running. You can stop, -// start, and terminate EBS-backed instances. You can only terminate instance -// store-backed instances. What happens to an instance differs if you stop it or -// terminate it. For example, when you stop an instance, the root device and any -// other devices attached to the instance persist. When you terminate an instance, -// any attached EBS volumes with the DeleteOnTermination block device mapping -// parameter set to true are automatically deleted. For more information about the -// differences between stopping and terminating instances, see Instance lifecycle +// incorrect instance ID), none of the instances are terminated. If you terminate +// multiple instances across multiple Availability Zones, and one or more of the +// specified instances are enabled for termination protection, the request fails +// with the following results: +// +// * The specified instances that are in the same +// Availability Zone as the protected instance are not terminated. +// +// * The specified +// instances that are in different Availability Zones, where no other specified +// instances are protected, are successfully terminated. +// +// For example, say you have +// the following instances: +// +// * Instance A: us-east-1a; Not protected +// +// * Instance B: +// us-east-1a; Not protected +// +// * Instance C: us-east-1b; Protected +// +// * Instance D: +// us-east-1b; not protected +// +// If you attempt to terminate all of these instances in +// the same request, the request reports failure with the following results: +// +// * +// Instance A and Instance B are successfully terminated because none of the +// specified instances in us-east-1a are enabled for termination protection. +// +// * +// Instance C and Instance D fail to terminate because at least one of the +// specified instances in us-east-1b (Instance C) is enabled for termination +// protection. +// +// Terminated instances remain visible after termination (for +// approximately one hour). By default, Amazon EC2 deletes all EBS volumes that +// were attached when the instance launched. Volumes attached after instance launch +// continue running. You can stop, start, and terminate EBS-backed instances. You +// can only terminate instance store-backed instances. What happens to an instance +// differs if you stop it or terminate it. For example, when you stop an instance, +// the root device and any other devices attached to the instance persist. When you +// terminate an instance, any attached EBS volumes with the DeleteOnTermination +// block device mapping parameter set to true are automatically deleted. For more +// information about the differences between stopping and terminating instances, +// see Instance lifecycle // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-lifecycle.html) -// in the Amazon Elastic Compute Cloud User Guide. For more information about -// troubleshooting, see Troubleshooting terminating your instance +// in the Amazon EC2 User Guide. For more information about troubleshooting, see +// Troubleshooting terminating your instance // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/TroubleshootingInstancesShuttingDown.html) -// in the Amazon Elastic Compute Cloud User Guide. +// in the Amazon EC2 User Guide. func (c *Client) TerminateInstances(ctx context.Context, params *TerminateInstancesInput, optFns ...func(*Options)) (*TerminateInstancesOutput, error) { if params == nil { params = &TerminateInstancesInput{} } - result, metadata, err := c.invokeOperation(ctx, "TerminateInstances", params, optFns, addOperationTerminateInstancesMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "TerminateInstances", params, optFns, c.addOperationTerminateInstancesMiddlewares) if err != nil { return nil, err } @@ -57,7 +94,7 @@ type TerminateInstancesInput struct { // 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 + DryRun *bool } type TerminateInstancesOutput struct { @@ -69,7 +106,7 @@ type TerminateInstancesOutput struct { ResultMetadata middleware.Metadata } -func addOperationTerminateInstancesMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationTerminateInstancesMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpTerminateInstances{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_UnassignIpv6Addresses.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_UnassignIpv6Addresses.go index 2f617b8e3..23ef51583 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_UnassignIpv6Addresses.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_UnassignIpv6Addresses.go @@ -16,7 +16,7 @@ func (c *Client) UnassignIpv6Addresses(ctx context.Context, params *UnassignIpv6 params = &UnassignIpv6AddressesInput{} } - result, metadata, err := c.invokeOperation(ctx, "UnassignIpv6Addresses", params, optFns, addOperationUnassignIpv6AddressesMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "UnassignIpv6Addresses", params, optFns, c.addOperationUnassignIpv6AddressesMiddlewares) if err != nil { return nil, err } @@ -51,7 +51,7 @@ type UnassignIpv6AddressesOutput struct { ResultMetadata middleware.Metadata } -func addOperationUnassignIpv6AddressesMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationUnassignIpv6AddressesMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpUnassignIpv6Addresses{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_UnassignPrivateIpAddresses.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_UnassignPrivateIpAddresses.go index ecdbd54d7..8a1a72b46 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_UnassignPrivateIpAddresses.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_UnassignPrivateIpAddresses.go @@ -16,7 +16,7 @@ func (c *Client) UnassignPrivateIpAddresses(ctx context.Context, params *Unassig params = &UnassignPrivateIpAddressesInput{} } - result, metadata, err := c.invokeOperation(ctx, "UnassignPrivateIpAddresses", params, optFns, addOperationUnassignPrivateIpAddressesMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "UnassignPrivateIpAddresses", params, optFns, c.addOperationUnassignPrivateIpAddressesMiddlewares) if err != nil { return nil, err } @@ -46,7 +46,7 @@ type UnassignPrivateIpAddressesOutput struct { ResultMetadata middleware.Metadata } -func addOperationUnassignPrivateIpAddressesMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationUnassignPrivateIpAddressesMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpUnassignPrivateIpAddresses{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_UnmonitorInstances.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_UnmonitorInstances.go index 87faad427..419155e46 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_UnmonitorInstances.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_UnmonitorInstances.go @@ -14,13 +14,13 @@ import ( // Disables detailed monitoring for a running instance. For more information, see // Monitoring your instances and volumes // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-cloudwatch.html) in -// the Amazon Elastic Compute Cloud User Guide. +// the Amazon EC2 User Guide. func (c *Client) UnmonitorInstances(ctx context.Context, params *UnmonitorInstancesInput, optFns ...func(*Options)) (*UnmonitorInstancesOutput, error) { if params == nil { params = &UnmonitorInstancesInput{} } - result, metadata, err := c.invokeOperation(ctx, "UnmonitorInstances", params, optFns, addOperationUnmonitorInstancesMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "UnmonitorInstances", params, optFns, c.addOperationUnmonitorInstancesMiddlewares) if err != nil { return nil, err } @@ -41,7 +41,7 @@ type UnmonitorInstancesInput struct { // 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 + DryRun *bool } type UnmonitorInstancesOutput struct { @@ -53,7 +53,7 @@ type UnmonitorInstancesOutput struct { ResultMetadata middleware.Metadata } -func addOperationUnmonitorInstancesMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationUnmonitorInstancesMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpUnmonitorInstances{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_UpdateSecurityGroupRuleDescriptionsEgress.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_UpdateSecurityGroupRuleDescriptionsEgress.go index f1bafd9fb..bb7cac65f 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_UpdateSecurityGroupRuleDescriptionsEgress.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_UpdateSecurityGroupRuleDescriptionsEgress.go @@ -21,7 +21,7 @@ func (c *Client) UpdateSecurityGroupRuleDescriptionsEgress(ctx context.Context, params = &UpdateSecurityGroupRuleDescriptionsEgressInput{} } - result, metadata, err := c.invokeOperation(ctx, "UpdateSecurityGroupRuleDescriptionsEgress", params, optFns, addOperationUpdateSecurityGroupRuleDescriptionsEgressMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "UpdateSecurityGroupRuleDescriptionsEgress", params, optFns, c.addOperationUpdateSecurityGroupRuleDescriptionsEgressMiddlewares) if err != nil { return nil, err } @@ -42,7 +42,7 @@ type UpdateSecurityGroupRuleDescriptionsEgressInput struct { // 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 + DryRun *bool // The ID of the security group. You must specify either the security group ID or // the security group name in the request. For security groups in a nondefault VPC, @@ -57,13 +57,13 @@ type UpdateSecurityGroupRuleDescriptionsEgressInput struct { type UpdateSecurityGroupRuleDescriptionsEgressOutput struct { // Returns true if the request succeeds; otherwise, returns an error. - Return bool + Return *bool // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata } -func addOperationUpdateSecurityGroupRuleDescriptionsEgressMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationUpdateSecurityGroupRuleDescriptionsEgressMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpUpdateSecurityGroupRuleDescriptionsEgress{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_UpdateSecurityGroupRuleDescriptionsIngress.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_UpdateSecurityGroupRuleDescriptionsIngress.go index fa4ab4622..78760e9dd 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_UpdateSecurityGroupRuleDescriptionsIngress.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_UpdateSecurityGroupRuleDescriptionsIngress.go @@ -21,7 +21,7 @@ func (c *Client) UpdateSecurityGroupRuleDescriptionsIngress(ctx context.Context, params = &UpdateSecurityGroupRuleDescriptionsIngressInput{} } - result, metadata, err := c.invokeOperation(ctx, "UpdateSecurityGroupRuleDescriptionsIngress", params, optFns, addOperationUpdateSecurityGroupRuleDescriptionsIngressMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "UpdateSecurityGroupRuleDescriptionsIngress", params, optFns, c.addOperationUpdateSecurityGroupRuleDescriptionsIngressMiddlewares) if err != nil { return nil, err } @@ -42,7 +42,7 @@ type UpdateSecurityGroupRuleDescriptionsIngressInput struct { // 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 + DryRun *bool // The ID of the security group. You must specify either the security group ID or // the security group name in the request. For security groups in a nondefault VPC, @@ -57,13 +57,13 @@ type UpdateSecurityGroupRuleDescriptionsIngressInput struct { type UpdateSecurityGroupRuleDescriptionsIngressOutput struct { // Returns true if the request succeeds; otherwise, returns an error. - Return bool + Return *bool // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata } -func addOperationUpdateSecurityGroupRuleDescriptionsIngressMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationUpdateSecurityGroupRuleDescriptionsIngressMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpUpdateSecurityGroupRuleDescriptionsIngress{}, middleware.After) if err != nil { return err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_WithdrawByoipCidr.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_WithdrawByoipCidr.go index 8445558ab..020e1bc16 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_WithdrawByoipCidr.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_WithdrawByoipCidr.go @@ -14,13 +14,14 @@ import ( // Stops advertising an address range that is provisioned as an address pool. You // can perform this operation at most once every 10 seconds, even if you specify // different address ranges each time. It can take a few minutes before traffic to -// the specified addresses stops routing to AWS because of BGP propagation delays. +// the specified addresses stops routing to Amazon Web Services because of BGP +// propagation delays. func (c *Client) WithdrawByoipCidr(ctx context.Context, params *WithdrawByoipCidrInput, optFns ...func(*Options)) (*WithdrawByoipCidrOutput, error) { if params == nil { params = &WithdrawByoipCidrInput{} } - result, metadata, err := c.invokeOperation(ctx, "WithdrawByoipCidr", params, optFns, addOperationWithdrawByoipCidrMiddlewares) + result, metadata, err := c.invokeOperation(ctx, "WithdrawByoipCidr", params, optFns, c.addOperationWithdrawByoipCidrMiddlewares) if err != nil { return nil, err } @@ -41,7 +42,7 @@ type WithdrawByoipCidrInput struct { // 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 + DryRun *bool } type WithdrawByoipCidrOutput struct { @@ -53,7 +54,7 @@ type WithdrawByoipCidrOutput struct { ResultMetadata middleware.Metadata } -func addOperationWithdrawByoipCidrMiddlewares(stack *middleware.Stack, options Options) (err error) { +func (c *Client) addOperationWithdrawByoipCidrMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpWithdrawByoipCidr{}, middleware.After) if err != nil { return err 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 6e8064c93..19daee6a1 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 @@ -1912,6 +1912,97 @@ func awsEc2query_deserializeOpErrorAssociateTransitGatewayRouteTable(response *s } } +type awsEc2query_deserializeOpAssociateTrunkInterface struct { +} + +func (*awsEc2query_deserializeOpAssociateTrunkInterface) ID() string { + return "OperationDeserializer" +} + +func (m *awsEc2query_deserializeOpAssociateTrunkInterface) 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 + } + + 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_deserializeOpErrorAssociateTrunkInterface(response, &metadata) + } + output := &AssociateTrunkInterfaceOutput{} + 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_deserializeOpDocumentAssociateTrunkInterfaceOutput(&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_deserializeOpErrorAssociateTrunkInterface(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_deserializeOpAssociateVpcCidrBlock struct { } @@ -6324,6 +6415,97 @@ func awsEc2query_deserializeOpErrorCreatePlacementGroup(response *smithyhttp.Res } } +type awsEc2query_deserializeOpCreateReplaceRootVolumeTask struct { +} + +func (*awsEc2query_deserializeOpCreateReplaceRootVolumeTask) ID() string { + return "OperationDeserializer" +} + +func (m *awsEc2query_deserializeOpCreateReplaceRootVolumeTask) 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 + } + + 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_deserializeOpErrorCreateReplaceRootVolumeTask(response, &metadata) + } + output := &CreateReplaceRootVolumeTaskOutput{} + 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_deserializeOpDocumentCreateReplaceRootVolumeTaskOutput(&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_deserializeOpErrorCreateReplaceRootVolumeTask(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_deserializeOpCreateReservedInstancesListing struct { } @@ -6415,14 +6597,14 @@ func awsEc2query_deserializeOpErrorCreateReservedInstancesListing(response *smit } } -type awsEc2query_deserializeOpCreateRoute struct { +type awsEc2query_deserializeOpCreateRestoreImageTask struct { } -func (*awsEc2query_deserializeOpCreateRoute) ID() string { +func (*awsEc2query_deserializeOpCreateRestoreImageTask) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpCreateRoute) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpCreateRestoreImageTask) 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) @@ -6436,9 +6618,9 @@ func (m *awsEc2query_deserializeOpCreateRoute) HandleDeserialize(ctx context.Con } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorCreateRoute(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorCreateRestoreImageTask(response, &metadata) } - output := &CreateRouteOutput{} + output := &CreateRestoreImageTaskOutput{} out.Result = output var buff [1024]byte @@ -6459,7 +6641,7 @@ func (m *awsEc2query_deserializeOpCreateRoute) HandleDeserialize(ctx context.Con } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentCreateRouteOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentCreateRestoreImageTaskOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -6473,7 +6655,7 @@ func (m *awsEc2query_deserializeOpCreateRoute) HandleDeserialize(ctx context.Con return out, metadata, err } -func awsEc2query_deserializeOpErrorCreateRoute(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorCreateRestoreImageTask(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)} @@ -6506,14 +6688,14 @@ func awsEc2query_deserializeOpErrorCreateRoute(response *smithyhttp.Response, me } } -type awsEc2query_deserializeOpCreateRouteTable struct { +type awsEc2query_deserializeOpCreateRoute struct { } -func (*awsEc2query_deserializeOpCreateRouteTable) ID() string { +func (*awsEc2query_deserializeOpCreateRoute) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpCreateRouteTable) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpCreateRoute) 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) @@ -6527,9 +6709,9 @@ func (m *awsEc2query_deserializeOpCreateRouteTable) HandleDeserialize(ctx contex } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorCreateRouteTable(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorCreateRoute(response, &metadata) } - output := &CreateRouteTableOutput{} + output := &CreateRouteOutput{} out.Result = output var buff [1024]byte @@ -6550,7 +6732,7 @@ func (m *awsEc2query_deserializeOpCreateRouteTable) HandleDeserialize(ctx contex } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentCreateRouteTableOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentCreateRouteOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -6564,7 +6746,7 @@ func (m *awsEc2query_deserializeOpCreateRouteTable) HandleDeserialize(ctx contex return out, metadata, err } -func awsEc2query_deserializeOpErrorCreateRouteTable(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorCreateRoute(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)} @@ -6597,14 +6779,14 @@ func awsEc2query_deserializeOpErrorCreateRouteTable(response *smithyhttp.Respons } } -type awsEc2query_deserializeOpCreateSecurityGroup struct { +type awsEc2query_deserializeOpCreateRouteTable struct { } -func (*awsEc2query_deserializeOpCreateSecurityGroup) ID() string { +func (*awsEc2query_deserializeOpCreateRouteTable) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpCreateSecurityGroup) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpCreateRouteTable) 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) @@ -6618,9 +6800,9 @@ func (m *awsEc2query_deserializeOpCreateSecurityGroup) HandleDeserialize(ctx con } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorCreateSecurityGroup(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorCreateRouteTable(response, &metadata) } - output := &CreateSecurityGroupOutput{} + output := &CreateRouteTableOutput{} out.Result = output var buff [1024]byte @@ -6641,7 +6823,7 @@ func (m *awsEc2query_deserializeOpCreateSecurityGroup) HandleDeserialize(ctx con } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentCreateSecurityGroupOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentCreateRouteTableOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -6655,7 +6837,7 @@ func (m *awsEc2query_deserializeOpCreateSecurityGroup) HandleDeserialize(ctx con return out, metadata, err } -func awsEc2query_deserializeOpErrorCreateSecurityGroup(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorCreateRouteTable(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)} @@ -6688,14 +6870,14 @@ func awsEc2query_deserializeOpErrorCreateSecurityGroup(response *smithyhttp.Resp } } -type awsEc2query_deserializeOpCreateSnapshot struct { +type awsEc2query_deserializeOpCreateSecurityGroup struct { } -func (*awsEc2query_deserializeOpCreateSnapshot) ID() string { +func (*awsEc2query_deserializeOpCreateSecurityGroup) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpCreateSnapshot) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpCreateSecurityGroup) 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) @@ -6709,9 +6891,9 @@ func (m *awsEc2query_deserializeOpCreateSnapshot) HandleDeserialize(ctx context. } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorCreateSnapshot(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorCreateSecurityGroup(response, &metadata) } - output := &CreateSnapshotOutput{} + output := &CreateSecurityGroupOutput{} out.Result = output var buff [1024]byte @@ -6732,7 +6914,7 @@ func (m *awsEc2query_deserializeOpCreateSnapshot) HandleDeserialize(ctx context. } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentCreateSnapshotOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentCreateSecurityGroupOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -6746,7 +6928,7 @@ func (m *awsEc2query_deserializeOpCreateSnapshot) HandleDeserialize(ctx context. return out, metadata, err } -func awsEc2query_deserializeOpErrorCreateSnapshot(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorCreateSecurityGroup(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)} @@ -6779,14 +6961,14 @@ func awsEc2query_deserializeOpErrorCreateSnapshot(response *smithyhttp.Response, } } -type awsEc2query_deserializeOpCreateSnapshots struct { +type awsEc2query_deserializeOpCreateSnapshot struct { } -func (*awsEc2query_deserializeOpCreateSnapshots) ID() string { +func (*awsEc2query_deserializeOpCreateSnapshot) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpCreateSnapshots) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpCreateSnapshot) 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) @@ -6800,9 +6982,9 @@ func (m *awsEc2query_deserializeOpCreateSnapshots) HandleDeserialize(ctx context } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorCreateSnapshots(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorCreateSnapshot(response, &metadata) } - output := &CreateSnapshotsOutput{} + output := &CreateSnapshotOutput{} out.Result = output var buff [1024]byte @@ -6823,7 +7005,7 @@ func (m *awsEc2query_deserializeOpCreateSnapshots) HandleDeserialize(ctx context } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentCreateSnapshotsOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentCreateSnapshotOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -6837,7 +7019,7 @@ func (m *awsEc2query_deserializeOpCreateSnapshots) HandleDeserialize(ctx context return out, metadata, err } -func awsEc2query_deserializeOpErrorCreateSnapshots(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorCreateSnapshot(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)} @@ -6870,14 +7052,14 @@ func awsEc2query_deserializeOpErrorCreateSnapshots(response *smithyhttp.Response } } -type awsEc2query_deserializeOpCreateSpotDatafeedSubscription struct { +type awsEc2query_deserializeOpCreateSnapshots struct { } -func (*awsEc2query_deserializeOpCreateSpotDatafeedSubscription) ID() string { +func (*awsEc2query_deserializeOpCreateSnapshots) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpCreateSpotDatafeedSubscription) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpCreateSnapshots) 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) @@ -6891,9 +7073,9 @@ func (m *awsEc2query_deserializeOpCreateSpotDatafeedSubscription) HandleDeserial } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorCreateSpotDatafeedSubscription(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorCreateSnapshots(response, &metadata) } - output := &CreateSpotDatafeedSubscriptionOutput{} + output := &CreateSnapshotsOutput{} out.Result = output var buff [1024]byte @@ -6914,7 +7096,7 @@ func (m *awsEc2query_deserializeOpCreateSpotDatafeedSubscription) HandleDeserial } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentCreateSpotDatafeedSubscriptionOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentCreateSnapshotsOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -6928,7 +7110,7 @@ func (m *awsEc2query_deserializeOpCreateSpotDatafeedSubscription) HandleDeserial return out, metadata, err } -func awsEc2query_deserializeOpErrorCreateSpotDatafeedSubscription(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorCreateSnapshots(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)} @@ -6961,14 +7143,14 @@ func awsEc2query_deserializeOpErrorCreateSpotDatafeedSubscription(response *smit } } -type awsEc2query_deserializeOpCreateSubnet struct { +type awsEc2query_deserializeOpCreateSpotDatafeedSubscription struct { } -func (*awsEc2query_deserializeOpCreateSubnet) ID() string { +func (*awsEc2query_deserializeOpCreateSpotDatafeedSubscription) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpCreateSubnet) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpCreateSpotDatafeedSubscription) 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) @@ -6982,9 +7164,9 @@ func (m *awsEc2query_deserializeOpCreateSubnet) HandleDeserialize(ctx context.Co } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorCreateSubnet(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorCreateSpotDatafeedSubscription(response, &metadata) } - output := &CreateSubnetOutput{} + output := &CreateSpotDatafeedSubscriptionOutput{} out.Result = output var buff [1024]byte @@ -7005,7 +7187,7 @@ func (m *awsEc2query_deserializeOpCreateSubnet) HandleDeserialize(ctx context.Co } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentCreateSubnetOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentCreateSpotDatafeedSubscriptionOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -7019,7 +7201,189 @@ func (m *awsEc2query_deserializeOpCreateSubnet) HandleDeserialize(ctx context.Co return out, metadata, err } -func awsEc2query_deserializeOpErrorCreateSubnet(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorCreateSpotDatafeedSubscription(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_deserializeOpCreateStoreImageTask struct { +} + +func (*awsEc2query_deserializeOpCreateStoreImageTask) ID() string { + return "OperationDeserializer" +} + +func (m *awsEc2query_deserializeOpCreateStoreImageTask) 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 + } + + 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_deserializeOpErrorCreateStoreImageTask(response, &metadata) + } + output := &CreateStoreImageTaskOutput{} + 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_deserializeOpDocumentCreateStoreImageTaskOutput(&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_deserializeOpErrorCreateStoreImageTask(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_deserializeOpCreateSubnet struct { +} + +func (*awsEc2query_deserializeOpCreateSubnet) ID() string { + return "OperationDeserializer" +} + +func (m *awsEc2query_deserializeOpCreateSubnet) 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 + } + + 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_deserializeOpErrorCreateSubnet(response, &metadata) + } + output := &CreateSubnetOutput{} + 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_deserializeOpDocumentCreateSubnetOutput(&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_deserializeOpErrorCreateSubnet(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)} @@ -20537,6 +20901,97 @@ func awsEc2query_deserializeOpErrorDescribeRegions(response *smithyhttp.Response } } +type awsEc2query_deserializeOpDescribeReplaceRootVolumeTasks struct { +} + +func (*awsEc2query_deserializeOpDescribeReplaceRootVolumeTasks) ID() string { + return "OperationDeserializer" +} + +func (m *awsEc2query_deserializeOpDescribeReplaceRootVolumeTasks) 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 + } + + 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_deserializeOpErrorDescribeReplaceRootVolumeTasks(response, &metadata) + } + output := &DescribeReplaceRootVolumeTasksOutput{} + 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_deserializeOpDocumentDescribeReplaceRootVolumeTasksOutput(&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_deserializeOpErrorDescribeReplaceRootVolumeTasks(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_deserializeOpDescribeReservedInstances struct { } @@ -22175,6 +22630,97 @@ func awsEc2query_deserializeOpErrorDescribeStaleSecurityGroups(response *smithyh } } +type awsEc2query_deserializeOpDescribeStoreImageTasks struct { +} + +func (*awsEc2query_deserializeOpDescribeStoreImageTasks) ID() string { + return "OperationDeserializer" +} + +func (m *awsEc2query_deserializeOpDescribeStoreImageTasks) 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 + } + + 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_deserializeOpErrorDescribeStoreImageTasks(response, &metadata) + } + output := &DescribeStoreImageTasksOutput{} + 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_deserializeOpDocumentDescribeStoreImageTasksOutput(&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_deserializeOpErrorDescribeStoreImageTasks(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_deserializeOpDescribeSubnets struct { } @@ -23358,6 +23904,97 @@ func awsEc2query_deserializeOpErrorDescribeTransitGatewayVpcAttachments(response } } +type awsEc2query_deserializeOpDescribeTrunkInterfaceAssociations struct { +} + +func (*awsEc2query_deserializeOpDescribeTrunkInterfaceAssociations) ID() string { + return "OperationDeserializer" +} + +func (m *awsEc2query_deserializeOpDescribeTrunkInterfaceAssociations) 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 + } + + 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_deserializeOpErrorDescribeTrunkInterfaceAssociations(response, &metadata) + } + output := &DescribeTrunkInterfaceAssociationsOutput{} + 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_deserializeOpDocumentDescribeTrunkInterfaceAssociationsOutput(&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_deserializeOpErrorDescribeTrunkInterfaceAssociations(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_deserializeOpDescribeVolumeAttribute struct { } @@ -25473,14 +26110,14 @@ func awsEc2query_deserializeOpErrorDisableFastSnapshotRestores(response *smithyh } } -type awsEc2query_deserializeOpDisableTransitGatewayRouteTablePropagation struct { +type awsEc2query_deserializeOpDisableImageDeprecation struct { } -func (*awsEc2query_deserializeOpDisableTransitGatewayRouteTablePropagation) ID() string { +func (*awsEc2query_deserializeOpDisableImageDeprecation) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDisableTransitGatewayRouteTablePropagation) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDisableImageDeprecation) 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) @@ -25494,9 +26131,9 @@ func (m *awsEc2query_deserializeOpDisableTransitGatewayRouteTablePropagation) Ha } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDisableTransitGatewayRouteTablePropagation(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDisableImageDeprecation(response, &metadata) } - output := &DisableTransitGatewayRouteTablePropagationOutput{} + output := &DisableImageDeprecationOutput{} out.Result = output var buff [1024]byte @@ -25517,7 +26154,7 @@ func (m *awsEc2query_deserializeOpDisableTransitGatewayRouteTablePropagation) Ha } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentDisableTransitGatewayRouteTablePropagationOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentDisableImageDeprecationOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -25531,7 +26168,7 @@ func (m *awsEc2query_deserializeOpDisableTransitGatewayRouteTablePropagation) Ha return out, metadata, err } -func awsEc2query_deserializeOpErrorDisableTransitGatewayRouteTablePropagation(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDisableImageDeprecation(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)} @@ -25564,14 +26201,14 @@ func awsEc2query_deserializeOpErrorDisableTransitGatewayRouteTablePropagation(re } } -type awsEc2query_deserializeOpDisableVgwRoutePropagation struct { +type awsEc2query_deserializeOpDisableSerialConsoleAccess struct { } -func (*awsEc2query_deserializeOpDisableVgwRoutePropagation) ID() string { +func (*awsEc2query_deserializeOpDisableSerialConsoleAccess) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDisableVgwRoutePropagation) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDisableSerialConsoleAccess) 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) @@ -25585,21 +26222,44 @@ func (m *awsEc2query_deserializeOpDisableVgwRoutePropagation) HandleDeserialize( } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDisableVgwRoutePropagation(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDisableSerialConsoleAccess(response, &metadata) } - output := &DisableVgwRoutePropagationOutput{} + output := &DisableSerialConsoleAccessOutput{} 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_deserializeOpDocumentDisableSerialConsoleAccessOutput(&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_deserializeOpErrorDisableVgwRoutePropagation(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDisableSerialConsoleAccess(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)} @@ -25632,14 +26292,14 @@ func awsEc2query_deserializeOpErrorDisableVgwRoutePropagation(response *smithyht } } -type awsEc2query_deserializeOpDisableVpcClassicLink struct { +type awsEc2query_deserializeOpDisableTransitGatewayRouteTablePropagation struct { } -func (*awsEc2query_deserializeOpDisableVpcClassicLink) ID() string { +func (*awsEc2query_deserializeOpDisableTransitGatewayRouteTablePropagation) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDisableVpcClassicLink) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDisableTransitGatewayRouteTablePropagation) 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) @@ -25653,9 +26313,9 @@ func (m *awsEc2query_deserializeOpDisableVpcClassicLink) HandleDeserialize(ctx c } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDisableVpcClassicLink(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDisableTransitGatewayRouteTablePropagation(response, &metadata) } - output := &DisableVpcClassicLinkOutput{} + output := &DisableTransitGatewayRouteTablePropagationOutput{} out.Result = output var buff [1024]byte @@ -25676,7 +26336,7 @@ func (m *awsEc2query_deserializeOpDisableVpcClassicLink) HandleDeserialize(ctx c } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentDisableVpcClassicLinkOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentDisableTransitGatewayRouteTablePropagationOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -25690,7 +26350,7 @@ func (m *awsEc2query_deserializeOpDisableVpcClassicLink) HandleDeserialize(ctx c return out, metadata, err } -func awsEc2query_deserializeOpErrorDisableVpcClassicLink(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDisableTransitGatewayRouteTablePropagation(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)} @@ -25723,14 +26383,14 @@ func awsEc2query_deserializeOpErrorDisableVpcClassicLink(response *smithyhttp.Re } } -type awsEc2query_deserializeOpDisableVpcClassicLinkDnsSupport struct { +type awsEc2query_deserializeOpDisableVgwRoutePropagation struct { } -func (*awsEc2query_deserializeOpDisableVpcClassicLinkDnsSupport) ID() string { +func (*awsEc2query_deserializeOpDisableVgwRoutePropagation) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDisableVpcClassicLinkDnsSupport) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDisableVgwRoutePropagation) 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) @@ -25744,44 +26404,21 @@ func (m *awsEc2query_deserializeOpDisableVpcClassicLinkDnsSupport) HandleDeseria } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDisableVpcClassicLinkDnsSupport(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDisableVgwRoutePropagation(response, &metadata) } - output := &DisableVpcClassicLinkDnsSupportOutput{} + output := &DisableVgwRoutePropagationOutput{} 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) + if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { 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_deserializeOpDocumentDisableVpcClassicLinkDnsSupportOutput(&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(), + Err: fmt.Errorf("failed to discard response body, %w", err), } - return out, metadata, err } return out, metadata, err } -func awsEc2query_deserializeOpErrorDisableVpcClassicLinkDnsSupport(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDisableVgwRoutePropagation(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)} @@ -25814,14 +26451,14 @@ func awsEc2query_deserializeOpErrorDisableVpcClassicLinkDnsSupport(response *smi } } -type awsEc2query_deserializeOpDisassociateAddress struct { +type awsEc2query_deserializeOpDisableVpcClassicLink struct { } -func (*awsEc2query_deserializeOpDisassociateAddress) ID() string { +func (*awsEc2query_deserializeOpDisableVpcClassicLink) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDisassociateAddress) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDisableVpcClassicLink) 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) @@ -25835,21 +26472,44 @@ func (m *awsEc2query_deserializeOpDisassociateAddress) HandleDeserialize(ctx con } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDisassociateAddress(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDisableVpcClassicLink(response, &metadata) } - output := &DisassociateAddressOutput{} + output := &DisableVpcClassicLinkOutput{} 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_deserializeOpDocumentDisableVpcClassicLinkOutput(&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_deserializeOpErrorDisassociateAddress(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDisableVpcClassicLink(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)} @@ -25882,14 +26542,14 @@ func awsEc2query_deserializeOpErrorDisassociateAddress(response *smithyhttp.Resp } } -type awsEc2query_deserializeOpDisassociateClientVpnTargetNetwork struct { +type awsEc2query_deserializeOpDisableVpcClassicLinkDnsSupport struct { } -func (*awsEc2query_deserializeOpDisassociateClientVpnTargetNetwork) ID() string { +func (*awsEc2query_deserializeOpDisableVpcClassicLinkDnsSupport) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDisassociateClientVpnTargetNetwork) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDisableVpcClassicLinkDnsSupport) 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) @@ -25903,9 +26563,9 @@ func (m *awsEc2query_deserializeOpDisassociateClientVpnTargetNetwork) HandleDese } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDisassociateClientVpnTargetNetwork(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDisableVpcClassicLinkDnsSupport(response, &metadata) } - output := &DisassociateClientVpnTargetNetworkOutput{} + output := &DisableVpcClassicLinkDnsSupportOutput{} out.Result = output var buff [1024]byte @@ -25926,7 +26586,7 @@ func (m *awsEc2query_deserializeOpDisassociateClientVpnTargetNetwork) HandleDese } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentDisassociateClientVpnTargetNetworkOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentDisableVpcClassicLinkDnsSupportOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -25940,7 +26600,7 @@ func (m *awsEc2query_deserializeOpDisassociateClientVpnTargetNetwork) HandleDese return out, metadata, err } -func awsEc2query_deserializeOpErrorDisassociateClientVpnTargetNetwork(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDisableVpcClassicLinkDnsSupport(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)} @@ -25973,14 +26633,14 @@ func awsEc2query_deserializeOpErrorDisassociateClientVpnTargetNetwork(response * } } -type awsEc2query_deserializeOpDisassociateEnclaveCertificateIamRole struct { +type awsEc2query_deserializeOpDisassociateAddress struct { } -func (*awsEc2query_deserializeOpDisassociateEnclaveCertificateIamRole) ID() string { +func (*awsEc2query_deserializeOpDisassociateAddress) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDisassociateEnclaveCertificateIamRole) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDisassociateAddress) 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) @@ -25994,44 +26654,21 @@ func (m *awsEc2query_deserializeOpDisassociateEnclaveCertificateIamRole) HandleD } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDisassociateEnclaveCertificateIamRole(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDisassociateAddress(response, &metadata) } - output := &DisassociateEnclaveCertificateIamRoleOutput{} + output := &DisassociateAddressOutput{} 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) + if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { 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_deserializeOpDocumentDisassociateEnclaveCertificateIamRoleOutput(&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(), + Err: fmt.Errorf("failed to discard response body, %w", err), } - return out, metadata, err } return out, metadata, err } -func awsEc2query_deserializeOpErrorDisassociateEnclaveCertificateIamRole(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDisassociateAddress(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)} @@ -26064,14 +26701,14 @@ func awsEc2query_deserializeOpErrorDisassociateEnclaveCertificateIamRole(respons } } -type awsEc2query_deserializeOpDisassociateIamInstanceProfile struct { +type awsEc2query_deserializeOpDisassociateClientVpnTargetNetwork struct { } -func (*awsEc2query_deserializeOpDisassociateIamInstanceProfile) ID() string { +func (*awsEc2query_deserializeOpDisassociateClientVpnTargetNetwork) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDisassociateIamInstanceProfile) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDisassociateClientVpnTargetNetwork) 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) @@ -26085,9 +26722,9 @@ func (m *awsEc2query_deserializeOpDisassociateIamInstanceProfile) HandleDeserial } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDisassociateIamInstanceProfile(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDisassociateClientVpnTargetNetwork(response, &metadata) } - output := &DisassociateIamInstanceProfileOutput{} + output := &DisassociateClientVpnTargetNetworkOutput{} out.Result = output var buff [1024]byte @@ -26108,7 +26745,7 @@ func (m *awsEc2query_deserializeOpDisassociateIamInstanceProfile) HandleDeserial } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentDisassociateIamInstanceProfileOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentDisassociateClientVpnTargetNetworkOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -26122,7 +26759,7 @@ func (m *awsEc2query_deserializeOpDisassociateIamInstanceProfile) HandleDeserial return out, metadata, err } -func awsEc2query_deserializeOpErrorDisassociateIamInstanceProfile(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDisassociateClientVpnTargetNetwork(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)} @@ -26155,14 +26792,14 @@ func awsEc2query_deserializeOpErrorDisassociateIamInstanceProfile(response *smit } } -type awsEc2query_deserializeOpDisassociateRouteTable struct { +type awsEc2query_deserializeOpDisassociateEnclaveCertificateIamRole struct { } -func (*awsEc2query_deserializeOpDisassociateRouteTable) ID() string { +func (*awsEc2query_deserializeOpDisassociateEnclaveCertificateIamRole) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDisassociateRouteTable) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDisassociateEnclaveCertificateIamRole) 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) @@ -26176,21 +26813,44 @@ func (m *awsEc2query_deserializeOpDisassociateRouteTable) HandleDeserialize(ctx } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDisassociateRouteTable(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDisassociateEnclaveCertificateIamRole(response, &metadata) } - output := &DisassociateRouteTableOutput{} + output := &DisassociateEnclaveCertificateIamRoleOutput{} 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_deserializeOpDocumentDisassociateEnclaveCertificateIamRoleOutput(&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_deserializeOpErrorDisassociateRouteTable(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDisassociateEnclaveCertificateIamRole(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)} @@ -26223,14 +26883,14 @@ func awsEc2query_deserializeOpErrorDisassociateRouteTable(response *smithyhttp.R } } -type awsEc2query_deserializeOpDisassociateSubnetCidrBlock struct { +type awsEc2query_deserializeOpDisassociateIamInstanceProfile struct { } -func (*awsEc2query_deserializeOpDisassociateSubnetCidrBlock) ID() string { +func (*awsEc2query_deserializeOpDisassociateIamInstanceProfile) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDisassociateSubnetCidrBlock) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDisassociateIamInstanceProfile) 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) @@ -26244,9 +26904,9 @@ func (m *awsEc2query_deserializeOpDisassociateSubnetCidrBlock) HandleDeserialize } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDisassociateSubnetCidrBlock(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDisassociateIamInstanceProfile(response, &metadata) } - output := &DisassociateSubnetCidrBlockOutput{} + output := &DisassociateIamInstanceProfileOutput{} out.Result = output var buff [1024]byte @@ -26267,7 +26927,7 @@ func (m *awsEc2query_deserializeOpDisassociateSubnetCidrBlock) HandleDeserialize } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentDisassociateSubnetCidrBlockOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentDisassociateIamInstanceProfileOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -26281,7 +26941,7 @@ func (m *awsEc2query_deserializeOpDisassociateSubnetCidrBlock) HandleDeserialize return out, metadata, err } -func awsEc2query_deserializeOpErrorDisassociateSubnetCidrBlock(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDisassociateIamInstanceProfile(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)} @@ -26314,14 +26974,14 @@ func awsEc2query_deserializeOpErrorDisassociateSubnetCidrBlock(response *smithyh } } -type awsEc2query_deserializeOpDisassociateTransitGatewayMulticastDomain struct { +type awsEc2query_deserializeOpDisassociateRouteTable struct { } -func (*awsEc2query_deserializeOpDisassociateTransitGatewayMulticastDomain) ID() string { +func (*awsEc2query_deserializeOpDisassociateRouteTable) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDisassociateTransitGatewayMulticastDomain) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDisassociateRouteTable) 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) @@ -26335,44 +26995,21 @@ func (m *awsEc2query_deserializeOpDisassociateTransitGatewayMulticastDomain) Han } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDisassociateTransitGatewayMulticastDomain(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDisassociateRouteTable(response, &metadata) } - output := &DisassociateTransitGatewayMulticastDomainOutput{} + output := &DisassociateRouteTableOutput{} 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) + if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { 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_deserializeOpDocumentDisassociateTransitGatewayMulticastDomainOutput(&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(), + Err: fmt.Errorf("failed to discard response body, %w", err), } - return out, metadata, err } return out, metadata, err } -func awsEc2query_deserializeOpErrorDisassociateTransitGatewayMulticastDomain(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDisassociateRouteTable(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)} @@ -26405,14 +27042,14 @@ func awsEc2query_deserializeOpErrorDisassociateTransitGatewayMulticastDomain(res } } -type awsEc2query_deserializeOpDisassociateTransitGatewayRouteTable struct { +type awsEc2query_deserializeOpDisassociateSubnetCidrBlock struct { } -func (*awsEc2query_deserializeOpDisassociateTransitGatewayRouteTable) ID() string { +func (*awsEc2query_deserializeOpDisassociateSubnetCidrBlock) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDisassociateTransitGatewayRouteTable) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDisassociateSubnetCidrBlock) 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) @@ -26426,9 +27063,9 @@ func (m *awsEc2query_deserializeOpDisassociateTransitGatewayRouteTable) HandleDe } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDisassociateTransitGatewayRouteTable(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDisassociateSubnetCidrBlock(response, &metadata) } - output := &DisassociateTransitGatewayRouteTableOutput{} + output := &DisassociateSubnetCidrBlockOutput{} out.Result = output var buff [1024]byte @@ -26449,7 +27086,7 @@ func (m *awsEc2query_deserializeOpDisassociateTransitGatewayRouteTable) HandleDe } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentDisassociateTransitGatewayRouteTableOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentDisassociateSubnetCidrBlockOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -26463,7 +27100,7 @@ func (m *awsEc2query_deserializeOpDisassociateTransitGatewayRouteTable) HandleDe return out, metadata, err } -func awsEc2query_deserializeOpErrorDisassociateTransitGatewayRouteTable(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDisassociateSubnetCidrBlock(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)} @@ -26496,14 +27133,14 @@ func awsEc2query_deserializeOpErrorDisassociateTransitGatewayRouteTable(response } } -type awsEc2query_deserializeOpDisassociateVpcCidrBlock struct { +type awsEc2query_deserializeOpDisassociateTransitGatewayMulticastDomain struct { } -func (*awsEc2query_deserializeOpDisassociateVpcCidrBlock) ID() string { +func (*awsEc2query_deserializeOpDisassociateTransitGatewayMulticastDomain) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpDisassociateVpcCidrBlock) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDisassociateTransitGatewayMulticastDomain) 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) @@ -26517,9 +27154,9 @@ func (m *awsEc2query_deserializeOpDisassociateVpcCidrBlock) HandleDeserialize(ct } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorDisassociateVpcCidrBlock(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDisassociateTransitGatewayMulticastDomain(response, &metadata) } - output := &DisassociateVpcCidrBlockOutput{} + output := &DisassociateTransitGatewayMulticastDomainOutput{} out.Result = output var buff [1024]byte @@ -26540,7 +27177,7 @@ func (m *awsEc2query_deserializeOpDisassociateVpcCidrBlock) HandleDeserialize(ct } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentDisassociateVpcCidrBlockOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentDisassociateTransitGatewayMulticastDomainOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -26554,7 +27191,7 @@ func (m *awsEc2query_deserializeOpDisassociateVpcCidrBlock) HandleDeserialize(ct return out, metadata, err } -func awsEc2query_deserializeOpErrorDisassociateVpcCidrBlock(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDisassociateTransitGatewayMulticastDomain(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)} @@ -26587,14 +27224,14 @@ func awsEc2query_deserializeOpErrorDisassociateVpcCidrBlock(response *smithyhttp } } -type awsEc2query_deserializeOpEnableEbsEncryptionByDefault struct { +type awsEc2query_deserializeOpDisassociateTransitGatewayRouteTable struct { } -func (*awsEc2query_deserializeOpEnableEbsEncryptionByDefault) ID() string { +func (*awsEc2query_deserializeOpDisassociateTransitGatewayRouteTable) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpEnableEbsEncryptionByDefault) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDisassociateTransitGatewayRouteTable) 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) @@ -26608,9 +27245,9 @@ func (m *awsEc2query_deserializeOpEnableEbsEncryptionByDefault) HandleDeserializ } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorEnableEbsEncryptionByDefault(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDisassociateTransitGatewayRouteTable(response, &metadata) } - output := &EnableEbsEncryptionByDefaultOutput{} + output := &DisassociateTransitGatewayRouteTableOutput{} out.Result = output var buff [1024]byte @@ -26631,7 +27268,7 @@ func (m *awsEc2query_deserializeOpEnableEbsEncryptionByDefault) HandleDeserializ } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentEnableEbsEncryptionByDefaultOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentDisassociateTransitGatewayRouteTableOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -26645,7 +27282,7 @@ func (m *awsEc2query_deserializeOpEnableEbsEncryptionByDefault) HandleDeserializ return out, metadata, err } -func awsEc2query_deserializeOpErrorEnableEbsEncryptionByDefault(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDisassociateTransitGatewayRouteTable(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)} @@ -26678,14 +27315,14 @@ func awsEc2query_deserializeOpErrorEnableEbsEncryptionByDefault(response *smithy } } -type awsEc2query_deserializeOpEnableFastSnapshotRestores struct { +type awsEc2query_deserializeOpDisassociateTrunkInterface struct { } -func (*awsEc2query_deserializeOpEnableFastSnapshotRestores) ID() string { +func (*awsEc2query_deserializeOpDisassociateTrunkInterface) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpEnableFastSnapshotRestores) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDisassociateTrunkInterface) 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) @@ -26699,9 +27336,9 @@ func (m *awsEc2query_deserializeOpEnableFastSnapshotRestores) HandleDeserialize( } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorEnableFastSnapshotRestores(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDisassociateTrunkInterface(response, &metadata) } - output := &EnableFastSnapshotRestoresOutput{} + output := &DisassociateTrunkInterfaceOutput{} out.Result = output var buff [1024]byte @@ -26722,7 +27359,7 @@ func (m *awsEc2query_deserializeOpEnableFastSnapshotRestores) HandleDeserialize( } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentEnableFastSnapshotRestoresOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentDisassociateTrunkInterfaceOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -26736,7 +27373,7 @@ func (m *awsEc2query_deserializeOpEnableFastSnapshotRestores) HandleDeserialize( return out, metadata, err } -func awsEc2query_deserializeOpErrorEnableFastSnapshotRestores(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDisassociateTrunkInterface(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)} @@ -26769,14 +27406,14 @@ func awsEc2query_deserializeOpErrorEnableFastSnapshotRestores(response *smithyht } } -type awsEc2query_deserializeOpEnableTransitGatewayRouteTablePropagation struct { +type awsEc2query_deserializeOpDisassociateVpcCidrBlock struct { } -func (*awsEc2query_deserializeOpEnableTransitGatewayRouteTablePropagation) ID() string { +func (*awsEc2query_deserializeOpDisassociateVpcCidrBlock) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpEnableTransitGatewayRouteTablePropagation) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpDisassociateVpcCidrBlock) 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) @@ -26790,9 +27427,9 @@ func (m *awsEc2query_deserializeOpEnableTransitGatewayRouteTablePropagation) Han } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorEnableTransitGatewayRouteTablePropagation(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorDisassociateVpcCidrBlock(response, &metadata) } - output := &EnableTransitGatewayRouteTablePropagationOutput{} + output := &DisassociateVpcCidrBlockOutput{} out.Result = output var buff [1024]byte @@ -26813,7 +27450,7 @@ func (m *awsEc2query_deserializeOpEnableTransitGatewayRouteTablePropagation) Han } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentEnableTransitGatewayRouteTablePropagationOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentDisassociateVpcCidrBlockOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -26827,7 +27464,7 @@ func (m *awsEc2query_deserializeOpEnableTransitGatewayRouteTablePropagation) Han return out, metadata, err } -func awsEc2query_deserializeOpErrorEnableTransitGatewayRouteTablePropagation(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorDisassociateVpcCidrBlock(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)} @@ -26860,14 +27497,14 @@ func awsEc2query_deserializeOpErrorEnableTransitGatewayRouteTablePropagation(res } } -type awsEc2query_deserializeOpEnableVgwRoutePropagation struct { +type awsEc2query_deserializeOpEnableEbsEncryptionByDefault struct { } -func (*awsEc2query_deserializeOpEnableVgwRoutePropagation) ID() string { +func (*awsEc2query_deserializeOpEnableEbsEncryptionByDefault) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpEnableVgwRoutePropagation) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpEnableEbsEncryptionByDefault) 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) @@ -26881,21 +27518,44 @@ func (m *awsEc2query_deserializeOpEnableVgwRoutePropagation) HandleDeserialize(c } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorEnableVgwRoutePropagation(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorEnableEbsEncryptionByDefault(response, &metadata) } - output := &EnableVgwRoutePropagationOutput{} + output := &EnableEbsEncryptionByDefaultOutput{} 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_deserializeOpDocumentEnableEbsEncryptionByDefaultOutput(&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_deserializeOpErrorEnableVgwRoutePropagation(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorEnableEbsEncryptionByDefault(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)} @@ -26928,14 +27588,14 @@ func awsEc2query_deserializeOpErrorEnableVgwRoutePropagation(response *smithyhtt } } -type awsEc2query_deserializeOpEnableVolumeIO struct { +type awsEc2query_deserializeOpEnableFastSnapshotRestores struct { } -func (*awsEc2query_deserializeOpEnableVolumeIO) ID() string { +func (*awsEc2query_deserializeOpEnableFastSnapshotRestores) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpEnableVolumeIO) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpEnableFastSnapshotRestores) 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) @@ -26949,21 +27609,44 @@ func (m *awsEc2query_deserializeOpEnableVolumeIO) HandleDeserialize(ctx context. } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorEnableVolumeIO(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorEnableFastSnapshotRestores(response, &metadata) } - output := &EnableVolumeIOOutput{} + output := &EnableFastSnapshotRestoresOutput{} 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_deserializeOpDocumentEnableFastSnapshotRestoresOutput(&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_deserializeOpErrorEnableVolumeIO(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorEnableFastSnapshotRestores(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)} @@ -26996,14 +27679,14 @@ func awsEc2query_deserializeOpErrorEnableVolumeIO(response *smithyhttp.Response, } } -type awsEc2query_deserializeOpEnableVpcClassicLink struct { +type awsEc2query_deserializeOpEnableImageDeprecation struct { } -func (*awsEc2query_deserializeOpEnableVpcClassicLink) ID() string { +func (*awsEc2query_deserializeOpEnableImageDeprecation) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpEnableVpcClassicLink) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpEnableImageDeprecation) 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) @@ -27017,9 +27700,9 @@ func (m *awsEc2query_deserializeOpEnableVpcClassicLink) HandleDeserialize(ctx co } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorEnableVpcClassicLink(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorEnableImageDeprecation(response, &metadata) } - output := &EnableVpcClassicLinkOutput{} + output := &EnableImageDeprecationOutput{} out.Result = output var buff [1024]byte @@ -27040,7 +27723,7 @@ func (m *awsEc2query_deserializeOpEnableVpcClassicLink) HandleDeserialize(ctx co } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentEnableVpcClassicLinkOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentEnableImageDeprecationOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -27054,7 +27737,7 @@ func (m *awsEc2query_deserializeOpEnableVpcClassicLink) HandleDeserialize(ctx co return out, metadata, err } -func awsEc2query_deserializeOpErrorEnableVpcClassicLink(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorEnableImageDeprecation(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)} @@ -27087,14 +27770,14 @@ func awsEc2query_deserializeOpErrorEnableVpcClassicLink(response *smithyhttp.Res } } -type awsEc2query_deserializeOpEnableVpcClassicLinkDnsSupport struct { +type awsEc2query_deserializeOpEnableSerialConsoleAccess struct { } -func (*awsEc2query_deserializeOpEnableVpcClassicLinkDnsSupport) ID() string { +func (*awsEc2query_deserializeOpEnableSerialConsoleAccess) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpEnableVpcClassicLinkDnsSupport) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpEnableSerialConsoleAccess) 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) @@ -27108,9 +27791,9 @@ func (m *awsEc2query_deserializeOpEnableVpcClassicLinkDnsSupport) HandleDeserial } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorEnableVpcClassicLinkDnsSupport(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorEnableSerialConsoleAccess(response, &metadata) } - output := &EnableVpcClassicLinkDnsSupportOutput{} + output := &EnableSerialConsoleAccessOutput{} out.Result = output var buff [1024]byte @@ -27131,7 +27814,7 @@ func (m *awsEc2query_deserializeOpEnableVpcClassicLinkDnsSupport) HandleDeserial } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentEnableVpcClassicLinkDnsSupportOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentEnableSerialConsoleAccessOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -27145,7 +27828,7 @@ func (m *awsEc2query_deserializeOpEnableVpcClassicLinkDnsSupport) HandleDeserial return out, metadata, err } -func awsEc2query_deserializeOpErrorEnableVpcClassicLinkDnsSupport(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorEnableSerialConsoleAccess(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)} @@ -27178,14 +27861,14 @@ func awsEc2query_deserializeOpErrorEnableVpcClassicLinkDnsSupport(response *smit } } -type awsEc2query_deserializeOpExportClientVpnClientCertificateRevocationList struct { +type awsEc2query_deserializeOpEnableTransitGatewayRouteTablePropagation struct { } -func (*awsEc2query_deserializeOpExportClientVpnClientCertificateRevocationList) ID() string { +func (*awsEc2query_deserializeOpEnableTransitGatewayRouteTablePropagation) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpExportClientVpnClientCertificateRevocationList) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpEnableTransitGatewayRouteTablePropagation) 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) @@ -27199,9 +27882,9 @@ func (m *awsEc2query_deserializeOpExportClientVpnClientCertificateRevocationList } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorExportClientVpnClientCertificateRevocationList(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorEnableTransitGatewayRouteTablePropagation(response, &metadata) } - output := &ExportClientVpnClientCertificateRevocationListOutput{} + output := &EnableTransitGatewayRouteTablePropagationOutput{} out.Result = output var buff [1024]byte @@ -27222,7 +27905,7 @@ func (m *awsEc2query_deserializeOpExportClientVpnClientCertificateRevocationList } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentExportClientVpnClientCertificateRevocationListOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentEnableTransitGatewayRouteTablePropagationOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -27236,7 +27919,7 @@ func (m *awsEc2query_deserializeOpExportClientVpnClientCertificateRevocationList return out, metadata, err } -func awsEc2query_deserializeOpErrorExportClientVpnClientCertificateRevocationList(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorEnableTransitGatewayRouteTablePropagation(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)} @@ -27269,14 +27952,14 @@ func awsEc2query_deserializeOpErrorExportClientVpnClientCertificateRevocationLis } } -type awsEc2query_deserializeOpExportClientVpnClientConfiguration struct { +type awsEc2query_deserializeOpEnableVgwRoutePropagation struct { } -func (*awsEc2query_deserializeOpExportClientVpnClientConfiguration) ID() string { +func (*awsEc2query_deserializeOpEnableVgwRoutePropagation) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpExportClientVpnClientConfiguration) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpEnableVgwRoutePropagation) 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) @@ -27290,44 +27973,89 @@ func (m *awsEc2query_deserializeOpExportClientVpnClientConfiguration) HandleDese } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorExportClientVpnClientConfiguration(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorEnableVgwRoutePropagation(response, &metadata) } - output := &ExportClientVpnClientConfigurationOutput{} + output := &EnableVgwRoutePropagationOutput{} 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) + if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), + Err: fmt.Errorf("failed to discard response body, %w", err), } } - decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentExportClientVpnClientConfigurationOutput(&output, decoder) + return out, metadata, err +} + +func awsEc2query_deserializeOpErrorEnableVgwRoutePropagation(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 { - 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 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_deserializeOpEnableVolumeIO struct { +} + +func (*awsEc2query_deserializeOpEnableVolumeIO) ID() string { + return "OperationDeserializer" +} + +func (m *awsEc2query_deserializeOpEnableVolumeIO) 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 } + 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_deserializeOpErrorEnableVolumeIO(response, &metadata) + } + output := &EnableVolumeIOOutput{} + 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_deserializeOpErrorExportClientVpnClientConfiguration(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorEnableVolumeIO(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)} @@ -27360,14 +28088,14 @@ func awsEc2query_deserializeOpErrorExportClientVpnClientConfiguration(response * } } -type awsEc2query_deserializeOpExportImage struct { +type awsEc2query_deserializeOpEnableVpcClassicLink struct { } -func (*awsEc2query_deserializeOpExportImage) ID() string { +func (*awsEc2query_deserializeOpEnableVpcClassicLink) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpExportImage) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpEnableVpcClassicLink) 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) @@ -27381,9 +28109,9 @@ func (m *awsEc2query_deserializeOpExportImage) HandleDeserialize(ctx context.Con } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorExportImage(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorEnableVpcClassicLink(response, &metadata) } - output := &ExportImageOutput{} + output := &EnableVpcClassicLinkOutput{} out.Result = output var buff [1024]byte @@ -27404,7 +28132,7 @@ func (m *awsEc2query_deserializeOpExportImage) HandleDeserialize(ctx context.Con } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentExportImageOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentEnableVpcClassicLinkOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -27418,7 +28146,7 @@ func (m *awsEc2query_deserializeOpExportImage) HandleDeserialize(ctx context.Con return out, metadata, err } -func awsEc2query_deserializeOpErrorExportImage(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorEnableVpcClassicLink(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)} @@ -27451,14 +28179,14 @@ func awsEc2query_deserializeOpErrorExportImage(response *smithyhttp.Response, me } } -type awsEc2query_deserializeOpExportTransitGatewayRoutes struct { +type awsEc2query_deserializeOpEnableVpcClassicLinkDnsSupport struct { } -func (*awsEc2query_deserializeOpExportTransitGatewayRoutes) ID() string { +func (*awsEc2query_deserializeOpEnableVpcClassicLinkDnsSupport) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpExportTransitGatewayRoutes) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpEnableVpcClassicLinkDnsSupport) 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) @@ -27472,9 +28200,9 @@ func (m *awsEc2query_deserializeOpExportTransitGatewayRoutes) HandleDeserialize( } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorExportTransitGatewayRoutes(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorEnableVpcClassicLinkDnsSupport(response, &metadata) } - output := &ExportTransitGatewayRoutesOutput{} + output := &EnableVpcClassicLinkDnsSupportOutput{} out.Result = output var buff [1024]byte @@ -27495,7 +28223,7 @@ func (m *awsEc2query_deserializeOpExportTransitGatewayRoutes) HandleDeserialize( } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentExportTransitGatewayRoutesOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentEnableVpcClassicLinkDnsSupportOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -27509,7 +28237,7 @@ func (m *awsEc2query_deserializeOpExportTransitGatewayRoutes) HandleDeserialize( return out, metadata, err } -func awsEc2query_deserializeOpErrorExportTransitGatewayRoutes(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorEnableVpcClassicLinkDnsSupport(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)} @@ -27542,14 +28270,14 @@ func awsEc2query_deserializeOpErrorExportTransitGatewayRoutes(response *smithyht } } -type awsEc2query_deserializeOpGetAssociatedEnclaveCertificateIamRoles struct { +type awsEc2query_deserializeOpExportClientVpnClientCertificateRevocationList struct { } -func (*awsEc2query_deserializeOpGetAssociatedEnclaveCertificateIamRoles) ID() string { +func (*awsEc2query_deserializeOpExportClientVpnClientCertificateRevocationList) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpGetAssociatedEnclaveCertificateIamRoles) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpExportClientVpnClientCertificateRevocationList) 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) @@ -27563,9 +28291,9 @@ func (m *awsEc2query_deserializeOpGetAssociatedEnclaveCertificateIamRoles) Handl } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorGetAssociatedEnclaveCertificateIamRoles(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorExportClientVpnClientCertificateRevocationList(response, &metadata) } - output := &GetAssociatedEnclaveCertificateIamRolesOutput{} + output := &ExportClientVpnClientCertificateRevocationListOutput{} out.Result = output var buff [1024]byte @@ -27586,7 +28314,7 @@ func (m *awsEc2query_deserializeOpGetAssociatedEnclaveCertificateIamRoles) Handl } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentGetAssociatedEnclaveCertificateIamRolesOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentExportClientVpnClientCertificateRevocationListOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -27600,7 +28328,7 @@ func (m *awsEc2query_deserializeOpGetAssociatedEnclaveCertificateIamRoles) Handl return out, metadata, err } -func awsEc2query_deserializeOpErrorGetAssociatedEnclaveCertificateIamRoles(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorExportClientVpnClientCertificateRevocationList(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)} @@ -27633,14 +28361,14 @@ func awsEc2query_deserializeOpErrorGetAssociatedEnclaveCertificateIamRoles(respo } } -type awsEc2query_deserializeOpGetAssociatedIpv6PoolCidrs struct { +type awsEc2query_deserializeOpExportClientVpnClientConfiguration struct { } -func (*awsEc2query_deserializeOpGetAssociatedIpv6PoolCidrs) ID() string { +func (*awsEc2query_deserializeOpExportClientVpnClientConfiguration) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpGetAssociatedIpv6PoolCidrs) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpExportClientVpnClientConfiguration) 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) @@ -27654,9 +28382,9 @@ func (m *awsEc2query_deserializeOpGetAssociatedIpv6PoolCidrs) HandleDeserialize( } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorGetAssociatedIpv6PoolCidrs(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorExportClientVpnClientConfiguration(response, &metadata) } - output := &GetAssociatedIpv6PoolCidrsOutput{} + output := &ExportClientVpnClientConfigurationOutput{} out.Result = output var buff [1024]byte @@ -27677,7 +28405,7 @@ func (m *awsEc2query_deserializeOpGetAssociatedIpv6PoolCidrs) HandleDeserialize( } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentGetAssociatedIpv6PoolCidrsOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentExportClientVpnClientConfigurationOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -27691,7 +28419,7 @@ func (m *awsEc2query_deserializeOpGetAssociatedIpv6PoolCidrs) HandleDeserialize( return out, metadata, err } -func awsEc2query_deserializeOpErrorGetAssociatedIpv6PoolCidrs(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorExportClientVpnClientConfiguration(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)} @@ -27724,14 +28452,14 @@ func awsEc2query_deserializeOpErrorGetAssociatedIpv6PoolCidrs(response *smithyht } } -type awsEc2query_deserializeOpGetCapacityReservationUsage struct { +type awsEc2query_deserializeOpExportImage struct { } -func (*awsEc2query_deserializeOpGetCapacityReservationUsage) ID() string { +func (*awsEc2query_deserializeOpExportImage) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpGetCapacityReservationUsage) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpExportImage) 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) @@ -27745,9 +28473,9 @@ func (m *awsEc2query_deserializeOpGetCapacityReservationUsage) HandleDeserialize } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorGetCapacityReservationUsage(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorExportImage(response, &metadata) } - output := &GetCapacityReservationUsageOutput{} + output := &ExportImageOutput{} out.Result = output var buff [1024]byte @@ -27768,7 +28496,7 @@ func (m *awsEc2query_deserializeOpGetCapacityReservationUsage) HandleDeserialize } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentGetCapacityReservationUsageOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentExportImageOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -27782,7 +28510,7 @@ func (m *awsEc2query_deserializeOpGetCapacityReservationUsage) HandleDeserialize return out, metadata, err } -func awsEc2query_deserializeOpErrorGetCapacityReservationUsage(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorExportImage(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)} @@ -27815,14 +28543,14 @@ func awsEc2query_deserializeOpErrorGetCapacityReservationUsage(response *smithyh } } -type awsEc2query_deserializeOpGetCoipPoolUsage struct { +type awsEc2query_deserializeOpExportTransitGatewayRoutes struct { } -func (*awsEc2query_deserializeOpGetCoipPoolUsage) ID() string { +func (*awsEc2query_deserializeOpExportTransitGatewayRoutes) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpGetCoipPoolUsage) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpExportTransitGatewayRoutes) 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) @@ -27836,9 +28564,9 @@ func (m *awsEc2query_deserializeOpGetCoipPoolUsage) HandleDeserialize(ctx contex } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorGetCoipPoolUsage(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorExportTransitGatewayRoutes(response, &metadata) } - output := &GetCoipPoolUsageOutput{} + output := &ExportTransitGatewayRoutesOutput{} out.Result = output var buff [1024]byte @@ -27859,7 +28587,7 @@ func (m *awsEc2query_deserializeOpGetCoipPoolUsage) HandleDeserialize(ctx contex } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentGetCoipPoolUsageOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentExportTransitGatewayRoutesOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -27873,7 +28601,7 @@ func (m *awsEc2query_deserializeOpGetCoipPoolUsage) HandleDeserialize(ctx contex return out, metadata, err } -func awsEc2query_deserializeOpErrorGetCoipPoolUsage(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorExportTransitGatewayRoutes(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)} @@ -27906,14 +28634,14 @@ func awsEc2query_deserializeOpErrorGetCoipPoolUsage(response *smithyhttp.Respons } } -type awsEc2query_deserializeOpGetConsoleOutput struct { +type awsEc2query_deserializeOpGetAssociatedEnclaveCertificateIamRoles struct { } -func (*awsEc2query_deserializeOpGetConsoleOutput) ID() string { +func (*awsEc2query_deserializeOpGetAssociatedEnclaveCertificateIamRoles) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpGetConsoleOutput) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpGetAssociatedEnclaveCertificateIamRoles) 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) @@ -27927,9 +28655,9 @@ func (m *awsEc2query_deserializeOpGetConsoleOutput) HandleDeserialize(ctx contex } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorGetConsoleOutput(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorGetAssociatedEnclaveCertificateIamRoles(response, &metadata) } - output := &GetConsoleOutputOutput{} + output := &GetAssociatedEnclaveCertificateIamRolesOutput{} out.Result = output var buff [1024]byte @@ -27950,7 +28678,7 @@ func (m *awsEc2query_deserializeOpGetConsoleOutput) HandleDeserialize(ctx contex } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentGetConsoleOutputOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentGetAssociatedEnclaveCertificateIamRolesOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -27964,7 +28692,7 @@ func (m *awsEc2query_deserializeOpGetConsoleOutput) HandleDeserialize(ctx contex return out, metadata, err } -func awsEc2query_deserializeOpErrorGetConsoleOutput(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorGetAssociatedEnclaveCertificateIamRoles(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)} @@ -27997,14 +28725,14 @@ func awsEc2query_deserializeOpErrorGetConsoleOutput(response *smithyhttp.Respons } } -type awsEc2query_deserializeOpGetConsoleScreenshot struct { +type awsEc2query_deserializeOpGetAssociatedIpv6PoolCidrs struct { } -func (*awsEc2query_deserializeOpGetConsoleScreenshot) ID() string { +func (*awsEc2query_deserializeOpGetAssociatedIpv6PoolCidrs) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpGetConsoleScreenshot) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpGetAssociatedIpv6PoolCidrs) 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) @@ -28018,9 +28746,9 @@ func (m *awsEc2query_deserializeOpGetConsoleScreenshot) HandleDeserialize(ctx co } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorGetConsoleScreenshot(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorGetAssociatedIpv6PoolCidrs(response, &metadata) } - output := &GetConsoleScreenshotOutput{} + output := &GetAssociatedIpv6PoolCidrsOutput{} out.Result = output var buff [1024]byte @@ -28041,7 +28769,7 @@ func (m *awsEc2query_deserializeOpGetConsoleScreenshot) HandleDeserialize(ctx co } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentGetConsoleScreenshotOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentGetAssociatedIpv6PoolCidrsOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -28055,7 +28783,7 @@ func (m *awsEc2query_deserializeOpGetConsoleScreenshot) HandleDeserialize(ctx co return out, metadata, err } -func awsEc2query_deserializeOpErrorGetConsoleScreenshot(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorGetAssociatedIpv6PoolCidrs(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)} @@ -28088,14 +28816,14 @@ func awsEc2query_deserializeOpErrorGetConsoleScreenshot(response *smithyhttp.Res } } -type awsEc2query_deserializeOpGetDefaultCreditSpecification struct { +type awsEc2query_deserializeOpGetCapacityReservationUsage struct { } -func (*awsEc2query_deserializeOpGetDefaultCreditSpecification) ID() string { +func (*awsEc2query_deserializeOpGetCapacityReservationUsage) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpGetDefaultCreditSpecification) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpGetCapacityReservationUsage) 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) @@ -28109,9 +28837,9 @@ func (m *awsEc2query_deserializeOpGetDefaultCreditSpecification) HandleDeseriali } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorGetDefaultCreditSpecification(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorGetCapacityReservationUsage(response, &metadata) } - output := &GetDefaultCreditSpecificationOutput{} + output := &GetCapacityReservationUsageOutput{} out.Result = output var buff [1024]byte @@ -28132,7 +28860,7 @@ func (m *awsEc2query_deserializeOpGetDefaultCreditSpecification) HandleDeseriali } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentGetDefaultCreditSpecificationOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentGetCapacityReservationUsageOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -28146,7 +28874,7 @@ func (m *awsEc2query_deserializeOpGetDefaultCreditSpecification) HandleDeseriali return out, metadata, err } -func awsEc2query_deserializeOpErrorGetDefaultCreditSpecification(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorGetCapacityReservationUsage(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)} @@ -28179,14 +28907,14 @@ func awsEc2query_deserializeOpErrorGetDefaultCreditSpecification(response *smith } } -type awsEc2query_deserializeOpGetEbsDefaultKmsKeyId struct { +type awsEc2query_deserializeOpGetCoipPoolUsage struct { } -func (*awsEc2query_deserializeOpGetEbsDefaultKmsKeyId) ID() string { +func (*awsEc2query_deserializeOpGetCoipPoolUsage) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpGetEbsDefaultKmsKeyId) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpGetCoipPoolUsage) 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) @@ -28200,9 +28928,9 @@ func (m *awsEc2query_deserializeOpGetEbsDefaultKmsKeyId) HandleDeserialize(ctx c } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorGetEbsDefaultKmsKeyId(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorGetCoipPoolUsage(response, &metadata) } - output := &GetEbsDefaultKmsKeyIdOutput{} + output := &GetCoipPoolUsageOutput{} out.Result = output var buff [1024]byte @@ -28223,7 +28951,7 @@ func (m *awsEc2query_deserializeOpGetEbsDefaultKmsKeyId) HandleDeserialize(ctx c } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentGetEbsDefaultKmsKeyIdOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentGetCoipPoolUsageOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -28237,7 +28965,7 @@ func (m *awsEc2query_deserializeOpGetEbsDefaultKmsKeyId) HandleDeserialize(ctx c return out, metadata, err } -func awsEc2query_deserializeOpErrorGetEbsDefaultKmsKeyId(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorGetCoipPoolUsage(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)} @@ -28270,14 +28998,14 @@ func awsEc2query_deserializeOpErrorGetEbsDefaultKmsKeyId(response *smithyhttp.Re } } -type awsEc2query_deserializeOpGetEbsEncryptionByDefault struct { +type awsEc2query_deserializeOpGetConsoleOutput struct { } -func (*awsEc2query_deserializeOpGetEbsEncryptionByDefault) ID() string { +func (*awsEc2query_deserializeOpGetConsoleOutput) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpGetEbsEncryptionByDefault) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpGetConsoleOutput) 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) @@ -28291,9 +29019,9 @@ func (m *awsEc2query_deserializeOpGetEbsEncryptionByDefault) HandleDeserialize(c } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorGetEbsEncryptionByDefault(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorGetConsoleOutput(response, &metadata) } - output := &GetEbsEncryptionByDefaultOutput{} + output := &GetConsoleOutputOutput{} out.Result = output var buff [1024]byte @@ -28314,7 +29042,7 @@ func (m *awsEc2query_deserializeOpGetEbsEncryptionByDefault) HandleDeserialize(c } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentGetEbsEncryptionByDefaultOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentGetConsoleOutputOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -28328,7 +29056,7 @@ func (m *awsEc2query_deserializeOpGetEbsEncryptionByDefault) HandleDeserialize(c return out, metadata, err } -func awsEc2query_deserializeOpErrorGetEbsEncryptionByDefault(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorGetConsoleOutput(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)} @@ -28361,14 +29089,14 @@ func awsEc2query_deserializeOpErrorGetEbsEncryptionByDefault(response *smithyhtt } } -type awsEc2query_deserializeOpGetGroupsForCapacityReservation struct { +type awsEc2query_deserializeOpGetConsoleScreenshot struct { } -func (*awsEc2query_deserializeOpGetGroupsForCapacityReservation) ID() string { +func (*awsEc2query_deserializeOpGetConsoleScreenshot) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpGetGroupsForCapacityReservation) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpGetConsoleScreenshot) 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) @@ -28382,9 +29110,9 @@ func (m *awsEc2query_deserializeOpGetGroupsForCapacityReservation) HandleDeseria } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorGetGroupsForCapacityReservation(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorGetConsoleScreenshot(response, &metadata) } - output := &GetGroupsForCapacityReservationOutput{} + output := &GetConsoleScreenshotOutput{} out.Result = output var buff [1024]byte @@ -28405,7 +29133,7 @@ func (m *awsEc2query_deserializeOpGetGroupsForCapacityReservation) HandleDeseria } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentGetGroupsForCapacityReservationOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentGetConsoleScreenshotOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -28419,7 +29147,7 @@ func (m *awsEc2query_deserializeOpGetGroupsForCapacityReservation) HandleDeseria return out, metadata, err } -func awsEc2query_deserializeOpErrorGetGroupsForCapacityReservation(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorGetConsoleScreenshot(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)} @@ -28452,14 +29180,14 @@ func awsEc2query_deserializeOpErrorGetGroupsForCapacityReservation(response *smi } } -type awsEc2query_deserializeOpGetHostReservationPurchasePreview struct { +type awsEc2query_deserializeOpGetDefaultCreditSpecification struct { } -func (*awsEc2query_deserializeOpGetHostReservationPurchasePreview) ID() string { +func (*awsEc2query_deserializeOpGetDefaultCreditSpecification) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpGetHostReservationPurchasePreview) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpGetDefaultCreditSpecification) 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) @@ -28473,9 +29201,9 @@ func (m *awsEc2query_deserializeOpGetHostReservationPurchasePreview) HandleDeser } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorGetHostReservationPurchasePreview(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorGetDefaultCreditSpecification(response, &metadata) } - output := &GetHostReservationPurchasePreviewOutput{} + output := &GetDefaultCreditSpecificationOutput{} out.Result = output var buff [1024]byte @@ -28496,7 +29224,7 @@ func (m *awsEc2query_deserializeOpGetHostReservationPurchasePreview) HandleDeser } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentGetHostReservationPurchasePreviewOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentGetDefaultCreditSpecificationOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -28510,7 +29238,7 @@ func (m *awsEc2query_deserializeOpGetHostReservationPurchasePreview) HandleDeser return out, metadata, err } -func awsEc2query_deserializeOpErrorGetHostReservationPurchasePreview(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorGetDefaultCreditSpecification(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)} @@ -28543,14 +29271,14 @@ func awsEc2query_deserializeOpErrorGetHostReservationPurchasePreview(response *s } } -type awsEc2query_deserializeOpGetLaunchTemplateData struct { +type awsEc2query_deserializeOpGetEbsDefaultKmsKeyId struct { } -func (*awsEc2query_deserializeOpGetLaunchTemplateData) ID() string { +func (*awsEc2query_deserializeOpGetEbsDefaultKmsKeyId) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpGetLaunchTemplateData) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpGetEbsDefaultKmsKeyId) 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) @@ -28564,9 +29292,9 @@ func (m *awsEc2query_deserializeOpGetLaunchTemplateData) HandleDeserialize(ctx c } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorGetLaunchTemplateData(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorGetEbsDefaultKmsKeyId(response, &metadata) } - output := &GetLaunchTemplateDataOutput{} + output := &GetEbsDefaultKmsKeyIdOutput{} out.Result = output var buff [1024]byte @@ -28587,7 +29315,7 @@ func (m *awsEc2query_deserializeOpGetLaunchTemplateData) HandleDeserialize(ctx c } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentGetLaunchTemplateDataOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentGetEbsDefaultKmsKeyIdOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -28601,7 +29329,7 @@ func (m *awsEc2query_deserializeOpGetLaunchTemplateData) HandleDeserialize(ctx c return out, metadata, err } -func awsEc2query_deserializeOpErrorGetLaunchTemplateData(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorGetEbsDefaultKmsKeyId(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)} @@ -28634,14 +29362,14 @@ func awsEc2query_deserializeOpErrorGetLaunchTemplateData(response *smithyhttp.Re } } -type awsEc2query_deserializeOpGetManagedPrefixListAssociations struct { +type awsEc2query_deserializeOpGetEbsEncryptionByDefault struct { } -func (*awsEc2query_deserializeOpGetManagedPrefixListAssociations) ID() string { +func (*awsEc2query_deserializeOpGetEbsEncryptionByDefault) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpGetManagedPrefixListAssociations) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpGetEbsEncryptionByDefault) 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) @@ -28655,9 +29383,9 @@ func (m *awsEc2query_deserializeOpGetManagedPrefixListAssociations) HandleDeseri } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorGetManagedPrefixListAssociations(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorGetEbsEncryptionByDefault(response, &metadata) } - output := &GetManagedPrefixListAssociationsOutput{} + output := &GetEbsEncryptionByDefaultOutput{} out.Result = output var buff [1024]byte @@ -28678,7 +29406,7 @@ func (m *awsEc2query_deserializeOpGetManagedPrefixListAssociations) HandleDeseri } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentGetManagedPrefixListAssociationsOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentGetEbsEncryptionByDefaultOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -28692,7 +29420,7 @@ func (m *awsEc2query_deserializeOpGetManagedPrefixListAssociations) HandleDeseri return out, metadata, err } -func awsEc2query_deserializeOpErrorGetManagedPrefixListAssociations(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorGetEbsEncryptionByDefault(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)} @@ -28725,14 +29453,14 @@ func awsEc2query_deserializeOpErrorGetManagedPrefixListAssociations(response *sm } } -type awsEc2query_deserializeOpGetManagedPrefixListEntries struct { +type awsEc2query_deserializeOpGetFlowLogsIntegrationTemplate struct { } -func (*awsEc2query_deserializeOpGetManagedPrefixListEntries) ID() string { +func (*awsEc2query_deserializeOpGetFlowLogsIntegrationTemplate) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpGetManagedPrefixListEntries) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpGetFlowLogsIntegrationTemplate) 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) @@ -28746,9 +29474,9 @@ func (m *awsEc2query_deserializeOpGetManagedPrefixListEntries) HandleDeserialize } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorGetManagedPrefixListEntries(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorGetFlowLogsIntegrationTemplate(response, &metadata) } - output := &GetManagedPrefixListEntriesOutput{} + output := &GetFlowLogsIntegrationTemplateOutput{} out.Result = output var buff [1024]byte @@ -28769,7 +29497,7 @@ func (m *awsEc2query_deserializeOpGetManagedPrefixListEntries) HandleDeserialize } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentGetManagedPrefixListEntriesOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentGetFlowLogsIntegrationTemplateOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -28783,7 +29511,7 @@ func (m *awsEc2query_deserializeOpGetManagedPrefixListEntries) HandleDeserialize return out, metadata, err } -func awsEc2query_deserializeOpErrorGetManagedPrefixListEntries(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorGetFlowLogsIntegrationTemplate(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)} @@ -28816,14 +29544,14 @@ func awsEc2query_deserializeOpErrorGetManagedPrefixListEntries(response *smithyh } } -type awsEc2query_deserializeOpGetPasswordData struct { +type awsEc2query_deserializeOpGetGroupsForCapacityReservation struct { } -func (*awsEc2query_deserializeOpGetPasswordData) ID() string { +func (*awsEc2query_deserializeOpGetGroupsForCapacityReservation) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpGetPasswordData) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpGetGroupsForCapacityReservation) 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) @@ -28837,9 +29565,9 @@ func (m *awsEc2query_deserializeOpGetPasswordData) HandleDeserialize(ctx context } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorGetPasswordData(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorGetGroupsForCapacityReservation(response, &metadata) } - output := &GetPasswordDataOutput{} + output := &GetGroupsForCapacityReservationOutput{} out.Result = output var buff [1024]byte @@ -28860,7 +29588,7 @@ func (m *awsEc2query_deserializeOpGetPasswordData) HandleDeserialize(ctx context } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentGetPasswordDataOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentGetGroupsForCapacityReservationOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -28874,7 +29602,7 @@ func (m *awsEc2query_deserializeOpGetPasswordData) HandleDeserialize(ctx context return out, metadata, err } -func awsEc2query_deserializeOpErrorGetPasswordData(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorGetGroupsForCapacityReservation(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)} @@ -28907,14 +29635,14 @@ func awsEc2query_deserializeOpErrorGetPasswordData(response *smithyhttp.Response } } -type awsEc2query_deserializeOpGetReservedInstancesExchangeQuote struct { +type awsEc2query_deserializeOpGetHostReservationPurchasePreview struct { } -func (*awsEc2query_deserializeOpGetReservedInstancesExchangeQuote) ID() string { +func (*awsEc2query_deserializeOpGetHostReservationPurchasePreview) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpGetReservedInstancesExchangeQuote) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpGetHostReservationPurchasePreview) 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) @@ -28928,9 +29656,9 @@ func (m *awsEc2query_deserializeOpGetReservedInstancesExchangeQuote) HandleDeser } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorGetReservedInstancesExchangeQuote(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorGetHostReservationPurchasePreview(response, &metadata) } - output := &GetReservedInstancesExchangeQuoteOutput{} + output := &GetHostReservationPurchasePreviewOutput{} out.Result = output var buff [1024]byte @@ -28951,7 +29679,7 @@ func (m *awsEc2query_deserializeOpGetReservedInstancesExchangeQuote) HandleDeser } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentGetReservedInstancesExchangeQuoteOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentGetHostReservationPurchasePreviewOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -28965,7 +29693,7 @@ func (m *awsEc2query_deserializeOpGetReservedInstancesExchangeQuote) HandleDeser return out, metadata, err } -func awsEc2query_deserializeOpErrorGetReservedInstancesExchangeQuote(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorGetHostReservationPurchasePreview(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)} @@ -28998,14 +29726,14 @@ func awsEc2query_deserializeOpErrorGetReservedInstancesExchangeQuote(response *s } } -type awsEc2query_deserializeOpGetTransitGatewayAttachmentPropagations struct { +type awsEc2query_deserializeOpGetLaunchTemplateData struct { } -func (*awsEc2query_deserializeOpGetTransitGatewayAttachmentPropagations) ID() string { +func (*awsEc2query_deserializeOpGetLaunchTemplateData) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpGetTransitGatewayAttachmentPropagations) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpGetLaunchTemplateData) 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) @@ -29019,9 +29747,9 @@ func (m *awsEc2query_deserializeOpGetTransitGatewayAttachmentPropagations) Handl } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorGetTransitGatewayAttachmentPropagations(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorGetLaunchTemplateData(response, &metadata) } - output := &GetTransitGatewayAttachmentPropagationsOutput{} + output := &GetLaunchTemplateDataOutput{} out.Result = output var buff [1024]byte @@ -29042,7 +29770,7 @@ func (m *awsEc2query_deserializeOpGetTransitGatewayAttachmentPropagations) Handl } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentGetTransitGatewayAttachmentPropagationsOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentGetLaunchTemplateDataOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -29056,7 +29784,7 @@ func (m *awsEc2query_deserializeOpGetTransitGatewayAttachmentPropagations) Handl return out, metadata, err } -func awsEc2query_deserializeOpErrorGetTransitGatewayAttachmentPropagations(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorGetLaunchTemplateData(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)} @@ -29089,14 +29817,14 @@ func awsEc2query_deserializeOpErrorGetTransitGatewayAttachmentPropagations(respo } } -type awsEc2query_deserializeOpGetTransitGatewayMulticastDomainAssociations struct { +type awsEc2query_deserializeOpGetManagedPrefixListAssociations struct { } -func (*awsEc2query_deserializeOpGetTransitGatewayMulticastDomainAssociations) ID() string { +func (*awsEc2query_deserializeOpGetManagedPrefixListAssociations) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpGetTransitGatewayMulticastDomainAssociations) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpGetManagedPrefixListAssociations) 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) @@ -29110,9 +29838,9 @@ func (m *awsEc2query_deserializeOpGetTransitGatewayMulticastDomainAssociations) } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorGetTransitGatewayMulticastDomainAssociations(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorGetManagedPrefixListAssociations(response, &metadata) } - output := &GetTransitGatewayMulticastDomainAssociationsOutput{} + output := &GetManagedPrefixListAssociationsOutput{} out.Result = output var buff [1024]byte @@ -29133,7 +29861,7 @@ func (m *awsEc2query_deserializeOpGetTransitGatewayMulticastDomainAssociations) } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentGetTransitGatewayMulticastDomainAssociationsOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentGetManagedPrefixListAssociationsOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -29147,7 +29875,7 @@ func (m *awsEc2query_deserializeOpGetTransitGatewayMulticastDomainAssociations) return out, metadata, err } -func awsEc2query_deserializeOpErrorGetTransitGatewayMulticastDomainAssociations(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorGetManagedPrefixListAssociations(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)} @@ -29180,14 +29908,14 @@ func awsEc2query_deserializeOpErrorGetTransitGatewayMulticastDomainAssociations( } } -type awsEc2query_deserializeOpGetTransitGatewayPrefixListReferences struct { +type awsEc2query_deserializeOpGetManagedPrefixListEntries struct { } -func (*awsEc2query_deserializeOpGetTransitGatewayPrefixListReferences) ID() string { +func (*awsEc2query_deserializeOpGetManagedPrefixListEntries) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpGetTransitGatewayPrefixListReferences) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpGetManagedPrefixListEntries) 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) @@ -29201,9 +29929,9 @@ func (m *awsEc2query_deserializeOpGetTransitGatewayPrefixListReferences) HandleD } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorGetTransitGatewayPrefixListReferences(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorGetManagedPrefixListEntries(response, &metadata) } - output := &GetTransitGatewayPrefixListReferencesOutput{} + output := &GetManagedPrefixListEntriesOutput{} out.Result = output var buff [1024]byte @@ -29224,7 +29952,7 @@ func (m *awsEc2query_deserializeOpGetTransitGatewayPrefixListReferences) HandleD } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentGetTransitGatewayPrefixListReferencesOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentGetManagedPrefixListEntriesOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -29238,7 +29966,7 @@ func (m *awsEc2query_deserializeOpGetTransitGatewayPrefixListReferences) HandleD return out, metadata, err } -func awsEc2query_deserializeOpErrorGetTransitGatewayPrefixListReferences(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorGetManagedPrefixListEntries(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)} @@ -29271,14 +29999,14 @@ func awsEc2query_deserializeOpErrorGetTransitGatewayPrefixListReferences(respons } } -type awsEc2query_deserializeOpGetTransitGatewayRouteTableAssociations struct { +type awsEc2query_deserializeOpGetPasswordData struct { } -func (*awsEc2query_deserializeOpGetTransitGatewayRouteTableAssociations) ID() string { +func (*awsEc2query_deserializeOpGetPasswordData) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpGetTransitGatewayRouteTableAssociations) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpGetPasswordData) 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) @@ -29292,9 +30020,9 @@ func (m *awsEc2query_deserializeOpGetTransitGatewayRouteTableAssociations) Handl } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorGetTransitGatewayRouteTableAssociations(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorGetPasswordData(response, &metadata) } - output := &GetTransitGatewayRouteTableAssociationsOutput{} + output := &GetPasswordDataOutput{} out.Result = output var buff [1024]byte @@ -29315,7 +30043,7 @@ func (m *awsEc2query_deserializeOpGetTransitGatewayRouteTableAssociations) Handl } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentGetTransitGatewayRouteTableAssociationsOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentGetPasswordDataOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -29329,7 +30057,7 @@ func (m *awsEc2query_deserializeOpGetTransitGatewayRouteTableAssociations) Handl return out, metadata, err } -func awsEc2query_deserializeOpErrorGetTransitGatewayRouteTableAssociations(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorGetPasswordData(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)} @@ -29362,14 +30090,14 @@ func awsEc2query_deserializeOpErrorGetTransitGatewayRouteTableAssociations(respo } } -type awsEc2query_deserializeOpGetTransitGatewayRouteTablePropagations struct { +type awsEc2query_deserializeOpGetReservedInstancesExchangeQuote struct { } -func (*awsEc2query_deserializeOpGetTransitGatewayRouteTablePropagations) ID() string { +func (*awsEc2query_deserializeOpGetReservedInstancesExchangeQuote) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpGetTransitGatewayRouteTablePropagations) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpGetReservedInstancesExchangeQuote) 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) @@ -29383,9 +30111,9 @@ func (m *awsEc2query_deserializeOpGetTransitGatewayRouteTablePropagations) Handl } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorGetTransitGatewayRouteTablePropagations(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorGetReservedInstancesExchangeQuote(response, &metadata) } - output := &GetTransitGatewayRouteTablePropagationsOutput{} + output := &GetReservedInstancesExchangeQuoteOutput{} out.Result = output var buff [1024]byte @@ -29406,7 +30134,7 @@ func (m *awsEc2query_deserializeOpGetTransitGatewayRouteTablePropagations) Handl } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentGetTransitGatewayRouteTablePropagationsOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentGetReservedInstancesExchangeQuoteOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -29420,7 +30148,7 @@ func (m *awsEc2query_deserializeOpGetTransitGatewayRouteTablePropagations) Handl return out, metadata, err } -func awsEc2query_deserializeOpErrorGetTransitGatewayRouteTablePropagations(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorGetReservedInstancesExchangeQuote(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)} @@ -29453,14 +30181,14 @@ func awsEc2query_deserializeOpErrorGetTransitGatewayRouteTablePropagations(respo } } -type awsEc2query_deserializeOpImportClientVpnClientCertificateRevocationList struct { +type awsEc2query_deserializeOpGetSerialConsoleAccessStatus struct { } -func (*awsEc2query_deserializeOpImportClientVpnClientCertificateRevocationList) ID() string { +func (*awsEc2query_deserializeOpGetSerialConsoleAccessStatus) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpImportClientVpnClientCertificateRevocationList) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpGetSerialConsoleAccessStatus) 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) @@ -29474,9 +30202,9 @@ func (m *awsEc2query_deserializeOpImportClientVpnClientCertificateRevocationList } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorImportClientVpnClientCertificateRevocationList(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorGetSerialConsoleAccessStatus(response, &metadata) } - output := &ImportClientVpnClientCertificateRevocationListOutput{} + output := &GetSerialConsoleAccessStatusOutput{} out.Result = output var buff [1024]byte @@ -29497,7 +30225,7 @@ func (m *awsEc2query_deserializeOpImportClientVpnClientCertificateRevocationList } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentImportClientVpnClientCertificateRevocationListOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentGetSerialConsoleAccessStatusOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -29511,7 +30239,7 @@ func (m *awsEc2query_deserializeOpImportClientVpnClientCertificateRevocationList return out, metadata, err } -func awsEc2query_deserializeOpErrorImportClientVpnClientCertificateRevocationList(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorGetSerialConsoleAccessStatus(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)} @@ -29544,14 +30272,14 @@ func awsEc2query_deserializeOpErrorImportClientVpnClientCertificateRevocationLis } } -type awsEc2query_deserializeOpImportImage struct { +type awsEc2query_deserializeOpGetTransitGatewayAttachmentPropagations struct { } -func (*awsEc2query_deserializeOpImportImage) ID() string { +func (*awsEc2query_deserializeOpGetTransitGatewayAttachmentPropagations) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpImportImage) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpGetTransitGatewayAttachmentPropagations) 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) @@ -29565,9 +30293,9 @@ func (m *awsEc2query_deserializeOpImportImage) HandleDeserialize(ctx context.Con } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorImportImage(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorGetTransitGatewayAttachmentPropagations(response, &metadata) } - output := &ImportImageOutput{} + output := &GetTransitGatewayAttachmentPropagationsOutput{} out.Result = output var buff [1024]byte @@ -29588,7 +30316,7 @@ func (m *awsEc2query_deserializeOpImportImage) HandleDeserialize(ctx context.Con } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentImportImageOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentGetTransitGatewayAttachmentPropagationsOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -29602,7 +30330,7 @@ func (m *awsEc2query_deserializeOpImportImage) HandleDeserialize(ctx context.Con return out, metadata, err } -func awsEc2query_deserializeOpErrorImportImage(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorGetTransitGatewayAttachmentPropagations(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)} @@ -29635,14 +30363,14 @@ func awsEc2query_deserializeOpErrorImportImage(response *smithyhttp.Response, me } } -type awsEc2query_deserializeOpImportInstance struct { +type awsEc2query_deserializeOpGetTransitGatewayMulticastDomainAssociations struct { } -func (*awsEc2query_deserializeOpImportInstance) ID() string { +func (*awsEc2query_deserializeOpGetTransitGatewayMulticastDomainAssociations) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpImportInstance) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpGetTransitGatewayMulticastDomainAssociations) 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) @@ -29656,9 +30384,9 @@ func (m *awsEc2query_deserializeOpImportInstance) HandleDeserialize(ctx context. } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorImportInstance(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorGetTransitGatewayMulticastDomainAssociations(response, &metadata) } - output := &ImportInstanceOutput{} + output := &GetTransitGatewayMulticastDomainAssociationsOutput{} out.Result = output var buff [1024]byte @@ -29679,7 +30407,7 @@ func (m *awsEc2query_deserializeOpImportInstance) HandleDeserialize(ctx context. } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentImportInstanceOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentGetTransitGatewayMulticastDomainAssociationsOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -29693,7 +30421,7 @@ func (m *awsEc2query_deserializeOpImportInstance) HandleDeserialize(ctx context. return out, metadata, err } -func awsEc2query_deserializeOpErrorImportInstance(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorGetTransitGatewayMulticastDomainAssociations(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)} @@ -29726,14 +30454,14 @@ func awsEc2query_deserializeOpErrorImportInstance(response *smithyhttp.Response, } } -type awsEc2query_deserializeOpImportKeyPair struct { +type awsEc2query_deserializeOpGetTransitGatewayPrefixListReferences struct { } -func (*awsEc2query_deserializeOpImportKeyPair) ID() string { +func (*awsEc2query_deserializeOpGetTransitGatewayPrefixListReferences) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpImportKeyPair) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpGetTransitGatewayPrefixListReferences) 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) @@ -29747,9 +30475,9 @@ func (m *awsEc2query_deserializeOpImportKeyPair) HandleDeserialize(ctx context.C } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorImportKeyPair(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorGetTransitGatewayPrefixListReferences(response, &metadata) } - output := &ImportKeyPairOutput{} + output := &GetTransitGatewayPrefixListReferencesOutput{} out.Result = output var buff [1024]byte @@ -29770,7 +30498,7 @@ func (m *awsEc2query_deserializeOpImportKeyPair) HandleDeserialize(ctx context.C } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentImportKeyPairOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentGetTransitGatewayPrefixListReferencesOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -29784,7 +30512,7 @@ func (m *awsEc2query_deserializeOpImportKeyPair) HandleDeserialize(ctx context.C return out, metadata, err } -func awsEc2query_deserializeOpErrorImportKeyPair(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorGetTransitGatewayPrefixListReferences(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)} @@ -29817,14 +30545,14 @@ func awsEc2query_deserializeOpErrorImportKeyPair(response *smithyhttp.Response, } } -type awsEc2query_deserializeOpImportSnapshot struct { +type awsEc2query_deserializeOpGetTransitGatewayRouteTableAssociations struct { } -func (*awsEc2query_deserializeOpImportSnapshot) ID() string { +func (*awsEc2query_deserializeOpGetTransitGatewayRouteTableAssociations) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpImportSnapshot) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpGetTransitGatewayRouteTableAssociations) 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) @@ -29838,9 +30566,9 @@ func (m *awsEc2query_deserializeOpImportSnapshot) HandleDeserialize(ctx context. } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorImportSnapshot(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorGetTransitGatewayRouteTableAssociations(response, &metadata) } - output := &ImportSnapshotOutput{} + output := &GetTransitGatewayRouteTableAssociationsOutput{} out.Result = output var buff [1024]byte @@ -29861,7 +30589,7 @@ func (m *awsEc2query_deserializeOpImportSnapshot) HandleDeserialize(ctx context. } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentImportSnapshotOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentGetTransitGatewayRouteTableAssociationsOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -29875,7 +30603,7 @@ func (m *awsEc2query_deserializeOpImportSnapshot) HandleDeserialize(ctx context. return out, metadata, err } -func awsEc2query_deserializeOpErrorImportSnapshot(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorGetTransitGatewayRouteTableAssociations(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)} @@ -29908,14 +30636,14 @@ func awsEc2query_deserializeOpErrorImportSnapshot(response *smithyhttp.Response, } } -type awsEc2query_deserializeOpImportVolume struct { +type awsEc2query_deserializeOpGetTransitGatewayRouteTablePropagations struct { } -func (*awsEc2query_deserializeOpImportVolume) ID() string { +func (*awsEc2query_deserializeOpGetTransitGatewayRouteTablePropagations) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpImportVolume) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpGetTransitGatewayRouteTablePropagations) 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) @@ -29929,9 +30657,9 @@ func (m *awsEc2query_deserializeOpImportVolume) HandleDeserialize(ctx context.Co } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorImportVolume(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorGetTransitGatewayRouteTablePropagations(response, &metadata) } - output := &ImportVolumeOutput{} + output := &GetTransitGatewayRouteTablePropagationsOutput{} out.Result = output var buff [1024]byte @@ -29952,7 +30680,7 @@ func (m *awsEc2query_deserializeOpImportVolume) HandleDeserialize(ctx context.Co } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentImportVolumeOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentGetTransitGatewayRouteTablePropagationsOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -29966,7 +30694,7 @@ func (m *awsEc2query_deserializeOpImportVolume) HandleDeserialize(ctx context.Co return out, metadata, err } -func awsEc2query_deserializeOpErrorImportVolume(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorGetTransitGatewayRouteTablePropagations(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)} @@ -29999,14 +30727,14 @@ func awsEc2query_deserializeOpErrorImportVolume(response *smithyhttp.Response, m } } -type awsEc2query_deserializeOpModifyAddressAttribute struct { +type awsEc2query_deserializeOpImportClientVpnClientCertificateRevocationList struct { } -func (*awsEc2query_deserializeOpModifyAddressAttribute) ID() string { +func (*awsEc2query_deserializeOpImportClientVpnClientCertificateRevocationList) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpModifyAddressAttribute) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpImportClientVpnClientCertificateRevocationList) 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) @@ -30020,9 +30748,9 @@ func (m *awsEc2query_deserializeOpModifyAddressAttribute) HandleDeserialize(ctx } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorModifyAddressAttribute(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorImportClientVpnClientCertificateRevocationList(response, &metadata) } - output := &ModifyAddressAttributeOutput{} + output := &ImportClientVpnClientCertificateRevocationListOutput{} out.Result = output var buff [1024]byte @@ -30043,7 +30771,7 @@ func (m *awsEc2query_deserializeOpModifyAddressAttribute) HandleDeserialize(ctx } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentModifyAddressAttributeOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentImportClientVpnClientCertificateRevocationListOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -30057,7 +30785,7 @@ func (m *awsEc2query_deserializeOpModifyAddressAttribute) HandleDeserialize(ctx return out, metadata, err } -func awsEc2query_deserializeOpErrorModifyAddressAttribute(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorImportClientVpnClientCertificateRevocationList(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)} @@ -30090,14 +30818,14 @@ func awsEc2query_deserializeOpErrorModifyAddressAttribute(response *smithyhttp.R } } -type awsEc2query_deserializeOpModifyAvailabilityZoneGroup struct { +type awsEc2query_deserializeOpImportImage struct { } -func (*awsEc2query_deserializeOpModifyAvailabilityZoneGroup) ID() string { +func (*awsEc2query_deserializeOpImportImage) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpModifyAvailabilityZoneGroup) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpImportImage) 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) @@ -30111,9 +30839,9 @@ func (m *awsEc2query_deserializeOpModifyAvailabilityZoneGroup) HandleDeserialize } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorModifyAvailabilityZoneGroup(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorImportImage(response, &metadata) } - output := &ModifyAvailabilityZoneGroupOutput{} + output := &ImportImageOutput{} out.Result = output var buff [1024]byte @@ -30134,7 +30862,7 @@ func (m *awsEc2query_deserializeOpModifyAvailabilityZoneGroup) HandleDeserialize } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentModifyAvailabilityZoneGroupOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentImportImageOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -30148,7 +30876,7 @@ func (m *awsEc2query_deserializeOpModifyAvailabilityZoneGroup) HandleDeserialize return out, metadata, err } -func awsEc2query_deserializeOpErrorModifyAvailabilityZoneGroup(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorImportImage(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)} @@ -30181,14 +30909,14 @@ func awsEc2query_deserializeOpErrorModifyAvailabilityZoneGroup(response *smithyh } } -type awsEc2query_deserializeOpModifyCapacityReservation struct { +type awsEc2query_deserializeOpImportInstance struct { } -func (*awsEc2query_deserializeOpModifyCapacityReservation) ID() string { +func (*awsEc2query_deserializeOpImportInstance) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpModifyCapacityReservation) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpImportInstance) 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) @@ -30202,9 +30930,9 @@ func (m *awsEc2query_deserializeOpModifyCapacityReservation) HandleDeserialize(c } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorModifyCapacityReservation(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorImportInstance(response, &metadata) } - output := &ModifyCapacityReservationOutput{} + output := &ImportInstanceOutput{} out.Result = output var buff [1024]byte @@ -30225,7 +30953,7 @@ func (m *awsEc2query_deserializeOpModifyCapacityReservation) HandleDeserialize(c } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentModifyCapacityReservationOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentImportInstanceOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -30239,7 +30967,7 @@ func (m *awsEc2query_deserializeOpModifyCapacityReservation) HandleDeserialize(c return out, metadata, err } -func awsEc2query_deserializeOpErrorModifyCapacityReservation(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorImportInstance(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)} @@ -30272,14 +31000,14 @@ func awsEc2query_deserializeOpErrorModifyCapacityReservation(response *smithyhtt } } -type awsEc2query_deserializeOpModifyClientVpnEndpoint struct { +type awsEc2query_deserializeOpImportKeyPair struct { } -func (*awsEc2query_deserializeOpModifyClientVpnEndpoint) ID() string { +func (*awsEc2query_deserializeOpImportKeyPair) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpModifyClientVpnEndpoint) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpImportKeyPair) 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) @@ -30293,9 +31021,9 @@ func (m *awsEc2query_deserializeOpModifyClientVpnEndpoint) HandleDeserialize(ctx } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorModifyClientVpnEndpoint(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorImportKeyPair(response, &metadata) } - output := &ModifyClientVpnEndpointOutput{} + output := &ImportKeyPairOutput{} out.Result = output var buff [1024]byte @@ -30316,7 +31044,7 @@ func (m *awsEc2query_deserializeOpModifyClientVpnEndpoint) HandleDeserialize(ctx } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentModifyClientVpnEndpointOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentImportKeyPairOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -30330,7 +31058,7 @@ func (m *awsEc2query_deserializeOpModifyClientVpnEndpoint) HandleDeserialize(ctx return out, metadata, err } -func awsEc2query_deserializeOpErrorModifyClientVpnEndpoint(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorImportKeyPair(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)} @@ -30363,14 +31091,14 @@ func awsEc2query_deserializeOpErrorModifyClientVpnEndpoint(response *smithyhttp. } } -type awsEc2query_deserializeOpModifyDefaultCreditSpecification struct { +type awsEc2query_deserializeOpImportSnapshot struct { } -func (*awsEc2query_deserializeOpModifyDefaultCreditSpecification) ID() string { +func (*awsEc2query_deserializeOpImportSnapshot) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpModifyDefaultCreditSpecification) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpImportSnapshot) 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) @@ -30384,9 +31112,9 @@ func (m *awsEc2query_deserializeOpModifyDefaultCreditSpecification) HandleDeseri } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorModifyDefaultCreditSpecification(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorImportSnapshot(response, &metadata) } - output := &ModifyDefaultCreditSpecificationOutput{} + output := &ImportSnapshotOutput{} out.Result = output var buff [1024]byte @@ -30407,7 +31135,7 @@ func (m *awsEc2query_deserializeOpModifyDefaultCreditSpecification) HandleDeseri } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentModifyDefaultCreditSpecificationOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentImportSnapshotOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -30421,7 +31149,7 @@ func (m *awsEc2query_deserializeOpModifyDefaultCreditSpecification) HandleDeseri return out, metadata, err } -func awsEc2query_deserializeOpErrorModifyDefaultCreditSpecification(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorImportSnapshot(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)} @@ -30454,14 +31182,14 @@ func awsEc2query_deserializeOpErrorModifyDefaultCreditSpecification(response *sm } } -type awsEc2query_deserializeOpModifyEbsDefaultKmsKeyId struct { +type awsEc2query_deserializeOpImportVolume struct { } -func (*awsEc2query_deserializeOpModifyEbsDefaultKmsKeyId) ID() string { +func (*awsEc2query_deserializeOpImportVolume) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpModifyEbsDefaultKmsKeyId) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpImportVolume) 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) @@ -30475,9 +31203,9 @@ func (m *awsEc2query_deserializeOpModifyEbsDefaultKmsKeyId) HandleDeserialize(ct } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorModifyEbsDefaultKmsKeyId(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorImportVolume(response, &metadata) } - output := &ModifyEbsDefaultKmsKeyIdOutput{} + output := &ImportVolumeOutput{} out.Result = output var buff [1024]byte @@ -30498,7 +31226,7 @@ func (m *awsEc2query_deserializeOpModifyEbsDefaultKmsKeyId) HandleDeserialize(ct } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentModifyEbsDefaultKmsKeyIdOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentImportVolumeOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -30512,7 +31240,7 @@ func (m *awsEc2query_deserializeOpModifyEbsDefaultKmsKeyId) HandleDeserialize(ct return out, metadata, err } -func awsEc2query_deserializeOpErrorModifyEbsDefaultKmsKeyId(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorImportVolume(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)} @@ -30545,14 +31273,14 @@ func awsEc2query_deserializeOpErrorModifyEbsDefaultKmsKeyId(response *smithyhttp } } -type awsEc2query_deserializeOpModifyFleet struct { +type awsEc2query_deserializeOpModifyAddressAttribute struct { } -func (*awsEc2query_deserializeOpModifyFleet) ID() string { +func (*awsEc2query_deserializeOpModifyAddressAttribute) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpModifyFleet) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpModifyAddressAttribute) 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) @@ -30566,9 +31294,100 @@ func (m *awsEc2query_deserializeOpModifyFleet) HandleDeserialize(ctx context.Con } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorModifyFleet(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorModifyAddressAttribute(response, &metadata) } - output := &ModifyFleetOutput{} + output := &ModifyAddressAttributeOutput{} + 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_deserializeOpDocumentModifyAddressAttributeOutput(&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_deserializeOpErrorModifyAddressAttribute(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_deserializeOpModifyAvailabilityZoneGroup struct { +} + +func (*awsEc2query_deserializeOpModifyAvailabilityZoneGroup) ID() string { + return "OperationDeserializer" +} + +func (m *awsEc2query_deserializeOpModifyAvailabilityZoneGroup) 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 + } + + 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_deserializeOpErrorModifyAvailabilityZoneGroup(response, &metadata) + } + output := &ModifyAvailabilityZoneGroupOutput{} out.Result = output var buff [1024]byte @@ -30589,7 +31408,7 @@ func (m *awsEc2query_deserializeOpModifyFleet) HandleDeserialize(ctx context.Con } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentModifyFleetOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentModifyAvailabilityZoneGroupOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -30603,7 +31422,7 @@ func (m *awsEc2query_deserializeOpModifyFleet) HandleDeserialize(ctx context.Con return out, metadata, err } -func awsEc2query_deserializeOpErrorModifyFleet(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorModifyAvailabilityZoneGroup(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)} @@ -30636,14 +31455,14 @@ func awsEc2query_deserializeOpErrorModifyFleet(response *smithyhttp.Response, me } } -type awsEc2query_deserializeOpModifyFpgaImageAttribute struct { +type awsEc2query_deserializeOpModifyCapacityReservation struct { } -func (*awsEc2query_deserializeOpModifyFpgaImageAttribute) ID() string { +func (*awsEc2query_deserializeOpModifyCapacityReservation) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpModifyFpgaImageAttribute) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpModifyCapacityReservation) 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) @@ -30657,9 +31476,9 @@ func (m *awsEc2query_deserializeOpModifyFpgaImageAttribute) HandleDeserialize(ct } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorModifyFpgaImageAttribute(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorModifyCapacityReservation(response, &metadata) } - output := &ModifyFpgaImageAttributeOutput{} + output := &ModifyCapacityReservationOutput{} out.Result = output var buff [1024]byte @@ -30680,7 +31499,7 @@ func (m *awsEc2query_deserializeOpModifyFpgaImageAttribute) HandleDeserialize(ct } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentModifyFpgaImageAttributeOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentModifyCapacityReservationOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -30694,7 +31513,7 @@ func (m *awsEc2query_deserializeOpModifyFpgaImageAttribute) HandleDeserialize(ct return out, metadata, err } -func awsEc2query_deserializeOpErrorModifyFpgaImageAttribute(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorModifyCapacityReservation(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)} @@ -30727,14 +31546,14 @@ func awsEc2query_deserializeOpErrorModifyFpgaImageAttribute(response *smithyhttp } } -type awsEc2query_deserializeOpModifyHosts struct { +type awsEc2query_deserializeOpModifyClientVpnEndpoint struct { } -func (*awsEc2query_deserializeOpModifyHosts) ID() string { +func (*awsEc2query_deserializeOpModifyClientVpnEndpoint) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpModifyHosts) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpModifyClientVpnEndpoint) 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) @@ -30748,9 +31567,9 @@ func (m *awsEc2query_deserializeOpModifyHosts) HandleDeserialize(ctx context.Con } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorModifyHosts(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorModifyClientVpnEndpoint(response, &metadata) } - output := &ModifyHostsOutput{} + output := &ModifyClientVpnEndpointOutput{} out.Result = output var buff [1024]byte @@ -30771,7 +31590,7 @@ func (m *awsEc2query_deserializeOpModifyHosts) HandleDeserialize(ctx context.Con } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentModifyHostsOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentModifyClientVpnEndpointOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -30785,7 +31604,7 @@ func (m *awsEc2query_deserializeOpModifyHosts) HandleDeserialize(ctx context.Con return out, metadata, err } -func awsEc2query_deserializeOpErrorModifyHosts(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorModifyClientVpnEndpoint(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)} @@ -30818,14 +31637,14 @@ func awsEc2query_deserializeOpErrorModifyHosts(response *smithyhttp.Response, me } } -type awsEc2query_deserializeOpModifyIdentityIdFormat struct { +type awsEc2query_deserializeOpModifyDefaultCreditSpecification struct { } -func (*awsEc2query_deserializeOpModifyIdentityIdFormat) ID() string { +func (*awsEc2query_deserializeOpModifyDefaultCreditSpecification) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpModifyIdentityIdFormat) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpModifyDefaultCreditSpecification) 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) @@ -30839,89 +31658,44 @@ func (m *awsEc2query_deserializeOpModifyIdentityIdFormat) HandleDeserialize(ctx } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorModifyIdentityIdFormat(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorModifyDefaultCreditSpecification(response, &metadata) } - output := &ModifyIdentityIdFormatOutput{} + output := &ModifyDefaultCreditSpecificationOutput{} 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_deserializeOpErrorModifyIdentityIdFormat(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)} + 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 } - 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, + 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(), } - return genericError - } -} -type awsEc2query_deserializeOpModifyIdFormat struct { -} - -func (*awsEc2query_deserializeOpModifyIdFormat) ID() string { - return "OperationDeserializer" -} - -func (m *awsEc2query_deserializeOpModifyIdFormat) 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) + decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) + err = awsEc2query_deserializeOpDocumentModifyDefaultCreditSpecificationOutput(&output, decoder) if err != nil { - return out, metadata, err - } - - 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_deserializeOpErrorModifyIdFormat(response, &metadata) - } - output := &ModifyIdFormatOutput{} - 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), + 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_deserializeOpErrorModifyIdFormat(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorModifyDefaultCreditSpecification(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)} @@ -30954,14 +31728,14 @@ func awsEc2query_deserializeOpErrorModifyIdFormat(response *smithyhttp.Response, } } -type awsEc2query_deserializeOpModifyImageAttribute struct { +type awsEc2query_deserializeOpModifyEbsDefaultKmsKeyId struct { } -func (*awsEc2query_deserializeOpModifyImageAttribute) ID() string { +func (*awsEc2query_deserializeOpModifyEbsDefaultKmsKeyId) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpModifyImageAttribute) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpModifyEbsDefaultKmsKeyId) 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) @@ -30975,89 +31749,44 @@ func (m *awsEc2query_deserializeOpModifyImageAttribute) HandleDeserialize(ctx co } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorModifyImageAttribute(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorModifyEbsDefaultKmsKeyId(response, &metadata) } - output := &ModifyImageAttributeOutput{} + output := &ModifyEbsDefaultKmsKeyIdOutput{} 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_deserializeOpErrorModifyImageAttribute(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)} + 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 } - 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, + 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(), } - return genericError - } -} - -type awsEc2query_deserializeOpModifyInstanceAttribute struct { -} - -func (*awsEc2query_deserializeOpModifyInstanceAttribute) ID() string { - return "OperationDeserializer" -} -func (m *awsEc2query_deserializeOpModifyInstanceAttribute) 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) + decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) + err = awsEc2query_deserializeOpDocumentModifyEbsDefaultKmsKeyIdOutput(&output, decoder) if err != nil { - return out, metadata, err - } - - 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_deserializeOpErrorModifyInstanceAttribute(response, &metadata) - } - output := &ModifyInstanceAttributeOutput{} - 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), + 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_deserializeOpErrorModifyInstanceAttribute(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorModifyEbsDefaultKmsKeyId(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)} @@ -31090,14 +31819,14 @@ func awsEc2query_deserializeOpErrorModifyInstanceAttribute(response *smithyhttp. } } -type awsEc2query_deserializeOpModifyInstanceCapacityReservationAttributes struct { +type awsEc2query_deserializeOpModifyFleet struct { } -func (*awsEc2query_deserializeOpModifyInstanceCapacityReservationAttributes) ID() string { +func (*awsEc2query_deserializeOpModifyFleet) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpModifyInstanceCapacityReservationAttributes) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpModifyFleet) 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) @@ -31111,9 +31840,9 @@ func (m *awsEc2query_deserializeOpModifyInstanceCapacityReservationAttributes) H } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorModifyInstanceCapacityReservationAttributes(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorModifyFleet(response, &metadata) } - output := &ModifyInstanceCapacityReservationAttributesOutput{} + output := &ModifyFleetOutput{} out.Result = output var buff [1024]byte @@ -31134,7 +31863,7 @@ func (m *awsEc2query_deserializeOpModifyInstanceCapacityReservationAttributes) H } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentModifyInstanceCapacityReservationAttributesOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentModifyFleetOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -31148,7 +31877,7 @@ func (m *awsEc2query_deserializeOpModifyInstanceCapacityReservationAttributes) H return out, metadata, err } -func awsEc2query_deserializeOpErrorModifyInstanceCapacityReservationAttributes(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorModifyFleet(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)} @@ -31181,14 +31910,14 @@ func awsEc2query_deserializeOpErrorModifyInstanceCapacityReservationAttributes(r } } -type awsEc2query_deserializeOpModifyInstanceCreditSpecification struct { +type awsEc2query_deserializeOpModifyFpgaImageAttribute struct { } -func (*awsEc2query_deserializeOpModifyInstanceCreditSpecification) ID() string { +func (*awsEc2query_deserializeOpModifyFpgaImageAttribute) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpModifyInstanceCreditSpecification) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpModifyFpgaImageAttribute) 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) @@ -31202,9 +31931,9 @@ func (m *awsEc2query_deserializeOpModifyInstanceCreditSpecification) HandleDeser } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorModifyInstanceCreditSpecification(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorModifyFpgaImageAttribute(response, &metadata) } - output := &ModifyInstanceCreditSpecificationOutput{} + output := &ModifyFpgaImageAttributeOutput{} out.Result = output var buff [1024]byte @@ -31225,7 +31954,7 @@ func (m *awsEc2query_deserializeOpModifyInstanceCreditSpecification) HandleDeser } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentModifyInstanceCreditSpecificationOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentModifyFpgaImageAttributeOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -31239,7 +31968,7 @@ func (m *awsEc2query_deserializeOpModifyInstanceCreditSpecification) HandleDeser return out, metadata, err } -func awsEc2query_deserializeOpErrorModifyInstanceCreditSpecification(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorModifyFpgaImageAttribute(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)} @@ -31272,14 +32001,14 @@ func awsEc2query_deserializeOpErrorModifyInstanceCreditSpecification(response *s } } -type awsEc2query_deserializeOpModifyInstanceEventStartTime struct { +type awsEc2query_deserializeOpModifyHosts struct { } -func (*awsEc2query_deserializeOpModifyInstanceEventStartTime) ID() string { +func (*awsEc2query_deserializeOpModifyHosts) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpModifyInstanceEventStartTime) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpModifyHosts) 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) @@ -31293,9 +32022,9 @@ func (m *awsEc2query_deserializeOpModifyInstanceEventStartTime) HandleDeserializ } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorModifyInstanceEventStartTime(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorModifyHosts(response, &metadata) } - output := &ModifyInstanceEventStartTimeOutput{} + output := &ModifyHostsOutput{} out.Result = output var buff [1024]byte @@ -31316,7 +32045,7 @@ func (m *awsEc2query_deserializeOpModifyInstanceEventStartTime) HandleDeserializ } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentModifyInstanceEventStartTimeOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentModifyHostsOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -31330,7 +32059,7 @@ func (m *awsEc2query_deserializeOpModifyInstanceEventStartTime) HandleDeserializ return out, metadata, err } -func awsEc2query_deserializeOpErrorModifyInstanceEventStartTime(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorModifyHosts(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)} @@ -31363,14 +32092,14 @@ func awsEc2query_deserializeOpErrorModifyInstanceEventStartTime(response *smithy } } -type awsEc2query_deserializeOpModifyInstanceMetadataOptions struct { +type awsEc2query_deserializeOpModifyIdentityIdFormat struct { } -func (*awsEc2query_deserializeOpModifyInstanceMetadataOptions) ID() string { +func (*awsEc2query_deserializeOpModifyIdentityIdFormat) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpModifyInstanceMetadataOptions) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpModifyIdentityIdFormat) 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) @@ -31384,44 +32113,21 @@ func (m *awsEc2query_deserializeOpModifyInstanceMetadataOptions) HandleDeseriali } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorModifyInstanceMetadataOptions(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorModifyIdentityIdFormat(response, &metadata) } - output := &ModifyInstanceMetadataOptionsOutput{} + output := &ModifyIdentityIdFormatOutput{} 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) + if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { 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_deserializeOpDocumentModifyInstanceMetadataOptionsOutput(&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(), + Err: fmt.Errorf("failed to discard response body, %w", err), } - return out, metadata, err } return out, metadata, err } -func awsEc2query_deserializeOpErrorModifyInstanceMetadataOptions(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorModifyIdentityIdFormat(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)} @@ -31454,14 +32160,14 @@ func awsEc2query_deserializeOpErrorModifyInstanceMetadataOptions(response *smith } } -type awsEc2query_deserializeOpModifyInstancePlacement struct { +type awsEc2query_deserializeOpModifyIdFormat struct { } -func (*awsEc2query_deserializeOpModifyInstancePlacement) ID() string { +func (*awsEc2query_deserializeOpModifyIdFormat) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpModifyInstancePlacement) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpModifyIdFormat) 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) @@ -31475,44 +32181,21 @@ func (m *awsEc2query_deserializeOpModifyInstancePlacement) HandleDeserialize(ctx } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorModifyInstancePlacement(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorModifyIdFormat(response, &metadata) } - output := &ModifyInstancePlacementOutput{} + output := &ModifyIdFormatOutput{} 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) + if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { 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_deserializeOpDocumentModifyInstancePlacementOutput(&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(), + Err: fmt.Errorf("failed to discard response body, %w", err), } - return out, metadata, err } return out, metadata, err } -func awsEc2query_deserializeOpErrorModifyInstancePlacement(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorModifyIdFormat(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)} @@ -31545,14 +32228,14 @@ func awsEc2query_deserializeOpErrorModifyInstancePlacement(response *smithyhttp. } } -type awsEc2query_deserializeOpModifyLaunchTemplate struct { +type awsEc2query_deserializeOpModifyImageAttribute struct { } -func (*awsEc2query_deserializeOpModifyLaunchTemplate) ID() string { +func (*awsEc2query_deserializeOpModifyImageAttribute) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpModifyLaunchTemplate) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpModifyImageAttribute) 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) @@ -31566,44 +32249,21 @@ func (m *awsEc2query_deserializeOpModifyLaunchTemplate) HandleDeserialize(ctx co } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorModifyLaunchTemplate(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorModifyImageAttribute(response, &metadata) } - output := &ModifyLaunchTemplateOutput{} + output := &ModifyImageAttributeOutput{} 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) + if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { 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_deserializeOpDocumentModifyLaunchTemplateOutput(&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(), + Err: fmt.Errorf("failed to discard response body, %w", err), } - return out, metadata, err } return out, metadata, err } -func awsEc2query_deserializeOpErrorModifyLaunchTemplate(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorModifyImageAttribute(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)} @@ -31636,14 +32296,14 @@ func awsEc2query_deserializeOpErrorModifyLaunchTemplate(response *smithyhttp.Res } } -type awsEc2query_deserializeOpModifyManagedPrefixList struct { +type awsEc2query_deserializeOpModifyInstanceAttribute struct { } -func (*awsEc2query_deserializeOpModifyManagedPrefixList) ID() string { +func (*awsEc2query_deserializeOpModifyInstanceAttribute) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpModifyManagedPrefixList) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpModifyInstanceAttribute) 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) @@ -31657,44 +32317,21 @@ func (m *awsEc2query_deserializeOpModifyManagedPrefixList) HandleDeserialize(ctx } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorModifyManagedPrefixList(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorModifyInstanceAttribute(response, &metadata) } - output := &ModifyManagedPrefixListOutput{} + output := &ModifyInstanceAttributeOutput{} 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) + if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { 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_deserializeOpDocumentModifyManagedPrefixListOutput(&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(), + Err: fmt.Errorf("failed to discard response body, %w", err), } - return out, metadata, err } return out, metadata, err } -func awsEc2query_deserializeOpErrorModifyManagedPrefixList(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorModifyInstanceAttribute(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)} @@ -31727,14 +32364,14 @@ func awsEc2query_deserializeOpErrorModifyManagedPrefixList(response *smithyhttp. } } -type awsEc2query_deserializeOpModifyNetworkInterfaceAttribute struct { +type awsEc2query_deserializeOpModifyInstanceCapacityReservationAttributes struct { } -func (*awsEc2query_deserializeOpModifyNetworkInterfaceAttribute) ID() string { +func (*awsEc2query_deserializeOpModifyInstanceCapacityReservationAttributes) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpModifyNetworkInterfaceAttribute) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpModifyInstanceCapacityReservationAttributes) 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) @@ -31748,21 +32385,44 @@ func (m *awsEc2query_deserializeOpModifyNetworkInterfaceAttribute) HandleDeseria } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorModifyNetworkInterfaceAttribute(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorModifyInstanceCapacityReservationAttributes(response, &metadata) } - output := &ModifyNetworkInterfaceAttributeOutput{} + output := &ModifyInstanceCapacityReservationAttributesOutput{} 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_deserializeOpDocumentModifyInstanceCapacityReservationAttributesOutput(&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_deserializeOpErrorModifyNetworkInterfaceAttribute(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorModifyInstanceCapacityReservationAttributes(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)} @@ -31795,14 +32455,14 @@ func awsEc2query_deserializeOpErrorModifyNetworkInterfaceAttribute(response *smi } } -type awsEc2query_deserializeOpModifyReservedInstances struct { +type awsEc2query_deserializeOpModifyInstanceCreditSpecification struct { } -func (*awsEc2query_deserializeOpModifyReservedInstances) ID() string { +func (*awsEc2query_deserializeOpModifyInstanceCreditSpecification) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpModifyReservedInstances) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpModifyInstanceCreditSpecification) 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) @@ -31816,9 +32476,9 @@ func (m *awsEc2query_deserializeOpModifyReservedInstances) HandleDeserialize(ctx } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorModifyReservedInstances(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorModifyInstanceCreditSpecification(response, &metadata) } - output := &ModifyReservedInstancesOutput{} + output := &ModifyInstanceCreditSpecificationOutput{} out.Result = output var buff [1024]byte @@ -31839,7 +32499,7 @@ func (m *awsEc2query_deserializeOpModifyReservedInstances) HandleDeserialize(ctx } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentModifyReservedInstancesOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentModifyInstanceCreditSpecificationOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -31853,7 +32513,7 @@ func (m *awsEc2query_deserializeOpModifyReservedInstances) HandleDeserialize(ctx return out, metadata, err } -func awsEc2query_deserializeOpErrorModifyReservedInstances(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorModifyInstanceCreditSpecification(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)} @@ -31886,14 +32546,14 @@ func awsEc2query_deserializeOpErrorModifyReservedInstances(response *smithyhttp. } } -type awsEc2query_deserializeOpModifySnapshotAttribute struct { +type awsEc2query_deserializeOpModifyInstanceEventStartTime struct { } -func (*awsEc2query_deserializeOpModifySnapshotAttribute) ID() string { +func (*awsEc2query_deserializeOpModifyInstanceEventStartTime) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpModifySnapshotAttribute) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpModifyInstanceEventStartTime) 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) @@ -31907,21 +32567,44 @@ func (m *awsEc2query_deserializeOpModifySnapshotAttribute) HandleDeserialize(ctx } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorModifySnapshotAttribute(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorModifyInstanceEventStartTime(response, &metadata) } - output := &ModifySnapshotAttributeOutput{} + output := &ModifyInstanceEventStartTimeOutput{} 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_deserializeOpDocumentModifyInstanceEventStartTimeOutput(&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_deserializeOpErrorModifySnapshotAttribute(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorModifyInstanceEventStartTime(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)} @@ -31954,14 +32637,14 @@ func awsEc2query_deserializeOpErrorModifySnapshotAttribute(response *smithyhttp. } } -type awsEc2query_deserializeOpModifySpotFleetRequest struct { +type awsEc2query_deserializeOpModifyInstanceMetadataOptions struct { } -func (*awsEc2query_deserializeOpModifySpotFleetRequest) ID() string { +func (*awsEc2query_deserializeOpModifyInstanceMetadataOptions) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpModifySpotFleetRequest) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpModifyInstanceMetadataOptions) 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) @@ -31975,9 +32658,9 @@ func (m *awsEc2query_deserializeOpModifySpotFleetRequest) HandleDeserialize(ctx } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorModifySpotFleetRequest(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorModifyInstanceMetadataOptions(response, &metadata) } - output := &ModifySpotFleetRequestOutput{} + output := &ModifyInstanceMetadataOptionsOutput{} out.Result = output var buff [1024]byte @@ -31998,7 +32681,7 @@ func (m *awsEc2query_deserializeOpModifySpotFleetRequest) HandleDeserialize(ctx } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentModifySpotFleetRequestOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentModifyInstanceMetadataOptionsOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -32012,7 +32695,7 @@ func (m *awsEc2query_deserializeOpModifySpotFleetRequest) HandleDeserialize(ctx return out, metadata, err } -func awsEc2query_deserializeOpErrorModifySpotFleetRequest(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorModifyInstanceMetadataOptions(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)} @@ -32045,82 +32728,14 @@ func awsEc2query_deserializeOpErrorModifySpotFleetRequest(response *smithyhttp.R } } -type awsEc2query_deserializeOpModifySubnetAttribute struct { -} - -func (*awsEc2query_deserializeOpModifySubnetAttribute) ID() string { - return "OperationDeserializer" -} - -func (m *awsEc2query_deserializeOpModifySubnetAttribute) 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 - } - - 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_deserializeOpErrorModifySubnetAttribute(response, &metadata) - } - output := &ModifySubnetAttributeOutput{} - 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_deserializeOpErrorModifySubnetAttribute(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_deserializeOpModifyTrafficMirrorFilterNetworkServices struct { +type awsEc2query_deserializeOpModifyInstancePlacement struct { } -func (*awsEc2query_deserializeOpModifyTrafficMirrorFilterNetworkServices) ID() string { +func (*awsEc2query_deserializeOpModifyInstancePlacement) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpModifyTrafficMirrorFilterNetworkServices) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpModifyInstancePlacement) 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) @@ -32134,9 +32749,9 @@ func (m *awsEc2query_deserializeOpModifyTrafficMirrorFilterNetworkServices) Hand } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorModifyTrafficMirrorFilterNetworkServices(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorModifyInstancePlacement(response, &metadata) } - output := &ModifyTrafficMirrorFilterNetworkServicesOutput{} + output := &ModifyInstancePlacementOutput{} out.Result = output var buff [1024]byte @@ -32157,7 +32772,7 @@ func (m *awsEc2query_deserializeOpModifyTrafficMirrorFilterNetworkServices) Hand } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentModifyTrafficMirrorFilterNetworkServicesOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentModifyInstancePlacementOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -32171,7 +32786,7 @@ func (m *awsEc2query_deserializeOpModifyTrafficMirrorFilterNetworkServices) Hand return out, metadata, err } -func awsEc2query_deserializeOpErrorModifyTrafficMirrorFilterNetworkServices(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorModifyInstancePlacement(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)} @@ -32204,14 +32819,14 @@ func awsEc2query_deserializeOpErrorModifyTrafficMirrorFilterNetworkServices(resp } } -type awsEc2query_deserializeOpModifyTrafficMirrorFilterRule struct { +type awsEc2query_deserializeOpModifyLaunchTemplate struct { } -func (*awsEc2query_deserializeOpModifyTrafficMirrorFilterRule) ID() string { +func (*awsEc2query_deserializeOpModifyLaunchTemplate) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpModifyTrafficMirrorFilterRule) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpModifyLaunchTemplate) 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) @@ -32225,9 +32840,9 @@ func (m *awsEc2query_deserializeOpModifyTrafficMirrorFilterRule) HandleDeseriali } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorModifyTrafficMirrorFilterRule(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorModifyLaunchTemplate(response, &metadata) } - output := &ModifyTrafficMirrorFilterRuleOutput{} + output := &ModifyLaunchTemplateOutput{} out.Result = output var buff [1024]byte @@ -32248,7 +32863,7 @@ func (m *awsEc2query_deserializeOpModifyTrafficMirrorFilterRule) HandleDeseriali } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentModifyTrafficMirrorFilterRuleOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentModifyLaunchTemplateOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -32262,7 +32877,7 @@ func (m *awsEc2query_deserializeOpModifyTrafficMirrorFilterRule) HandleDeseriali return out, metadata, err } -func awsEc2query_deserializeOpErrorModifyTrafficMirrorFilterRule(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorModifyLaunchTemplate(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)} @@ -32295,14 +32910,14 @@ func awsEc2query_deserializeOpErrorModifyTrafficMirrorFilterRule(response *smith } } -type awsEc2query_deserializeOpModifyTrafficMirrorSession struct { +type awsEc2query_deserializeOpModifyManagedPrefixList struct { } -func (*awsEc2query_deserializeOpModifyTrafficMirrorSession) ID() string { +func (*awsEc2query_deserializeOpModifyManagedPrefixList) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpModifyTrafficMirrorSession) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpModifyManagedPrefixList) 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) @@ -32316,9 +32931,9 @@ func (m *awsEc2query_deserializeOpModifyTrafficMirrorSession) HandleDeserialize( } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorModifyTrafficMirrorSession(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorModifyManagedPrefixList(response, &metadata) } - output := &ModifyTrafficMirrorSessionOutput{} + output := &ModifyManagedPrefixListOutput{} out.Result = output var buff [1024]byte @@ -32339,7 +32954,7 @@ func (m *awsEc2query_deserializeOpModifyTrafficMirrorSession) HandleDeserialize( } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentModifyTrafficMirrorSessionOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentModifyManagedPrefixListOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -32353,7 +32968,7 @@ func (m *awsEc2query_deserializeOpModifyTrafficMirrorSession) HandleDeserialize( return out, metadata, err } -func awsEc2query_deserializeOpErrorModifyTrafficMirrorSession(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorModifyManagedPrefixList(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)} @@ -32386,14 +33001,14 @@ func awsEc2query_deserializeOpErrorModifyTrafficMirrorSession(response *smithyht } } -type awsEc2query_deserializeOpModifyTransitGateway struct { +type awsEc2query_deserializeOpModifyNetworkInterfaceAttribute struct { } -func (*awsEc2query_deserializeOpModifyTransitGateway) ID() string { +func (*awsEc2query_deserializeOpModifyNetworkInterfaceAttribute) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpModifyTransitGateway) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpModifyNetworkInterfaceAttribute) 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) @@ -32407,44 +33022,21 @@ func (m *awsEc2query_deserializeOpModifyTransitGateway) HandleDeserialize(ctx co } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorModifyTransitGateway(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorModifyNetworkInterfaceAttribute(response, &metadata) } - output := &ModifyTransitGatewayOutput{} + output := &ModifyNetworkInterfaceAttributeOutput{} 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) + if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { 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_deserializeOpDocumentModifyTransitGatewayOutput(&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(), + Err: fmt.Errorf("failed to discard response body, %w", err), } - return out, metadata, err } return out, metadata, err } -func awsEc2query_deserializeOpErrorModifyTransitGateway(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorModifyNetworkInterfaceAttribute(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)} @@ -32477,14 +33069,14 @@ func awsEc2query_deserializeOpErrorModifyTransitGateway(response *smithyhttp.Res } } -type awsEc2query_deserializeOpModifyTransitGatewayPrefixListReference struct { +type awsEc2query_deserializeOpModifyReservedInstances struct { } -func (*awsEc2query_deserializeOpModifyTransitGatewayPrefixListReference) ID() string { +func (*awsEc2query_deserializeOpModifyReservedInstances) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpModifyTransitGatewayPrefixListReference) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpModifyReservedInstances) 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) @@ -32498,9 +33090,9 @@ func (m *awsEc2query_deserializeOpModifyTransitGatewayPrefixListReference) Handl } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorModifyTransitGatewayPrefixListReference(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorModifyReservedInstances(response, &metadata) } - output := &ModifyTransitGatewayPrefixListReferenceOutput{} + output := &ModifyReservedInstancesOutput{} out.Result = output var buff [1024]byte @@ -32521,7 +33113,7 @@ func (m *awsEc2query_deserializeOpModifyTransitGatewayPrefixListReference) Handl } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentModifyTransitGatewayPrefixListReferenceOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentModifyReservedInstancesOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -32535,7 +33127,7 @@ func (m *awsEc2query_deserializeOpModifyTransitGatewayPrefixListReference) Handl return out, metadata, err } -func awsEc2query_deserializeOpErrorModifyTransitGatewayPrefixListReference(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorModifyReservedInstances(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)} @@ -32568,14 +33160,14 @@ func awsEc2query_deserializeOpErrorModifyTransitGatewayPrefixListReference(respo } } -type awsEc2query_deserializeOpModifyTransitGatewayVpcAttachment struct { +type awsEc2query_deserializeOpModifySnapshotAttribute struct { } -func (*awsEc2query_deserializeOpModifyTransitGatewayVpcAttachment) ID() string { +func (*awsEc2query_deserializeOpModifySnapshotAttribute) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpModifyTransitGatewayVpcAttachment) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpModifySnapshotAttribute) 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) @@ -32589,44 +33181,21 @@ func (m *awsEc2query_deserializeOpModifyTransitGatewayVpcAttachment) HandleDeser } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorModifyTransitGatewayVpcAttachment(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorModifySnapshotAttribute(response, &metadata) } - output := &ModifyTransitGatewayVpcAttachmentOutput{} + output := &ModifySnapshotAttributeOutput{} 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) + if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { 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_deserializeOpDocumentModifyTransitGatewayVpcAttachmentOutput(&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(), + Err: fmt.Errorf("failed to discard response body, %w", err), } - return out, metadata, err } return out, metadata, err } -func awsEc2query_deserializeOpErrorModifyTransitGatewayVpcAttachment(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorModifySnapshotAttribute(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)} @@ -32659,14 +33228,14 @@ func awsEc2query_deserializeOpErrorModifyTransitGatewayVpcAttachment(response *s } } -type awsEc2query_deserializeOpModifyVolume struct { +type awsEc2query_deserializeOpModifySpotFleetRequest struct { } -func (*awsEc2query_deserializeOpModifyVolume) ID() string { +func (*awsEc2query_deserializeOpModifySpotFleetRequest) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpModifyVolume) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpModifySpotFleetRequest) 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) @@ -32680,9 +33249,9 @@ func (m *awsEc2query_deserializeOpModifyVolume) HandleDeserialize(ctx context.Co } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorModifyVolume(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorModifySpotFleetRequest(response, &metadata) } - output := &ModifyVolumeOutput{} + output := &ModifySpotFleetRequestOutput{} out.Result = output var buff [1024]byte @@ -32703,7 +33272,7 @@ func (m *awsEc2query_deserializeOpModifyVolume) HandleDeserialize(ctx context.Co } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentModifyVolumeOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentModifySpotFleetRequestOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -32717,7 +33286,7 @@ func (m *awsEc2query_deserializeOpModifyVolume) HandleDeserialize(ctx context.Co return out, metadata, err } -func awsEc2query_deserializeOpErrorModifyVolume(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorModifySpotFleetRequest(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)} @@ -32750,14 +33319,14 @@ func awsEc2query_deserializeOpErrorModifyVolume(response *smithyhttp.Response, m } } -type awsEc2query_deserializeOpModifyVolumeAttribute struct { +type awsEc2query_deserializeOpModifySubnetAttribute struct { } -func (*awsEc2query_deserializeOpModifyVolumeAttribute) ID() string { +func (*awsEc2query_deserializeOpModifySubnetAttribute) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpModifyVolumeAttribute) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpModifySubnetAttribute) 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) @@ -32771,9 +33340,9 @@ func (m *awsEc2query_deserializeOpModifyVolumeAttribute) HandleDeserialize(ctx c } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorModifyVolumeAttribute(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorModifySubnetAttribute(response, &metadata) } - output := &ModifyVolumeAttributeOutput{} + output := &ModifySubnetAttributeOutput{} out.Result = output if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { @@ -32785,7 +33354,7 @@ func (m *awsEc2query_deserializeOpModifyVolumeAttribute) HandleDeserialize(ctx c return out, metadata, err } -func awsEc2query_deserializeOpErrorModifyVolumeAttribute(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorModifySubnetAttribute(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)} @@ -32818,14 +33387,14 @@ func awsEc2query_deserializeOpErrorModifyVolumeAttribute(response *smithyhttp.Re } } -type awsEc2query_deserializeOpModifyVpcAttribute struct { +type awsEc2query_deserializeOpModifyTrafficMirrorFilterNetworkServices struct { } -func (*awsEc2query_deserializeOpModifyVpcAttribute) ID() string { +func (*awsEc2query_deserializeOpModifyTrafficMirrorFilterNetworkServices) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpModifyVpcAttribute) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpModifyTrafficMirrorFilterNetworkServices) 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) @@ -32839,21 +33408,44 @@ func (m *awsEc2query_deserializeOpModifyVpcAttribute) HandleDeserialize(ctx cont } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorModifyVpcAttribute(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorModifyTrafficMirrorFilterNetworkServices(response, &metadata) } - output := &ModifyVpcAttributeOutput{} + output := &ModifyTrafficMirrorFilterNetworkServicesOutput{} 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_deserializeOpDocumentModifyTrafficMirrorFilterNetworkServicesOutput(&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_deserializeOpErrorModifyVpcAttribute(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorModifyTrafficMirrorFilterNetworkServices(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)} @@ -32886,14 +33478,14 @@ func awsEc2query_deserializeOpErrorModifyVpcAttribute(response *smithyhttp.Respo } } -type awsEc2query_deserializeOpModifyVpcEndpoint struct { +type awsEc2query_deserializeOpModifyTrafficMirrorFilterRule struct { } -func (*awsEc2query_deserializeOpModifyVpcEndpoint) ID() string { +func (*awsEc2query_deserializeOpModifyTrafficMirrorFilterRule) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpModifyVpcEndpoint) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpModifyTrafficMirrorFilterRule) 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) @@ -32907,9 +33499,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_deserializeOpErrorModifyTrafficMirrorFilterRule(response, &metadata) } - output := &ModifyVpcEndpointOutput{} + output := &ModifyTrafficMirrorFilterRuleOutput{} out.Result = output var buff [1024]byte @@ -32930,7 +33522,7 @@ func (m *awsEc2query_deserializeOpModifyVpcEndpoint) HandleDeserialize(ctx conte } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentModifyVpcEndpointOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentModifyTrafficMirrorFilterRuleOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -32944,7 +33536,7 @@ func (m *awsEc2query_deserializeOpModifyVpcEndpoint) HandleDeserialize(ctx conte return out, metadata, err } -func awsEc2query_deserializeOpErrorModifyVpcEndpoint(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorModifyTrafficMirrorFilterRule(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)} @@ -32977,14 +33569,14 @@ func awsEc2query_deserializeOpErrorModifyVpcEndpoint(response *smithyhttp.Respon } } -type awsEc2query_deserializeOpModifyVpcEndpointConnectionNotification struct { +type awsEc2query_deserializeOpModifyTrafficMirrorSession struct { } -func (*awsEc2query_deserializeOpModifyVpcEndpointConnectionNotification) ID() string { +func (*awsEc2query_deserializeOpModifyTrafficMirrorSession) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpModifyVpcEndpointConnectionNotification) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpModifyTrafficMirrorSession) 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) @@ -32998,9 +33590,9 @@ func (m *awsEc2query_deserializeOpModifyVpcEndpointConnectionNotification) Handl } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorModifyVpcEndpointConnectionNotification(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorModifyTrafficMirrorSession(response, &metadata) } - output := &ModifyVpcEndpointConnectionNotificationOutput{} + output := &ModifyTrafficMirrorSessionOutput{} out.Result = output var buff [1024]byte @@ -33021,7 +33613,7 @@ func (m *awsEc2query_deserializeOpModifyVpcEndpointConnectionNotification) Handl } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentModifyVpcEndpointConnectionNotificationOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentModifyTrafficMirrorSessionOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -33035,7 +33627,7 @@ func (m *awsEc2query_deserializeOpModifyVpcEndpointConnectionNotification) Handl return out, metadata, err } -func awsEc2query_deserializeOpErrorModifyVpcEndpointConnectionNotification(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorModifyTrafficMirrorSession(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)} @@ -33068,14 +33660,14 @@ func awsEc2query_deserializeOpErrorModifyVpcEndpointConnectionNotification(respo } } -type awsEc2query_deserializeOpModifyVpcEndpointServiceConfiguration struct { +type awsEc2query_deserializeOpModifyTransitGateway struct { } -func (*awsEc2query_deserializeOpModifyVpcEndpointServiceConfiguration) ID() string { +func (*awsEc2query_deserializeOpModifyTransitGateway) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpModifyVpcEndpointServiceConfiguration) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpModifyTransitGateway) 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) @@ -33089,9 +33681,9 @@ func (m *awsEc2query_deserializeOpModifyVpcEndpointServiceConfiguration) HandleD } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorModifyVpcEndpointServiceConfiguration(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorModifyTransitGateway(response, &metadata) } - output := &ModifyVpcEndpointServiceConfigurationOutput{} + output := &ModifyTransitGatewayOutput{} out.Result = output var buff [1024]byte @@ -33112,7 +33704,7 @@ func (m *awsEc2query_deserializeOpModifyVpcEndpointServiceConfiguration) HandleD } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentModifyVpcEndpointServiceConfigurationOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentModifyTransitGatewayOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -33126,7 +33718,7 @@ func (m *awsEc2query_deserializeOpModifyVpcEndpointServiceConfiguration) HandleD return out, metadata, err } -func awsEc2query_deserializeOpErrorModifyVpcEndpointServiceConfiguration(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorModifyTransitGateway(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)} @@ -33159,14 +33751,14 @@ func awsEc2query_deserializeOpErrorModifyVpcEndpointServiceConfiguration(respons } } -type awsEc2query_deserializeOpModifyVpcEndpointServicePermissions struct { +type awsEc2query_deserializeOpModifyTransitGatewayPrefixListReference struct { } -func (*awsEc2query_deserializeOpModifyVpcEndpointServicePermissions) ID() string { +func (*awsEc2query_deserializeOpModifyTransitGatewayPrefixListReference) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpModifyVpcEndpointServicePermissions) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpModifyTransitGatewayPrefixListReference) 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) @@ -33180,9 +33772,9 @@ func (m *awsEc2query_deserializeOpModifyVpcEndpointServicePermissions) HandleDes } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorModifyVpcEndpointServicePermissions(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorModifyTransitGatewayPrefixListReference(response, &metadata) } - output := &ModifyVpcEndpointServicePermissionsOutput{} + output := &ModifyTransitGatewayPrefixListReferenceOutput{} out.Result = output var buff [1024]byte @@ -33203,7 +33795,7 @@ func (m *awsEc2query_deserializeOpModifyVpcEndpointServicePermissions) HandleDes } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentModifyVpcEndpointServicePermissionsOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentModifyTransitGatewayPrefixListReferenceOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -33217,7 +33809,7 @@ func (m *awsEc2query_deserializeOpModifyVpcEndpointServicePermissions) HandleDes return out, metadata, err } -func awsEc2query_deserializeOpErrorModifyVpcEndpointServicePermissions(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorModifyTransitGatewayPrefixListReference(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)} @@ -33250,14 +33842,14 @@ func awsEc2query_deserializeOpErrorModifyVpcEndpointServicePermissions(response } } -type awsEc2query_deserializeOpModifyVpcPeeringConnectionOptions struct { +type awsEc2query_deserializeOpModifyTransitGatewayVpcAttachment struct { } -func (*awsEc2query_deserializeOpModifyVpcPeeringConnectionOptions) ID() string { +func (*awsEc2query_deserializeOpModifyTransitGatewayVpcAttachment) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpModifyVpcPeeringConnectionOptions) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpModifyTransitGatewayVpcAttachment) 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) @@ -33271,9 +33863,9 @@ func (m *awsEc2query_deserializeOpModifyVpcPeeringConnectionOptions) HandleDeser } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorModifyVpcPeeringConnectionOptions(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorModifyTransitGatewayVpcAttachment(response, &metadata) } - output := &ModifyVpcPeeringConnectionOptionsOutput{} + output := &ModifyTransitGatewayVpcAttachmentOutput{} out.Result = output var buff [1024]byte @@ -33294,7 +33886,7 @@ func (m *awsEc2query_deserializeOpModifyVpcPeeringConnectionOptions) HandleDeser } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentModifyVpcPeeringConnectionOptionsOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentModifyTransitGatewayVpcAttachmentOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -33308,7 +33900,7 @@ func (m *awsEc2query_deserializeOpModifyVpcPeeringConnectionOptions) HandleDeser return out, metadata, err } -func awsEc2query_deserializeOpErrorModifyVpcPeeringConnectionOptions(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorModifyTransitGatewayVpcAttachment(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)} @@ -33341,14 +33933,14 @@ func awsEc2query_deserializeOpErrorModifyVpcPeeringConnectionOptions(response *s } } -type awsEc2query_deserializeOpModifyVpcTenancy struct { +type awsEc2query_deserializeOpModifyVolume struct { } -func (*awsEc2query_deserializeOpModifyVpcTenancy) ID() string { +func (*awsEc2query_deserializeOpModifyVolume) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpModifyVpcTenancy) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpModifyVolume) 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) @@ -33362,9 +33954,9 @@ func (m *awsEc2query_deserializeOpModifyVpcTenancy) HandleDeserialize(ctx contex } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorModifyVpcTenancy(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorModifyVolume(response, &metadata) } - output := &ModifyVpcTenancyOutput{} + output := &ModifyVolumeOutput{} out.Result = output var buff [1024]byte @@ -33385,7 +33977,7 @@ func (m *awsEc2query_deserializeOpModifyVpcTenancy) HandleDeserialize(ctx contex } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentModifyVpcTenancyOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentModifyVolumeOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -33399,7 +33991,7 @@ func (m *awsEc2query_deserializeOpModifyVpcTenancy) HandleDeserialize(ctx contex return out, metadata, err } -func awsEc2query_deserializeOpErrorModifyVpcTenancy(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorModifyVolume(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)} @@ -33432,14 +34024,14 @@ func awsEc2query_deserializeOpErrorModifyVpcTenancy(response *smithyhttp.Respons } } -type awsEc2query_deserializeOpModifyVpnConnection struct { +type awsEc2query_deserializeOpModifyVolumeAttribute struct { } -func (*awsEc2query_deserializeOpModifyVpnConnection) ID() string { +func (*awsEc2query_deserializeOpModifyVolumeAttribute) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpModifyVpnConnection) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpModifyVolumeAttribute) 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) @@ -33453,44 +34045,21 @@ func (m *awsEc2query_deserializeOpModifyVpnConnection) HandleDeserialize(ctx con } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorModifyVpnConnection(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorModifyVolumeAttribute(response, &metadata) } - output := &ModifyVpnConnectionOutput{} + output := &ModifyVolumeAttributeOutput{} 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) + if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { 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_deserializeOpDocumentModifyVpnConnectionOutput(&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(), + Err: fmt.Errorf("failed to discard response body, %w", err), } - return out, metadata, err } return out, metadata, err } -func awsEc2query_deserializeOpErrorModifyVpnConnection(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorModifyVolumeAttribute(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)} @@ -33523,14 +34092,14 @@ func awsEc2query_deserializeOpErrorModifyVpnConnection(response *smithyhttp.Resp } } -type awsEc2query_deserializeOpModifyVpnConnectionOptions struct { +type awsEc2query_deserializeOpModifyVpcAttribute struct { } -func (*awsEc2query_deserializeOpModifyVpnConnectionOptions) ID() string { +func (*awsEc2query_deserializeOpModifyVpcAttribute) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpModifyVpnConnectionOptions) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpModifyVpcAttribute) 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) @@ -33544,44 +34113,21 @@ func (m *awsEc2query_deserializeOpModifyVpnConnectionOptions) HandleDeserialize( } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorModifyVpnConnectionOptions(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorModifyVpcAttribute(response, &metadata) } - output := &ModifyVpnConnectionOptionsOutput{} + output := &ModifyVpcAttributeOutput{} 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) + if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { 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_deserializeOpDocumentModifyVpnConnectionOptionsOutput(&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(), + Err: fmt.Errorf("failed to discard response body, %w", err), } - return out, metadata, err } return out, metadata, err } -func awsEc2query_deserializeOpErrorModifyVpnConnectionOptions(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorModifyVpcAttribute(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)} @@ -33614,14 +34160,14 @@ func awsEc2query_deserializeOpErrorModifyVpnConnectionOptions(response *smithyht } } -type awsEc2query_deserializeOpModifyVpnTunnelCertificate struct { +type awsEc2query_deserializeOpModifyVpcEndpoint struct { } -func (*awsEc2query_deserializeOpModifyVpnTunnelCertificate) ID() string { +func (*awsEc2query_deserializeOpModifyVpcEndpoint) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpModifyVpnTunnelCertificate) 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) @@ -33635,9 +34181,9 @@ func (m *awsEc2query_deserializeOpModifyVpnTunnelCertificate) HandleDeserialize( } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorModifyVpnTunnelCertificate(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorModifyVpcEndpoint(response, &metadata) } - output := &ModifyVpnTunnelCertificateOutput{} + output := &ModifyVpcEndpointOutput{} out.Result = output var buff [1024]byte @@ -33658,7 +34204,7 @@ func (m *awsEc2query_deserializeOpModifyVpnTunnelCertificate) HandleDeserialize( } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentModifyVpnTunnelCertificateOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentModifyVpcEndpointOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -33672,7 +34218,7 @@ func (m *awsEc2query_deserializeOpModifyVpnTunnelCertificate) HandleDeserialize( return out, metadata, err } -func awsEc2query_deserializeOpErrorModifyVpnTunnelCertificate(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)} @@ -33705,14 +34251,14 @@ func awsEc2query_deserializeOpErrorModifyVpnTunnelCertificate(response *smithyht } } -type awsEc2query_deserializeOpModifyVpnTunnelOptions struct { +type awsEc2query_deserializeOpModifyVpcEndpointConnectionNotification struct { } -func (*awsEc2query_deserializeOpModifyVpnTunnelOptions) ID() string { +func (*awsEc2query_deserializeOpModifyVpcEndpointConnectionNotification) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpModifyVpnTunnelOptions) 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) @@ -33726,9 +34272,9 @@ func (m *awsEc2query_deserializeOpModifyVpnTunnelOptions) HandleDeserialize(ctx } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorModifyVpnTunnelOptions(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorModifyVpcEndpointConnectionNotification(response, &metadata) } - output := &ModifyVpnTunnelOptionsOutput{} + output := &ModifyVpcEndpointConnectionNotificationOutput{} out.Result = output var buff [1024]byte @@ -33749,7 +34295,7 @@ func (m *awsEc2query_deserializeOpModifyVpnTunnelOptions) HandleDeserialize(ctx } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentModifyVpnTunnelOptionsOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentModifyVpcEndpointConnectionNotificationOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -33763,7 +34309,7 @@ func (m *awsEc2query_deserializeOpModifyVpnTunnelOptions) HandleDeserialize(ctx return out, metadata, err } -func awsEc2query_deserializeOpErrorModifyVpnTunnelOptions(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)} @@ -33796,14 +34342,14 @@ func awsEc2query_deserializeOpErrorModifyVpnTunnelOptions(response *smithyhttp.R } } -type awsEc2query_deserializeOpMonitorInstances struct { +type awsEc2query_deserializeOpModifyVpcEndpointServiceConfiguration struct { } -func (*awsEc2query_deserializeOpMonitorInstances) ID() string { +func (*awsEc2query_deserializeOpModifyVpcEndpointServiceConfiguration) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpMonitorInstances) 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) @@ -33817,9 +34363,9 @@ func (m *awsEc2query_deserializeOpMonitorInstances) HandleDeserialize(ctx contex } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorMonitorInstances(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorModifyVpcEndpointServiceConfiguration(response, &metadata) } - output := &MonitorInstancesOutput{} + output := &ModifyVpcEndpointServiceConfigurationOutput{} out.Result = output var buff [1024]byte @@ -33840,7 +34386,7 @@ func (m *awsEc2query_deserializeOpMonitorInstances) HandleDeserialize(ctx contex } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentMonitorInstancesOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentModifyVpcEndpointServiceConfigurationOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -33854,7 +34400,7 @@ func (m *awsEc2query_deserializeOpMonitorInstances) HandleDeserialize(ctx contex return out, metadata, err } -func awsEc2query_deserializeOpErrorMonitorInstances(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)} @@ -33887,14 +34433,14 @@ func awsEc2query_deserializeOpErrorMonitorInstances(response *smithyhttp.Respons } } -type awsEc2query_deserializeOpMoveAddressToVpc struct { +type awsEc2query_deserializeOpModifyVpcEndpointServicePermissions struct { } -func (*awsEc2query_deserializeOpMoveAddressToVpc) ID() string { +func (*awsEc2query_deserializeOpModifyVpcEndpointServicePermissions) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpMoveAddressToVpc) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +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) @@ -33908,9 +34454,9 @@ func (m *awsEc2query_deserializeOpMoveAddressToVpc) HandleDeserialize(ctx contex } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorMoveAddressToVpc(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorModifyVpcEndpointServicePermissions(response, &metadata) } - output := &MoveAddressToVpcOutput{} + output := &ModifyVpcEndpointServicePermissionsOutput{} out.Result = output var buff [1024]byte @@ -33931,7 +34477,7 @@ func (m *awsEc2query_deserializeOpMoveAddressToVpc) HandleDeserialize(ctx contex } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentMoveAddressToVpcOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentModifyVpcEndpointServicePermissionsOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -33945,7 +34491,7 @@ func (m *awsEc2query_deserializeOpMoveAddressToVpc) HandleDeserialize(ctx contex return out, metadata, err } -func awsEc2query_deserializeOpErrorMoveAddressToVpc(response *smithyhttp.Response, metadata *middleware.Metadata) error { +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)} @@ -33978,14 +34524,14 @@ func awsEc2query_deserializeOpErrorMoveAddressToVpc(response *smithyhttp.Respons } } -type awsEc2query_deserializeOpProvisionByoipCidr struct { +type awsEc2query_deserializeOpModifyVpcPeeringConnectionOptions struct { } -func (*awsEc2query_deserializeOpProvisionByoipCidr) ID() string { +func (*awsEc2query_deserializeOpModifyVpcPeeringConnectionOptions) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpProvisionByoipCidr) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +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) @@ -33999,9 +34545,9 @@ func (m *awsEc2query_deserializeOpProvisionByoipCidr) HandleDeserialize(ctx cont } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorProvisionByoipCidr(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorModifyVpcPeeringConnectionOptions(response, &metadata) } - output := &ProvisionByoipCidrOutput{} + output := &ModifyVpcPeeringConnectionOptionsOutput{} out.Result = output var buff [1024]byte @@ -34022,7 +34568,7 @@ func (m *awsEc2query_deserializeOpProvisionByoipCidr) HandleDeserialize(ctx cont } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentProvisionByoipCidrOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentModifyVpcPeeringConnectionOptionsOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -34036,7 +34582,7 @@ func (m *awsEc2query_deserializeOpProvisionByoipCidr) HandleDeserialize(ctx cont return out, metadata, err } -func awsEc2query_deserializeOpErrorProvisionByoipCidr(response *smithyhttp.Response, metadata *middleware.Metadata) error { +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)} @@ -34069,14 +34615,14 @@ func awsEc2query_deserializeOpErrorProvisionByoipCidr(response *smithyhttp.Respo } } -type awsEc2query_deserializeOpPurchaseHostReservation struct { +type awsEc2query_deserializeOpModifyVpcTenancy struct { } -func (*awsEc2query_deserializeOpPurchaseHostReservation) ID() string { +func (*awsEc2query_deserializeOpModifyVpcTenancy) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpPurchaseHostReservation) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpModifyVpcTenancy) 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) @@ -34090,9 +34636,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_deserializeOpErrorModifyVpcTenancy(response, &metadata) } - output := &PurchaseHostReservationOutput{} + output := &ModifyVpcTenancyOutput{} out.Result = output var buff [1024]byte @@ -34113,7 +34659,7 @@ func (m *awsEc2query_deserializeOpPurchaseHostReservation) HandleDeserialize(ctx } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentPurchaseHostReservationOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentModifyVpcTenancyOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -34127,7 +34673,7 @@ func (m *awsEc2query_deserializeOpPurchaseHostReservation) HandleDeserialize(ctx return out, metadata, err } -func awsEc2query_deserializeOpErrorPurchaseHostReservation(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorModifyVpcTenancy(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)} @@ -34160,14 +34706,14 @@ func awsEc2query_deserializeOpErrorPurchaseHostReservation(response *smithyhttp. } } -type awsEc2query_deserializeOpPurchaseReservedInstancesOffering struct { +type awsEc2query_deserializeOpModifyVpnConnection struct { } -func (*awsEc2query_deserializeOpPurchaseReservedInstancesOffering) ID() string { +func (*awsEc2query_deserializeOpModifyVpnConnection) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpPurchaseReservedInstancesOffering) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpModifyVpnConnection) 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) @@ -34181,9 +34727,9 @@ func (m *awsEc2query_deserializeOpPurchaseReservedInstancesOffering) HandleDeser } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorPurchaseReservedInstancesOffering(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorModifyVpnConnection(response, &metadata) } - output := &PurchaseReservedInstancesOfferingOutput{} + output := &ModifyVpnConnectionOutput{} out.Result = output var buff [1024]byte @@ -34204,7 +34750,7 @@ func (m *awsEc2query_deserializeOpPurchaseReservedInstancesOffering) HandleDeser } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentPurchaseReservedInstancesOfferingOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentModifyVpnConnectionOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -34218,7 +34764,7 @@ func (m *awsEc2query_deserializeOpPurchaseReservedInstancesOffering) HandleDeser return out, metadata, err } -func awsEc2query_deserializeOpErrorPurchaseReservedInstancesOffering(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorModifyVpnConnection(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)} @@ -34251,14 +34797,14 @@ func awsEc2query_deserializeOpErrorPurchaseReservedInstancesOffering(response *s } } -type awsEc2query_deserializeOpPurchaseScheduledInstances struct { +type awsEc2query_deserializeOpModifyVpnConnectionOptions struct { } -func (*awsEc2query_deserializeOpPurchaseScheduledInstances) ID() string { +func (*awsEc2query_deserializeOpModifyVpnConnectionOptions) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpPurchaseScheduledInstances) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpModifyVpnConnectionOptions) 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) @@ -34272,9 +34818,9 @@ func (m *awsEc2query_deserializeOpPurchaseScheduledInstances) HandleDeserialize( } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorPurchaseScheduledInstances(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorModifyVpnConnectionOptions(response, &metadata) } - output := &PurchaseScheduledInstancesOutput{} + output := &ModifyVpnConnectionOptionsOutput{} out.Result = output var buff [1024]byte @@ -34295,7 +34841,7 @@ func (m *awsEc2query_deserializeOpPurchaseScheduledInstances) HandleDeserialize( } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentPurchaseScheduledInstancesOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentModifyVpnConnectionOptionsOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -34309,7 +34855,7 @@ func (m *awsEc2query_deserializeOpPurchaseScheduledInstances) HandleDeserialize( return out, metadata, err } -func awsEc2query_deserializeOpErrorPurchaseScheduledInstances(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorModifyVpnConnectionOptions(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)} @@ -34342,14 +34888,14 @@ func awsEc2query_deserializeOpErrorPurchaseScheduledInstances(response *smithyht } } -type awsEc2query_deserializeOpRebootInstances struct { +type awsEc2query_deserializeOpModifyVpnTunnelCertificate struct { } -func (*awsEc2query_deserializeOpRebootInstances) ID() string { +func (*awsEc2query_deserializeOpModifyVpnTunnelCertificate) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpRebootInstances) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpModifyVpnTunnelCertificate) 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) @@ -34363,21 +34909,44 @@ 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_deserializeOpErrorModifyVpnTunnelCertificate(response, &metadata) } - output := &RebootInstancesOutput{} + output := &ModifyVpnTunnelCertificateOutput{} 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_deserializeOpDocumentModifyVpnTunnelCertificateOutput(&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_deserializeOpErrorModifyVpnTunnelCertificate(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)} @@ -34410,14 +34979,14 @@ func awsEc2query_deserializeOpErrorRebootInstances(response *smithyhttp.Response } } -type awsEc2query_deserializeOpRegisterImage struct { +type awsEc2query_deserializeOpModifyVpnTunnelOptions struct { } -func (*awsEc2query_deserializeOpRegisterImage) ID() string { +func (*awsEc2query_deserializeOpModifyVpnTunnelOptions) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpRegisterImage) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpModifyVpnTunnelOptions) 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) @@ -34431,9 +35000,9 @@ func (m *awsEc2query_deserializeOpRegisterImage) HandleDeserialize(ctx context.C } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorRegisterImage(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorModifyVpnTunnelOptions(response, &metadata) } - output := &RegisterImageOutput{} + output := &ModifyVpnTunnelOptionsOutput{} out.Result = output var buff [1024]byte @@ -34454,7 +35023,7 @@ func (m *awsEc2query_deserializeOpRegisterImage) HandleDeserialize(ctx context.C } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentRegisterImageOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentModifyVpnTunnelOptionsOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -34468,7 +35037,7 @@ func (m *awsEc2query_deserializeOpRegisterImage) HandleDeserialize(ctx context.C return out, metadata, err } -func awsEc2query_deserializeOpErrorRegisterImage(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorModifyVpnTunnelOptions(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)} @@ -34501,14 +35070,14 @@ func awsEc2query_deserializeOpErrorRegisterImage(response *smithyhttp.Response, } } -type awsEc2query_deserializeOpRegisterInstanceEventNotificationAttributes struct { +type awsEc2query_deserializeOpMonitorInstances struct { } -func (*awsEc2query_deserializeOpRegisterInstanceEventNotificationAttributes) ID() string { +func (*awsEc2query_deserializeOpMonitorInstances) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpRegisterInstanceEventNotificationAttributes) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpMonitorInstances) 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) @@ -34522,9 +35091,9 @@ func (m *awsEc2query_deserializeOpRegisterInstanceEventNotificationAttributes) H } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorRegisterInstanceEventNotificationAttributes(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorMonitorInstances(response, &metadata) } - output := &RegisterInstanceEventNotificationAttributesOutput{} + output := &MonitorInstancesOutput{} out.Result = output var buff [1024]byte @@ -34545,7 +35114,7 @@ func (m *awsEc2query_deserializeOpRegisterInstanceEventNotificationAttributes) H } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentRegisterInstanceEventNotificationAttributesOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentMonitorInstancesOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -34559,7 +35128,7 @@ func (m *awsEc2query_deserializeOpRegisterInstanceEventNotificationAttributes) H return out, metadata, err } -func awsEc2query_deserializeOpErrorRegisterInstanceEventNotificationAttributes(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorMonitorInstances(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)} @@ -34592,14 +35161,14 @@ func awsEc2query_deserializeOpErrorRegisterInstanceEventNotificationAttributes(r } } -type awsEc2query_deserializeOpRegisterTransitGatewayMulticastGroupMembers struct { +type awsEc2query_deserializeOpMoveAddressToVpc struct { } -func (*awsEc2query_deserializeOpRegisterTransitGatewayMulticastGroupMembers) ID() string { +func (*awsEc2query_deserializeOpMoveAddressToVpc) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpRegisterTransitGatewayMulticastGroupMembers) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpMoveAddressToVpc) 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) @@ -34613,9 +35182,9 @@ func (m *awsEc2query_deserializeOpRegisterTransitGatewayMulticastGroupMembers) H } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorRegisterTransitGatewayMulticastGroupMembers(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorMoveAddressToVpc(response, &metadata) } - output := &RegisterTransitGatewayMulticastGroupMembersOutput{} + output := &MoveAddressToVpcOutput{} out.Result = output var buff [1024]byte @@ -34636,7 +35205,7 @@ func (m *awsEc2query_deserializeOpRegisterTransitGatewayMulticastGroupMembers) H } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentRegisterTransitGatewayMulticastGroupMembersOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentMoveAddressToVpcOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -34650,7 +35219,7 @@ func (m *awsEc2query_deserializeOpRegisterTransitGatewayMulticastGroupMembers) H return out, metadata, err } -func awsEc2query_deserializeOpErrorRegisterTransitGatewayMulticastGroupMembers(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorMoveAddressToVpc(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)} @@ -34683,14 +35252,14 @@ func awsEc2query_deserializeOpErrorRegisterTransitGatewayMulticastGroupMembers(r } } -type awsEc2query_deserializeOpRegisterTransitGatewayMulticastGroupSources struct { +type awsEc2query_deserializeOpProvisionByoipCidr struct { } -func (*awsEc2query_deserializeOpRegisterTransitGatewayMulticastGroupSources) ID() string { +func (*awsEc2query_deserializeOpProvisionByoipCidr) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpRegisterTransitGatewayMulticastGroupSources) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpProvisionByoipCidr) 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) @@ -34704,9 +35273,9 @@ func (m *awsEc2query_deserializeOpRegisterTransitGatewayMulticastGroupSources) H } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorRegisterTransitGatewayMulticastGroupSources(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorProvisionByoipCidr(response, &metadata) } - output := &RegisterTransitGatewayMulticastGroupSourcesOutput{} + output := &ProvisionByoipCidrOutput{} out.Result = output var buff [1024]byte @@ -34727,7 +35296,7 @@ func (m *awsEc2query_deserializeOpRegisterTransitGatewayMulticastGroupSources) H } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentRegisterTransitGatewayMulticastGroupSourcesOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentProvisionByoipCidrOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -34741,7 +35310,7 @@ func (m *awsEc2query_deserializeOpRegisterTransitGatewayMulticastGroupSources) H return out, metadata, err } -func awsEc2query_deserializeOpErrorRegisterTransitGatewayMulticastGroupSources(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorProvisionByoipCidr(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)} @@ -34774,14 +35343,14 @@ func awsEc2query_deserializeOpErrorRegisterTransitGatewayMulticastGroupSources(r } } -type awsEc2query_deserializeOpRejectTransitGatewayMulticastDomainAssociations struct { +type awsEc2query_deserializeOpPurchaseHostReservation struct { } -func (*awsEc2query_deserializeOpRejectTransitGatewayMulticastDomainAssociations) ID() string { +func (*awsEc2query_deserializeOpPurchaseHostReservation) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpRejectTransitGatewayMulticastDomainAssociations) 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) @@ -34795,9 +35364,9 @@ func (m *awsEc2query_deserializeOpRejectTransitGatewayMulticastDomainAssociation } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorRejectTransitGatewayMulticastDomainAssociations(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorPurchaseHostReservation(response, &metadata) } - output := &RejectTransitGatewayMulticastDomainAssociationsOutput{} + output := &PurchaseHostReservationOutput{} out.Result = output var buff [1024]byte @@ -34818,7 +35387,7 @@ func (m *awsEc2query_deserializeOpRejectTransitGatewayMulticastDomainAssociation } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentRejectTransitGatewayMulticastDomainAssociationsOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentPurchaseHostReservationOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -34832,7 +35401,7 @@ func (m *awsEc2query_deserializeOpRejectTransitGatewayMulticastDomainAssociation return out, metadata, err } -func awsEc2query_deserializeOpErrorRejectTransitGatewayMulticastDomainAssociations(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)} @@ -34865,14 +35434,14 @@ func awsEc2query_deserializeOpErrorRejectTransitGatewayMulticastDomainAssociatio } } -type awsEc2query_deserializeOpRejectTransitGatewayPeeringAttachment struct { +type awsEc2query_deserializeOpPurchaseReservedInstancesOffering struct { } -func (*awsEc2query_deserializeOpRejectTransitGatewayPeeringAttachment) ID() string { +func (*awsEc2query_deserializeOpPurchaseReservedInstancesOffering) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpRejectTransitGatewayPeeringAttachment) 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) @@ -34886,9 +35455,9 @@ func (m *awsEc2query_deserializeOpRejectTransitGatewayPeeringAttachment) HandleD } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorRejectTransitGatewayPeeringAttachment(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorPurchaseReservedInstancesOffering(response, &metadata) } - output := &RejectTransitGatewayPeeringAttachmentOutput{} + output := &PurchaseReservedInstancesOfferingOutput{} out.Result = output var buff [1024]byte @@ -34909,7 +35478,7 @@ func (m *awsEc2query_deserializeOpRejectTransitGatewayPeeringAttachment) HandleD } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentRejectTransitGatewayPeeringAttachmentOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentPurchaseReservedInstancesOfferingOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -34923,7 +35492,7 @@ func (m *awsEc2query_deserializeOpRejectTransitGatewayPeeringAttachment) HandleD return out, metadata, err } -func awsEc2query_deserializeOpErrorRejectTransitGatewayPeeringAttachment(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)} @@ -34956,14 +35525,14 @@ func awsEc2query_deserializeOpErrorRejectTransitGatewayPeeringAttachment(respons } } -type awsEc2query_deserializeOpRejectTransitGatewayVpcAttachment struct { +type awsEc2query_deserializeOpPurchaseScheduledInstances struct { } -func (*awsEc2query_deserializeOpRejectTransitGatewayVpcAttachment) ID() string { +func (*awsEc2query_deserializeOpPurchaseScheduledInstances) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpRejectTransitGatewayVpcAttachment) 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) @@ -34977,9 +35546,9 @@ func (m *awsEc2query_deserializeOpRejectTransitGatewayVpcAttachment) HandleDeser } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorRejectTransitGatewayVpcAttachment(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorPurchaseScheduledInstances(response, &metadata) } - output := &RejectTransitGatewayVpcAttachmentOutput{} + output := &PurchaseScheduledInstancesOutput{} out.Result = output var buff [1024]byte @@ -35000,7 +35569,7 @@ func (m *awsEc2query_deserializeOpRejectTransitGatewayVpcAttachment) HandleDeser } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentRejectTransitGatewayVpcAttachmentOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentPurchaseScheduledInstancesOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -35014,7 +35583,7 @@ func (m *awsEc2query_deserializeOpRejectTransitGatewayVpcAttachment) HandleDeser return out, metadata, err } -func awsEc2query_deserializeOpErrorRejectTransitGatewayVpcAttachment(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)} @@ -35047,14 +35616,14 @@ func awsEc2query_deserializeOpErrorRejectTransitGatewayVpcAttachment(response *s } } -type awsEc2query_deserializeOpRejectVpcEndpointConnections struct { +type awsEc2query_deserializeOpRebootInstances struct { } -func (*awsEc2query_deserializeOpRejectVpcEndpointConnections) ID() string { +func (*awsEc2query_deserializeOpRebootInstances) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpRejectVpcEndpointConnections) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +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) @@ -35068,44 +35637,21 @@ func (m *awsEc2query_deserializeOpRejectVpcEndpointConnections) HandleDeserializ } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorRejectVpcEndpointConnections(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorRebootInstances(response, &metadata) } - output := &RejectVpcEndpointConnectionsOutput{} + output := &RebootInstancesOutput{} 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) + if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { 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_deserializeOpDocumentRejectVpcEndpointConnectionsOutput(&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(), + Err: fmt.Errorf("failed to discard response body, %w", err), } - return out, metadata, err } return out, metadata, err } -func awsEc2query_deserializeOpErrorRejectVpcEndpointConnections(response *smithyhttp.Response, metadata *middleware.Metadata) error { +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)} @@ -35138,14 +35684,14 @@ func awsEc2query_deserializeOpErrorRejectVpcEndpointConnections(response *smithy } } -type awsEc2query_deserializeOpRejectVpcPeeringConnection struct { +type awsEc2query_deserializeOpRegisterImage struct { } -func (*awsEc2query_deserializeOpRejectVpcPeeringConnection) ID() string { +func (*awsEc2query_deserializeOpRegisterImage) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpRejectVpcPeeringConnection) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpRegisterImage) 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) @@ -35159,9 +35705,9 @@ func (m *awsEc2query_deserializeOpRejectVpcPeeringConnection) HandleDeserialize( } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorRejectVpcPeeringConnection(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorRegisterImage(response, &metadata) } - output := &RejectVpcPeeringConnectionOutput{} + output := &RegisterImageOutput{} out.Result = output var buff [1024]byte @@ -35182,7 +35728,7 @@ func (m *awsEc2query_deserializeOpRejectVpcPeeringConnection) HandleDeserialize( } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentRejectVpcPeeringConnectionOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentRegisterImageOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -35196,7 +35742,7 @@ func (m *awsEc2query_deserializeOpRejectVpcPeeringConnection) HandleDeserialize( return out, metadata, err } -func awsEc2query_deserializeOpErrorRejectVpcPeeringConnection(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorRegisterImage(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)} @@ -35229,14 +35775,14 @@ func awsEc2query_deserializeOpErrorRejectVpcPeeringConnection(response *smithyht } } -type awsEc2query_deserializeOpReleaseAddress struct { +type awsEc2query_deserializeOpRegisterInstanceEventNotificationAttributes struct { } -func (*awsEc2query_deserializeOpReleaseAddress) ID() string { +func (*awsEc2query_deserializeOpRegisterInstanceEventNotificationAttributes) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpReleaseAddress) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpRegisterInstanceEventNotificationAttributes) 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) @@ -35250,21 +35796,44 @@ func (m *awsEc2query_deserializeOpReleaseAddress) HandleDeserialize(ctx context. } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorReleaseAddress(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorRegisterInstanceEventNotificationAttributes(response, &metadata) } - output := &ReleaseAddressOutput{} + output := &RegisterInstanceEventNotificationAttributesOutput{} 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_deserializeOpDocumentRegisterInstanceEventNotificationAttributesOutput(&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_deserializeOpErrorReleaseAddress(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorRegisterInstanceEventNotificationAttributes(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)} @@ -35297,14 +35866,14 @@ func awsEc2query_deserializeOpErrorReleaseAddress(response *smithyhttp.Response, } } -type awsEc2query_deserializeOpReleaseHosts struct { +type awsEc2query_deserializeOpRegisterTransitGatewayMulticastGroupMembers struct { } -func (*awsEc2query_deserializeOpReleaseHosts) ID() string { +func (*awsEc2query_deserializeOpRegisterTransitGatewayMulticastGroupMembers) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpReleaseHosts) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpRegisterTransitGatewayMulticastGroupMembers) 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) @@ -35318,9 +35887,9 @@ func (m *awsEc2query_deserializeOpReleaseHosts) HandleDeserialize(ctx context.Co } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorReleaseHosts(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorRegisterTransitGatewayMulticastGroupMembers(response, &metadata) } - output := &ReleaseHostsOutput{} + output := &RegisterTransitGatewayMulticastGroupMembersOutput{} out.Result = output var buff [1024]byte @@ -35341,7 +35910,7 @@ func (m *awsEc2query_deserializeOpReleaseHosts) HandleDeserialize(ctx context.Co } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentReleaseHostsOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentRegisterTransitGatewayMulticastGroupMembersOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -35355,7 +35924,7 @@ func (m *awsEc2query_deserializeOpReleaseHosts) HandleDeserialize(ctx context.Co return out, metadata, err } -func awsEc2query_deserializeOpErrorReleaseHosts(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorRegisterTransitGatewayMulticastGroupMembers(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)} @@ -35388,14 +35957,14 @@ func awsEc2query_deserializeOpErrorReleaseHosts(response *smithyhttp.Response, m } } -type awsEc2query_deserializeOpReplaceIamInstanceProfileAssociation struct { +type awsEc2query_deserializeOpRegisterTransitGatewayMulticastGroupSources struct { } -func (*awsEc2query_deserializeOpReplaceIamInstanceProfileAssociation) ID() string { +func (*awsEc2query_deserializeOpRegisterTransitGatewayMulticastGroupSources) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpReplaceIamInstanceProfileAssociation) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpRegisterTransitGatewayMulticastGroupSources) 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) @@ -35409,9 +35978,9 @@ func (m *awsEc2query_deserializeOpReplaceIamInstanceProfileAssociation) HandleDe } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorReplaceIamInstanceProfileAssociation(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorRegisterTransitGatewayMulticastGroupSources(response, &metadata) } - output := &ReplaceIamInstanceProfileAssociationOutput{} + output := &RegisterTransitGatewayMulticastGroupSourcesOutput{} out.Result = output var buff [1024]byte @@ -35432,7 +36001,7 @@ func (m *awsEc2query_deserializeOpReplaceIamInstanceProfileAssociation) HandleDe } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentReplaceIamInstanceProfileAssociationOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentRegisterTransitGatewayMulticastGroupSourcesOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -35446,7 +36015,7 @@ func (m *awsEc2query_deserializeOpReplaceIamInstanceProfileAssociation) HandleDe return out, metadata, err } -func awsEc2query_deserializeOpErrorReplaceIamInstanceProfileAssociation(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorRegisterTransitGatewayMulticastGroupSources(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)} @@ -35479,14 +36048,14 @@ func awsEc2query_deserializeOpErrorReplaceIamInstanceProfileAssociation(response } } -type awsEc2query_deserializeOpReplaceNetworkAclAssociation struct { +type awsEc2query_deserializeOpRejectTransitGatewayMulticastDomainAssociations struct { } -func (*awsEc2query_deserializeOpReplaceNetworkAclAssociation) ID() string { +func (*awsEc2query_deserializeOpRejectTransitGatewayMulticastDomainAssociations) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpReplaceNetworkAclAssociation) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpRejectTransitGatewayMulticastDomainAssociations) 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) @@ -35500,9 +36069,9 @@ func (m *awsEc2query_deserializeOpReplaceNetworkAclAssociation) HandleDeserializ } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorReplaceNetworkAclAssociation(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorRejectTransitGatewayMulticastDomainAssociations(response, &metadata) } - output := &ReplaceNetworkAclAssociationOutput{} + output := &RejectTransitGatewayMulticastDomainAssociationsOutput{} out.Result = output var buff [1024]byte @@ -35523,7 +36092,7 @@ func (m *awsEc2query_deserializeOpReplaceNetworkAclAssociation) HandleDeserializ } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentReplaceNetworkAclAssociationOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentRejectTransitGatewayMulticastDomainAssociationsOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -35537,7 +36106,7 @@ func (m *awsEc2query_deserializeOpReplaceNetworkAclAssociation) HandleDeserializ return out, metadata, err } -func awsEc2query_deserializeOpErrorReplaceNetworkAclAssociation(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorRejectTransitGatewayMulticastDomainAssociations(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)} @@ -35570,14 +36139,14 @@ func awsEc2query_deserializeOpErrorReplaceNetworkAclAssociation(response *smithy } } -type awsEc2query_deserializeOpReplaceNetworkAclEntry struct { +type awsEc2query_deserializeOpRejectTransitGatewayPeeringAttachment struct { } -func (*awsEc2query_deserializeOpReplaceNetworkAclEntry) ID() string { +func (*awsEc2query_deserializeOpRejectTransitGatewayPeeringAttachment) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpReplaceNetworkAclEntry) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpRejectTransitGatewayPeeringAttachment) 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) @@ -35591,89 +36160,44 @@ func (m *awsEc2query_deserializeOpReplaceNetworkAclEntry) HandleDeserialize(ctx } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorReplaceNetworkAclEntry(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorRejectTransitGatewayPeeringAttachment(response, &metadata) } - output := &ReplaceNetworkAclEntryOutput{} + output := &RejectTransitGatewayPeeringAttachmentOutput{} 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_deserializeOpErrorReplaceNetworkAclEntry(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)} + 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 } - 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, + 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(), } - return genericError - } -} - -type awsEc2query_deserializeOpReplaceRoute struct { -} -func (*awsEc2query_deserializeOpReplaceRoute) ID() string { - return "OperationDeserializer" -} - -func (m *awsEc2query_deserializeOpReplaceRoute) 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) + decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) + err = awsEc2query_deserializeOpDocumentRejectTransitGatewayPeeringAttachmentOutput(&output, decoder) if err != nil { - return out, metadata, err - } - - 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_deserializeOpErrorReplaceRoute(response, &metadata) - } - output := &ReplaceRouteOutput{} - 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), + 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_deserializeOpErrorReplaceRoute(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorRejectTransitGatewayPeeringAttachment(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)} @@ -35706,14 +36230,14 @@ func awsEc2query_deserializeOpErrorReplaceRoute(response *smithyhttp.Response, m } } -type awsEc2query_deserializeOpReplaceRouteTableAssociation struct { +type awsEc2query_deserializeOpRejectTransitGatewayVpcAttachment struct { } -func (*awsEc2query_deserializeOpReplaceRouteTableAssociation) ID() string { +func (*awsEc2query_deserializeOpRejectTransitGatewayVpcAttachment) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpReplaceRouteTableAssociation) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpRejectTransitGatewayVpcAttachment) 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) @@ -35727,9 +36251,9 @@ func (m *awsEc2query_deserializeOpReplaceRouteTableAssociation) HandleDeserializ } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorReplaceRouteTableAssociation(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorRejectTransitGatewayVpcAttachment(response, &metadata) } - output := &ReplaceRouteTableAssociationOutput{} + output := &RejectTransitGatewayVpcAttachmentOutput{} out.Result = output var buff [1024]byte @@ -35750,7 +36274,7 @@ func (m *awsEc2query_deserializeOpReplaceRouteTableAssociation) HandleDeserializ } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentReplaceRouteTableAssociationOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentRejectTransitGatewayVpcAttachmentOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -35764,7 +36288,7 @@ func (m *awsEc2query_deserializeOpReplaceRouteTableAssociation) HandleDeserializ return out, metadata, err } -func awsEc2query_deserializeOpErrorReplaceRouteTableAssociation(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorRejectTransitGatewayVpcAttachment(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)} @@ -35797,14 +36321,14 @@ func awsEc2query_deserializeOpErrorReplaceRouteTableAssociation(response *smithy } } -type awsEc2query_deserializeOpReplaceTransitGatewayRoute struct { +type awsEc2query_deserializeOpRejectVpcEndpointConnections struct { } -func (*awsEc2query_deserializeOpReplaceTransitGatewayRoute) ID() string { +func (*awsEc2query_deserializeOpRejectVpcEndpointConnections) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpReplaceTransitGatewayRoute) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpRejectVpcEndpointConnections) 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) @@ -35818,9 +36342,9 @@ func (m *awsEc2query_deserializeOpReplaceTransitGatewayRoute) HandleDeserialize( } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorReplaceTransitGatewayRoute(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorRejectVpcEndpointConnections(response, &metadata) } - output := &ReplaceTransitGatewayRouteOutput{} + output := &RejectVpcEndpointConnectionsOutput{} out.Result = output var buff [1024]byte @@ -35841,7 +36365,7 @@ func (m *awsEc2query_deserializeOpReplaceTransitGatewayRoute) HandleDeserialize( } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentReplaceTransitGatewayRouteOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentRejectVpcEndpointConnectionsOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -35855,7 +36379,7 @@ func (m *awsEc2query_deserializeOpReplaceTransitGatewayRoute) HandleDeserialize( return out, metadata, err } -func awsEc2query_deserializeOpErrorReplaceTransitGatewayRoute(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorRejectVpcEndpointConnections(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)} @@ -35888,14 +36412,14 @@ func awsEc2query_deserializeOpErrorReplaceTransitGatewayRoute(response *smithyht } } -type awsEc2query_deserializeOpReportInstanceStatus struct { +type awsEc2query_deserializeOpRejectVpcPeeringConnection struct { } -func (*awsEc2query_deserializeOpReportInstanceStatus) ID() string { +func (*awsEc2query_deserializeOpRejectVpcPeeringConnection) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpReportInstanceStatus) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpRejectVpcPeeringConnection) 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) @@ -35909,21 +36433,44 @@ func (m *awsEc2query_deserializeOpReportInstanceStatus) HandleDeserialize(ctx co } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorReportInstanceStatus(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorRejectVpcPeeringConnection(response, &metadata) } - output := &ReportInstanceStatusOutput{} + output := &RejectVpcPeeringConnectionOutput{} 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_deserializeOpDocumentRejectVpcPeeringConnectionOutput(&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_deserializeOpErrorReportInstanceStatus(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorRejectVpcPeeringConnection(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)} @@ -35956,14 +36503,14 @@ func awsEc2query_deserializeOpErrorReportInstanceStatus(response *smithyhttp.Res } } -type awsEc2query_deserializeOpRequestSpotFleet struct { +type awsEc2query_deserializeOpReleaseAddress struct { } -func (*awsEc2query_deserializeOpRequestSpotFleet) ID() string { +func (*awsEc2query_deserializeOpReleaseAddress) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpRequestSpotFleet) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpReleaseAddress) 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) @@ -35977,44 +36524,21 @@ func (m *awsEc2query_deserializeOpRequestSpotFleet) HandleDeserialize(ctx contex } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorRequestSpotFleet(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorReleaseAddress(response, &metadata) } - output := &RequestSpotFleetOutput{} + output := &ReleaseAddressOutput{} 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) + if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { 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_deserializeOpDocumentRequestSpotFleetOutput(&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(), + Err: fmt.Errorf("failed to discard response body, %w", err), } - return out, metadata, err } return out, metadata, err } -func awsEc2query_deserializeOpErrorRequestSpotFleet(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorReleaseAddress(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)} @@ -36047,14 +36571,14 @@ func awsEc2query_deserializeOpErrorRequestSpotFleet(response *smithyhttp.Respons } } -type awsEc2query_deserializeOpRequestSpotInstances struct { +type awsEc2query_deserializeOpReleaseHosts struct { } -func (*awsEc2query_deserializeOpRequestSpotInstances) ID() string { +func (*awsEc2query_deserializeOpReleaseHosts) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpRequestSpotInstances) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpReleaseHosts) 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) @@ -36068,9 +36592,9 @@ func (m *awsEc2query_deserializeOpRequestSpotInstances) HandleDeserialize(ctx co } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorRequestSpotInstances(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorReleaseHosts(response, &metadata) } - output := &RequestSpotInstancesOutput{} + output := &ReleaseHostsOutput{} out.Result = output var buff [1024]byte @@ -36091,7 +36615,7 @@ func (m *awsEc2query_deserializeOpRequestSpotInstances) HandleDeserialize(ctx co } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentRequestSpotInstancesOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentReleaseHostsOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -36105,7 +36629,7 @@ func (m *awsEc2query_deserializeOpRequestSpotInstances) HandleDeserialize(ctx co return out, metadata, err } -func awsEc2query_deserializeOpErrorRequestSpotInstances(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorReleaseHosts(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)} @@ -36138,14 +36662,14 @@ func awsEc2query_deserializeOpErrorRequestSpotInstances(response *smithyhttp.Res } } -type awsEc2query_deserializeOpResetAddressAttribute struct { +type awsEc2query_deserializeOpReplaceIamInstanceProfileAssociation struct { } -func (*awsEc2query_deserializeOpResetAddressAttribute) ID() string { +func (*awsEc2query_deserializeOpReplaceIamInstanceProfileAssociation) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpResetAddressAttribute) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpReplaceIamInstanceProfileAssociation) 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) @@ -36159,9 +36683,9 @@ func (m *awsEc2query_deserializeOpResetAddressAttribute) HandleDeserialize(ctx c } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorResetAddressAttribute(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorReplaceIamInstanceProfileAssociation(response, &metadata) } - output := &ResetAddressAttributeOutput{} + output := &ReplaceIamInstanceProfileAssociationOutput{} out.Result = output var buff [1024]byte @@ -36182,7 +36706,7 @@ func (m *awsEc2query_deserializeOpResetAddressAttribute) HandleDeserialize(ctx c } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentResetAddressAttributeOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentReplaceIamInstanceProfileAssociationOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -36196,7 +36720,7 @@ func (m *awsEc2query_deserializeOpResetAddressAttribute) HandleDeserialize(ctx c return out, metadata, err } -func awsEc2query_deserializeOpErrorResetAddressAttribute(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorReplaceIamInstanceProfileAssociation(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)} @@ -36229,14 +36753,14 @@ func awsEc2query_deserializeOpErrorResetAddressAttribute(response *smithyhttp.Re } } -type awsEc2query_deserializeOpResetEbsDefaultKmsKeyId struct { +type awsEc2query_deserializeOpReplaceNetworkAclAssociation struct { } -func (*awsEc2query_deserializeOpResetEbsDefaultKmsKeyId) ID() string { +func (*awsEc2query_deserializeOpReplaceNetworkAclAssociation) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpResetEbsDefaultKmsKeyId) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpReplaceNetworkAclAssociation) 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) @@ -36250,9 +36774,9 @@ func (m *awsEc2query_deserializeOpResetEbsDefaultKmsKeyId) HandleDeserialize(ctx } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorResetEbsDefaultKmsKeyId(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorReplaceNetworkAclAssociation(response, &metadata) } - output := &ResetEbsDefaultKmsKeyIdOutput{} + output := &ReplaceNetworkAclAssociationOutput{} out.Result = output var buff [1024]byte @@ -36273,7 +36797,7 @@ func (m *awsEc2query_deserializeOpResetEbsDefaultKmsKeyId) HandleDeserialize(ctx } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentResetEbsDefaultKmsKeyIdOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentReplaceNetworkAclAssociationOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -36287,7 +36811,7 @@ func (m *awsEc2query_deserializeOpResetEbsDefaultKmsKeyId) HandleDeserialize(ctx return out, metadata, err } -func awsEc2query_deserializeOpErrorResetEbsDefaultKmsKeyId(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorReplaceNetworkAclAssociation(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)} @@ -36320,14 +36844,14 @@ func awsEc2query_deserializeOpErrorResetEbsDefaultKmsKeyId(response *smithyhttp. } } -type awsEc2query_deserializeOpResetFpgaImageAttribute struct { +type awsEc2query_deserializeOpReplaceNetworkAclEntry struct { } -func (*awsEc2query_deserializeOpResetFpgaImageAttribute) ID() string { +func (*awsEc2query_deserializeOpReplaceNetworkAclEntry) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpResetFpgaImageAttribute) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpReplaceNetworkAclEntry) 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) @@ -36341,44 +36865,21 @@ func (m *awsEc2query_deserializeOpResetFpgaImageAttribute) HandleDeserialize(ctx } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorResetFpgaImageAttribute(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorReplaceNetworkAclEntry(response, &metadata) } - output := &ResetFpgaImageAttributeOutput{} + output := &ReplaceNetworkAclEntryOutput{} 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) + if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), + Err: fmt.Errorf("failed to discard response body, %w", err), } } - decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentResetFpgaImageAttributeOutput(&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_deserializeOpErrorResetFpgaImageAttribute(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorReplaceNetworkAclEntry(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)} @@ -36411,14 +36912,14 @@ func awsEc2query_deserializeOpErrorResetFpgaImageAttribute(response *smithyhttp. } } -type awsEc2query_deserializeOpResetImageAttribute struct { +type awsEc2query_deserializeOpReplaceRoute struct { } -func (*awsEc2query_deserializeOpResetImageAttribute) ID() string { +func (*awsEc2query_deserializeOpReplaceRoute) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpResetImageAttribute) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpReplaceRoute) 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) @@ -36432,9 +36933,9 @@ func (m *awsEc2query_deserializeOpResetImageAttribute) HandleDeserialize(ctx con } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorResetImageAttribute(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorReplaceRoute(response, &metadata) } - output := &ResetImageAttributeOutput{} + output := &ReplaceRouteOutput{} out.Result = output if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { @@ -36446,7 +36947,7 @@ func (m *awsEc2query_deserializeOpResetImageAttribute) HandleDeserialize(ctx con return out, metadata, err } -func awsEc2query_deserializeOpErrorResetImageAttribute(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorReplaceRoute(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)} @@ -36479,14 +36980,14 @@ func awsEc2query_deserializeOpErrorResetImageAttribute(response *smithyhttp.Resp } } -type awsEc2query_deserializeOpResetInstanceAttribute struct { +type awsEc2query_deserializeOpReplaceRouteTableAssociation struct { } -func (*awsEc2query_deserializeOpResetInstanceAttribute) ID() string { +func (*awsEc2query_deserializeOpReplaceRouteTableAssociation) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpResetInstanceAttribute) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpReplaceRouteTableAssociation) 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) @@ -36500,21 +37001,44 @@ func (m *awsEc2query_deserializeOpResetInstanceAttribute) HandleDeserialize(ctx } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorResetInstanceAttribute(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorReplaceRouteTableAssociation(response, &metadata) } - output := &ResetInstanceAttributeOutput{} + output := &ReplaceRouteTableAssociationOutput{} 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_deserializeOpDocumentReplaceRouteTableAssociationOutput(&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_deserializeOpErrorResetInstanceAttribute(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorReplaceRouteTableAssociation(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)} @@ -36547,14 +37071,14 @@ func awsEc2query_deserializeOpErrorResetInstanceAttribute(response *smithyhttp.R } } -type awsEc2query_deserializeOpResetNetworkInterfaceAttribute struct { +type awsEc2query_deserializeOpReplaceTransitGatewayRoute struct { } -func (*awsEc2query_deserializeOpResetNetworkInterfaceAttribute) ID() string { +func (*awsEc2query_deserializeOpReplaceTransitGatewayRoute) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpResetNetworkInterfaceAttribute) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpReplaceTransitGatewayRoute) 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) @@ -36568,21 +37092,44 @@ func (m *awsEc2query_deserializeOpResetNetworkInterfaceAttribute) HandleDeserial } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorResetNetworkInterfaceAttribute(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorReplaceTransitGatewayRoute(response, &metadata) } - output := &ResetNetworkInterfaceAttributeOutput{} + output := &ReplaceTransitGatewayRouteOutput{} 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_deserializeOpDocumentReplaceTransitGatewayRouteOutput(&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_deserializeOpErrorResetNetworkInterfaceAttribute(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorReplaceTransitGatewayRoute(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)} @@ -36615,14 +37162,14 @@ func awsEc2query_deserializeOpErrorResetNetworkInterfaceAttribute(response *smit } } -type awsEc2query_deserializeOpResetSnapshotAttribute struct { +type awsEc2query_deserializeOpReportInstanceStatus struct { } -func (*awsEc2query_deserializeOpResetSnapshotAttribute) ID() string { +func (*awsEc2query_deserializeOpReportInstanceStatus) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpResetSnapshotAttribute) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpReportInstanceStatus) 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) @@ -36636,9 +37183,9 @@ func (m *awsEc2query_deserializeOpResetSnapshotAttribute) HandleDeserialize(ctx } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorResetSnapshotAttribute(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorReportInstanceStatus(response, &metadata) } - output := &ResetSnapshotAttributeOutput{} + output := &ReportInstanceStatusOutput{} out.Result = output if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { @@ -36650,7 +37197,7 @@ func (m *awsEc2query_deserializeOpResetSnapshotAttribute) HandleDeserialize(ctx return out, metadata, err } -func awsEc2query_deserializeOpErrorResetSnapshotAttribute(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorReportInstanceStatus(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)} @@ -36683,14 +37230,14 @@ func awsEc2query_deserializeOpErrorResetSnapshotAttribute(response *smithyhttp.R } } -type awsEc2query_deserializeOpRestoreAddressToClassic struct { +type awsEc2query_deserializeOpRequestSpotFleet struct { } -func (*awsEc2query_deserializeOpRestoreAddressToClassic) ID() string { +func (*awsEc2query_deserializeOpRequestSpotFleet) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpRestoreAddressToClassic) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpRequestSpotFleet) 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) @@ -36704,9 +37251,9 @@ func (m *awsEc2query_deserializeOpRestoreAddressToClassic) HandleDeserialize(ctx } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorRestoreAddressToClassic(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorRequestSpotFleet(response, &metadata) } - output := &RestoreAddressToClassicOutput{} + output := &RequestSpotFleetOutput{} out.Result = output var buff [1024]byte @@ -36727,7 +37274,7 @@ func (m *awsEc2query_deserializeOpRestoreAddressToClassic) HandleDeserialize(ctx } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentRestoreAddressToClassicOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentRequestSpotFleetOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -36741,7 +37288,7 @@ func (m *awsEc2query_deserializeOpRestoreAddressToClassic) HandleDeserialize(ctx return out, metadata, err } -func awsEc2query_deserializeOpErrorRestoreAddressToClassic(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorRequestSpotFleet(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)} @@ -36774,14 +37321,14 @@ func awsEc2query_deserializeOpErrorRestoreAddressToClassic(response *smithyhttp. } } -type awsEc2query_deserializeOpRestoreManagedPrefixListVersion struct { +type awsEc2query_deserializeOpRequestSpotInstances struct { } -func (*awsEc2query_deserializeOpRestoreManagedPrefixListVersion) ID() string { +func (*awsEc2query_deserializeOpRequestSpotInstances) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpRestoreManagedPrefixListVersion) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpRequestSpotInstances) 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) @@ -36795,9 +37342,9 @@ func (m *awsEc2query_deserializeOpRestoreManagedPrefixListVersion) HandleDeseria } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorRestoreManagedPrefixListVersion(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorRequestSpotInstances(response, &metadata) } - output := &RestoreManagedPrefixListVersionOutput{} + output := &RequestSpotInstancesOutput{} out.Result = output var buff [1024]byte @@ -36818,7 +37365,7 @@ func (m *awsEc2query_deserializeOpRestoreManagedPrefixListVersion) HandleDeseria } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentRestoreManagedPrefixListVersionOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentRequestSpotInstancesOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -36832,7 +37379,7 @@ func (m *awsEc2query_deserializeOpRestoreManagedPrefixListVersion) HandleDeseria return out, metadata, err } -func awsEc2query_deserializeOpErrorRestoreManagedPrefixListVersion(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorRequestSpotInstances(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)} @@ -36865,14 +37412,14 @@ func awsEc2query_deserializeOpErrorRestoreManagedPrefixListVersion(response *smi } } -type awsEc2query_deserializeOpRevokeClientVpnIngress struct { +type awsEc2query_deserializeOpResetAddressAttribute struct { } -func (*awsEc2query_deserializeOpRevokeClientVpnIngress) ID() string { +func (*awsEc2query_deserializeOpResetAddressAttribute) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpRevokeClientVpnIngress) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpResetAddressAttribute) 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) @@ -36886,9 +37433,9 @@ func (m *awsEc2query_deserializeOpRevokeClientVpnIngress) HandleDeserialize(ctx } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorRevokeClientVpnIngress(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorResetAddressAttribute(response, &metadata) } - output := &RevokeClientVpnIngressOutput{} + output := &ResetAddressAttributeOutput{} out.Result = output var buff [1024]byte @@ -36909,7 +37456,7 @@ func (m *awsEc2query_deserializeOpRevokeClientVpnIngress) HandleDeserialize(ctx } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentRevokeClientVpnIngressOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentResetAddressAttributeOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -36923,7 +37470,7 @@ func (m *awsEc2query_deserializeOpRevokeClientVpnIngress) HandleDeserialize(ctx return out, metadata, err } -func awsEc2query_deserializeOpErrorRevokeClientVpnIngress(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorResetAddressAttribute(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)} @@ -36956,14 +37503,14 @@ func awsEc2query_deserializeOpErrorRevokeClientVpnIngress(response *smithyhttp.R } } -type awsEc2query_deserializeOpRevokeSecurityGroupEgress struct { +type awsEc2query_deserializeOpResetEbsDefaultKmsKeyId struct { } -func (*awsEc2query_deserializeOpRevokeSecurityGroupEgress) ID() string { +func (*awsEc2query_deserializeOpResetEbsDefaultKmsKeyId) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpRevokeSecurityGroupEgress) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpResetEbsDefaultKmsKeyId) 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) @@ -36977,9 +37524,9 @@ func (m *awsEc2query_deserializeOpRevokeSecurityGroupEgress) HandleDeserialize(c } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorRevokeSecurityGroupEgress(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorResetEbsDefaultKmsKeyId(response, &metadata) } - output := &RevokeSecurityGroupEgressOutput{} + output := &ResetEbsDefaultKmsKeyIdOutput{} out.Result = output var buff [1024]byte @@ -37000,7 +37547,7 @@ func (m *awsEc2query_deserializeOpRevokeSecurityGroupEgress) HandleDeserialize(c } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentRevokeSecurityGroupEgressOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentResetEbsDefaultKmsKeyIdOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -37014,7 +37561,7 @@ func (m *awsEc2query_deserializeOpRevokeSecurityGroupEgress) HandleDeserialize(c return out, metadata, err } -func awsEc2query_deserializeOpErrorRevokeSecurityGroupEgress(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorResetEbsDefaultKmsKeyId(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)} @@ -37047,14 +37594,14 @@ func awsEc2query_deserializeOpErrorRevokeSecurityGroupEgress(response *smithyhtt } } -type awsEc2query_deserializeOpRevokeSecurityGroupIngress struct { +type awsEc2query_deserializeOpResetFpgaImageAttribute struct { } -func (*awsEc2query_deserializeOpRevokeSecurityGroupIngress) ID() string { +func (*awsEc2query_deserializeOpResetFpgaImageAttribute) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpRevokeSecurityGroupIngress) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpResetFpgaImageAttribute) 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) @@ -37068,9 +37615,9 @@ func (m *awsEc2query_deserializeOpRevokeSecurityGroupIngress) HandleDeserialize( } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorRevokeSecurityGroupIngress(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorResetFpgaImageAttribute(response, &metadata) } - output := &RevokeSecurityGroupIngressOutput{} + output := &ResetFpgaImageAttributeOutput{} out.Result = output var buff [1024]byte @@ -37091,7 +37638,7 @@ func (m *awsEc2query_deserializeOpRevokeSecurityGroupIngress) HandleDeserialize( } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentRevokeSecurityGroupIngressOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentResetFpgaImageAttributeOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -37105,7 +37652,7 @@ func (m *awsEc2query_deserializeOpRevokeSecurityGroupIngress) HandleDeserialize( return out, metadata, err } -func awsEc2query_deserializeOpErrorRevokeSecurityGroupIngress(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorResetFpgaImageAttribute(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)} @@ -37138,14 +37685,14 @@ func awsEc2query_deserializeOpErrorRevokeSecurityGroupIngress(response *smithyht } } -type awsEc2query_deserializeOpRunInstances struct { +type awsEc2query_deserializeOpResetImageAttribute struct { } -func (*awsEc2query_deserializeOpRunInstances) ID() string { +func (*awsEc2query_deserializeOpResetImageAttribute) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpRunInstances) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpResetImageAttribute) 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) @@ -37159,44 +37706,21 @@ func (m *awsEc2query_deserializeOpRunInstances) HandleDeserialize(ctx context.Co } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorRunInstances(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorResetImageAttribute(response, &metadata) } - output := &RunInstancesOutput{} + output := &ResetImageAttributeOutput{} 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) + if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { 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_deserializeOpDocumentRunInstancesOutput(&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(), + Err: fmt.Errorf("failed to discard response body, %w", err), } - return out, metadata, err } return out, metadata, err } -func awsEc2query_deserializeOpErrorRunInstances(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorResetImageAttribute(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)} @@ -37229,14 +37753,14 @@ func awsEc2query_deserializeOpErrorRunInstances(response *smithyhttp.Response, m } } -type awsEc2query_deserializeOpRunScheduledInstances struct { +type awsEc2query_deserializeOpResetInstanceAttribute struct { } -func (*awsEc2query_deserializeOpRunScheduledInstances) ID() string { +func (*awsEc2query_deserializeOpResetInstanceAttribute) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpRunScheduledInstances) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpResetInstanceAttribute) 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) @@ -37250,44 +37774,21 @@ func (m *awsEc2query_deserializeOpRunScheduledInstances) HandleDeserialize(ctx c } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorRunScheduledInstances(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorResetInstanceAttribute(response, &metadata) } - output := &RunScheduledInstancesOutput{} + output := &ResetInstanceAttributeOutput{} 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) + if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { 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_deserializeOpDocumentRunScheduledInstancesOutput(&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(), + Err: fmt.Errorf("failed to discard response body, %w", err), } - return out, metadata, err } return out, metadata, err } -func awsEc2query_deserializeOpErrorRunScheduledInstances(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorResetInstanceAttribute(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)} @@ -37320,14 +37821,14 @@ func awsEc2query_deserializeOpErrorRunScheduledInstances(response *smithyhttp.Re } } -type awsEc2query_deserializeOpSearchLocalGatewayRoutes struct { +type awsEc2query_deserializeOpResetNetworkInterfaceAttribute struct { } -func (*awsEc2query_deserializeOpSearchLocalGatewayRoutes) ID() string { +func (*awsEc2query_deserializeOpResetNetworkInterfaceAttribute) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpSearchLocalGatewayRoutes) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpResetNetworkInterfaceAttribute) 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) @@ -37341,44 +37842,89 @@ func (m *awsEc2query_deserializeOpSearchLocalGatewayRoutes) HandleDeserialize(ct } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorSearchLocalGatewayRoutes(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorResetNetworkInterfaceAttribute(response, &metadata) } - output := &SearchLocalGatewayRoutesOutput{} + output := &ResetNetworkInterfaceAttributeOutput{} 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) + if _, err = io.Copy(ioutil.Discard, response.Body); err != nil { return out, metadata, &smithy.DeserializationError{ - Err: fmt.Errorf("failed to decode response body, %w", err), - Snapshot: snapshot.Bytes(), + Err: fmt.Errorf("failed to discard response body, %w", err), } } - decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentSearchLocalGatewayRoutesOutput(&output, decoder) + return out, metadata, err +} + +func awsEc2query_deserializeOpErrorResetNetworkInterfaceAttribute(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 { - 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 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_deserializeOpResetSnapshotAttribute struct { +} + +func (*awsEc2query_deserializeOpResetSnapshotAttribute) ID() string { + return "OperationDeserializer" +} + +func (m *awsEc2query_deserializeOpResetSnapshotAttribute) 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 } + 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_deserializeOpErrorResetSnapshotAttribute(response, &metadata) + } + output := &ResetSnapshotAttributeOutput{} + 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_deserializeOpErrorSearchLocalGatewayRoutes(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorResetSnapshotAttribute(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)} @@ -37411,14 +37957,14 @@ func awsEc2query_deserializeOpErrorSearchLocalGatewayRoutes(response *smithyhttp } } -type awsEc2query_deserializeOpSearchTransitGatewayMulticastGroups struct { +type awsEc2query_deserializeOpRestoreAddressToClassic struct { } -func (*awsEc2query_deserializeOpSearchTransitGatewayMulticastGroups) ID() string { +func (*awsEc2query_deserializeOpRestoreAddressToClassic) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpSearchTransitGatewayMulticastGroups) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpRestoreAddressToClassic) 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) @@ -37432,9 +37978,9 @@ func (m *awsEc2query_deserializeOpSearchTransitGatewayMulticastGroups) HandleDes } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorSearchTransitGatewayMulticastGroups(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorRestoreAddressToClassic(response, &metadata) } - output := &SearchTransitGatewayMulticastGroupsOutput{} + output := &RestoreAddressToClassicOutput{} out.Result = output var buff [1024]byte @@ -37455,7 +38001,7 @@ func (m *awsEc2query_deserializeOpSearchTransitGatewayMulticastGroups) HandleDes } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentSearchTransitGatewayMulticastGroupsOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentRestoreAddressToClassicOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -37469,7 +38015,7 @@ func (m *awsEc2query_deserializeOpSearchTransitGatewayMulticastGroups) HandleDes return out, metadata, err } -func awsEc2query_deserializeOpErrorSearchTransitGatewayMulticastGroups(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorRestoreAddressToClassic(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)} @@ -37502,14 +38048,14 @@ func awsEc2query_deserializeOpErrorSearchTransitGatewayMulticastGroups(response } } -type awsEc2query_deserializeOpSearchTransitGatewayRoutes struct { +type awsEc2query_deserializeOpRestoreManagedPrefixListVersion struct { } -func (*awsEc2query_deserializeOpSearchTransitGatewayRoutes) ID() string { +func (*awsEc2query_deserializeOpRestoreManagedPrefixListVersion) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpSearchTransitGatewayRoutes) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpRestoreManagedPrefixListVersion) 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) @@ -37523,9 +38069,9 @@ func (m *awsEc2query_deserializeOpSearchTransitGatewayRoutes) HandleDeserialize( } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorSearchTransitGatewayRoutes(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorRestoreManagedPrefixListVersion(response, &metadata) } - output := &SearchTransitGatewayRoutesOutput{} + output := &RestoreManagedPrefixListVersionOutput{} out.Result = output var buff [1024]byte @@ -37546,7 +38092,7 @@ func (m *awsEc2query_deserializeOpSearchTransitGatewayRoutes) HandleDeserialize( } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentSearchTransitGatewayRoutesOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentRestoreManagedPrefixListVersionOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -37560,7 +38106,7 @@ func (m *awsEc2query_deserializeOpSearchTransitGatewayRoutes) HandleDeserialize( return out, metadata, err } -func awsEc2query_deserializeOpErrorSearchTransitGatewayRoutes(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorRestoreManagedPrefixListVersion(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)} @@ -37593,14 +38139,14 @@ func awsEc2query_deserializeOpErrorSearchTransitGatewayRoutes(response *smithyht } } -type awsEc2query_deserializeOpSendDiagnosticInterrupt struct { +type awsEc2query_deserializeOpRevokeClientVpnIngress struct { } -func (*awsEc2query_deserializeOpSendDiagnosticInterrupt) ID() string { +func (*awsEc2query_deserializeOpRevokeClientVpnIngress) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpSendDiagnosticInterrupt) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpRevokeClientVpnIngress) 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) @@ -37614,21 +38160,44 @@ func (m *awsEc2query_deserializeOpSendDiagnosticInterrupt) HandleDeserialize(ctx } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorSendDiagnosticInterrupt(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorRevokeClientVpnIngress(response, &metadata) } - output := &SendDiagnosticInterruptOutput{} + output := &RevokeClientVpnIngressOutput{} 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_deserializeOpDocumentRevokeClientVpnIngressOutput(&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_deserializeOpErrorSendDiagnosticInterrupt(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorRevokeClientVpnIngress(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)} @@ -37661,14 +38230,14 @@ func awsEc2query_deserializeOpErrorSendDiagnosticInterrupt(response *smithyhttp. } } -type awsEc2query_deserializeOpStartInstances struct { +type awsEc2query_deserializeOpRevokeSecurityGroupEgress struct { } -func (*awsEc2query_deserializeOpStartInstances) ID() string { +func (*awsEc2query_deserializeOpRevokeSecurityGroupEgress) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpStartInstances) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpRevokeSecurityGroupEgress) 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) @@ -37682,9 +38251,9 @@ func (m *awsEc2query_deserializeOpStartInstances) HandleDeserialize(ctx context. } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorStartInstances(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorRevokeSecurityGroupEgress(response, &metadata) } - output := &StartInstancesOutput{} + output := &RevokeSecurityGroupEgressOutput{} out.Result = output var buff [1024]byte @@ -37705,7 +38274,7 @@ func (m *awsEc2query_deserializeOpStartInstances) HandleDeserialize(ctx context. } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentStartInstancesOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentRevokeSecurityGroupEgressOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -37719,7 +38288,7 @@ func (m *awsEc2query_deserializeOpStartInstances) HandleDeserialize(ctx context. return out, metadata, err } -func awsEc2query_deserializeOpErrorStartInstances(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorRevokeSecurityGroupEgress(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)} @@ -37752,14 +38321,14 @@ func awsEc2query_deserializeOpErrorStartInstances(response *smithyhttp.Response, } } -type awsEc2query_deserializeOpStartNetworkInsightsAnalysis struct { +type awsEc2query_deserializeOpRevokeSecurityGroupIngress struct { } -func (*awsEc2query_deserializeOpStartNetworkInsightsAnalysis) ID() string { +func (*awsEc2query_deserializeOpRevokeSecurityGroupIngress) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpStartNetworkInsightsAnalysis) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpRevokeSecurityGroupIngress) 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) @@ -37773,9 +38342,9 @@ func (m *awsEc2query_deserializeOpStartNetworkInsightsAnalysis) HandleDeserializ } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorStartNetworkInsightsAnalysis(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorRevokeSecurityGroupIngress(response, &metadata) } - output := &StartNetworkInsightsAnalysisOutput{} + output := &RevokeSecurityGroupIngressOutput{} out.Result = output var buff [1024]byte @@ -37796,7 +38365,7 @@ func (m *awsEc2query_deserializeOpStartNetworkInsightsAnalysis) HandleDeserializ } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentStartNetworkInsightsAnalysisOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentRevokeSecurityGroupIngressOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -37810,7 +38379,7 @@ func (m *awsEc2query_deserializeOpStartNetworkInsightsAnalysis) HandleDeserializ return out, metadata, err } -func awsEc2query_deserializeOpErrorStartNetworkInsightsAnalysis(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorRevokeSecurityGroupIngress(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)} @@ -37843,14 +38412,14 @@ func awsEc2query_deserializeOpErrorStartNetworkInsightsAnalysis(response *smithy } } -type awsEc2query_deserializeOpStartVpcEndpointServicePrivateDnsVerification struct { +type awsEc2query_deserializeOpRunInstances struct { } -func (*awsEc2query_deserializeOpStartVpcEndpointServicePrivateDnsVerification) ID() string { +func (*awsEc2query_deserializeOpRunInstances) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpStartVpcEndpointServicePrivateDnsVerification) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpRunInstances) 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) @@ -37864,9 +38433,9 @@ func (m *awsEc2query_deserializeOpStartVpcEndpointServicePrivateDnsVerification) } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorStartVpcEndpointServicePrivateDnsVerification(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorRunInstances(response, &metadata) } - output := &StartVpcEndpointServicePrivateDnsVerificationOutput{} + output := &RunInstancesOutput{} out.Result = output var buff [1024]byte @@ -37887,7 +38456,7 @@ func (m *awsEc2query_deserializeOpStartVpcEndpointServicePrivateDnsVerification) } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentStartVpcEndpointServicePrivateDnsVerificationOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentRunInstancesOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -37901,7 +38470,7 @@ func (m *awsEc2query_deserializeOpStartVpcEndpointServicePrivateDnsVerification) return out, metadata, err } -func awsEc2query_deserializeOpErrorStartVpcEndpointServicePrivateDnsVerification(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorRunInstances(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)} @@ -37934,14 +38503,14 @@ func awsEc2query_deserializeOpErrorStartVpcEndpointServicePrivateDnsVerification } } -type awsEc2query_deserializeOpStopInstances struct { +type awsEc2query_deserializeOpRunScheduledInstances struct { } -func (*awsEc2query_deserializeOpStopInstances) ID() string { +func (*awsEc2query_deserializeOpRunScheduledInstances) ID() string { return "OperationDeserializer" } -func (m *awsEc2query_deserializeOpStopInstances) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) ( +func (m *awsEc2query_deserializeOpRunScheduledInstances) 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) @@ -37955,9 +38524,9 @@ func (m *awsEc2query_deserializeOpStopInstances) HandleDeserialize(ctx context.C } if response.StatusCode < 200 || response.StatusCode >= 300 { - return out, metadata, awsEc2query_deserializeOpErrorStopInstances(response, &metadata) + return out, metadata, awsEc2query_deserializeOpErrorRunScheduledInstances(response, &metadata) } - output := &StopInstancesOutput{} + output := &RunScheduledInstancesOutput{} out.Result = output var buff [1024]byte @@ -37978,7 +38547,7 @@ func (m *awsEc2query_deserializeOpStopInstances) HandleDeserialize(ctx context.C } decoder := smithyxml.WrapNodeDecoder(rootDecoder, t) - err = awsEc2query_deserializeOpDocumentStopInstancesOutput(&output, decoder) + err = awsEc2query_deserializeOpDocumentRunScheduledInstancesOutput(&output, decoder) if err != nil { var snapshot bytes.Buffer io.Copy(&snapshot, ringBuffer) @@ -37992,7 +38561,712 @@ func (m *awsEc2query_deserializeOpStopInstances) HandleDeserialize(ctx context.C return out, metadata, err } -func awsEc2query_deserializeOpErrorStopInstances(response *smithyhttp.Response, metadata *middleware.Metadata) error { +func awsEc2query_deserializeOpErrorRunScheduledInstances(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_deserializeOpSearchLocalGatewayRoutes struct { +} + +func (*awsEc2query_deserializeOpSearchLocalGatewayRoutes) ID() string { + return "OperationDeserializer" +} + +func (m *awsEc2query_deserializeOpSearchLocalGatewayRoutes) 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 + } + + 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_deserializeOpErrorSearchLocalGatewayRoutes(response, &metadata) + } + output := &SearchLocalGatewayRoutesOutput{} + 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_deserializeOpDocumentSearchLocalGatewayRoutesOutput(&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_deserializeOpErrorSearchLocalGatewayRoutes(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_deserializeOpSearchTransitGatewayMulticastGroups struct { +} + +func (*awsEc2query_deserializeOpSearchTransitGatewayMulticastGroups) ID() string { + return "OperationDeserializer" +} + +func (m *awsEc2query_deserializeOpSearchTransitGatewayMulticastGroups) 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 + } + + 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_deserializeOpErrorSearchTransitGatewayMulticastGroups(response, &metadata) + } + output := &SearchTransitGatewayMulticastGroupsOutput{} + 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_deserializeOpDocumentSearchTransitGatewayMulticastGroupsOutput(&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_deserializeOpErrorSearchTransitGatewayMulticastGroups(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_deserializeOpSearchTransitGatewayRoutes struct { +} + +func (*awsEc2query_deserializeOpSearchTransitGatewayRoutes) ID() string { + return "OperationDeserializer" +} + +func (m *awsEc2query_deserializeOpSearchTransitGatewayRoutes) 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 + } + + 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_deserializeOpErrorSearchTransitGatewayRoutes(response, &metadata) + } + output := &SearchTransitGatewayRoutesOutput{} + 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_deserializeOpDocumentSearchTransitGatewayRoutesOutput(&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_deserializeOpErrorSearchTransitGatewayRoutes(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_deserializeOpSendDiagnosticInterrupt struct { +} + +func (*awsEc2query_deserializeOpSendDiagnosticInterrupt) ID() string { + return "OperationDeserializer" +} + +func (m *awsEc2query_deserializeOpSendDiagnosticInterrupt) 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 + } + + 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_deserializeOpErrorSendDiagnosticInterrupt(response, &metadata) + } + output := &SendDiagnosticInterruptOutput{} + 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_deserializeOpErrorSendDiagnosticInterrupt(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_deserializeOpStartInstances struct { +} + +func (*awsEc2query_deserializeOpStartInstances) ID() string { + return "OperationDeserializer" +} + +func (m *awsEc2query_deserializeOpStartInstances) 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 + } + + 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_deserializeOpErrorStartInstances(response, &metadata) + } + output := &StartInstancesOutput{} + 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_deserializeOpDocumentStartInstancesOutput(&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_deserializeOpErrorStartInstances(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_deserializeOpStartNetworkInsightsAnalysis struct { +} + +func (*awsEc2query_deserializeOpStartNetworkInsightsAnalysis) ID() string { + return "OperationDeserializer" +} + +func (m *awsEc2query_deserializeOpStartNetworkInsightsAnalysis) 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 + } + + 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_deserializeOpErrorStartNetworkInsightsAnalysis(response, &metadata) + } + output := &StartNetworkInsightsAnalysisOutput{} + 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_deserializeOpDocumentStartNetworkInsightsAnalysisOutput(&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_deserializeOpErrorStartNetworkInsightsAnalysis(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_deserializeOpStartVpcEndpointServicePrivateDnsVerification struct { +} + +func (*awsEc2query_deserializeOpStartVpcEndpointServicePrivateDnsVerification) ID() string { + return "OperationDeserializer" +} + +func (m *awsEc2query_deserializeOpStartVpcEndpointServicePrivateDnsVerification) 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 + } + + 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_deserializeOpErrorStartVpcEndpointServicePrivateDnsVerification(response, &metadata) + } + output := &StartVpcEndpointServicePrivateDnsVerificationOutput{} + 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_deserializeOpDocumentStartVpcEndpointServicePrivateDnsVerificationOutput(&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_deserializeOpErrorStartVpcEndpointServicePrivateDnsVerification(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_deserializeOpStopInstances struct { +} + +func (*awsEc2query_deserializeOpStopInstances) ID() string { + return "OperationDeserializer" +} + +func (m *awsEc2query_deserializeOpStopInstances) 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 + } + + 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_deserializeOpErrorStopInstances(response, &metadata) + } + output := &StopInstancesOutput{} + 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_deserializeOpDocumentStopInstancesOutput(&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_deserializeOpErrorStopInstances(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)} @@ -39862,7 +41136,7 @@ func awsEc2query_deserializeDocumentAnalysisAclRule(v **types.AnalysisAclRule, d if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.Egress = xtv + sv.Egress = ptr.Bool(xtv) } case strings.EqualFold("portRange", t.Name.Local): @@ -39911,7 +41185,7 @@ func awsEc2query_deserializeDocumentAnalysisAclRule(v **types.AnalysisAclRule, d if err != nil { return err } - sv.RuleNumber = int32(i64) + sv.RuleNumber = ptr.Int32(int32(i64)) } default: @@ -40094,7 +41368,7 @@ func awsEc2query_deserializeDocumentAnalysisLoadBalancerListener(v **types.Analy if err != nil { return err } - sv.InstancePort = int32(i64) + sv.InstancePort = ptr.Int32(int32(i64)) } case strings.EqualFold("loadBalancerPort", t.Name.Local): @@ -40111,7 +41385,7 @@ func awsEc2query_deserializeDocumentAnalysisLoadBalancerListener(v **types.Analy if err != nil { return err } - sv.LoadBalancerPort = int32(i64) + sv.LoadBalancerPort = ptr.Int32(int32(i64)) } default: @@ -40196,7 +41470,7 @@ func awsEc2query_deserializeDocumentAnalysisLoadBalancerTarget(v **types.Analysi if err != nil { return err } - sv.Port = int32(i64) + sv.Port = ptr.Int32(int32(i64)) } default: @@ -41219,7 +42493,7 @@ func awsEc2query_deserializeDocumentAttributeBooleanValue(v **types.AttributeBoo if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.Value = xtv + sv.Value = ptr.Bool(xtv) } default: @@ -41320,7 +42594,7 @@ func awsEc2query_deserializeDocumentAuthorizationRule(v **types.AuthorizationRul if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.AccessAll = xtv + sv.AccessAll = ptr.Bool(xtv) } case strings.EqualFold("clientVpnEndpointId", t.Name.Local): @@ -41862,7 +43136,7 @@ func awsEc2query_deserializeDocumentAvailableCapacity(v **types.AvailableCapacit if err != nil { return err } - sv.AvailableVCpus = int32(i64) + sv.AvailableVCpus = ptr.Int32(int32(i64)) } default: @@ -43116,7 +44390,7 @@ func awsEc2query_deserializeDocumentCapacityReservation(v **types.CapacityReserv if err != nil { return err } - sv.AvailableInstanceCount = int32(i64) + sv.AvailableInstanceCount = ptr.Int32(int32(i64)) } case strings.EqualFold("capacityReservationArn", t.Name.Local): @@ -43175,7 +44449,7 @@ func awsEc2query_deserializeDocumentCapacityReservation(v **types.CapacityReserv if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.EbsOptimized = xtv + sv.EbsOptimized = ptr.Bool(xtv) } case strings.EqualFold("endDate", t.Name.Local): @@ -43221,7 +44495,7 @@ func awsEc2query_deserializeDocumentCapacityReservation(v **types.CapacityReserv if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.EphemeralStorage = xtv + sv.EphemeralStorage = ptr.Bool(xtv) } case strings.EqualFold("instanceMatchCriteria", t.Name.Local): @@ -43263,6 +44537,19 @@ func awsEc2query_deserializeDocumentCapacityReservation(v **types.CapacityReserv sv.InstanceType = ptr.String(xtv) } + case strings.EqualFold("outpostArn", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.OutpostArn = ptr.String(xtv) + } + case strings.EqualFold("ownerId", t.Name.Local): val, err := decoder.Value() if err != nil { @@ -43276,6 +44563,23 @@ func awsEc2query_deserializeDocumentCapacityReservation(v **types.CapacityReserv sv.OwnerId = 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("state", t.Name.Local): val, err := decoder.Value() if err != nil { @@ -43322,7 +44626,7 @@ func awsEc2query_deserializeDocumentCapacityReservation(v **types.CapacityReserv if err != nil { return err } - sv.TotalInstanceCount = int32(i64) + sv.TotalInstanceCount = ptr.Int32(int32(i64)) } default: @@ -44066,7 +45370,7 @@ func awsEc2query_deserializeDocumentClassicLinkDnsSupport(v **types.ClassicLinkD if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.ClassicLinkDnsSupported = xtv + sv.ClassicLinkDnsSupported = ptr.Bool(xtv) } case strings.EqualFold("vpcId", t.Name.Local): @@ -44562,7 +45866,7 @@ func awsEc2query_deserializeDocumentClientConnectResponseOptions(v **types.Clien if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.Enabled = xtv + sv.Enabled = ptr.Bool(xtv) } case strings.EqualFold("lambdaFunctionArn", t.Name.Local): @@ -45304,7 +46608,7 @@ func awsEc2query_deserializeDocumentClientVpnEndpoint(v **types.ClientVpnEndpoin if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.SplitTunnel = xtv + sv.SplitTunnel = ptr.Bool(xtv) } case strings.EqualFold("status", t.Name.Local): @@ -45359,7 +46663,7 @@ func awsEc2query_deserializeDocumentClientVpnEndpoint(v **types.ClientVpnEndpoin if err != nil { return err } - sv.VpnPort = int32(i64) + sv.VpnPort = ptr.Int32(int32(i64)) } case strings.EqualFold("vpnProtocol", t.Name.Local): @@ -46215,7 +47519,7 @@ func awsEc2query_deserializeDocumentConnectionLogResponseOptions(v **types.Conne if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.Enabled = xtv + sv.Enabled = ptr.Bool(xtv) } default: @@ -46650,7 +47954,7 @@ func awsEc2query_deserializeDocumentCpuOptions(v **types.CpuOptions, decoder smi if err != nil { return err } - sv.CoreCount = int32(i64) + sv.CoreCount = ptr.Int32(int32(i64)) } case strings.EqualFold("threadsPerCore", t.Name.Local): @@ -46667,7 +47971,7 @@ func awsEc2query_deserializeDocumentCpuOptions(v **types.CpuOptions, decoder smi if err != nil { return err } - sv.ThreadsPerCore = int32(i64) + sv.ThreadsPerCore = ptr.Int32(int32(i64)) } default: @@ -47764,7 +49068,7 @@ func awsEc2query_deserializeDocumentDeleteLaunchTemplateVersionsResponseErrorIte if err != nil { return err } - sv.VersionNumber = i64 + sv.VersionNumber = ptr.Int64(i64) } default: @@ -47911,7 +49215,7 @@ func awsEc2query_deserializeDocumentDeleteLaunchTemplateVersionsResponseSuccessI if err != nil { return err } - sv.VersionNumber = i64 + sv.VersionNumber = ptr.Int64(i64) } default: @@ -49729,7 +51033,7 @@ func awsEc2query_deserializeDocumentDiskImageDescription(v **types.DiskImageDesc if err != nil { return err } - sv.Size = i64 + sv.Size = ptr.Int64(i64) } default: @@ -49795,7 +51099,7 @@ func awsEc2query_deserializeDocumentDiskImageVolumeDescription(v **types.DiskIma if err != nil { return err } - sv.Size = i64 + sv.Size = ptr.Int64(i64) } default: @@ -50128,7 +51432,7 @@ func awsEc2query_deserializeDocumentEbsBlockDevice(v **types.EbsBlockDevice, dec if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.DeleteOnTermination = xtv + sv.DeleteOnTermination = ptr.Bool(xtv) } case strings.EqualFold("encrypted", t.Name.Local): @@ -50144,7 +51448,7 @@ func awsEc2query_deserializeDocumentEbsBlockDevice(v **types.EbsBlockDevice, dec if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.Encrypted = xtv + sv.Encrypted = ptr.Bool(xtv) } case strings.EqualFold("iops", t.Name.Local): @@ -50161,7 +51465,7 @@ func awsEc2query_deserializeDocumentEbsBlockDevice(v **types.EbsBlockDevice, dec if err != nil { return err } - sv.Iops = int32(i64) + sv.Iops = ptr.Int32(int32(i64)) } case strings.EqualFold("KmsKeyId", t.Name.Local): @@ -50217,7 +51521,7 @@ func awsEc2query_deserializeDocumentEbsBlockDevice(v **types.EbsBlockDevice, dec if err != nil { return err } - sv.Throughput = int32(i64) + sv.Throughput = ptr.Int32(int32(i64)) } case strings.EqualFold("volumeSize", t.Name.Local): @@ -50234,7 +51538,7 @@ func awsEc2query_deserializeDocumentEbsBlockDevice(v **types.EbsBlockDevice, dec if err != nil { return err } - sv.VolumeSize = int32(i64) + sv.VolumeSize = ptr.Int32(int32(i64)) } case strings.EqualFold("volumeType", t.Name.Local): @@ -50397,7 +51701,7 @@ func awsEc2query_deserializeDocumentEbsInstanceBlockDevice(v **types.EbsInstance if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.DeleteOnTermination = xtv + sv.DeleteOnTermination = ptr.Bool(xtv) } case strings.EqualFold("status", t.Name.Local): @@ -50578,6 +51882,59 @@ func awsEc2query_deserializeDocumentEbsOptimizedInfo(v **types.EbsOptimizedInfo, return nil } +func awsEc2query_deserializeDocumentEfaInfo(v **types.EfaInfo, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *types.EfaInfo + if *v == nil { + sv = &types.EfaInfo{} + } 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("maximumEfaInterfaces", 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.MaximumEfaInterfaces = 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_deserializeDocumentEgressOnlyInternetGateway(v **types.EgressOnlyInternetGateway, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -51980,7 +53337,7 @@ func awsEc2query_deserializeDocumentEnclaveOptions(v **types.EnclaveOptions, dec if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.Enabled = xtv + sv.Enabled = ptr.Bool(xtv) } default: @@ -52380,7 +53737,7 @@ func awsEc2query_deserializeDocumentExplanation(v **types.Explanation, decoder s if err != nil { return err } - sv.LoadBalancerListenerPort = int32(i64) + sv.LoadBalancerListenerPort = ptr.Int32(int32(i64)) } case strings.EqualFold("loadBalancerTarget", t.Name.Local): @@ -52415,7 +53772,7 @@ func awsEc2query_deserializeDocumentExplanation(v **types.Explanation, decoder s if err != nil { return err } - sv.LoadBalancerTargetPort = int32(i64) + sv.LoadBalancerTargetPort = ptr.Int32(int32(i64)) } case strings.EqualFold("missingComponent", t.Name.Local): @@ -52470,7 +53827,7 @@ func awsEc2query_deserializeDocumentExplanation(v **types.Explanation, decoder s if err != nil { return err } - sv.Port = int32(i64) + sv.Port = ptr.Int32(int32(i64)) } case strings.EqualFold("portRangeSet", t.Name.Local): @@ -53415,6 +54772,19 @@ func awsEc2query_deserializeDocumentFleetData(v **types.FleetData, decoder smith sv.ClientToken = ptr.String(xtv) } + case strings.EqualFold("context", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.Context = ptr.String(xtv) + } + case strings.EqualFold("createTime", t.Name.Local): val, err := decoder.Value() if err != nil { @@ -53491,7 +54861,7 @@ func awsEc2query_deserializeDocumentFleetData(v **types.FleetData, decoder smith if err != nil { return err } - sv.FulfilledCapacity = f64 + sv.FulfilledCapacity = ptr.Float64(f64) } case strings.EqualFold("fulfilledOnDemandCapacity", t.Name.Local): @@ -53508,7 +54878,7 @@ func awsEc2query_deserializeDocumentFleetData(v **types.FleetData, decoder smith if err != nil { return err } - sv.FulfilledOnDemandCapacity = f64 + sv.FulfilledOnDemandCapacity = ptr.Float64(f64) } case strings.EqualFold("fleetInstanceSet", t.Name.Local): @@ -53542,7 +54912,7 @@ func awsEc2query_deserializeDocumentFleetData(v **types.FleetData, decoder smith if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.ReplaceUnhealthyInstances = xtv + sv.ReplaceUnhealthyInstances = ptr.Bool(xtv) } case strings.EqualFold("spotOptions", t.Name.Local): @@ -53576,7 +54946,7 @@ func awsEc2query_deserializeDocumentFleetData(v **types.FleetData, decoder smith if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.TerminateInstancesWithExpiration = xtv + sv.TerminateInstancesWithExpiration = ptr.Bool(xtv) } case strings.EqualFold("type", t.Name.Local): @@ -53837,7 +55207,7 @@ func awsEc2query_deserializeDocumentFleetLaunchTemplateOverrides(v **types.Fleet if err != nil { return err } - sv.Priority = f64 + sv.Priority = ptr.Float64(f64) } case strings.EqualFold("subnetId", t.Name.Local): @@ -53867,7 +55237,7 @@ func awsEc2query_deserializeDocumentFleetLaunchTemplateOverrides(v **types.Fleet if err != nil { return err } - sv.WeightedCapacity = f64 + sv.WeightedCapacity = ptr.Float64(f64) } default: @@ -54356,7 +55726,7 @@ func awsEc2query_deserializeDocumentFlowLog(v **types.FlowLog, decoder smithyxml if err != nil { return err } - sv.MaxAggregationInterval = int32(i64) + sv.MaxAggregationInterval = ptr.Int32(int32(i64)) } case strings.EqualFold("resourceId", t.Name.Local): @@ -54731,7 +56101,7 @@ func awsEc2query_deserializeDocumentFpgaImage(v **types.FpgaImage, decoder smith if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.DataRetentionSupport = xtv + sv.DataRetentionSupport = ptr.Bool(xtv) } case strings.EqualFold("description", t.Name.Local): @@ -54837,7 +56207,7 @@ func awsEc2query_deserializeDocumentFpgaImage(v **types.FpgaImage, decoder smith if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.Public = xtv + sv.Public = ptr.Bool(xtv) } case strings.EqualFold("shellVersion", t.Name.Local): @@ -55750,7 +57120,7 @@ func awsEc2query_deserializeDocumentHibernationOptions(v **types.HibernationOpti if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.Configured = xtv + sv.Configured = ptr.Bool(xtv) } default: @@ -56221,7 +57591,7 @@ func awsEc2query_deserializeDocumentHost(v **types.Host, decoder smithyxml.NodeD if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.MemberOfServiceLinkedResourceGroup = xtv + sv.MemberOfServiceLinkedResourceGroup = ptr.Bool(xtv) } case strings.EqualFold("ownerId", t.Name.Local): @@ -56547,7 +57917,7 @@ func awsEc2query_deserializeDocumentHostOffering(v **types.HostOffering, decoder if err != nil { return err } - sv.Duration = int32(i64) + sv.Duration = ptr.Int32(int32(i64)) } case strings.EqualFold("hourlyPrice", t.Name.Local): @@ -56733,7 +58103,7 @@ func awsEc2query_deserializeDocumentHostProperties(v **types.HostProperties, dec if err != nil { return err } - sv.Cores = int32(i64) + sv.Cores = ptr.Int32(int32(i64)) } case strings.EqualFold("instanceFamily", t.Name.Local): @@ -56776,7 +58146,7 @@ func awsEc2query_deserializeDocumentHostProperties(v **types.HostProperties, dec if err != nil { return err } - sv.Sockets = int32(i64) + sv.Sockets = ptr.Int32(int32(i64)) } case strings.EqualFold("totalVCpus", t.Name.Local): @@ -56793,7 +58163,7 @@ func awsEc2query_deserializeDocumentHostProperties(v **types.HostProperties, dec if err != nil { return err } - sv.TotalVCpus = int32(i64) + sv.TotalVCpus = ptr.Int32(int32(i64)) } default: @@ -56846,7 +58216,7 @@ func awsEc2query_deserializeDocumentHostReservation(v **types.HostReservation, d if err != nil { return err } - sv.Count = int32(i64) + sv.Count = ptr.Int32(int32(i64)) } case strings.EqualFold("currencyCode", t.Name.Local): @@ -56876,7 +58246,7 @@ func awsEc2query_deserializeDocumentHostReservation(v **types.HostReservation, d if err != nil { return err } - sv.Duration = int32(i64) + sv.Duration = ptr.Int32(int32(i64)) } case strings.EqualFold("end", t.Name.Local): @@ -57424,7 +58794,7 @@ func awsEc2query_deserializeDocumentIcmpTypeCode(v **types.IcmpTypeCode, decoder if err != nil { return err } - sv.Code = int32(i64) + sv.Code = ptr.Int32(int32(i64)) } case strings.EqualFold("type", t.Name.Local): @@ -57441,7 +58811,7 @@ func awsEc2query_deserializeDocumentIcmpTypeCode(v **types.IcmpTypeCode, decoder if err != nil { return err } - sv.Type = int32(i64) + sv.Type = ptr.Int32(int32(i64)) } default: @@ -57523,7 +58893,7 @@ func awsEc2query_deserializeDocumentIdFormat(v **types.IdFormat, decoder smithyx if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.UseLongIds = xtv + sv.UseLongIds = ptr.Bool(xtv) } default: @@ -57792,6 +59162,19 @@ func awsEc2query_deserializeDocumentImage(v **types.Image, decoder smithyxml.Nod sv.CreationDate = ptr.String(xtv) } + case strings.EqualFold("deprecationTime", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.DeprecationTime = ptr.String(xtv) + } + case strings.EqualFold("description", t.Name.Local): val, err := decoder.Value() if err != nil { @@ -57818,7 +59201,7 @@ func awsEc2query_deserializeDocumentImage(v **types.Image, decoder smithyxml.Nod if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.EnaSupport = xtv + sv.EnaSupport = ptr.Bool(xtv) } case strings.EqualFold("hypervisor", t.Name.Local): @@ -57970,7 +59353,7 @@ func awsEc2query_deserializeDocumentImage(v **types.Image, decoder smithyxml.Nod if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.Public = xtv + sv.Public = ptr.Bool(xtv) } case strings.EqualFold("ramdiskId", t.Name.Local): @@ -58336,7 +59719,7 @@ func awsEc2query_deserializeDocumentImportImageTask(v **types.ImportImageTask, d if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.Encrypted = xtv + sv.Encrypted = ptr.Bool(xtv) } case strings.EqualFold("hypervisor", t.Name.Local): @@ -58686,7 +60069,7 @@ func awsEc2query_deserializeDocumentImportInstanceVolumeDetailItem(v **types.Imp if err != nil { return err } - sv.BytesConverted = i64 + sv.BytesConverted = ptr.Int64(i64) } case strings.EqualFold("description", t.Name.Local): @@ -59013,7 +60396,7 @@ func awsEc2query_deserializeDocumentImportVolumeTaskDetails(v **types.ImportVolu if err != nil { return err } - sv.BytesConverted = i64 + sv.BytesConverted = ptr.Int64(i64) } case strings.EqualFold("description", t.Name.Local): @@ -59360,7 +60743,7 @@ func awsEc2query_deserializeDocumentInstance(v **types.Instance, decoder smithyx if err != nil { return err } - sv.AmiLaunchIndex = int32(i64) + sv.AmiLaunchIndex = ptr.Int32(int32(i64)) } case strings.EqualFold("architecture", t.Name.Local): @@ -59446,7 +60829,7 @@ func awsEc2query_deserializeDocumentInstance(v **types.Instance, decoder smithyx if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.EbsOptimized = xtv + sv.EbsOptimized = ptr.Bool(xtv) } case strings.EqualFold("elasticGpuAssociationSet", t.Name.Local): @@ -59474,7 +60857,7 @@ func awsEc2query_deserializeDocumentInstance(v **types.Instance, decoder smithyx if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.EnaSupport = xtv + sv.EnaSupport = ptr.Bool(xtv) } case strings.EqualFold("enclaveOptions", t.Name.Local): @@ -59775,7 +61158,7 @@ func awsEc2query_deserializeDocumentInstance(v **types.Instance, decoder smithyx if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.SourceDestCheck = xtv + sv.SourceDestCheck = ptr.Bool(xtv) } case strings.EqualFold("spotInstanceRequestId", t.Name.Local): @@ -60047,7 +61430,7 @@ func awsEc2query_deserializeDocumentInstanceCapacity(v **types.InstanceCapacity, if err != nil { return err } - sv.AvailableCapacity = int32(i64) + sv.AvailableCapacity = ptr.Int32(int32(i64)) } case strings.EqualFold("instanceType", t.Name.Local): @@ -60077,7 +61460,7 @@ func awsEc2query_deserializeDocumentInstanceCapacity(v **types.InstanceCapacity, if err != nil { return err } - sv.TotalCapacity = int32(i64) + sv.TotalCapacity = ptr.Int32(int32(i64)) } default: @@ -60130,7 +61513,7 @@ func awsEc2query_deserializeDocumentInstanceCount(v **types.InstanceCount, decod if err != nil { return err } - sv.InstanceCount = int32(i64) + sv.InstanceCount = ptr.Int32(int32(i64)) } case strings.EqualFold("state", t.Name.Local): @@ -60876,7 +62259,7 @@ func awsEc2query_deserializeDocumentInstanceMetadataOptionsResponse(v **types.In if err != nil { return err } - sv.HttpPutResponseHopLimit = int32(i64) + sv.HttpPutResponseHopLimit = ptr.Int32(int32(i64)) } case strings.EqualFold("httpTokens", t.Name.Local): @@ -61198,7 +62581,7 @@ func awsEc2query_deserializeDocumentInstanceNetworkInterface(v **types.InstanceN if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.SourceDestCheck = xtv + sv.SourceDestCheck = ptr.Bool(xtv) } case strings.EqualFold("status", t.Name.Local): @@ -61407,7 +62790,7 @@ func awsEc2query_deserializeDocumentInstanceNetworkInterfaceAttachment(v **types if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.DeleteOnTermination = xtv + sv.DeleteOnTermination = ptr.Bool(xtv) } case strings.EqualFold("deviceIndex", t.Name.Local): @@ -61424,7 +62807,7 @@ func awsEc2query_deserializeDocumentInstanceNetworkInterfaceAttachment(v **types if err != nil { return err } - sv.DeviceIndex = int32(i64) + sv.DeviceIndex = ptr.Int32(int32(i64)) } case strings.EqualFold("networkCardIndex", t.Name.Local): @@ -61441,7 +62824,7 @@ func awsEc2query_deserializeDocumentInstanceNetworkInterfaceAttachment(v **types if err != nil { return err } - sv.NetworkCardIndex = int32(i64) + sv.NetworkCardIndex = ptr.Int32(int32(i64)) } case strings.EqualFold("status", t.Name.Local): @@ -61574,7 +62957,7 @@ func awsEc2query_deserializeDocumentInstanceNetworkInterfaceSpecification(v **ty if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.AssociateCarrierIpAddress = xtv + sv.AssociateCarrierIpAddress = ptr.Bool(xtv) } case strings.EqualFold("associatePublicIpAddress", t.Name.Local): @@ -61590,7 +62973,7 @@ func awsEc2query_deserializeDocumentInstanceNetworkInterfaceSpecification(v **ty if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.AssociatePublicIpAddress = xtv + sv.AssociatePublicIpAddress = ptr.Bool(xtv) } case strings.EqualFold("deleteOnTermination", t.Name.Local): @@ -61606,7 +62989,7 @@ func awsEc2query_deserializeDocumentInstanceNetworkInterfaceSpecification(v **ty if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.DeleteOnTermination = xtv + sv.DeleteOnTermination = ptr.Bool(xtv) } case strings.EqualFold("description", t.Name.Local): @@ -61636,7 +63019,7 @@ func awsEc2query_deserializeDocumentInstanceNetworkInterfaceSpecification(v **ty if err != nil { return err } - sv.DeviceIndex = int32(i64) + sv.DeviceIndex = ptr.Int32(int32(i64)) } case strings.EqualFold("SecurityGroupId", t.Name.Local): @@ -61672,7 +63055,7 @@ func awsEc2query_deserializeDocumentInstanceNetworkInterfaceSpecification(v **ty if err != nil { return err } - sv.Ipv6AddressCount = int32(i64) + sv.Ipv6AddressCount = ptr.Int32(int32(i64)) } case strings.EqualFold("ipv6AddressesSet", t.Name.Local): @@ -61695,7 +63078,7 @@ func awsEc2query_deserializeDocumentInstanceNetworkInterfaceSpecification(v **ty if err != nil { return err } - sv.NetworkCardIndex = int32(i64) + sv.NetworkCardIndex = ptr.Int32(int32(i64)) } case strings.EqualFold("networkInterfaceId", t.Name.Local): @@ -61744,7 +63127,7 @@ func awsEc2query_deserializeDocumentInstanceNetworkInterfaceSpecification(v **ty if err != nil { return err } - sv.SecondaryPrivateIpAddressCount = int32(i64) + sv.SecondaryPrivateIpAddressCount = ptr.Int32(int32(i64)) } case strings.EqualFold("subnetId", t.Name.Local): @@ -61883,7 +63266,7 @@ func awsEc2query_deserializeDocumentInstancePrivateIpAddress(v **types.InstanceP if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.Primary = xtv + sv.Primary = ptr.Bool(xtv) } case strings.EqualFold("privateDnsName", t.Name.Local): @@ -62030,7 +63413,7 @@ func awsEc2query_deserializeDocumentInstanceState(v **types.InstanceState, decod if err != nil { return err } - sv.Code = int32(i64) + sv.Code = ptr.Int32(int32(i64)) } case strings.EqualFold("name", t.Name.Local): @@ -62939,7 +64322,7 @@ func awsEc2query_deserializeDocumentInstanceTagNotificationAttribute(v **types.I if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.IncludeAllTagsOfInstance = xtv + sv.IncludeAllTagsOfInstance = ptr.Bool(xtv) } case strings.EqualFold("instanceTagKeySet", t.Name.Local): @@ -63496,7 +64879,7 @@ func awsEc2query_deserializeDocumentInstanceUsage(v **types.InstanceUsage, decod if err != nil { return err } - sv.UsedInstanceCount = int32(i64) + sv.UsedInstanceCount = ptr.Int32(int32(i64)) } default: @@ -63969,7 +65352,7 @@ func awsEc2query_deserializeDocumentIpPermission(v **types.IpPermission, decoder if err != nil { return err } - sv.FromPort = int32(i64) + sv.FromPort = ptr.Int32(int32(i64)) } case strings.EqualFold("ipProtocol", t.Name.Local): @@ -64017,7 +65400,7 @@ func awsEc2query_deserializeDocumentIpPermission(v **types.IpPermission, decoder if err != nil { return err } - sv.ToPort = int32(i64) + sv.ToPort = ptr.Int32(int32(i64)) } case strings.EqualFold("groups", t.Name.Local): @@ -65312,7 +66695,7 @@ func awsEc2query_deserializeDocumentLaunchSpecification(v **types.LaunchSpecific if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.EbsOptimized = xtv + sv.EbsOptimized = ptr.Bool(xtv) } case strings.EqualFold("iamInstanceProfile", t.Name.Local): @@ -65584,7 +66967,7 @@ func awsEc2query_deserializeDocumentLaunchTemplate(v **types.LaunchTemplate, dec if err != nil { return err } - sv.DefaultVersionNumber = i64 + sv.DefaultVersionNumber = ptr.Int64(i64) } case strings.EqualFold("latestVersionNumber", t.Name.Local): @@ -65601,7 +66984,7 @@ func awsEc2query_deserializeDocumentLaunchTemplate(v **types.LaunchTemplate, dec if err != nil { return err } - sv.LatestVersionNumber = i64 + sv.LatestVersionNumber = ptr.Int64(i64) } case strings.EqualFold("launchTemplateId", t.Name.Local): @@ -66054,7 +67437,7 @@ func awsEc2query_deserializeDocumentLaunchTemplateCpuOptions(v **types.LaunchTem if err != nil { return err } - sv.CoreCount = int32(i64) + sv.CoreCount = ptr.Int32(int32(i64)) } case strings.EqualFold("threadsPerCore", t.Name.Local): @@ -66071,7 +67454,7 @@ func awsEc2query_deserializeDocumentLaunchTemplateCpuOptions(v **types.LaunchTem if err != nil { return err } - sv.ThreadsPerCore = int32(i64) + sv.ThreadsPerCore = ptr.Int32(int32(i64)) } default: @@ -66123,7 +67506,7 @@ func awsEc2query_deserializeDocumentLaunchTemplateEbsBlockDevice(v **types.Launc if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.DeleteOnTermination = xtv + sv.DeleteOnTermination = ptr.Bool(xtv) } case strings.EqualFold("encrypted", t.Name.Local): @@ -66139,7 +67522,7 @@ func awsEc2query_deserializeDocumentLaunchTemplateEbsBlockDevice(v **types.Launc if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.Encrypted = xtv + sv.Encrypted = ptr.Bool(xtv) } case strings.EqualFold("iops", t.Name.Local): @@ -66156,7 +67539,7 @@ func awsEc2query_deserializeDocumentLaunchTemplateEbsBlockDevice(v **types.Launc if err != nil { return err } - sv.Iops = int32(i64) + sv.Iops = ptr.Int32(int32(i64)) } case strings.EqualFold("kmsKeyId", t.Name.Local): @@ -66199,7 +67582,7 @@ func awsEc2query_deserializeDocumentLaunchTemplateEbsBlockDevice(v **types.Launc if err != nil { return err } - sv.Throughput = int32(i64) + sv.Throughput = ptr.Int32(int32(i64)) } case strings.EqualFold("volumeSize", t.Name.Local): @@ -66216,7 +67599,7 @@ func awsEc2query_deserializeDocumentLaunchTemplateEbsBlockDevice(v **types.Launc if err != nil { return err } - sv.VolumeSize = int32(i64) + sv.VolumeSize = ptr.Int32(int32(i64)) } case strings.EqualFold("volumeType", t.Name.Local): @@ -66282,7 +67665,7 @@ func awsEc2query_deserializeDocumentLaunchTemplateElasticInferenceAcceleratorRes if err != nil { return err } - sv.Count = int32(i64) + sv.Count = ptr.Int32(int32(i64)) } case strings.EqualFold("type", t.Name.Local): @@ -66415,7 +67798,7 @@ func awsEc2query_deserializeDocumentLaunchTemplateEnclaveOptions(v **types.Launc if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.Enabled = xtv + sv.Enabled = ptr.Bool(xtv) } default: @@ -66467,7 +67850,7 @@ func awsEc2query_deserializeDocumentLaunchTemplateHibernationOptions(v **types.L if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.Configured = xtv + sv.Configured = ptr.Bool(xtv) } default: @@ -66650,7 +68033,7 @@ func awsEc2query_deserializeDocumentLaunchTemplateInstanceMetadataOptions(v **ty if err != nil { return err } - sv.HttpPutResponseHopLimit = int32(i64) + sv.HttpPutResponseHopLimit = ptr.Int32(int32(i64)) } case strings.EqualFold("httpTokens", t.Name.Local): @@ -66728,7 +68111,7 @@ func awsEc2query_deserializeDocumentLaunchTemplateInstanceNetworkInterfaceSpecif if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.AssociateCarrierIpAddress = xtv + sv.AssociateCarrierIpAddress = ptr.Bool(xtv) } case strings.EqualFold("associatePublicIpAddress", t.Name.Local): @@ -66744,7 +68127,7 @@ func awsEc2query_deserializeDocumentLaunchTemplateInstanceNetworkInterfaceSpecif if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.AssociatePublicIpAddress = xtv + sv.AssociatePublicIpAddress = ptr.Bool(xtv) } case strings.EqualFold("deleteOnTermination", t.Name.Local): @@ -66760,7 +68143,7 @@ func awsEc2query_deserializeDocumentLaunchTemplateInstanceNetworkInterfaceSpecif if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.DeleteOnTermination = xtv + sv.DeleteOnTermination = ptr.Bool(xtv) } case strings.EqualFold("description", t.Name.Local): @@ -66790,7 +68173,7 @@ func awsEc2query_deserializeDocumentLaunchTemplateInstanceNetworkInterfaceSpecif if err != nil { return err } - sv.DeviceIndex = int32(i64) + sv.DeviceIndex = ptr.Int32(int32(i64)) } case strings.EqualFold("groupSet", t.Name.Local): @@ -66826,7 +68209,7 @@ func awsEc2query_deserializeDocumentLaunchTemplateInstanceNetworkInterfaceSpecif if err != nil { return err } - sv.Ipv6AddressCount = int32(i64) + sv.Ipv6AddressCount = ptr.Int32(int32(i64)) } case strings.EqualFold("ipv6AddressesSet", t.Name.Local): @@ -66849,7 +68232,7 @@ func awsEc2query_deserializeDocumentLaunchTemplateInstanceNetworkInterfaceSpecif if err != nil { return err } - sv.NetworkCardIndex = int32(i64) + sv.NetworkCardIndex = ptr.Int32(int32(i64)) } case strings.EqualFold("networkInterfaceId", t.Name.Local): @@ -66898,7 +68281,7 @@ func awsEc2query_deserializeDocumentLaunchTemplateInstanceNetworkInterfaceSpecif if err != nil { return err } - sv.SecondaryPrivateIpAddressCount = int32(i64) + sv.SecondaryPrivateIpAddressCount = ptr.Int32(int32(i64)) } case strings.EqualFold("subnetId", t.Name.Local): @@ -67175,7 +68558,7 @@ func awsEc2query_deserializeDocumentLaunchTemplateOverrides(v **types.LaunchTemp if err != nil { return err } - sv.Priority = f64 + sv.Priority = ptr.Float64(f64) } case strings.EqualFold("spotPrice", t.Name.Local): @@ -67218,7 +68601,7 @@ func awsEc2query_deserializeDocumentLaunchTemplateOverrides(v **types.LaunchTemp if err != nil { return err } - sv.WeightedCapacity = f64 + sv.WeightedCapacity = ptr.Float64(f64) } default: @@ -67404,7 +68787,7 @@ func awsEc2query_deserializeDocumentLaunchTemplatePlacement(v **types.LaunchTemp if err != nil { return err } - sv.PartitionNumber = int32(i64) + sv.PartitionNumber = ptr.Int32(int32(i64)) } case strings.EqualFold("spreadDomain", t.Name.Local): @@ -67550,7 +68933,7 @@ func awsEc2query_deserializeDocumentLaunchTemplatesMonitoring(v **types.LaunchTe if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.Enabled = xtv + sv.Enabled = ptr.Bool(xtv) } default: @@ -67603,7 +68986,7 @@ func awsEc2query_deserializeDocumentLaunchTemplateSpotMarketOptions(v **types.La if err != nil { return err } - sv.BlockDurationMinutes = int32(i64) + sv.BlockDurationMinutes = ptr.Int32(int32(i64)) } case strings.EqualFold("instanceInterruptionBehavior", t.Name.Local): @@ -67864,7 +69247,7 @@ func awsEc2query_deserializeDocumentLaunchTemplateVersion(v **types.LaunchTempla if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.DefaultVersion = xtv + sv.DefaultVersion = ptr.Bool(xtv) } case strings.EqualFold("launchTemplateData", t.Name.Local): @@ -67926,7 +69309,7 @@ func awsEc2query_deserializeDocumentLaunchTemplateVersion(v **types.LaunchTempla if err != nil { return err } - sv.VersionNumber = i64 + sv.VersionNumber = ptr.Int64(i64) } default: @@ -69302,7 +70685,7 @@ func awsEc2query_deserializeDocumentLocalGatewayVirtualInterface(v **types.Local if err != nil { return err } - sv.LocalBgpAsn = int32(i64) + sv.LocalBgpAsn = ptr.Int32(int32(i64)) } case strings.EqualFold("localGatewayId", t.Name.Local): @@ -69371,7 +70754,7 @@ func awsEc2query_deserializeDocumentLocalGatewayVirtualInterface(v **types.Local if err != nil { return err } - sv.PeerBgpAsn = int32(i64) + sv.PeerBgpAsn = ptr.Int32(int32(i64)) } case strings.EqualFold("tagSet", t.Name.Local): @@ -69394,7 +70777,7 @@ func awsEc2query_deserializeDocumentLocalGatewayVirtualInterface(v **types.Local if err != nil { return err } - sv.Vlan = int32(i64) + sv.Vlan = ptr.Int32(int32(i64)) } default: @@ -69763,7 +71146,7 @@ func awsEc2query_deserializeDocumentManagedPrefixList(v **types.ManagedPrefixLis if err != nil { return err } - sv.MaxEntries = int32(i64) + sv.MaxEntries = ptr.Int32(int32(i64)) } case strings.EqualFold("ownerId", t.Name.Local): @@ -69864,7 +71247,7 @@ func awsEc2query_deserializeDocumentManagedPrefixList(v **types.ManagedPrefixLis if err != nil { return err } - sv.Version = i64 + sv.Version = ptr.Int64(i64) } default: @@ -70203,6 +71586,19 @@ func awsEc2query_deserializeDocumentNatGateway(v **types.NatGateway, decoder smi originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { + case strings.EqualFold("connectivityType", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.ConnectivityType = types.ConnectivityType(xtv) + } + case strings.EqualFold("createTime", t.Name.Local): val, err := decoder.Value() if err != nil { @@ -70618,7 +72014,7 @@ func awsEc2query_deserializeDocumentNetworkAcl(v **types.NetworkAcl, decoder smi if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.IsDefault = xtv + sv.IsDefault = ptr.Bool(xtv) } case strings.EqualFold("networkAclId", t.Name.Local): @@ -70871,7 +72267,7 @@ func awsEc2query_deserializeDocumentNetworkAclEntry(v **types.NetworkAclEntry, d if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.Egress = xtv + sv.Egress = ptr.Bool(xtv) } case strings.EqualFold("icmpTypeCode", t.Name.Local): @@ -70939,7 +72335,7 @@ func awsEc2query_deserializeDocumentNetworkAclEntry(v **types.NetworkAclEntry, d if err != nil { return err } - sv.RuleNumber = int32(i64) + sv.RuleNumber = ptr.Int32(int32(i64)) } default: @@ -71282,6 +72678,12 @@ func awsEc2query_deserializeDocumentNetworkInfo(v **types.NetworkInfo, decoder s sv.DefaultNetworkCardIndex = ptr.Int32(int32(i64)) } + case strings.EqualFold("efaInfo", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentEfaInfo(&sv.EfaInfo, nodeDecoder); err != nil { + return err + } + case strings.EqualFold("efaSupported", t.Name.Local): val, err := decoder.Value() if err != nil { @@ -71526,7 +72928,7 @@ func awsEc2query_deserializeDocumentNetworkInsightsAnalysis(v **types.NetworkIns if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.NetworkPathFound = xtv + sv.NetworkPathFound = ptr.Bool(xtv) } case strings.EqualFold("returnPathComponentSet", t.Name.Local): @@ -71745,7 +73147,7 @@ func awsEc2query_deserializeDocumentNetworkInsightsPath(v **types.NetworkInsight if err != nil { return err } - sv.DestinationPort = int32(i64) + sv.DestinationPort = ptr.Int32(int32(i64)) } case strings.EqualFold("networkInsightsPathArn", t.Name.Local): @@ -72096,7 +73498,7 @@ func awsEc2query_deserializeDocumentNetworkInterface(v **types.NetworkInterface, if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.RequesterManaged = xtv + sv.RequesterManaged = ptr.Bool(xtv) } case strings.EqualFold("sourceDestCheck", t.Name.Local): @@ -72112,7 +73514,7 @@ func awsEc2query_deserializeDocumentNetworkInterface(v **types.NetworkInterface, if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.SourceDestCheck = xtv + sv.SourceDestCheck = ptr.Bool(xtv) } case strings.EqualFold("status", t.Name.Local): @@ -72366,7 +73768,7 @@ func awsEc2query_deserializeDocumentNetworkInterfaceAttachment(v **types.Network if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.DeleteOnTermination = xtv + sv.DeleteOnTermination = ptr.Bool(xtv) } case strings.EqualFold("deviceIndex", t.Name.Local): @@ -72383,7 +73785,7 @@ func awsEc2query_deserializeDocumentNetworkInterfaceAttachment(v **types.Network if err != nil { return err } - sv.DeviceIndex = int32(i64) + sv.DeviceIndex = ptr.Int32(int32(i64)) } case strings.EqualFold("instanceId", t.Name.Local): @@ -72426,7 +73828,7 @@ func awsEc2query_deserializeDocumentNetworkInterfaceAttachment(v **types.Network if err != nil { return err } - sv.NetworkCardIndex = int32(i64) + sv.NetworkCardIndex = ptr.Int32(int32(i64)) } case strings.EqualFold("status", t.Name.Local): @@ -72919,7 +74321,7 @@ func awsEc2query_deserializeDocumentNetworkInterfacePrivateIpAddress(v **types.N if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.Primary = xtv + sv.Primary = ptr.Bool(xtv) } case strings.EqualFold("privateDnsName", t.Name.Local): @@ -73186,7 +74588,7 @@ func awsEc2query_deserializeDocumentOnDemandOptions(v **types.OnDemandOptions, d if err != nil { return err } - sv.MinTargetCapacity = int32(i64) + sv.MinTargetCapacity = ptr.Int32(int32(i64)) } case strings.EqualFold("singleAvailabilityZone", t.Name.Local): @@ -73202,7 +74604,7 @@ func awsEc2query_deserializeDocumentOnDemandOptions(v **types.OnDemandOptions, d if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.SingleAvailabilityZone = xtv + sv.SingleAvailabilityZone = ptr.Bool(xtv) } case strings.EqualFold("singleInstanceType", t.Name.Local): @@ -73218,7 +74620,7 @@ func awsEc2query_deserializeDocumentOnDemandOptions(v **types.OnDemandOptions, d if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.SingleInstanceType = xtv + sv.SingleInstanceType = ptr.Bool(xtv) } default: @@ -73313,7 +74715,7 @@ func awsEc2query_deserializeDocumentPathComponent(v **types.PathComponent, decod if err != nil { return err } - sv.SequenceNumber = int32(i64) + sv.SequenceNumber = ptr.Int32(int32(i64)) } case strings.EqualFold("sourceVpc", t.Name.Local): @@ -73601,7 +75003,7 @@ func awsEc2query_deserializeDocumentPeeringConnectionOptions(v **types.PeeringCo if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.AllowDnsResolutionFromRemoteVpc = xtv + sv.AllowDnsResolutionFromRemoteVpc = ptr.Bool(xtv) } case strings.EqualFold("allowEgressFromLocalClassicLinkToRemoteVpc", t.Name.Local): @@ -73617,7 +75019,7 @@ func awsEc2query_deserializeDocumentPeeringConnectionOptions(v **types.PeeringCo if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.AllowEgressFromLocalClassicLinkToRemoteVpc = xtv + sv.AllowEgressFromLocalClassicLinkToRemoteVpc = ptr.Bool(xtv) } case strings.EqualFold("allowEgressFromLocalVpcToRemoteClassicLink", t.Name.Local): @@ -73633,7 +75035,7 @@ func awsEc2query_deserializeDocumentPeeringConnectionOptions(v **types.PeeringCo if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.AllowEgressFromLocalVpcToRemoteClassicLink = xtv + sv.AllowEgressFromLocalVpcToRemoteClassicLink = ptr.Bool(xtv) } default: @@ -73829,7 +75231,7 @@ func awsEc2query_deserializeDocumentPhase1DHGroupNumbersListValue(v **types.Phas if err != nil { return err } - sv.Value = int32(i64) + sv.Value = ptr.Int32(int32(i64)) } default: @@ -74184,7 +75586,7 @@ func awsEc2query_deserializeDocumentPhase2DHGroupNumbersListValue(v **types.Phas if err != nil { return err } - sv.Value = int32(i64) + sv.Value = ptr.Int32(int32(i64)) } default: @@ -74536,7 +75938,7 @@ func awsEc2query_deserializeDocumentPlacement(v **types.Placement, decoder smith if err != nil { return err } - sv.PartitionNumber = int32(i64) + sv.PartitionNumber = ptr.Int32(int32(i64)) } case strings.EqualFold("spreadDomain", t.Name.Local): @@ -74641,7 +76043,7 @@ func awsEc2query_deserializeDocumentPlacementGroup(v **types.PlacementGroup, dec if err != nil { return err } - sv.PartitionCount = int32(i64) + sv.PartitionCount = ptr.Int32(int32(i64)) } case strings.EqualFold("state", t.Name.Local): @@ -75082,7 +76484,7 @@ func awsEc2query_deserializeDocumentPortRange(v **types.PortRange, decoder smith if err != nil { return err } - sv.From = int32(i64) + sv.From = ptr.Int32(int32(i64)) } case strings.EqualFold("to", t.Name.Local): @@ -75099,7 +76501,7 @@ func awsEc2query_deserializeDocumentPortRange(v **types.PortRange, decoder smith if err != nil { return err } - sv.To = int32(i64) + sv.To = ptr.Int32(int32(i64)) } default: @@ -75825,7 +77227,7 @@ func awsEc2query_deserializeDocumentPriceSchedule(v **types.PriceSchedule, decod if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.Active = xtv + sv.Active = ptr.Bool(xtv) } case strings.EqualFold("currencyCode", t.Name.Local): @@ -75855,7 +77257,7 @@ func awsEc2query_deserializeDocumentPriceSchedule(v **types.PriceSchedule, decod if err != nil { return err } - sv.Price = f64 + sv.Price = ptr.Float64(f64) } case strings.EqualFold("term", t.Name.Local): @@ -75872,7 +77274,7 @@ func awsEc2query_deserializeDocumentPriceSchedule(v **types.PriceSchedule, decod if err != nil { return err } - sv.Term = i64 + sv.Term = ptr.Int64(i64) } default: @@ -75993,7 +77395,7 @@ func awsEc2query_deserializeDocumentPricingDetail(v **types.PricingDetail, decod if err != nil { return err } - sv.Count = int32(i64) + sv.Count = ptr.Int32(int32(i64)) } case strings.EqualFold("price", t.Name.Local): @@ -76010,7 +77412,7 @@ func awsEc2query_deserializeDocumentPricingDetail(v **types.PricingDetail, decod if err != nil { return err } - sv.Price = f64 + sv.Price = ptr.Float64(f64) } default: @@ -76458,7 +77860,7 @@ func awsEc2query_deserializeDocumentPrivateIpAddressSpecification(v **types.Priv if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.Primary = xtv + sv.Primary = ptr.Bool(xtv) } case strings.EqualFold("privateIpAddress", t.Name.Local): @@ -77133,7 +78535,7 @@ func awsEc2query_deserializeDocumentPublicIpv4Pool(v **types.PublicIpv4Pool, dec if err != nil { return err } - sv.TotalAddressCount = int32(i64) + sv.TotalAddressCount = ptr.Int32(int32(i64)) } case strings.EqualFold("totalAvailableAddressCount", t.Name.Local): @@ -77150,7 +78552,7 @@ func awsEc2query_deserializeDocumentPublicIpv4Pool(v **types.PublicIpv4Pool, dec if err != nil { return err } - sv.TotalAvailableAddressCount = int32(i64) + sv.TotalAvailableAddressCount = ptr.Int32(int32(i64)) } default: @@ -77203,7 +78605,7 @@ func awsEc2query_deserializeDocumentPublicIpv4PoolRange(v **types.PublicIpv4Pool if err != nil { return err } - sv.AddressCount = int32(i64) + sv.AddressCount = ptr.Int32(int32(i64)) } case strings.EqualFold("availableAddressCount", t.Name.Local): @@ -77220,7 +78622,7 @@ func awsEc2query_deserializeDocumentPublicIpv4PoolRange(v **types.PublicIpv4Pool if err != nil { return err } - sv.AvailableAddressCount = int32(i64) + sv.AvailableAddressCount = ptr.Int32(int32(i64)) } case strings.EqualFold("firstAddress", t.Name.Local): @@ -77448,7 +78850,7 @@ func awsEc2query_deserializeDocumentPurchase(v **types.Purchase, decoder smithyx if err != nil { return err } - sv.Duration = int32(i64) + sv.Duration = ptr.Int32(int32(i64)) } case strings.EqualFold("hostIdSet", t.Name.Local): @@ -77708,7 +79110,7 @@ func awsEc2query_deserializeDocumentRecurringCharge(v **types.RecurringCharge, d if err != nil { return err } - sv.Amount = f64 + sv.Amount = ptr.Float64(f64) } case strings.EqualFold("frequency", t.Name.Local): @@ -77949,6 +79351,181 @@ func awsEc2query_deserializeDocumentRegionListUnwrapped(v *[]types.Region, decod *v = sv return nil } +func awsEc2query_deserializeDocumentReplaceRootVolumeTask(v **types.ReplaceRootVolumeTask, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *types.ReplaceRootVolumeTask + if *v == nil { + sv = &types.ReplaceRootVolumeTask{} + } 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("completeTime", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.CompleteTime = ptr.String(xtv) + } + + case strings.EqualFold("instanceId", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.InstanceId = ptr.String(xtv) + } + + case strings.EqualFold("replaceRootVolumeTaskId", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.ReplaceRootVolumeTaskId = ptr.String(xtv) + } + + case strings.EqualFold("startTime", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.StartTime = ptr.String(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 + } + + case strings.EqualFold("taskState", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.TaskState = types.ReplaceRootVolumeTaskState(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_deserializeDocumentReplaceRootVolumeTasks(v *[]types.ReplaceRootVolumeTask, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv []types.ReplaceRootVolumeTask + if *v == nil { + sv = make([]types.ReplaceRootVolumeTask, 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.ReplaceRootVolumeTask + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + destAddr := &col + if err := awsEc2query_deserializeDocumentReplaceRootVolumeTask(&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_deserializeDocumentReplaceRootVolumeTasksUnwrapped(v *[]types.ReplaceRootVolumeTask, decoder smithyxml.NodeDecoder) error { + var sv []types.ReplaceRootVolumeTask + if *v == nil { + sv = make([]types.ReplaceRootVolumeTask, 0) + } else { + sv = *v + } + + switch { + default: + var mv types.ReplaceRootVolumeTask + t := decoder.StartEl + _ = t + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + destAddr := &mv + if err := awsEc2query_deserializeDocumentReplaceRootVolumeTask(&destAddr, nodeDecoder); err != nil { + return err + } + mv = *destAddr + sv = append(sv, mv) + } + *v = sv + return nil +} func awsEc2query_deserializeDocumentReservation(v **types.Reservation, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -78364,7 +79941,7 @@ func awsEc2query_deserializeDocumentReservedInstances(v **types.ReservedInstance if err != nil { return err } - sv.Duration = i64 + sv.Duration = ptr.Int64(i64) } case strings.EqualFold("end", t.Name.Local): @@ -78398,7 +79975,7 @@ func awsEc2query_deserializeDocumentReservedInstances(v **types.ReservedInstance if err != nil { return err } - sv.FixedPrice = float32(f64) + sv.FixedPrice = ptr.Float32(float32(f64)) } case strings.EqualFold("instanceCount", t.Name.Local): @@ -78415,7 +79992,7 @@ func awsEc2query_deserializeDocumentReservedInstances(v **types.ReservedInstance if err != nil { return err } - sv.InstanceCount = int32(i64) + sv.InstanceCount = ptr.Int32(int32(i64)) } case strings.EqualFold("instanceTenancy", t.Name.Local): @@ -78565,7 +80142,7 @@ func awsEc2query_deserializeDocumentReservedInstances(v **types.ReservedInstance if err != nil { return err } - sv.UsagePrice = float32(f64) + sv.UsagePrice = ptr.Float32(float32(f64)) } default: @@ -78631,7 +80208,7 @@ func awsEc2query_deserializeDocumentReservedInstancesConfiguration(v **types.Res if err != nil { return err } - sv.InstanceCount = int32(i64) + sv.InstanceCount = ptr.Int32(int32(i64)) } case strings.EqualFold("instanceType", t.Name.Local): @@ -79429,7 +81006,7 @@ func awsEc2query_deserializeDocumentReservedInstancesOffering(v **types.Reserved if err != nil { return err } - sv.Duration = i64 + sv.Duration = ptr.Int64(i64) } case strings.EqualFold("fixedPrice", t.Name.Local): @@ -79446,7 +81023,7 @@ func awsEc2query_deserializeDocumentReservedInstancesOffering(v **types.Reserved if err != nil { return err } - sv.FixedPrice = float32(f64) + sv.FixedPrice = ptr.Float32(float32(f64)) } case strings.EqualFold("instanceTenancy", t.Name.Local): @@ -79488,7 +81065,7 @@ func awsEc2query_deserializeDocumentReservedInstancesOffering(v **types.Reserved if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.Marketplace = xtv + sv.Marketplace = ptr.Bool(xtv) } case strings.EqualFold("offeringClass", t.Name.Local): @@ -79582,7 +81159,7 @@ func awsEc2query_deserializeDocumentReservedInstancesOffering(v **types.Reserved if err != nil { return err } - sv.UsagePrice = float32(f64) + sv.UsagePrice = ptr.Float32(float32(f64)) } default: @@ -80016,7 +81593,7 @@ func awsEc2query_deserializeDocumentResponseLaunchTemplateData(v **types.Respons if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.DisableApiTermination = xtv + sv.DisableApiTermination = ptr.Bool(xtv) } case strings.EqualFold("ebsOptimized", t.Name.Local): @@ -80032,7 +81609,7 @@ func awsEc2query_deserializeDocumentResponseLaunchTemplateData(v **types.Respons if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.EbsOptimized = xtv + sv.EbsOptimized = ptr.Bool(xtv) } case strings.EqualFold("elasticGpuSpecificationSet", t.Name.Local): @@ -80756,7 +82333,7 @@ func awsEc2query_deserializeDocumentRouteTableAssociation(v **types.RouteTableAs if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.Main = xtv + sv.Main = ptr.Bool(xtv) } case strings.EqualFold("routeTableAssociationId", t.Name.Local): @@ -81045,7 +82622,7 @@ func awsEc2query_deserializeDocumentRunInstancesMonitoringEnabled(v **types.RunI if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.Enabled = xtv + sv.Enabled = ptr.Bool(xtv) } default: @@ -81247,7 +82824,7 @@ func awsEc2query_deserializeDocumentScheduledInstance(v **types.ScheduledInstanc if err != nil { return err } - sv.InstanceCount = int32(i64) + sv.InstanceCount = ptr.Int32(int32(i64)) } case strings.EqualFold("instanceType", t.Name.Local): @@ -81356,7 +82933,7 @@ func awsEc2query_deserializeDocumentScheduledInstance(v **types.ScheduledInstanc if err != nil { return err } - sv.SlotDurationInHours = int32(i64) + sv.SlotDurationInHours = ptr.Int32(int32(i64)) } case strings.EqualFold("termEndDate", t.Name.Local): @@ -81407,7 +82984,7 @@ func awsEc2query_deserializeDocumentScheduledInstance(v **types.ScheduledInstanc if err != nil { return err } - sv.TotalScheduledInstanceHours = int32(i64) + sv.TotalScheduledInstanceHours = ptr.Int32(int32(i64)) } default: @@ -81473,7 +83050,7 @@ func awsEc2query_deserializeDocumentScheduledInstanceAvailability(v **types.Sche if err != nil { return err } - sv.AvailableInstanceCount = int32(i64) + sv.AvailableInstanceCount = ptr.Int32(int32(i64)) } case strings.EqualFold("firstSlotStartTime", t.Name.Local): @@ -81533,7 +83110,7 @@ func awsEc2query_deserializeDocumentScheduledInstanceAvailability(v **types.Sche if err != nil { return err } - sv.MaxTermDurationInDays = int32(i64) + sv.MaxTermDurationInDays = ptr.Int32(int32(i64)) } case strings.EqualFold("minTermDurationInDays", t.Name.Local): @@ -81550,7 +83127,7 @@ func awsEc2query_deserializeDocumentScheduledInstanceAvailability(v **types.Sche if err != nil { return err } - sv.MinTermDurationInDays = int32(i64) + sv.MinTermDurationInDays = ptr.Int32(int32(i64)) } case strings.EqualFold("networkPlatform", t.Name.Local): @@ -81612,7 +83189,7 @@ func awsEc2query_deserializeDocumentScheduledInstanceAvailability(v **types.Sche if err != nil { return err } - sv.SlotDurationInHours = int32(i64) + sv.SlotDurationInHours = ptr.Int32(int32(i64)) } case strings.EqualFold("totalScheduledInstanceHours", t.Name.Local): @@ -81629,7 +83206,7 @@ func awsEc2query_deserializeDocumentScheduledInstanceAvailability(v **types.Sche if err != nil { return err } - sv.TotalScheduledInstanceHours = int32(i64) + sv.TotalScheduledInstanceHours = ptr.Int32(int32(i64)) } default: @@ -81763,7 +83340,7 @@ func awsEc2query_deserializeDocumentScheduledInstanceRecurrence(v **types.Schedu if err != nil { return err } - sv.Interval = int32(i64) + sv.Interval = ptr.Int32(int32(i64)) } case strings.EqualFold("occurrenceDaySet", t.Name.Local): @@ -81785,7 +83362,7 @@ func awsEc2query_deserializeDocumentScheduledInstanceRecurrence(v **types.Schedu if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.OccurrenceRelativeToEnd = xtv + sv.OccurrenceRelativeToEnd = ptr.Bool(xtv) } case strings.EqualFold("occurrenceUnit", t.Name.Local): @@ -82390,7 +83967,7 @@ func awsEc2query_deserializeDocumentServiceConfiguration(v **types.ServiceConfig if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.AcceptanceRequired = xtv + sv.AcceptanceRequired = ptr.Bool(xtv) } case strings.EqualFold("availabilityZoneSet", t.Name.Local): @@ -82424,7 +84001,7 @@ func awsEc2query_deserializeDocumentServiceConfiguration(v **types.ServiceConfig if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.ManagesVpcEndpoints = xtv + sv.ManagesVpcEndpoints = ptr.Bool(xtv) } case strings.EqualFold("networkLoadBalancerArnSet", t.Name.Local): @@ -82620,7 +84197,7 @@ func awsEc2query_deserializeDocumentServiceDetail(v **types.ServiceDetail, decod if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.AcceptanceRequired = xtv + sv.AcceptanceRequired = ptr.Bool(xtv) } case strings.EqualFold("availabilityZoneSet", t.Name.Local): @@ -82648,7 +84225,7 @@ func awsEc2query_deserializeDocumentServiceDetail(v **types.ServiceDetail, decod if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.ManagesVpcEndpoints = xtv + sv.ManagesVpcEndpoints = ptr.Bool(xtv) } case strings.EqualFold("owner", t.Name.Local): @@ -82747,7 +84324,7 @@ func awsEc2query_deserializeDocumentServiceDetail(v **types.ServiceDetail, decod if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.VpcEndpointPolicySupported = xtv + sv.VpcEndpointPolicySupported = ptr.Bool(xtv) } default: @@ -83010,7 +84587,7 @@ func awsEc2query_deserializeDocumentSnapshot(v **types.Snapshot, decoder smithyx if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.Encrypted = xtv + sv.Encrypted = ptr.Bool(xtv) } case strings.EqualFold("kmsKeyId", t.Name.Local): @@ -83026,6 +84603,19 @@ func awsEc2query_deserializeDocumentSnapshot(v **types.Snapshot, decoder smithyx sv.KmsKeyId = ptr.String(xtv) } + case strings.EqualFold("outpostArn", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.OutpostArn = ptr.String(xtv) + } + case strings.EqualFold("ownerAlias", t.Name.Local): val, err := decoder.Value() if err != nil { @@ -83154,7 +84744,7 @@ func awsEc2query_deserializeDocumentSnapshot(v **types.Snapshot, decoder smithyx if err != nil { return err } - sv.VolumeSize = int32(i64) + sv.VolumeSize = ptr.Int32(int32(i64)) } default: @@ -83233,7 +84823,7 @@ func awsEc2query_deserializeDocumentSnapshotDetail(v **types.SnapshotDetail, dec if err != nil { return err } - sv.DiskImageSize = f64 + sv.DiskImageSize = ptr.Float64(f64) } case strings.EqualFold("format", t.Name.Local): @@ -83450,7 +85040,20 @@ func awsEc2query_deserializeDocumentSnapshotInfo(v **types.SnapshotInfo, decoder if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.Encrypted = xtv + sv.Encrypted = ptr.Bool(xtv) + } + + case strings.EqualFold("outpostArn", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.OutpostArn = ptr.String(xtv) } case strings.EqualFold("ownerId", t.Name.Local): @@ -83555,7 +85158,7 @@ func awsEc2query_deserializeDocumentSnapshotInfo(v **types.SnapshotInfo, decoder if err != nil { return err } - sv.VolumeSize = int32(i64) + sv.VolumeSize = ptr.Int32(int32(i64)) } default: @@ -83757,7 +85360,7 @@ func awsEc2query_deserializeDocumentSnapshotTaskDetail(v **types.SnapshotTaskDet if err != nil { return err } - sv.DiskImageSize = f64 + sv.DiskImageSize = ptr.Float64(f64) } case strings.EqualFold("encrypted", t.Name.Local): @@ -83773,7 +85376,7 @@ func awsEc2query_deserializeDocumentSnapshotTaskDetail(v **types.SnapshotTaskDet if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.Encrypted = xtv + sv.Encrypted = ptr.Bool(xtv) } case strings.EqualFold("format", t.Name.Local): @@ -84084,7 +85687,7 @@ func awsEc2query_deserializeDocumentSpotFleetLaunchSpecification(v **types.SpotF if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.EbsOptimized = xtv + sv.EbsOptimized = ptr.Bool(xtv) } case strings.EqualFold("iamInstanceProfile", t.Name.Local): @@ -84241,7 +85844,7 @@ func awsEc2query_deserializeDocumentSpotFleetLaunchSpecification(v **types.SpotF if err != nil { return err } - sv.WeightedCapacity = f64 + sv.WeightedCapacity = ptr.Float64(f64) } default: @@ -84293,7 +85896,7 @@ func awsEc2query_deserializeDocumentSpotFleetMonitoring(v **types.SpotFleetMonit if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.Enabled = xtv + sv.Enabled = ptr.Bool(xtv) } default: @@ -84462,6 +86065,19 @@ func awsEc2query_deserializeDocumentSpotFleetRequestConfigData(v **types.SpotFle sv.ClientToken = ptr.String(xtv) } + case strings.EqualFold("context", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.Context = ptr.String(xtv) + } + case strings.EqualFold("excessCapacityTerminationPolicy", t.Name.Local): val, err := decoder.Value() if err != nil { @@ -84489,7 +86105,7 @@ func awsEc2query_deserializeDocumentSpotFleetRequestConfigData(v **types.SpotFle if err != nil { return err } - sv.FulfilledCapacity = f64 + sv.FulfilledCapacity = ptr.Float64(f64) } case strings.EqualFold("iamFleetRole", t.Name.Local): @@ -84532,7 +86148,7 @@ func awsEc2query_deserializeDocumentSpotFleetRequestConfigData(v **types.SpotFle if err != nil { return err } - sv.InstancePoolsToUseCount = int32(i64) + sv.InstancePoolsToUseCount = ptr.Int32(int32(i64)) } case strings.EqualFold("launchSpecifications", t.Name.Local): @@ -84580,7 +86196,7 @@ func awsEc2query_deserializeDocumentSpotFleetRequestConfigData(v **types.SpotFle if err != nil { return err } - sv.OnDemandFulfilledCapacity = f64 + sv.OnDemandFulfilledCapacity = ptr.Float64(f64) } case strings.EqualFold("onDemandMaxTotalPrice", t.Name.Local): @@ -84610,7 +86226,7 @@ func awsEc2query_deserializeDocumentSpotFleetRequestConfigData(v **types.SpotFle if err != nil { return err } - sv.OnDemandTargetCapacity = int32(i64) + sv.OnDemandTargetCapacity = ptr.Int32(int32(i64)) } case strings.EqualFold("replaceUnhealthyInstances", t.Name.Local): @@ -84626,7 +86242,7 @@ func awsEc2query_deserializeDocumentSpotFleetRequestConfigData(v **types.SpotFle if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.ReplaceUnhealthyInstances = xtv + sv.ReplaceUnhealthyInstances = ptr.Bool(xtv) } case strings.EqualFold("spotMaintenanceStrategies", t.Name.Local): @@ -84681,7 +86297,7 @@ func awsEc2query_deserializeDocumentSpotFleetRequestConfigData(v **types.SpotFle if err != nil { return err } - sv.TargetCapacity = int32(i64) + sv.TargetCapacity = ptr.Int32(int32(i64)) } case strings.EqualFold("terminateInstancesWithExpiration", t.Name.Local): @@ -84697,7 +86313,7 @@ func awsEc2query_deserializeDocumentSpotFleetRequestConfigData(v **types.SpotFle if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.TerminateInstancesWithExpiration = xtv + sv.TerminateInstancesWithExpiration = ptr.Bool(xtv) } case strings.EqualFold("type", t.Name.Local): @@ -85014,7 +86630,7 @@ func awsEc2query_deserializeDocumentSpotInstanceRequest(v **types.SpotInstanceRe if err != nil { return err } - sv.BlockDurationMinutes = int32(i64) + sv.BlockDurationMinutes = ptr.Int32(int32(i64)) } case strings.EqualFold("createTime", t.Name.Local): @@ -85536,7 +87152,7 @@ func awsEc2query_deserializeDocumentSpotOptions(v **types.SpotOptions, decoder s if err != nil { return err } - sv.InstancePoolsToUseCount = int32(i64) + sv.InstancePoolsToUseCount = ptr.Int32(int32(i64)) } case strings.EqualFold("maintenanceStrategies", t.Name.Local): @@ -85572,7 +87188,7 @@ func awsEc2query_deserializeDocumentSpotOptions(v **types.SpotOptions, decoder s if err != nil { return err } - sv.MinTargetCapacity = int32(i64) + sv.MinTargetCapacity = ptr.Int32(int32(i64)) } case strings.EqualFold("singleAvailabilityZone", t.Name.Local): @@ -85588,7 +87204,7 @@ func awsEc2query_deserializeDocumentSpotOptions(v **types.SpotOptions, decoder s if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.SingleAvailabilityZone = xtv + sv.SingleAvailabilityZone = ptr.Bool(xtv) } case strings.EqualFold("singleInstanceType", t.Name.Local): @@ -85604,7 +87220,7 @@ func awsEc2query_deserializeDocumentSpotOptions(v **types.SpotOptions, decoder s if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.SingleInstanceType = xtv + sv.SingleInstanceType = ptr.Bool(xtv) } default: @@ -85905,7 +87521,7 @@ func awsEc2query_deserializeDocumentStaleIpPermission(v **types.StaleIpPermissio if err != nil { return err } - sv.FromPort = int32(i64) + sv.FromPort = ptr.Int32(int32(i64)) } case strings.EqualFold("ipProtocol", t.Name.Local): @@ -85947,7 +87563,7 @@ func awsEc2query_deserializeDocumentStaleIpPermission(v **types.StaleIpPermissio if err != nil { return err } - sv.ToPort = int32(i64) + sv.ToPort = ptr.Int32(int32(i64)) } case strings.EqualFold("groups", t.Name.Local): @@ -86310,6 +87926,209 @@ func awsEc2query_deserializeDocumentStorage(v **types.Storage, decoder smithyxml return nil } +func awsEc2query_deserializeDocumentStoreImageTaskResult(v **types.StoreImageTaskResult, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *types.StoreImageTaskResult + if *v == nil { + sv = &types.StoreImageTaskResult{} + } 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("amiId", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.AmiId = ptr.String(xtv) + } + + case strings.EqualFold("bucket", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.Bucket = ptr.String(xtv) + } + + case strings.EqualFold("progressPercentage", 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.ProgressPercentage = ptr.Int32(int32(i64)) + } + + case strings.EqualFold("s3objectKey", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.S3objectKey = ptr.String(xtv) + } + + case strings.EqualFold("storeTaskFailureReason", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.StoreTaskFailureReason = ptr.String(xtv) + } + + case strings.EqualFold("storeTaskState", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.StoreTaskState = ptr.String(xtv) + } + + case strings.EqualFold("taskStartTime", 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.TaskStartTime = ptr.Time(t) + } + + 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_deserializeDocumentStoreImageTaskResultSet(v *[]types.StoreImageTaskResult, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv []types.StoreImageTaskResult + if *v == nil { + sv = make([]types.StoreImageTaskResult, 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.StoreImageTaskResult + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + destAddr := &col + if err := awsEc2query_deserializeDocumentStoreImageTaskResult(&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_deserializeDocumentStoreImageTaskResultSetUnwrapped(v *[]types.StoreImageTaskResult, decoder smithyxml.NodeDecoder) error { + var sv []types.StoreImageTaskResult + if *v == nil { + sv = make([]types.StoreImageTaskResult, 0) + } else { + sv = *v + } + + switch { + default: + var mv types.StoreImageTaskResult + t := decoder.StartEl + _ = t + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + destAddr := &mv + if err := awsEc2query_deserializeDocumentStoreImageTaskResult(&destAddr, nodeDecoder); err != nil { + return err + } + mv = *destAddr + sv = append(sv, mv) + } + *v = sv + return nil +} func awsEc2query_deserializeDocumentStringList(v *[]string, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -86425,7 +88244,7 @@ func awsEc2query_deserializeDocumentSubnet(v **types.Subnet, decoder smithyxml.N if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.AssignIpv6AddressOnCreation = xtv + sv.AssignIpv6AddressOnCreation = ptr.Bool(xtv) } case strings.EqualFold("availabilityZone", t.Name.Local): @@ -86468,7 +88287,7 @@ func awsEc2query_deserializeDocumentSubnet(v **types.Subnet, decoder smithyxml.N if err != nil { return err } - sv.AvailableIpAddressCount = int32(i64) + sv.AvailableIpAddressCount = ptr.Int32(int32(i64)) } case strings.EqualFold("cidrBlock", t.Name.Local): @@ -86510,7 +88329,7 @@ func awsEc2query_deserializeDocumentSubnet(v **types.Subnet, decoder smithyxml.N if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.DefaultForAz = xtv + sv.DefaultForAz = ptr.Bool(xtv) } case strings.EqualFold("ipv6CidrBlockAssociationSet", t.Name.Local): @@ -86532,7 +88351,7 @@ func awsEc2query_deserializeDocumentSubnet(v **types.Subnet, decoder smithyxml.N if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.MapCustomerOwnedIpOnLaunch = xtv + sv.MapCustomerOwnedIpOnLaunch = ptr.Bool(xtv) } case strings.EqualFold("mapPublicIpOnLaunch", t.Name.Local): @@ -86548,7 +88367,7 @@ func awsEc2query_deserializeDocumentSubnet(v **types.Subnet, decoder smithyxml.N if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.MapPublicIpOnLaunch = xtv + sv.MapPublicIpOnLaunch = ptr.Bool(xtv) } case strings.EqualFold("outpostArn", t.Name.Local): @@ -87737,7 +89556,7 @@ func awsEc2query_deserializeDocumentTargetCapacitySpecification(v **types.Target if err != nil { return err } - sv.OnDemandTargetCapacity = int32(i64) + sv.OnDemandTargetCapacity = ptr.Int32(int32(i64)) } case strings.EqualFold("spotTargetCapacity", t.Name.Local): @@ -87754,7 +89573,7 @@ func awsEc2query_deserializeDocumentTargetCapacitySpecification(v **types.Target if err != nil { return err } - sv.SpotTargetCapacity = int32(i64) + sv.SpotTargetCapacity = ptr.Int32(int32(i64)) } case strings.EqualFold("totalTargetCapacity", t.Name.Local): @@ -87771,7 +89590,7 @@ func awsEc2query_deserializeDocumentTargetCapacitySpecification(v **types.Target if err != nil { return err } - sv.TotalTargetCapacity = int32(i64) + sv.TotalTargetCapacity = ptr.Int32(int32(i64)) } default: @@ -87824,7 +89643,7 @@ func awsEc2query_deserializeDocumentTargetConfiguration(v **types.TargetConfigur if err != nil { return err } - sv.InstanceCount = int32(i64) + sv.InstanceCount = ptr.Int32(int32(i64)) } case strings.EqualFold("offeringId", t.Name.Local): @@ -88668,7 +90487,7 @@ func awsEc2query_deserializeDocumentTrafficMirrorFilterRule(v **types.TrafficMir if err != nil { return err } - sv.Protocol = int32(i64) + sv.Protocol = ptr.Int32(int32(i64)) } case strings.EqualFold("ruleAction", t.Name.Local): @@ -88698,7 +90517,7 @@ func awsEc2query_deserializeDocumentTrafficMirrorFilterRule(v **types.TrafficMir if err != nil { return err } - sv.RuleNumber = int32(i64) + sv.RuleNumber = ptr.Int32(int32(i64)) } case strings.EqualFold("sourceCidrBlock", t.Name.Local): @@ -89025,7 +90844,7 @@ func awsEc2query_deserializeDocumentTrafficMirrorPortRange(v **types.TrafficMirr if err != nil { return err } - sv.FromPort = int32(i64) + sv.FromPort = ptr.Int32(int32(i64)) } case strings.EqualFold("toPort", t.Name.Local): @@ -89042,7 +90861,7 @@ func awsEc2query_deserializeDocumentTrafficMirrorPortRange(v **types.TrafficMirr if err != nil { return err } - sv.ToPort = int32(i64) + sv.ToPort = ptr.Int32(int32(i64)) } default: @@ -89134,7 +90953,7 @@ func awsEc2query_deserializeDocumentTrafficMirrorSession(v **types.TrafficMirror if err != nil { return err } - sv.PacketLength = int32(i64) + sv.PacketLength = ptr.Int32(int32(i64)) } case strings.EqualFold("sessionNumber", t.Name.Local): @@ -89151,7 +90970,7 @@ func awsEc2query_deserializeDocumentTrafficMirrorSession(v **types.TrafficMirror if err != nil { return err } - sv.SessionNumber = int32(i64) + sv.SessionNumber = ptr.Int32(int32(i64)) } case strings.EqualFold("tagSet", t.Name.Local): @@ -89213,7 +91032,7 @@ func awsEc2query_deserializeDocumentTrafficMirrorSession(v **types.TrafficMirror if err != nil { return err } - sv.VirtualNetworkId = int32(i64) + sv.VirtualNetworkId = ptr.Int32(int32(i64)) } default: @@ -89997,7 +91816,7 @@ func awsEc2query_deserializeDocumentTransitGatewayAttachmentBgpConfiguration(v * if err != nil { return err } - sv.PeerAsn = i64 + sv.PeerAsn = ptr.Int64(i64) } case strings.EqualFold("transitGatewayAddress", t.Name.Local): @@ -90027,7 +91846,7 @@ func awsEc2query_deserializeDocumentTransitGatewayAttachmentBgpConfiguration(v * if err != nil { return err } - sv.TransitGatewayAsn = i64 + sv.TransitGatewayAsn = ptr.Int64(i64) } default: @@ -91597,7 +93416,7 @@ func awsEc2query_deserializeDocumentTransitGatewayMulticastGroup(v **types.Trans if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.GroupMember = xtv + sv.GroupMember = ptr.Bool(xtv) } case strings.EqualFold("groupSource", t.Name.Local): @@ -91613,7 +93432,7 @@ func awsEc2query_deserializeDocumentTransitGatewayMulticastGroup(v **types.Trans if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.GroupSource = xtv + sv.GroupSource = ptr.Bool(xtv) } case strings.EqualFold("memberType", t.Name.Local): @@ -91974,7 +93793,7 @@ func awsEc2query_deserializeDocumentTransitGatewayOptions(v **types.TransitGatew if err != nil { return err } - sv.AmazonSideAsn = i64 + sv.AmazonSideAsn = ptr.Int64(i64) } case strings.EqualFold("associationDefaultRouteTableId", t.Name.Local): @@ -92382,7 +94201,7 @@ func awsEc2query_deserializeDocumentTransitGatewayPrefixListReference(v **types. if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.Blackhole = xtv + sv.Blackhole = ptr.Bool(xtv) } case strings.EqualFold("prefixListId", t.Name.Local): @@ -92983,7 +94802,7 @@ func awsEc2query_deserializeDocumentTransitGatewayRouteTable(v **types.TransitGa if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.DefaultAssociationRouteTable = xtv + sv.DefaultAssociationRouteTable = ptr.Bool(xtv) } case strings.EqualFold("defaultPropagationRouteTable", t.Name.Local): @@ -92999,7 +94818,7 @@ func awsEc2query_deserializeDocumentTransitGatewayRouteTable(v **types.TransitGa if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.DefaultPropagationRouteTable = xtv + sv.DefaultPropagationRouteTable = ptr.Bool(xtv) } case strings.EqualFold("state", t.Name.Local): @@ -93720,6 +95539,202 @@ func awsEc2query_deserializeDocumentTransitGatewayVpcAttachmentOptions(v **types return nil } +func awsEc2query_deserializeDocumentTrunkInterfaceAssociation(v **types.TrunkInterfaceAssociation, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *types.TrunkInterfaceAssociation + if *v == nil { + sv = &types.TrunkInterfaceAssociation{} + } 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("associationId", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.AssociationId = ptr.String(xtv) + } + + case strings.EqualFold("branchInterfaceId", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.BranchInterfaceId = ptr.String(xtv) + } + + case strings.EqualFold("greKey", 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.GreKey = ptr.Int32(int32(i64)) + } + + case strings.EqualFold("interfaceProtocol", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.InterfaceProtocol = types.InterfaceProtocolType(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 + } + + case strings.EqualFold("trunkInterfaceId", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.TrunkInterfaceId = ptr.String(xtv) + } + + case strings.EqualFold("vlanId", 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.VlanId = 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_deserializeDocumentTrunkInterfaceAssociationList(v *[]types.TrunkInterfaceAssociation, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv []types.TrunkInterfaceAssociation + if *v == nil { + sv = make([]types.TrunkInterfaceAssociation, 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.TrunkInterfaceAssociation + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + destAddr := &col + if err := awsEc2query_deserializeDocumentTrunkInterfaceAssociation(&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_deserializeDocumentTrunkInterfaceAssociationListUnwrapped(v *[]types.TrunkInterfaceAssociation, decoder smithyxml.NodeDecoder) error { + var sv []types.TrunkInterfaceAssociation + if *v == nil { + sv = make([]types.TrunkInterfaceAssociation, 0) + } else { + sv = *v + } + + switch { + default: + var mv types.TrunkInterfaceAssociation + t := decoder.StartEl + _ = t + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + destAddr := &mv + if err := awsEc2query_deserializeDocumentTrunkInterfaceAssociation(&destAddr, nodeDecoder); err != nil { + return err + } + mv = *destAddr + sv = append(sv, mv) + } + *v = sv + return nil +} func awsEc2query_deserializeDocumentTunnelOption(v **types.TunnelOption, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -93769,7 +95784,7 @@ func awsEc2query_deserializeDocumentTunnelOption(v **types.TunnelOption, decoder if err != nil { return err } - sv.DpdTimeoutSeconds = int32(i64) + sv.DpdTimeoutSeconds = ptr.Int32(int32(i64)) } case strings.EqualFold("ikeVersionSet", t.Name.Local): @@ -93823,7 +95838,7 @@ func awsEc2query_deserializeDocumentTunnelOption(v **types.TunnelOption, decoder if err != nil { return err } - sv.Phase1LifetimeSeconds = int32(i64) + sv.Phase1LifetimeSeconds = ptr.Int32(int32(i64)) } case strings.EqualFold("phase2DHGroupNumberSet", t.Name.Local): @@ -93858,7 +95873,7 @@ func awsEc2query_deserializeDocumentTunnelOption(v **types.TunnelOption, decoder if err != nil { return err } - sv.Phase2LifetimeSeconds = int32(i64) + sv.Phase2LifetimeSeconds = ptr.Int32(int32(i64)) } case strings.EqualFold("preSharedKey", t.Name.Local): @@ -93888,7 +95903,7 @@ func awsEc2query_deserializeDocumentTunnelOption(v **types.TunnelOption, decoder if err != nil { return err } - sv.RekeyFuzzPercentage = int32(i64) + sv.RekeyFuzzPercentage = ptr.Int32(int32(i64)) } case strings.EqualFold("rekeyMarginTimeSeconds", t.Name.Local): @@ -93905,7 +95920,7 @@ func awsEc2query_deserializeDocumentTunnelOption(v **types.TunnelOption, decoder if err != nil { return err } - sv.RekeyMarginTimeSeconds = int32(i64) + sv.RekeyMarginTimeSeconds = ptr.Int32(int32(i64)) } case strings.EqualFold("replayWindowSize", t.Name.Local): @@ -93922,7 +95937,7 @@ func awsEc2query_deserializeDocumentTunnelOption(v **types.TunnelOption, decoder if err != nil { return err } - sv.ReplayWindowSize = int32(i64) + sv.ReplayWindowSize = ptr.Int32(int32(i64)) } case strings.EqualFold("startupAction", t.Name.Local): @@ -95208,7 +97223,7 @@ func awsEc2query_deserializeDocumentVgwTelemetry(v **types.VgwTelemetry, decoder if err != nil { return err } - sv.AcceptedRouteCount = int32(i64) + sv.AcceptedRouteCount = ptr.Int32(int32(i64)) } case strings.EqualFold("certificateArn", t.Name.Local): @@ -95513,7 +97528,7 @@ func awsEc2query_deserializeDocumentVolume(v **types.Volume, decoder smithyxml.N if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.Encrypted = xtv + sv.Encrypted = ptr.Bool(xtv) } case strings.EqualFold("fastRestored", t.Name.Local): @@ -95529,7 +97544,7 @@ func awsEc2query_deserializeDocumentVolume(v **types.Volume, decoder smithyxml.N if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.FastRestored = xtv + sv.FastRestored = ptr.Bool(xtv) } case strings.EqualFold("iops", t.Name.Local): @@ -95546,7 +97561,7 @@ func awsEc2query_deserializeDocumentVolume(v **types.Volume, decoder smithyxml.N if err != nil { return err } - sv.Iops = int32(i64) + sv.Iops = ptr.Int32(int32(i64)) } case strings.EqualFold("kmsKeyId", t.Name.Local): @@ -95575,7 +97590,7 @@ func awsEc2query_deserializeDocumentVolume(v **types.Volume, decoder smithyxml.N if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.MultiAttachEnabled = xtv + sv.MultiAttachEnabled = ptr.Bool(xtv) } case strings.EqualFold("outpostArn", t.Name.Local): @@ -95605,7 +97620,7 @@ func awsEc2query_deserializeDocumentVolume(v **types.Volume, decoder smithyxml.N if err != nil { return err } - sv.Size = int32(i64) + sv.Size = ptr.Int32(int32(i64)) } case strings.EqualFold("snapshotId", t.Name.Local): @@ -95654,7 +97669,7 @@ func awsEc2query_deserializeDocumentVolume(v **types.Volume, decoder smithyxml.N if err != nil { return err } - sv.Throughput = int32(i64) + sv.Throughput = ptr.Int32(int32(i64)) } case strings.EqualFold("volumeId", t.Name.Local): @@ -95749,7 +97764,7 @@ func awsEc2query_deserializeDocumentVolumeAttachment(v **types.VolumeAttachment, if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.DeleteOnTermination = xtv + sv.DeleteOnTermination = ptr.Bool(xtv) } case strings.EqualFold("device", t.Name.Local): @@ -96020,7 +98035,7 @@ func awsEc2query_deserializeDocumentVolumeModification(v **types.VolumeModificat if err != nil { return err } - sv.OriginalIops = int32(i64) + sv.OriginalIops = ptr.Int32(int32(i64)) } case strings.EqualFold("originalMultiAttachEnabled", t.Name.Local): @@ -96036,7 +98051,7 @@ func awsEc2query_deserializeDocumentVolumeModification(v **types.VolumeModificat if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.OriginalMultiAttachEnabled = xtv + sv.OriginalMultiAttachEnabled = ptr.Bool(xtv) } case strings.EqualFold("originalSize", t.Name.Local): @@ -96053,7 +98068,7 @@ func awsEc2query_deserializeDocumentVolumeModification(v **types.VolumeModificat if err != nil { return err } - sv.OriginalSize = int32(i64) + sv.OriginalSize = ptr.Int32(int32(i64)) } case strings.EqualFold("originalThroughput", t.Name.Local): @@ -96070,7 +98085,7 @@ func awsEc2query_deserializeDocumentVolumeModification(v **types.VolumeModificat if err != nil { return err } - sv.OriginalThroughput = int32(i64) + sv.OriginalThroughput = ptr.Int32(int32(i64)) } case strings.EqualFold("originalVolumeType", t.Name.Local): @@ -96100,7 +98115,7 @@ func awsEc2query_deserializeDocumentVolumeModification(v **types.VolumeModificat if err != nil { return err } - sv.Progress = i64 + sv.Progress = ptr.Int64(i64) } case strings.EqualFold("startTime", t.Name.Local): @@ -96147,7 +98162,7 @@ func awsEc2query_deserializeDocumentVolumeModification(v **types.VolumeModificat if err != nil { return err } - sv.TargetIops = int32(i64) + sv.TargetIops = ptr.Int32(int32(i64)) } case strings.EqualFold("targetMultiAttachEnabled", t.Name.Local): @@ -96163,7 +98178,7 @@ func awsEc2query_deserializeDocumentVolumeModification(v **types.VolumeModificat if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.TargetMultiAttachEnabled = xtv + sv.TargetMultiAttachEnabled = ptr.Bool(xtv) } case strings.EqualFold("targetSize", t.Name.Local): @@ -96180,7 +98195,7 @@ func awsEc2query_deserializeDocumentVolumeModification(v **types.VolumeModificat if err != nil { return err } - sv.TargetSize = int32(i64) + sv.TargetSize = ptr.Int32(int32(i64)) } case strings.EqualFold("targetThroughput", t.Name.Local): @@ -96197,7 +98212,7 @@ func awsEc2query_deserializeDocumentVolumeModification(v **types.VolumeModificat if err != nil { return err } - sv.TargetThroughput = int32(i64) + sv.TargetThroughput = ptr.Int32(int32(i64)) } case strings.EqualFold("targetVolumeType", t.Name.Local): @@ -97222,7 +99237,7 @@ func awsEc2query_deserializeDocumentVpc(v **types.Vpc, decoder smithyxml.NodeDec if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.IsDefault = xtv + sv.IsDefault = ptr.Bool(xtv) } case strings.EqualFold("ownerId", t.Name.Local): @@ -97647,7 +99662,7 @@ func awsEc2query_deserializeDocumentVpcClassicLink(v **types.VpcClassicLink, dec if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.ClassicLinkEnabled = xtv + sv.ClassicLinkEnabled = ptr.Bool(xtv) } case strings.EqualFold("tagSet", t.Name.Local): @@ -97853,7 +99868,7 @@ func awsEc2query_deserializeDocumentVpcEndpoint(v **types.VpcEndpoint, decoder s if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.PrivateDnsEnabled = xtv + sv.PrivateDnsEnabled = ptr.Bool(xtv) } case strings.EqualFold("requesterManaged", t.Name.Local): @@ -97869,7 +99884,7 @@ func awsEc2query_deserializeDocumentVpcEndpoint(v **types.VpcEndpoint, decoder s if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.RequesterManaged = xtv + sv.RequesterManaged = ptr.Bool(xtv) } case strings.EqualFold("routeTableIdSet", t.Name.Local): @@ -98651,7 +100666,7 @@ func awsEc2query_deserializeDocumentVpcPeeringConnectionOptionsDescription(v **t if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.AllowDnsResolutionFromRemoteVpc = xtv + sv.AllowDnsResolutionFromRemoteVpc = ptr.Bool(xtv) } case strings.EqualFold("allowEgressFromLocalClassicLinkToRemoteVpc", t.Name.Local): @@ -98667,7 +100682,7 @@ func awsEc2query_deserializeDocumentVpcPeeringConnectionOptionsDescription(v **t if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.AllowEgressFromLocalClassicLinkToRemoteVpc = xtv + sv.AllowEgressFromLocalClassicLinkToRemoteVpc = ptr.Bool(xtv) } case strings.EqualFold("allowEgressFromLocalVpcToRemoteClassicLink", t.Name.Local): @@ -98683,7 +100698,7 @@ func awsEc2query_deserializeDocumentVpcPeeringConnectionOptionsDescription(v **t if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.AllowEgressFromLocalVpcToRemoteClassicLink = xtv + sv.AllowEgressFromLocalVpcToRemoteClassicLink = ptr.Bool(xtv) } default: @@ -99135,7 +101150,7 @@ func awsEc2query_deserializeDocumentVpnConnectionOptions(v **types.VpnConnection if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.EnableAcceleration = xtv + sv.EnableAcceleration = ptr.Bool(xtv) } case strings.EqualFold("localIpv4NetworkCidr", t.Name.Local): @@ -99203,7 +101218,7 @@ func awsEc2query_deserializeDocumentVpnConnectionOptions(v **types.VpnConnection if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.StaticRoutesOnly = xtv + sv.StaticRoutesOnly = ptr.Bool(xtv) } case strings.EqualFold("tunnelInsideIpVersion", t.Name.Local): @@ -99275,7 +101290,7 @@ func awsEc2query_deserializeDocumentVpnGateway(v **types.VpnGateway, decoder smi if err != nil { return err } - sv.AmazonSideAsn = i64 + sv.AmazonSideAsn = ptr.Int64(i64) } case strings.EqualFold("availabilityZone", t.Name.Local): @@ -100617,6 +102632,61 @@ func awsEc2query_deserializeOpDocumentAssociateTransitGatewayRouteTableOutput(v return nil } +func awsEc2query_deserializeOpDocumentAssociateTrunkInterfaceOutput(v **AssociateTrunkInterfaceOutput, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *AssociateTrunkInterfaceOutput + if *v == nil { + sv = &AssociateTrunkInterfaceOutput{} + } 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("clientToken", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.ClientToken = ptr.String(xtv) + } + + case strings.EqualFold("interfaceAssociation", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentTrunkInterfaceAssociation(&sv.InterfaceAssociation, 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_deserializeOpDocumentAssociateVpcCidrBlockOutput(v **AssociateVpcCidrBlockOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -100713,7 +102783,7 @@ func awsEc2query_deserializeOpDocumentAttachClassicLinkVpcOutput(v **AttachClass if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.Return = xtv + sv.Return = ptr.Bool(xtv) } default: @@ -100779,7 +102849,7 @@ func awsEc2query_deserializeOpDocumentAttachNetworkInterfaceOutput(v **AttachNet if err != nil { return err } - sv.NetworkCardIndex = int32(i64) + sv.NetworkCardIndex = ptr.Int32(int32(i64)) } default: @@ -100848,7 +102918,7 @@ func awsEc2query_deserializeOpDocumentAttachVolumeOutput(v **AttachVolumeOutput, if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.DeleteOnTermination = xtv + sv.DeleteOnTermination = ptr.Bool(xtv) } case strings.EqualFold("device", t.Name.Local): @@ -101120,7 +103190,7 @@ func awsEc2query_deserializeOpDocumentCancelCapacityReservationOutput(v **Cancel if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.Return = xtv + sv.Return = ptr.Bool(xtv) } default: @@ -101392,7 +103462,7 @@ func awsEc2query_deserializeOpDocumentConfirmProductInstanceOutput(v **ConfirmPr if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.Return = xtv + sv.Return = ptr.Bool(xtv) } default: @@ -102773,6 +104843,19 @@ func awsEc2query_deserializeOpDocumentCreateNetworkInterfaceOutput(v **CreateNet originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { + case strings.EqualFold("clientToken", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.ClientToken = ptr.String(xtv) + } + case strings.EqualFold("networkInterface", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) if err := awsEc2query_deserializeDocumentNetworkInterface(&sv.NetworkInterface, nodeDecoder); err != nil { @@ -102877,6 +104960,48 @@ func awsEc2query_deserializeOpDocumentCreatePlacementGroupOutput(v **CreatePlace return nil } +func awsEc2query_deserializeOpDocumentCreateReplaceRootVolumeTaskOutput(v **CreateReplaceRootVolumeTaskOutput, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *CreateReplaceRootVolumeTaskOutput + if *v == nil { + sv = &CreateReplaceRootVolumeTaskOutput{} + } 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("replaceRootVolumeTask", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentReplaceRootVolumeTask(&sv.ReplaceRootVolumeTask, 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_deserializeOpDocumentCreateReservedInstancesListingOutput(v **CreateReservedInstancesListingOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -102919,6 +105044,55 @@ func awsEc2query_deserializeOpDocumentCreateReservedInstancesListingOutput(v **C return nil } +func awsEc2query_deserializeOpDocumentCreateRestoreImageTaskOutput(v **CreateRestoreImageTaskOutput, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *CreateRestoreImageTaskOutput + if *v == nil { + sv = &CreateRestoreImageTaskOutput{} + } 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("imageId", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.ImageId = 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_deserializeOpDocumentCreateRouteOutput(v **CreateRouteOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -102954,7 +105128,7 @@ func awsEc2query_deserializeOpDocumentCreateRouteOutput(v **CreateRouteOutput, d if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.Return = xtv + sv.Return = ptr.Bool(xtv) } default: @@ -103129,7 +105303,7 @@ func awsEc2query_deserializeOpDocumentCreateSnapshotOutput(v **CreateSnapshotOut if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.Encrypted = xtv + sv.Encrypted = ptr.Bool(xtv) } case strings.EqualFold("kmsKeyId", t.Name.Local): @@ -103145,6 +105319,19 @@ func awsEc2query_deserializeOpDocumentCreateSnapshotOutput(v **CreateSnapshotOut sv.KmsKeyId = ptr.String(xtv) } + case strings.EqualFold("outpostArn", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.OutpostArn = ptr.String(xtv) + } + case strings.EqualFold("ownerAlias", t.Name.Local): val, err := decoder.Value() if err != nil { @@ -103273,7 +105460,7 @@ func awsEc2query_deserializeOpDocumentCreateSnapshotOutput(v **CreateSnapshotOut if err != nil { return err } - sv.VolumeSize = int32(i64) + sv.VolumeSize = ptr.Int32(int32(i64)) } default: @@ -103374,6 +105561,55 @@ func awsEc2query_deserializeOpDocumentCreateSpotDatafeedSubscriptionOutput(v **C return nil } +func awsEc2query_deserializeOpDocumentCreateStoreImageTaskOutput(v **CreateStoreImageTaskOutput, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *CreateStoreImageTaskOutput + if *v == nil { + sv = &CreateStoreImageTaskOutput{} + } 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("objectKey", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.ObjectKey = 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_deserializeOpDocumentCreateSubnetOutput(v **CreateSubnetOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -104085,7 +106321,7 @@ func awsEc2query_deserializeOpDocumentCreateVolumeOutput(v **CreateVolumeOutput, if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.Encrypted = xtv + sv.Encrypted = ptr.Bool(xtv) } case strings.EqualFold("fastRestored", t.Name.Local): @@ -104101,7 +106337,7 @@ func awsEc2query_deserializeOpDocumentCreateVolumeOutput(v **CreateVolumeOutput, if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.FastRestored = xtv + sv.FastRestored = ptr.Bool(xtv) } case strings.EqualFold("iops", t.Name.Local): @@ -104118,7 +106354,7 @@ func awsEc2query_deserializeOpDocumentCreateVolumeOutput(v **CreateVolumeOutput, if err != nil { return err } - sv.Iops = int32(i64) + sv.Iops = ptr.Int32(int32(i64)) } case strings.EqualFold("kmsKeyId", t.Name.Local): @@ -104147,7 +106383,7 @@ func awsEc2query_deserializeOpDocumentCreateVolumeOutput(v **CreateVolumeOutput, if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.MultiAttachEnabled = xtv + sv.MultiAttachEnabled = ptr.Bool(xtv) } case strings.EqualFold("outpostArn", t.Name.Local): @@ -104177,7 +106413,7 @@ func awsEc2query_deserializeOpDocumentCreateVolumeOutput(v **CreateVolumeOutput, if err != nil { return err } - sv.Size = int32(i64) + sv.Size = ptr.Int32(int32(i64)) } case strings.EqualFold("snapshotId", t.Name.Local): @@ -104226,7 +106462,7 @@ func awsEc2query_deserializeOpDocumentCreateVolumeOutput(v **CreateVolumeOutput, if err != nil { return err } - sv.Throughput = int32(i64) + sv.Throughput = ptr.Int32(int32(i64)) } case strings.EqualFold("volumeId", t.Name.Local): @@ -104763,7 +106999,7 @@ func awsEc2query_deserializeOpDocumentDeleteEgressOnlyInternetGatewayOutput(v ** if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.ReturnCode = xtv + sv.ReturnCode = ptr.Bool(xtv) } default: @@ -104905,7 +107141,7 @@ func awsEc2query_deserializeOpDocumentDeleteFpgaImageOutput(v **DeleteFpgaImageO if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.Return = xtv + sv.Return = ptr.Bool(xtv) } default: @@ -105320,7 +107556,7 @@ func awsEc2query_deserializeOpDocumentDeleteNetworkInterfacePermissionOutput(v * if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.Return = xtv + sv.Return = ptr.Bool(xtv) } default: @@ -106120,7 +108356,7 @@ func awsEc2query_deserializeOpDocumentDeleteVpcPeeringConnectionOutput(v **Delet if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.Return = xtv + sv.Return = ptr.Bool(xtv) } default: @@ -106485,7 +108721,7 @@ func awsEc2query_deserializeOpDocumentDescribeAggregateIdFormatOutput(v **Descri if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.UseLongIdsAggregated = xtv + sv.UseLongIdsAggregated = ptr.Bool(xtv) } default: @@ -107372,7 +109608,7 @@ func awsEc2query_deserializeOpDocumentDescribeElasticGpusOutput(v **DescribeElas if err != nil { return err } - sv.MaxResults = int32(i64) + sv.MaxResults = ptr.Int32(int32(i64)) } case strings.EqualFold("nextToken", t.Name.Local): @@ -110294,6 +112530,61 @@ func awsEc2query_deserializeOpDocumentDescribeRegionsOutput(v **DescribeRegionsO return nil } +func awsEc2query_deserializeOpDocumentDescribeReplaceRootVolumeTasksOutput(v **DescribeReplaceRootVolumeTasksOutput, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *DescribeReplaceRootVolumeTasksOutput + if *v == nil { + sv = &DescribeReplaceRootVolumeTasksOutput{} + } 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("replaceRootVolumeTaskSet", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentReplaceRootVolumeTasks(&sv.ReplaceRootVolumeTasks, 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_deserializeOpDocumentDescribeReservedInstancesListingsOutput(v **DescribeReservedInstancesListingsOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -110976,13 +113267,115 @@ func awsEc2query_deserializeOpDocumentDescribeSpotFleetInstancesOutput(v **Descr return nil } -func awsEc2query_deserializeOpDocumentDescribeSpotFleetRequestHistoryOutput(v **DescribeSpotFleetRequestHistoryOutput, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeOpDocumentDescribeSpotFleetRequestHistoryOutput(v **DescribeSpotFleetRequestHistoryOutput, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *DescribeSpotFleetRequestHistoryOutput + if *v == nil { + sv = &DescribeSpotFleetRequestHistoryOutput{} + } 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("historyRecordSet", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentHistoryRecords(&sv.HistoryRecords, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("lastEvaluatedTime", 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.LastEvaluatedTime = ptr.Time(t) + } + + 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("spotFleetRequestId", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.SpotFleetRequestId = ptr.String(xtv) + } + + case strings.EqualFold("startTime", 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.StartTime = ptr.Time(t) + } + + 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_deserializeOpDocumentDescribeSpotFleetRequestsOutput(v **DescribeSpotFleetRequestsOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *DescribeSpotFleetRequestHistoryOutput + var sv *DescribeSpotFleetRequestsOutput if *v == nil { - sv = &DescribeSpotFleetRequestHistoryOutput{} + sv = &DescribeSpotFleetRequestsOutput{} } else { sv = *v } @@ -110998,29 +113391,6 @@ func awsEc2query_deserializeOpDocumentDescribeSpotFleetRequestHistoryOutput(v ** originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("historyRecordSet", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentHistoryRecords(&sv.HistoryRecords, nodeDecoder); err != nil { - return err - } - - case strings.EqualFold("lastEvaluatedTime", 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.LastEvaluatedTime = ptr.Time(t) - } - case strings.EqualFold("nextToken", t.Name.Local): val, err := decoder.Value() if err != nil { @@ -111034,35 +113404,11 @@ func awsEc2query_deserializeOpDocumentDescribeSpotFleetRequestHistoryOutput(v ** sv.NextToken = ptr.String(xtv) } - case strings.EqualFold("spotFleetRequestId", t.Name.Local): - val, err := decoder.Value() - if err != nil { + case strings.EqualFold("spotFleetRequestConfigSet", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentSpotFleetRequestConfigSet(&sv.SpotFleetRequestConfigs, nodeDecoder); err != nil { return err } - if val == nil { - break - } - { - xtv := string(val) - sv.SpotFleetRequestId = ptr.String(xtv) - } - - case strings.EqualFold("startTime", 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.StartTime = ptr.Time(t) - } default: // Do nothing and ignore the unexpected tag element @@ -111078,13 +113424,13 @@ func awsEc2query_deserializeOpDocumentDescribeSpotFleetRequestHistoryOutput(v ** return nil } -func awsEc2query_deserializeOpDocumentDescribeSpotFleetRequestsOutput(v **DescribeSpotFleetRequestsOutput, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeOpDocumentDescribeSpotInstanceRequestsOutput(v **DescribeSpotInstanceRequestsOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *DescribeSpotFleetRequestsOutput + var sv *DescribeSpotInstanceRequestsOutput if *v == nil { - sv = &DescribeSpotFleetRequestsOutput{} + sv = &DescribeSpotInstanceRequestsOutput{} } else { sv = *v } @@ -111113,9 +113459,9 @@ func awsEc2query_deserializeOpDocumentDescribeSpotFleetRequestsOutput(v **Descri sv.NextToken = ptr.String(xtv) } - case strings.EqualFold("spotFleetRequestConfigSet", t.Name.Local): + case strings.EqualFold("spotInstanceRequestSet", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentSpotFleetRequestConfigSet(&sv.SpotFleetRequestConfigs, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentSpotInstanceRequestList(&sv.SpotInstanceRequests, nodeDecoder); err != nil { return err } @@ -111133,13 +113479,13 @@ func awsEc2query_deserializeOpDocumentDescribeSpotFleetRequestsOutput(v **Descri return nil } -func awsEc2query_deserializeOpDocumentDescribeSpotInstanceRequestsOutput(v **DescribeSpotInstanceRequestsOutput, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeOpDocumentDescribeSpotPriceHistoryOutput(v **DescribeSpotPriceHistoryOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *DescribeSpotInstanceRequestsOutput + var sv *DescribeSpotPriceHistoryOutput if *v == nil { - sv = &DescribeSpotInstanceRequestsOutput{} + sv = &DescribeSpotPriceHistoryOutput{} } else { sv = *v } @@ -111168,9 +113514,9 @@ func awsEc2query_deserializeOpDocumentDescribeSpotInstanceRequestsOutput(v **Des sv.NextToken = ptr.String(xtv) } - case strings.EqualFold("spotInstanceRequestSet", t.Name.Local): + case strings.EqualFold("spotPriceHistorySet", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentSpotInstanceRequestList(&sv.SpotInstanceRequests, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentSpotPriceHistoryList(&sv.SpotPriceHistory, nodeDecoder); err != nil { return err } @@ -111188,13 +113534,13 @@ func awsEc2query_deserializeOpDocumentDescribeSpotInstanceRequestsOutput(v **Des return nil } -func awsEc2query_deserializeOpDocumentDescribeSpotPriceHistoryOutput(v **DescribeSpotPriceHistoryOutput, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeOpDocumentDescribeStaleSecurityGroupsOutput(v **DescribeStaleSecurityGroupsOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *DescribeSpotPriceHistoryOutput + var sv *DescribeStaleSecurityGroupsOutput if *v == nil { - sv = &DescribeSpotPriceHistoryOutput{} + sv = &DescribeStaleSecurityGroupsOutput{} } else { sv = *v } @@ -111223,9 +113569,9 @@ func awsEc2query_deserializeOpDocumentDescribeSpotPriceHistoryOutput(v **Describ sv.NextToken = ptr.String(xtv) } - case strings.EqualFold("spotPriceHistorySet", t.Name.Local): + case strings.EqualFold("staleSecurityGroupSet", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentSpotPriceHistoryList(&sv.SpotPriceHistory, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentStaleSecurityGroupSet(&sv.StaleSecurityGroupSet, nodeDecoder); err != nil { return err } @@ -111243,13 +113589,13 @@ func awsEc2query_deserializeOpDocumentDescribeSpotPriceHistoryOutput(v **Describ return nil } -func awsEc2query_deserializeOpDocumentDescribeStaleSecurityGroupsOutput(v **DescribeStaleSecurityGroupsOutput, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeOpDocumentDescribeStoreImageTasksOutput(v **DescribeStoreImageTasksOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *DescribeStaleSecurityGroupsOutput + var sv *DescribeStoreImageTasksOutput if *v == nil { - sv = &DescribeStaleSecurityGroupsOutput{} + sv = &DescribeStoreImageTasksOutput{} } else { sv = *v } @@ -111278,9 +113624,9 @@ func awsEc2query_deserializeOpDocumentDescribeStaleSecurityGroupsOutput(v **Desc sv.NextToken = ptr.String(xtv) } - case strings.EqualFold("staleSecurityGroupSet", t.Name.Local): + case strings.EqualFold("storeImageTaskResultSet", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentStaleSecurityGroupSet(&sv.StaleSecurityGroupSet, nodeDecoder); err != nil { + if err := awsEc2query_deserializeDocumentStoreImageTaskResultSet(&sv.StoreImageTaskResults, nodeDecoder); err != nil { return err } @@ -112013,6 +114359,61 @@ func awsEc2query_deserializeOpDocumentDescribeTransitGatewayVpcAttachmentsOutput return nil } +func awsEc2query_deserializeOpDocumentDescribeTrunkInterfaceAssociationsOutput(v **DescribeTrunkInterfaceAssociationsOutput, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *DescribeTrunkInterfaceAssociationsOutput + if *v == nil { + sv = &DescribeTrunkInterfaceAssociationsOutput{} + } 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("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 { + 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_deserializeOpDocumentDescribeVolumeAttributeOutput(v **DescribeVolumeAttributeOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -112962,7 +115363,7 @@ func awsEc2query_deserializeOpDocumentDetachClassicLinkVpcOutput(v **DetachClass if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.Return = xtv + sv.Return = ptr.Bool(xtv) } default: @@ -113031,7 +115432,7 @@ func awsEc2query_deserializeOpDocumentDetachVolumeOutput(v **DetachVolumeOutput, if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.DeleteOnTermination = xtv + sv.DeleteOnTermination = ptr.Bool(xtv) } case strings.EqualFold("device", t.Name.Local): @@ -113135,7 +115536,107 @@ func awsEc2query_deserializeOpDocumentDisableEbsEncryptionByDefaultOutput(v **Di if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.EbsEncryptionByDefault = xtv + sv.EbsEncryptionByDefault = ptr.Bool(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_deserializeOpDocumentDisableFastSnapshotRestoresOutput(v **DisableFastSnapshotRestoresOutput, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *DisableFastSnapshotRestoresOutput + if *v == nil { + sv = &DisableFastSnapshotRestoresOutput{} + } 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("successful", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentDisableFastSnapshotRestoreSuccessSet(&sv.Successful, nodeDecoder); err != nil { + return err + } + + case strings.EqualFold("unsuccessful", t.Name.Local): + nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) + if err := awsEc2query_deserializeDocumentDisableFastSnapshotRestoreErrorSet(&sv.Unsuccessful, 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_deserializeOpDocumentDisableImageDeprecationOutput(v **DisableImageDeprecationOutput, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *DisableImageDeprecationOutput + if *v == nil { + sv = &DisableImageDeprecationOutput{} + } 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("return", 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.Return = ptr.Bool(xtv) } default: @@ -113152,13 +115653,13 @@ func awsEc2query_deserializeOpDocumentDisableEbsEncryptionByDefaultOutput(v **Di return nil } -func awsEc2query_deserializeOpDocumentDisableFastSnapshotRestoresOutput(v **DisableFastSnapshotRestoresOutput, decoder smithyxml.NodeDecoder) error { +func awsEc2query_deserializeOpDocumentDisableSerialConsoleAccessOutput(v **DisableSerialConsoleAccessOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) } - var sv *DisableFastSnapshotRestoresOutput + var sv *DisableSerialConsoleAccessOutput if *v == nil { - sv = &DisableFastSnapshotRestoresOutput{} + sv = &DisableSerialConsoleAccessOutput{} } else { sv = *v } @@ -113174,16 +115675,20 @@ func awsEc2query_deserializeOpDocumentDisableFastSnapshotRestoresOutput(v **Disa originalDecoder := decoder decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t) switch { - case strings.EqualFold("successful", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentDisableFastSnapshotRestoreSuccessSet(&sv.Successful, nodeDecoder); err != nil { + case strings.EqualFold("serialConsoleAccessEnabled", t.Name.Local): + val, err := decoder.Value() + if err != nil { return err } - - case strings.EqualFold("unsuccessful", t.Name.Local): - nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) - if err := awsEc2query_deserializeDocumentDisableFastSnapshotRestoreErrorSet(&sv.Unsuccessful, nodeDecoder); 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.SerialConsoleAccessEnabled = ptr.Bool(xtv) } default: @@ -113277,7 +115782,7 @@ func awsEc2query_deserializeOpDocumentDisableVpcClassicLinkDnsSupportOutput(v ** if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.Return = xtv + sv.Return = ptr.Bool(xtv) } default: @@ -113329,7 +115834,7 @@ func awsEc2query_deserializeOpDocumentDisableVpcClassicLinkOutput(v **DisableVpc if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.Return = xtv + sv.Return = ptr.Bool(xtv) } default: @@ -113436,7 +115941,7 @@ func awsEc2query_deserializeOpDocumentDisassociateEnclaveCertificateIamRoleOutpu if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.Return = xtv + sv.Return = ptr.Bool(xtv) } default: @@ -113634,6 +116139,71 @@ func awsEc2query_deserializeOpDocumentDisassociateTransitGatewayRouteTableOutput return nil } +func awsEc2query_deserializeOpDocumentDisassociateTrunkInterfaceOutput(v **DisassociateTrunkInterfaceOutput, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *DisassociateTrunkInterfaceOutput + if *v == nil { + sv = &DisassociateTrunkInterfaceOutput{} + } 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("clientToken", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.ClientToken = ptr.String(xtv) + } + + case strings.EqualFold("return", 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.Return = ptr.Bool(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_deserializeOpDocumentDisassociateVpcCidrBlockOutput(v **DisassociateVpcCidrBlockOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -113730,7 +116300,7 @@ func awsEc2query_deserializeOpDocumentEnableEbsEncryptionByDefaultOutput(v **Ena if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.EbsEncryptionByDefault = xtv + sv.EbsEncryptionByDefault = ptr.Bool(xtv) } default: @@ -113795,6 +116365,110 @@ func awsEc2query_deserializeOpDocumentEnableFastSnapshotRestoresOutput(v **Enabl return nil } +func awsEc2query_deserializeOpDocumentEnableImageDeprecationOutput(v **EnableImageDeprecationOutput, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *EnableImageDeprecationOutput + if *v == nil { + sv = &EnableImageDeprecationOutput{} + } 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("return", 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.Return = ptr.Bool(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_deserializeOpDocumentEnableSerialConsoleAccessOutput(v **EnableSerialConsoleAccessOutput, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *EnableSerialConsoleAccessOutput + if *v == nil { + sv = &EnableSerialConsoleAccessOutput{} + } 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("serialConsoleAccessEnabled", 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.SerialConsoleAccessEnabled = ptr.Bool(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_deserializeOpDocumentEnableTransitGatewayRouteTablePropagationOutput(v **EnableTransitGatewayRouteTablePropagationOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -113872,7 +116546,7 @@ func awsEc2query_deserializeOpDocumentEnableVpcClassicLinkDnsSupportOutput(v **E if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.Return = xtv + sv.Return = ptr.Bool(xtv) } default: @@ -113924,7 +116598,7 @@ func awsEc2query_deserializeOpDocumentEnableVpcClassicLinkOutput(v **EnableVpcCl if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.Return = xtv + sv.Return = ptr.Bool(xtv) } default: @@ -114379,7 +117053,7 @@ func awsEc2query_deserializeOpDocumentGetCapacityReservationUsageOutput(v **GetC if err != nil { return err } - sv.AvailableInstanceCount = int32(i64) + sv.AvailableInstanceCount = ptr.Int32(int32(i64)) } case strings.EqualFold("capacityReservationId", t.Name.Local): @@ -114454,7 +117128,7 @@ func awsEc2query_deserializeOpDocumentGetCapacityReservationUsageOutput(v **GetC if err != nil { return err } - sv.TotalInstanceCount = int32(i64) + sv.TotalInstanceCount = ptr.Int32(int32(i64)) } default: @@ -114806,7 +117480,56 @@ func awsEc2query_deserializeOpDocumentGetEbsEncryptionByDefaultOutput(v **GetEbs if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.EbsEncryptionByDefault = xtv + sv.EbsEncryptionByDefault = ptr.Bool(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_deserializeOpDocumentGetFlowLogsIntegrationTemplateOutput(v **GetFlowLogsIntegrationTemplateOutput, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *GetFlowLogsIntegrationTemplateOutput + if *v == nil { + sv = &GetFlowLogsIntegrationTemplateOutput{} + } 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("result", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.Result = ptr.String(xtv) } default: @@ -115238,7 +117961,7 @@ func awsEc2query_deserializeOpDocumentGetReservedInstancesExchangeQuoteOutput(v if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.IsValidExchange = xtv + sv.IsValidExchange = ptr.Bool(xtv) } case strings.EqualFold("outputReservedInstancesWillExpireAt", t.Name.Local): @@ -115322,6 +118045,58 @@ func awsEc2query_deserializeOpDocumentGetReservedInstancesExchangeQuoteOutput(v return nil } +func awsEc2query_deserializeOpDocumentGetSerialConsoleAccessStatusOutput(v **GetSerialConsoleAccessStatusOutput, decoder smithyxml.NodeDecoder) error { + if v == nil { + return fmt.Errorf("unexpected nil of type %T", v) + } + var sv *GetSerialConsoleAccessStatusOutput + if *v == nil { + sv = &GetSerialConsoleAccessStatusOutput{} + } 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("serialConsoleAccessEnabled", 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.SerialConsoleAccessEnabled = ptr.Bool(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_deserializeOpDocumentGetTransitGatewayAttachmentPropagationsOutput(v **GetTransitGatewayAttachmentPropagationsOutput, decoder smithyxml.NodeDecoder) error { if v == nil { return fmt.Errorf("unexpected nil of type %T", v) @@ -115632,7 +118407,7 @@ func awsEc2query_deserializeOpDocumentImportClientVpnClientCertificateRevocation if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.Return = xtv + sv.Return = ptr.Bool(xtv) } default: @@ -115710,7 +118485,7 @@ func awsEc2query_deserializeOpDocumentImportImageOutput(v **ImportImageOutput, d if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.Encrypted = xtv + sv.Encrypted = ptr.Bool(xtv) } case strings.EqualFold("hypervisor", t.Name.Local): @@ -116178,7 +118953,7 @@ func awsEc2query_deserializeOpDocumentModifyAvailabilityZoneGroupOutput(v **Modi if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.Return = xtv + sv.Return = ptr.Bool(xtv) } default: @@ -116230,7 +119005,7 @@ func awsEc2query_deserializeOpDocumentModifyCapacityReservationOutput(v **Modify if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.Return = xtv + sv.Return = ptr.Bool(xtv) } default: @@ -116282,7 +119057,7 @@ func awsEc2query_deserializeOpDocumentModifyClientVpnEndpointOutput(v **ModifyCl if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.Return = xtv + sv.Return = ptr.Bool(xtv) } default: @@ -116425,7 +119200,7 @@ func awsEc2query_deserializeOpDocumentModifyFleetOutput(v **ModifyFleetOutput, d if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.Return = xtv + sv.Return = ptr.Bool(xtv) } default: @@ -116567,7 +119342,7 @@ func awsEc2query_deserializeOpDocumentModifyInstanceCapacityReservationAttribute if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.Return = xtv + sv.Return = ptr.Bool(xtv) } default: @@ -116764,7 +119539,7 @@ func awsEc2query_deserializeOpDocumentModifyInstancePlacementOutput(v **ModifyIn if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.Return = xtv + sv.Return = ptr.Bool(xtv) } default: @@ -116949,7 +119724,7 @@ func awsEc2query_deserializeOpDocumentModifySpotFleetRequestOutput(v **ModifySpo if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.Return = xtv + sv.Return = ptr.Bool(xtv) } default: @@ -117295,7 +120070,7 @@ func awsEc2query_deserializeOpDocumentModifyVpcEndpointConnectionNotificationOut if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.ReturnValue = xtv + sv.ReturnValue = ptr.Bool(xtv) } default: @@ -117347,7 +120122,7 @@ func awsEc2query_deserializeOpDocumentModifyVpcEndpointOutput(v **ModifyVpcEndpo if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.Return = xtv + sv.Return = ptr.Bool(xtv) } default: @@ -117399,7 +120174,7 @@ func awsEc2query_deserializeOpDocumentModifyVpcEndpointServiceConfigurationOutpu if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.Return = xtv + sv.Return = ptr.Bool(xtv) } default: @@ -117451,7 +120226,7 @@ func awsEc2query_deserializeOpDocumentModifyVpcEndpointServicePermissionsOutput( if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.ReturnValue = xtv + sv.ReturnValue = ptr.Bool(xtv) } default: @@ -117551,7 +120326,7 @@ func awsEc2query_deserializeOpDocumentModifyVpcTenancyOutput(v **ModifyVpcTenanc if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.ReturnValue = xtv + sv.ReturnValue = ptr.Bool(xtv) } default: @@ -118445,7 +121220,7 @@ func awsEc2query_deserializeOpDocumentRejectVpcPeeringConnectionOutput(v **Rejec if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.Return = xtv + sv.Return = ptr.Bool(xtv) } default: @@ -118915,7 +121690,7 @@ func awsEc2query_deserializeOpDocumentResetFpgaImageAttributeOutput(v **ResetFpg if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.Return = xtv + sv.Return = ptr.Bool(xtv) } default: @@ -119113,7 +121888,7 @@ func awsEc2query_deserializeOpDocumentRevokeSecurityGroupEgressOutput(v **Revoke if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.Return = xtv + sv.Return = ptr.Bool(xtv) } case strings.EqualFold("unknownIpPermissionSet", t.Name.Local): @@ -119171,7 +121946,7 @@ func awsEc2query_deserializeOpDocumentRevokeSecurityGroupIngressOutput(v **Revok if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.Return = xtv + sv.Return = ptr.Bool(xtv) } case strings.EqualFold("unknownIpPermissionSet", t.Name.Local): @@ -119468,7 +122243,7 @@ func awsEc2query_deserializeOpDocumentSearchTransitGatewayRoutesOutput(v **Searc if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.AdditionalRoutesAvailable = xtv + sv.AdditionalRoutesAvailable = ptr.Bool(xtv) } case strings.EqualFold("routeSet", t.Name.Local): @@ -119610,7 +122385,7 @@ func awsEc2query_deserializeOpDocumentStartVpcEndpointServicePrivateDnsVerificat if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.ReturnValue = xtv + sv.ReturnValue = ptr.Bool(xtv) } default: @@ -119911,7 +122686,7 @@ func awsEc2query_deserializeOpDocumentUpdateSecurityGroupRuleDescriptionsEgressO if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.Return = xtv + sv.Return = ptr.Bool(xtv) } default: @@ -119963,7 +122738,7 @@ func awsEc2query_deserializeOpDocumentUpdateSecurityGroupRuleDescriptionsIngress if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.Return = xtv + sv.Return = ptr.Bool(xtv) } default: diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/doc.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/doc.go index 340fc34ef..6ebd4aafc 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/doc.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/doc.go @@ -4,23 +4,31 @@ // Elastic Compute Cloud. // // Amazon Elastic Compute Cloud Amazon Elastic Compute Cloud (Amazon EC2) provides -// secure and resizable computing capacity in the AWS cloud. Using Amazon EC2 +// secure and resizable computing capacity in the AWS Cloud. Using Amazon EC2 // eliminates the need to invest in hardware up front, so you can develop and -// deploy applications faster. To learn more, see the following resources: +// deploy applications faster. Amazon Virtual Private Cloud (Amazon VPC) enables +// you to provision a logically isolated section of the AWS Cloud where you can +// launch AWS resources in a virtual network that you've defined. Amazon Elastic +// Block Store (Amazon EBS) provides block level storage volumes for use with EC2 +// instances. EBS volumes are highly available // -// * -// Amazon EC2: AmazonEC2 product page (http://aws.amazon.com/ec2), Amazon EC2 -// documentation (http://aws.amazon.com/documentation/ec2) +// and reliable storage volumes that +// can be attached to any running instance and used like a hard drive. To learn +// more, see the following resources: // -// * Amazon EBS: Amazon -// EBS product page (http://aws.amazon.com/ebs), Amazon EBS documentation -// (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/AmazonEBS.html) +// * Amazon EC2: AmazonEC2 product page +// (http://aws.amazon.com/ec2), Amazon EC2 documentation +// (http://aws.amazon.com/documentation/ec2) // -// * Amazon -// VPC: Amazon VPC product page (http://aws.amazon.com/vpc), Amazon VPC -// documentation (http://aws.amazon.com/documentation/vpc) +// * Amazon EBS: Amazon EBS product page +// (http://aws.amazon.com/ebs), Amazon EBS documentation +// (http://aws.amazon.com/documentation/ebs) // -// * AWS VPN: AWS VPN -// product page (http://aws.amazon.com/vpn), AWS VPN documentation +// * Amazon VPC: Amazon VPC product page +// (http://aws.amazon.com/vpc), Amazon VPC documentation +// (http://aws.amazon.com/documentation/vpc) +// +// * AWS VPN: AWS VPN product page +// (http://aws.amazon.com/vpn), AWS VPN documentation // (http://aws.amazon.com/documentation/vpn) package ec2 diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/endpoints.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/endpoints.go index 188001e2a..d26b61500 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/endpoints.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/endpoints.go @@ -45,6 +45,27 @@ func resolveDefaultEndpointConfiguration(o *Options) { o.EndpointResolver = NewDefaultEndpointResolver() } +// EndpointResolverFromURL returns an EndpointResolver configured using the +// provided endpoint url. By default, the resolved endpoint resolver uses the +// client region as signing region, and the endpoint source is set to +// EndpointSourceCustom.You can provide functional options to configure endpoint +// values for the resolved endpoint. +func EndpointResolverFromURL(url string, optFns ...func(*aws.Endpoint)) EndpointResolver { + e := aws.Endpoint{URL: url, Source: aws.EndpointSourceCustom} + for _, fn := range optFns { + fn(&e) + } + + return EndpointResolverFunc( + func(region string, options EndpointResolverOptions) (aws.Endpoint, error) { + if len(e.SigningRegion) == 0 { + e.SigningRegion = region + } + return e, nil + }, + ) +} + type ResolveEndpoint struct { Resolver EndpointResolver Options EndpointResolverOptions @@ -84,6 +105,7 @@ func (m *ResolveEndpoint) HandleSerialize(ctx context.Context, in middleware.Ser } ctx = awsmiddleware.SetSigningName(ctx, signingName) } + ctx = awsmiddleware.SetEndpointSource(ctx, endpoint.Source) ctx = smithyhttp.SetHostnameImmutable(ctx, endpoint.HostnameImmutable) ctx = awsmiddleware.SetSigningRegion(ctx, endpoint.SigningRegion) ctx = awsmiddleware.SetPartitionID(ctx, endpoint.PartitionID) 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 new file mode 100644 index 000000000..5e4339cc8 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/generated.json @@ -0,0 +1,480 @@ +{ + "dependencies": { + "github.com/aws/aws-sdk-go-v2": "v1.4.0", + "github.com/aws/aws-sdk-go-v2/service/internal/presigned-url": "v1.0.7", + "github.com/aws/smithy-go": "v1.4.0", + "github.com/jmespath/go-jmespath": "v0.4.0" + }, + "files": [ + "api_client.go", + "api_op_AcceptReservedInstancesExchangeQuote.go", + "api_op_AcceptTransitGatewayMulticastDomainAssociations.go", + "api_op_AcceptTransitGatewayPeeringAttachment.go", + "api_op_AcceptTransitGatewayVpcAttachment.go", + "api_op_AcceptVpcEndpointConnections.go", + "api_op_AcceptVpcPeeringConnection.go", + "api_op_AdvertiseByoipCidr.go", + "api_op_AllocateAddress.go", + "api_op_AllocateHosts.go", + "api_op_ApplySecurityGroupsToClientVpnTargetNetwork.go", + "api_op_AssignIpv6Addresses.go", + "api_op_AssignPrivateIpAddresses.go", + "api_op_AssociateAddress.go", + "api_op_AssociateClientVpnTargetNetwork.go", + "api_op_AssociateDhcpOptions.go", + "api_op_AssociateEnclaveCertificateIamRole.go", + "api_op_AssociateIamInstanceProfile.go", + "api_op_AssociateRouteTable.go", + "api_op_AssociateSubnetCidrBlock.go", + "api_op_AssociateTransitGatewayMulticastDomain.go", + "api_op_AssociateTransitGatewayRouteTable.go", + "api_op_AssociateTrunkInterface.go", + "api_op_AssociateVpcCidrBlock.go", + "api_op_AttachClassicLinkVpc.go", + "api_op_AttachInternetGateway.go", + "api_op_AttachNetworkInterface.go", + "api_op_AttachVolume.go", + "api_op_AttachVpnGateway.go", + "api_op_AuthorizeClientVpnIngress.go", + "api_op_AuthorizeSecurityGroupEgress.go", + "api_op_AuthorizeSecurityGroupIngress.go", + "api_op_BundleInstance.go", + "api_op_CancelBundleTask.go", + "api_op_CancelCapacityReservation.go", + "api_op_CancelConversionTask.go", + "api_op_CancelExportTask.go", + "api_op_CancelImportTask.go", + "api_op_CancelReservedInstancesListing.go", + "api_op_CancelSpotFleetRequests.go", + "api_op_CancelSpotInstanceRequests.go", + "api_op_ConfirmProductInstance.go", + "api_op_CopyFpgaImage.go", + "api_op_CopyImage.go", + "api_op_CopySnapshot.go", + "api_op_CopySnapshot_test.go", + "api_op_CreateCapacityReservation.go", + "api_op_CreateCarrierGateway.go", + "api_op_CreateClientVpnEndpoint.go", + "api_op_CreateClientVpnRoute.go", + "api_op_CreateCustomerGateway.go", + "api_op_CreateDefaultSubnet.go", + "api_op_CreateDefaultVpc.go", + "api_op_CreateDhcpOptions.go", + "api_op_CreateEgressOnlyInternetGateway.go", + "api_op_CreateFleet.go", + "api_op_CreateFlowLogs.go", + "api_op_CreateFpgaImage.go", + "api_op_CreateImage.go", + "api_op_CreateInstanceExportTask.go", + "api_op_CreateInternetGateway.go", + "api_op_CreateKeyPair.go", + "api_op_CreateLaunchTemplate.go", + "api_op_CreateLaunchTemplateVersion.go", + "api_op_CreateLocalGatewayRoute.go", + "api_op_CreateLocalGatewayRouteTableVpcAssociation.go", + "api_op_CreateManagedPrefixList.go", + "api_op_CreateNatGateway.go", + "api_op_CreateNetworkAcl.go", + "api_op_CreateNetworkAclEntry.go", + "api_op_CreateNetworkInsightsPath.go", + "api_op_CreateNetworkInterface.go", + "api_op_CreateNetworkInterfacePermission.go", + "api_op_CreatePlacementGroup.go", + "api_op_CreateReplaceRootVolumeTask.go", + "api_op_CreateReservedInstancesListing.go", + "api_op_CreateRestoreImageTask.go", + "api_op_CreateRoute.go", + "api_op_CreateRouteTable.go", + "api_op_CreateSecurityGroup.go", + "api_op_CreateSnapshot.go", + "api_op_CreateSnapshots.go", + "api_op_CreateSpotDatafeedSubscription.go", + "api_op_CreateStoreImageTask.go", + "api_op_CreateSubnet.go", + "api_op_CreateTags.go", + "api_op_CreateTrafficMirrorFilter.go", + "api_op_CreateTrafficMirrorFilterRule.go", + "api_op_CreateTrafficMirrorSession.go", + "api_op_CreateTrafficMirrorTarget.go", + "api_op_CreateTransitGateway.go", + "api_op_CreateTransitGatewayConnect.go", + "api_op_CreateTransitGatewayConnectPeer.go", + "api_op_CreateTransitGatewayMulticastDomain.go", + "api_op_CreateTransitGatewayPeeringAttachment.go", + "api_op_CreateTransitGatewayPrefixListReference.go", + "api_op_CreateTransitGatewayRoute.go", + "api_op_CreateTransitGatewayRouteTable.go", + "api_op_CreateTransitGatewayVpcAttachment.go", + "api_op_CreateVolume.go", + "api_op_CreateVpc.go", + "api_op_CreateVpcEndpoint.go", + "api_op_CreateVpcEndpointConnectionNotification.go", + "api_op_CreateVpcEndpointServiceConfiguration.go", + "api_op_CreateVpcPeeringConnection.go", + "api_op_CreateVpnConnection.go", + "api_op_CreateVpnConnectionRoute.go", + "api_op_CreateVpnGateway.go", + "api_op_DeleteCarrierGateway.go", + "api_op_DeleteClientVpnEndpoint.go", + "api_op_DeleteClientVpnRoute.go", + "api_op_DeleteCustomerGateway.go", + "api_op_DeleteDhcpOptions.go", + "api_op_DeleteEgressOnlyInternetGateway.go", + "api_op_DeleteFleets.go", + "api_op_DeleteFlowLogs.go", + "api_op_DeleteFpgaImage.go", + "api_op_DeleteInternetGateway.go", + "api_op_DeleteKeyPair.go", + "api_op_DeleteLaunchTemplate.go", + "api_op_DeleteLaunchTemplateVersions.go", + "api_op_DeleteLocalGatewayRoute.go", + "api_op_DeleteLocalGatewayRouteTableVpcAssociation.go", + "api_op_DeleteManagedPrefixList.go", + "api_op_DeleteNatGateway.go", + "api_op_DeleteNetworkAcl.go", + "api_op_DeleteNetworkAclEntry.go", + "api_op_DeleteNetworkInsightsAnalysis.go", + "api_op_DeleteNetworkInsightsPath.go", + "api_op_DeleteNetworkInterface.go", + "api_op_DeleteNetworkInterfacePermission.go", + "api_op_DeletePlacementGroup.go", + "api_op_DeleteQueuedReservedInstances.go", + "api_op_DeleteRoute.go", + "api_op_DeleteRouteTable.go", + "api_op_DeleteSecurityGroup.go", + "api_op_DeleteSnapshot.go", + "api_op_DeleteSpotDatafeedSubscription.go", + "api_op_DeleteSubnet.go", + "api_op_DeleteTags.go", + "api_op_DeleteTrafficMirrorFilter.go", + "api_op_DeleteTrafficMirrorFilterRule.go", + "api_op_DeleteTrafficMirrorSession.go", + "api_op_DeleteTrafficMirrorTarget.go", + "api_op_DeleteTransitGateway.go", + "api_op_DeleteTransitGatewayConnect.go", + "api_op_DeleteTransitGatewayConnectPeer.go", + "api_op_DeleteTransitGatewayMulticastDomain.go", + "api_op_DeleteTransitGatewayPeeringAttachment.go", + "api_op_DeleteTransitGatewayPrefixListReference.go", + "api_op_DeleteTransitGatewayRoute.go", + "api_op_DeleteTransitGatewayRouteTable.go", + "api_op_DeleteTransitGatewayVpcAttachment.go", + "api_op_DeleteVolume.go", + "api_op_DeleteVpc.go", + "api_op_DeleteVpcEndpointConnectionNotifications.go", + "api_op_DeleteVpcEndpointServiceConfigurations.go", + "api_op_DeleteVpcEndpoints.go", + "api_op_DeleteVpcPeeringConnection.go", + "api_op_DeleteVpnConnection.go", + "api_op_DeleteVpnConnectionRoute.go", + "api_op_DeleteVpnGateway.go", + "api_op_DeprovisionByoipCidr.go", + "api_op_DeregisterImage.go", + "api_op_DeregisterInstanceEventNotificationAttributes.go", + "api_op_DeregisterTransitGatewayMulticastGroupMembers.go", + "api_op_DeregisterTransitGatewayMulticastGroupSources.go", + "api_op_DescribeAccountAttributes.go", + "api_op_DescribeAddresses.go", + "api_op_DescribeAddressesAttribute.go", + "api_op_DescribeAggregateIdFormat.go", + "api_op_DescribeAvailabilityZones.go", + "api_op_DescribeBundleTasks.go", + "api_op_DescribeByoipCidrs.go", + "api_op_DescribeCapacityReservations.go", + "api_op_DescribeCarrierGateways.go", + "api_op_DescribeClassicLinkInstances.go", + "api_op_DescribeClientVpnAuthorizationRules.go", + "api_op_DescribeClientVpnConnections.go", + "api_op_DescribeClientVpnEndpoints.go", + "api_op_DescribeClientVpnRoutes.go", + "api_op_DescribeClientVpnTargetNetworks.go", + "api_op_DescribeCoipPools.go", + "api_op_DescribeConversionTasks.go", + "api_op_DescribeCustomerGateways.go", + "api_op_DescribeDhcpOptions.go", + "api_op_DescribeEgressOnlyInternetGateways.go", + "api_op_DescribeElasticGpus.go", + "api_op_DescribeExportImageTasks.go", + "api_op_DescribeExportTasks.go", + "api_op_DescribeFastSnapshotRestores.go", + "api_op_DescribeFleetHistory.go", + "api_op_DescribeFleetInstances.go", + "api_op_DescribeFleets.go", + "api_op_DescribeFlowLogs.go", + "api_op_DescribeFpgaImageAttribute.go", + "api_op_DescribeFpgaImages.go", + "api_op_DescribeHostReservationOfferings.go", + "api_op_DescribeHostReservations.go", + "api_op_DescribeHosts.go", + "api_op_DescribeIamInstanceProfileAssociations.go", + "api_op_DescribeIdFormat.go", + "api_op_DescribeIdentityIdFormat.go", + "api_op_DescribeImageAttribute.go", + "api_op_DescribeImages.go", + "api_op_DescribeImportImageTasks.go", + "api_op_DescribeImportSnapshotTasks.go", + "api_op_DescribeInstanceAttribute.go", + "api_op_DescribeInstanceCreditSpecifications.go", + "api_op_DescribeInstanceEventNotificationAttributes.go", + "api_op_DescribeInstanceStatus.go", + "api_op_DescribeInstanceTypeOfferings.go", + "api_op_DescribeInstanceTypes.go", + "api_op_DescribeInstances.go", + "api_op_DescribeInternetGateways.go", + "api_op_DescribeIpv6Pools.go", + "api_op_DescribeKeyPairs.go", + "api_op_DescribeLaunchTemplateVersions.go", + "api_op_DescribeLaunchTemplates.go", + "api_op_DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociations.go", + "api_op_DescribeLocalGatewayRouteTableVpcAssociations.go", + "api_op_DescribeLocalGatewayRouteTables.go", + "api_op_DescribeLocalGatewayVirtualInterfaceGroups.go", + "api_op_DescribeLocalGatewayVirtualInterfaces.go", + "api_op_DescribeLocalGateways.go", + "api_op_DescribeManagedPrefixLists.go", + "api_op_DescribeMovingAddresses.go", + "api_op_DescribeNatGateways.go", + "api_op_DescribeNetworkAcls.go", + "api_op_DescribeNetworkInsightsAnalyses.go", + "api_op_DescribeNetworkInsightsPaths.go", + "api_op_DescribeNetworkInterfaceAttribute.go", + "api_op_DescribeNetworkInterfacePermissions.go", + "api_op_DescribeNetworkInterfaces.go", + "api_op_DescribePlacementGroups.go", + "api_op_DescribePrefixLists.go", + "api_op_DescribePrincipalIdFormat.go", + "api_op_DescribePublicIpv4Pools.go", + "api_op_DescribeRegions.go", + "api_op_DescribeReplaceRootVolumeTasks.go", + "api_op_DescribeReservedInstances.go", + "api_op_DescribeReservedInstancesListings.go", + "api_op_DescribeReservedInstancesModifications.go", + "api_op_DescribeReservedInstancesOfferings.go", + "api_op_DescribeRouteTables.go", + "api_op_DescribeScheduledInstanceAvailability.go", + "api_op_DescribeScheduledInstances.go", + "api_op_DescribeSecurityGroupReferences.go", + "api_op_DescribeSecurityGroups.go", + "api_op_DescribeSnapshotAttribute.go", + "api_op_DescribeSnapshots.go", + "api_op_DescribeSpotDatafeedSubscription.go", + "api_op_DescribeSpotFleetInstances.go", + "api_op_DescribeSpotFleetRequestHistory.go", + "api_op_DescribeSpotFleetRequests.go", + "api_op_DescribeSpotInstanceRequests.go", + "api_op_DescribeSpotPriceHistory.go", + "api_op_DescribeStaleSecurityGroups.go", + "api_op_DescribeStoreImageTasks.go", + "api_op_DescribeSubnets.go", + "api_op_DescribeTags.go", + "api_op_DescribeTrafficMirrorFilters.go", + "api_op_DescribeTrafficMirrorSessions.go", + "api_op_DescribeTrafficMirrorTargets.go", + "api_op_DescribeTransitGatewayAttachments.go", + "api_op_DescribeTransitGatewayConnectPeers.go", + "api_op_DescribeTransitGatewayConnects.go", + "api_op_DescribeTransitGatewayMulticastDomains.go", + "api_op_DescribeTransitGatewayPeeringAttachments.go", + "api_op_DescribeTransitGatewayRouteTables.go", + "api_op_DescribeTransitGatewayVpcAttachments.go", + "api_op_DescribeTransitGateways.go", + "api_op_DescribeTrunkInterfaceAssociations.go", + "api_op_DescribeVolumeAttribute.go", + "api_op_DescribeVolumeStatus.go", + "api_op_DescribeVolumes.go", + "api_op_DescribeVolumesModifications.go", + "api_op_DescribeVpcAttribute.go", + "api_op_DescribeVpcClassicLink.go", + "api_op_DescribeVpcClassicLinkDnsSupport.go", + "api_op_DescribeVpcEndpointConnectionNotifications.go", + "api_op_DescribeVpcEndpointConnections.go", + "api_op_DescribeVpcEndpointServiceConfigurations.go", + "api_op_DescribeVpcEndpointServicePermissions.go", + "api_op_DescribeVpcEndpointServices.go", + "api_op_DescribeVpcEndpoints.go", + "api_op_DescribeVpcPeeringConnections.go", + "api_op_DescribeVpcs.go", + "api_op_DescribeVpnConnections.go", + "api_op_DescribeVpnGateways.go", + "api_op_DetachClassicLinkVpc.go", + "api_op_DetachInternetGateway.go", + "api_op_DetachNetworkInterface.go", + "api_op_DetachVolume.go", + "api_op_DetachVpnGateway.go", + "api_op_DisableEbsEncryptionByDefault.go", + "api_op_DisableFastSnapshotRestores.go", + "api_op_DisableImageDeprecation.go", + "api_op_DisableSerialConsoleAccess.go", + "api_op_DisableTransitGatewayRouteTablePropagation.go", + "api_op_DisableVgwRoutePropagation.go", + "api_op_DisableVpcClassicLink.go", + "api_op_DisableVpcClassicLinkDnsSupport.go", + "api_op_DisassociateAddress.go", + "api_op_DisassociateClientVpnTargetNetwork.go", + "api_op_DisassociateEnclaveCertificateIamRole.go", + "api_op_DisassociateIamInstanceProfile.go", + "api_op_DisassociateRouteTable.go", + "api_op_DisassociateSubnetCidrBlock.go", + "api_op_DisassociateTransitGatewayMulticastDomain.go", + "api_op_DisassociateTransitGatewayRouteTable.go", + "api_op_DisassociateTrunkInterface.go", + "api_op_DisassociateVpcCidrBlock.go", + "api_op_EnableEbsEncryptionByDefault.go", + "api_op_EnableFastSnapshotRestores.go", + "api_op_EnableImageDeprecation.go", + "api_op_EnableSerialConsoleAccess.go", + "api_op_EnableTransitGatewayRouteTablePropagation.go", + "api_op_EnableVgwRoutePropagation.go", + "api_op_EnableVolumeIO.go", + "api_op_EnableVpcClassicLink.go", + "api_op_EnableVpcClassicLinkDnsSupport.go", + "api_op_ExportClientVpnClientCertificateRevocationList.go", + "api_op_ExportClientVpnClientConfiguration.go", + "api_op_ExportImage.go", + "api_op_ExportTransitGatewayRoutes.go", + "api_op_GetAssociatedEnclaveCertificateIamRoles.go", + "api_op_GetAssociatedIpv6PoolCidrs.go", + "api_op_GetCapacityReservationUsage.go", + "api_op_GetCoipPoolUsage.go", + "api_op_GetConsoleOutput.go", + "api_op_GetConsoleScreenshot.go", + "api_op_GetDefaultCreditSpecification.go", + "api_op_GetEbsDefaultKmsKeyId.go", + "api_op_GetEbsEncryptionByDefault.go", + "api_op_GetFlowLogsIntegrationTemplate.go", + "api_op_GetGroupsForCapacityReservation.go", + "api_op_GetHostReservationPurchasePreview.go", + "api_op_GetLaunchTemplateData.go", + "api_op_GetManagedPrefixListAssociations.go", + "api_op_GetManagedPrefixListEntries.go", + "api_op_GetPasswordData.go", + "api_op_GetReservedInstancesExchangeQuote.go", + "api_op_GetSerialConsoleAccessStatus.go", + "api_op_GetTransitGatewayAttachmentPropagations.go", + "api_op_GetTransitGatewayMulticastDomainAssociations.go", + "api_op_GetTransitGatewayPrefixListReferences.go", + "api_op_GetTransitGatewayRouteTableAssociations.go", + "api_op_GetTransitGatewayRouteTablePropagations.go", + "api_op_ImportClientVpnClientCertificateRevocationList.go", + "api_op_ImportImage.go", + "api_op_ImportInstance.go", + "api_op_ImportKeyPair.go", + "api_op_ImportSnapshot.go", + "api_op_ImportVolume.go", + "api_op_ModifyAddressAttribute.go", + "api_op_ModifyAvailabilityZoneGroup.go", + "api_op_ModifyCapacityReservation.go", + "api_op_ModifyClientVpnEndpoint.go", + "api_op_ModifyDefaultCreditSpecification.go", + "api_op_ModifyEbsDefaultKmsKeyId.go", + "api_op_ModifyFleet.go", + "api_op_ModifyFpgaImageAttribute.go", + "api_op_ModifyHosts.go", + "api_op_ModifyIdFormat.go", + "api_op_ModifyIdentityIdFormat.go", + "api_op_ModifyImageAttribute.go", + "api_op_ModifyInstanceAttribute.go", + "api_op_ModifyInstanceCapacityReservationAttributes.go", + "api_op_ModifyInstanceCreditSpecification.go", + "api_op_ModifyInstanceEventStartTime.go", + "api_op_ModifyInstanceMetadataOptions.go", + "api_op_ModifyInstancePlacement.go", + "api_op_ModifyLaunchTemplate.go", + "api_op_ModifyManagedPrefixList.go", + "api_op_ModifyNetworkInterfaceAttribute.go", + "api_op_ModifyReservedInstances.go", + "api_op_ModifySnapshotAttribute.go", + "api_op_ModifySpotFleetRequest.go", + "api_op_ModifySubnetAttribute.go", + "api_op_ModifyTrafficMirrorFilterNetworkServices.go", + "api_op_ModifyTrafficMirrorFilterRule.go", + "api_op_ModifyTrafficMirrorSession.go", + "api_op_ModifyTransitGateway.go", + "api_op_ModifyTransitGatewayPrefixListReference.go", + "api_op_ModifyTransitGatewayVpcAttachment.go", + "api_op_ModifyVolume.go", + "api_op_ModifyVolumeAttribute.go", + "api_op_ModifyVpcAttribute.go", + "api_op_ModifyVpcEndpoint.go", + "api_op_ModifyVpcEndpointConnectionNotification.go", + "api_op_ModifyVpcEndpointServiceConfiguration.go", + "api_op_ModifyVpcEndpointServicePermissions.go", + "api_op_ModifyVpcPeeringConnectionOptions.go", + "api_op_ModifyVpcTenancy.go", + "api_op_ModifyVpnConnection.go", + "api_op_ModifyVpnConnectionOptions.go", + "api_op_ModifyVpnTunnelCertificate.go", + "api_op_ModifyVpnTunnelOptions.go", + "api_op_MonitorInstances.go", + "api_op_MoveAddressToVpc.go", + "api_op_ProvisionByoipCidr.go", + "api_op_PurchaseHostReservation.go", + "api_op_PurchaseReservedInstancesOffering.go", + "api_op_PurchaseScheduledInstances.go", + "api_op_RebootInstances.go", + "api_op_RegisterImage.go", + "api_op_RegisterInstanceEventNotificationAttributes.go", + "api_op_RegisterTransitGatewayMulticastGroupMembers.go", + "api_op_RegisterTransitGatewayMulticastGroupSources.go", + "api_op_RejectTransitGatewayMulticastDomainAssociations.go", + "api_op_RejectTransitGatewayPeeringAttachment.go", + "api_op_RejectTransitGatewayVpcAttachment.go", + "api_op_RejectVpcEndpointConnections.go", + "api_op_RejectVpcPeeringConnection.go", + "api_op_ReleaseAddress.go", + "api_op_ReleaseHosts.go", + "api_op_ReplaceIamInstanceProfileAssociation.go", + "api_op_ReplaceNetworkAclAssociation.go", + "api_op_ReplaceNetworkAclEntry.go", + "api_op_ReplaceRoute.go", + "api_op_ReplaceRouteTableAssociation.go", + "api_op_ReplaceTransitGatewayRoute.go", + "api_op_ReportInstanceStatus.go", + "api_op_RequestSpotFleet.go", + "api_op_RequestSpotInstances.go", + "api_op_ResetAddressAttribute.go", + "api_op_ResetEbsDefaultKmsKeyId.go", + "api_op_ResetFpgaImageAttribute.go", + "api_op_ResetImageAttribute.go", + "api_op_ResetInstanceAttribute.go", + "api_op_ResetNetworkInterfaceAttribute.go", + "api_op_ResetSnapshotAttribute.go", + "api_op_RestoreAddressToClassic.go", + "api_op_RestoreManagedPrefixListVersion.go", + "api_op_RevokeClientVpnIngress.go", + "api_op_RevokeSecurityGroupEgress.go", + "api_op_RevokeSecurityGroupIngress.go", + "api_op_RunInstances.go", + "api_op_RunScheduledInstances.go", + "api_op_SearchLocalGatewayRoutes.go", + "api_op_SearchTransitGatewayMulticastGroups.go", + "api_op_SearchTransitGatewayRoutes.go", + "api_op_SendDiagnosticInterrupt.go", + "api_op_StartInstances.go", + "api_op_StartNetworkInsightsAnalysis.go", + "api_op_StartVpcEndpointServicePrivateDnsVerification.go", + "api_op_StopInstances.go", + "api_op_TerminateClientVpnConnections.go", + "api_op_TerminateInstances.go", + "api_op_UnassignIpv6Addresses.go", + "api_op_UnassignPrivateIpAddresses.go", + "api_op_UnmonitorInstances.go", + "api_op_UpdateSecurityGroupRuleDescriptionsEgress.go", + "api_op_UpdateSecurityGroupRuleDescriptionsIngress.go", + "api_op_WithdrawByoipCidr.go", + "deserializers.go", + "doc.go", + "endpoints.go", + "generated.json", + "internal/endpoints/endpoints.go", + "internal/endpoints/endpoints_test.go", + "protocol_test.go", + "serializers.go", + "types/enums.go", + "types/types.go", + "validators.go" + ], + "go": "1.15", + "module": "github.com/aws/aws-sdk-go-v2/service/ec2", + "unstable": false +} diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/go.mod b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/go.mod index ef1953378..bda12a805 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/go.mod +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/go.mod @@ -3,9 +3,9 @@ module github.com/aws/aws-sdk-go-v2/service/ec2 go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v1.0.0 - github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.0.0 - github.com/aws/smithy-go v1.0.0 + github.com/aws/aws-sdk-go-v2 v1.7.0 + github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.2.0 + github.com/aws/smithy-go v1.5.0 github.com/jmespath/go-jmespath v0.4.0 ) diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/go.sum b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/go.sum index 9b99314a4..81b599cfb 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/go.sum +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/go.sum @@ -1,9 +1,7 @@ -github.com/aws/smithy-go v1.0.0 h1:hkhcRKG9rJ4Fn+RbfXY7Tz7b3ITLDyolBnLLBhwbg/c= -github.com/aws/smithy-go v1.0.0/go.mod h1:EzMw8dbp/YJL4A5/sbhGddag+NPT7q084agLbB9LgIw= +github.com/aws/smithy-go v1.5.0 h1:2grDq7LxZlo8BZUDeqRfQnQWLZpInmh2TLPPkJku3YM= +github.com/aws/smithy-go v1.5.0/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= -github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= -github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.4 h1:L8R9j+yAqZuZjsqh/z+F1NCffTKKLShY6zXTItVIZ8M= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/jmespath/go-jmespath v0.4.0 h1:BEgLn5cpjn8UN1mAw4NjwDrS35OdebyEtFe+9YPoQUg= 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 new file mode 100644 index 000000000..171442cf1 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/go_module_metadata.go @@ -0,0 +1,6 @@ +// Code generated by internal/repotools/cmd/updatemodulemeta DO NOT EDIT. + +package ec2 + +// goModuleVersion is the tagged release for this module +const goModuleVersion = "1.11.0" diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/internal/endpoints/endpoints.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/internal/endpoints/endpoints.go index d30d385c9..662abcfe6 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/internal/endpoints/endpoints.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ec2/internal/endpoints/endpoints.go @@ -37,6 +37,21 @@ func New() *Resolver { } } +var partitionRegexp = struct { + Aws *regexp.Regexp + AwsCn *regexp.Regexp + AwsIso *regexp.Regexp + AwsIsoB *regexp.Regexp + AwsUsGov *regexp.Regexp +}{ + + Aws: regexp.MustCompile("^(us|eu|ap|sa|ca|me|af)\\-\\w+\\-\\d+$"), + AwsCn: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), + AwsIso: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), + AwsIsoB: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + AwsUsGov: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), +} + var defaultPartitions = endpoints.Partitions{ { ID: "aws", @@ -45,23 +60,60 @@ var defaultPartitions = endpoints.Partitions{ Protocols: []string{"http", "https"}, SignatureVersions: []string{"v4"}, }, - RegionRegex: regexp.MustCompile("^(us|eu|ap|sa|ca|me|af)\\-\\w+\\-\\d+$"), + RegionRegex: partitionRegexp.Aws, IsRegionalized: true, Endpoints: endpoints.Endpoints{ "af-south-1": endpoints.Endpoint{}, "ap-east-1": endpoints.Endpoint{}, "ap-northeast-1": endpoints.Endpoint{}, "ap-northeast-2": endpoints.Endpoint{}, + "ap-northeast-3": endpoints.Endpoint{}, "ap-south-1": endpoints.Endpoint{}, "ap-southeast-1": endpoints.Endpoint{}, "ap-southeast-2": endpoints.Endpoint{}, "ca-central-1": endpoints.Endpoint{}, - "eu-central-1": endpoints.Endpoint{}, - "eu-north-1": endpoints.Endpoint{}, - "eu-south-1": endpoints.Endpoint{}, - "eu-west-1": endpoints.Endpoint{}, - "eu-west-2": endpoints.Endpoint{}, - "eu-west-3": endpoints.Endpoint{}, + "dualstack-ap-south-1": endpoints.Endpoint{ + Hostname: "api.ec2.ap-south-1.aws", + CredentialScope: endpoints.CredentialScope{ + Region: "ap-south-1", + }, + }, + "dualstack-eu-west-1": endpoints.Endpoint{ + Hostname: "api.ec2.eu-west-1.aws", + CredentialScope: endpoints.CredentialScope{ + Region: "eu-west-1", + }, + }, + "dualstack-sa-east-1": endpoints.Endpoint{ + Hostname: "api.ec2.sa-east-1.aws", + CredentialScope: endpoints.CredentialScope{ + Region: "sa-east-1", + }, + }, + "dualstack-us-east-1": endpoints.Endpoint{ + Hostname: "api.ec2.us-east-1.aws", + CredentialScope: endpoints.CredentialScope{ + Region: "us-east-1", + }, + }, + "dualstack-us-east-2": endpoints.Endpoint{ + Hostname: "api.ec2.us-east-2.aws", + CredentialScope: endpoints.CredentialScope{ + Region: "us-east-2", + }, + }, + "dualstack-us-west-2": endpoints.Endpoint{ + Hostname: "api.ec2.us-west-2.aws", + CredentialScope: endpoints.CredentialScope{ + Region: "us-west-2", + }, + }, + "eu-central-1": endpoints.Endpoint{}, + "eu-north-1": endpoints.Endpoint{}, + "eu-south-1": endpoints.Endpoint{}, + "eu-west-1": endpoints.Endpoint{}, + "eu-west-2": endpoints.Endpoint{}, + "eu-west-3": endpoints.Endpoint{}, "fips-ca-central-1": endpoints.Endpoint{ Hostname: "ec2-fips.ca-central-1.amazonaws.com", CredentialScope: endpoints.CredentialScope{ @@ -107,7 +159,7 @@ var defaultPartitions = endpoints.Partitions{ Protocols: []string{"http", "https"}, SignatureVersions: []string{"v4"}, }, - RegionRegex: regexp.MustCompile("^cn\\-\\w+\\-\\d+$"), + RegionRegex: partitionRegexp.AwsCn, IsRegionalized: true, Endpoints: endpoints.Endpoints{ "cn-north-1": endpoints.Endpoint{}, @@ -121,7 +173,7 @@ var defaultPartitions = endpoints.Partitions{ Protocols: []string{"https"}, SignatureVersions: []string{"v4"}, }, - RegionRegex: regexp.MustCompile("^us\\-iso\\-\\w+\\-\\d+$"), + RegionRegex: partitionRegexp.AwsIso, IsRegionalized: true, Endpoints: endpoints.Endpoints{ "us-iso-east-1": endpoints.Endpoint{}, @@ -134,7 +186,7 @@ var defaultPartitions = endpoints.Partitions{ Protocols: []string{"http", "https"}, SignatureVersions: []string{"v4"}, }, - RegionRegex: regexp.MustCompile("^us\\-isob\\-\\w+\\-\\d+$"), + RegionRegex: partitionRegexp.AwsIsoB, IsRegionalized: true, Endpoints: endpoints.Endpoints{ "us-isob-east-1": endpoints.Endpoint{}, @@ -147,7 +199,7 @@ var defaultPartitions = endpoints.Partitions{ Protocols: []string{"https"}, SignatureVersions: []string{"v4"}, }, - RegionRegex: regexp.MustCompile("^us\\-gov\\-\\w+\\-\\d+$"), + RegionRegex: partitionRegexp.AwsUsGov, IsRegionalized: true, Endpoints: endpoints.Endpoints{ "us-gov-east-1": endpoints.Endpoint{ 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 39425278c..f45a813ec 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 @@ -1191,6 +1191,62 @@ func (m *awsEc2query_serializeOpAssociateTransitGatewayRouteTable) HandleSeriali return next.HandleSerialize(ctx, in) } +type awsEc2query_serializeOpAssociateTrunkInterface struct { +} + +func (*awsEc2query_serializeOpAssociateTrunkInterface) ID() string { + return "OperationSerializer" +} + +func (m *awsEc2query_serializeOpAssociateTrunkInterface) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + 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.(*AssociateTrunkInterfaceInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + 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("AssociateTrunkInterface") + body.Key("Version").String("2016-11-15") + + if err := awsEc2query_serializeOpDocumentAssociateTrunkInterfaceInput(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 + + return next.HandleSerialize(ctx, in) +} + type awsEc2query_serializeOpAssociateVpcCidrBlock struct { } @@ -3991,6 +4047,62 @@ func (m *awsEc2query_serializeOpCreatePlacementGroup) HandleSerialize(ctx contex return next.HandleSerialize(ctx, in) } +type awsEc2query_serializeOpCreateReplaceRootVolumeTask struct { +} + +func (*awsEc2query_serializeOpCreateReplaceRootVolumeTask) ID() string { + return "OperationSerializer" +} + +func (m *awsEc2query_serializeOpCreateReplaceRootVolumeTask) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + 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.(*CreateReplaceRootVolumeTaskInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + 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("CreateReplaceRootVolumeTask") + body.Key("Version").String("2016-11-15") + + if err := awsEc2query_serializeOpDocumentCreateReplaceRootVolumeTaskInput(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 + + return next.HandleSerialize(ctx, in) +} + type awsEc2query_serializeOpCreateReservedInstancesListing struct { } @@ -4047,6 +4159,62 @@ func (m *awsEc2query_serializeOpCreateReservedInstancesListing) HandleSerialize( return next.HandleSerialize(ctx, in) } +type awsEc2query_serializeOpCreateRestoreImageTask struct { +} + +func (*awsEc2query_serializeOpCreateRestoreImageTask) ID() string { + return "OperationSerializer" +} + +func (m *awsEc2query_serializeOpCreateRestoreImageTask) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + 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.(*CreateRestoreImageTaskInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + 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("CreateRestoreImageTask") + body.Key("Version").String("2016-11-15") + + if err := awsEc2query_serializeOpDocumentCreateRestoreImageTaskInput(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 + + return next.HandleSerialize(ctx, in) +} + type awsEc2query_serializeOpCreateRoute struct { } @@ -4383,6 +4551,62 @@ func (m *awsEc2query_serializeOpCreateSpotDatafeedSubscription) HandleSerialize( return next.HandleSerialize(ctx, in) } +type awsEc2query_serializeOpCreateStoreImageTask struct { +} + +func (*awsEc2query_serializeOpCreateStoreImageTask) ID() string { + return "OperationSerializer" +} + +func (m *awsEc2query_serializeOpCreateStoreImageTask) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + 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.(*CreateStoreImageTaskInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + 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("CreateStoreImageTask") + body.Key("Version").String("2016-11-15") + + if err := awsEc2query_serializeOpDocumentCreateStoreImageTaskInput(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 + + return next.HandleSerialize(ctx, in) +} + type awsEc2query_serializeOpCreateSubnet struct { } @@ -13063,6 +13287,62 @@ func (m *awsEc2query_serializeOpDescribeRegions) HandleSerialize(ctx context.Con return next.HandleSerialize(ctx, in) } +type awsEc2query_serializeOpDescribeReplaceRootVolumeTasks struct { +} + +func (*awsEc2query_serializeOpDescribeReplaceRootVolumeTasks) ID() string { + return "OperationSerializer" +} + +func (m *awsEc2query_serializeOpDescribeReplaceRootVolumeTasks) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + 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.(*DescribeReplaceRootVolumeTasksInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + 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("DescribeReplaceRootVolumeTasks") + body.Key("Version").String("2016-11-15") + + if err := awsEc2query_serializeOpDocumentDescribeReplaceRootVolumeTasksInput(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 + + return next.HandleSerialize(ctx, in) +} + type awsEc2query_serializeOpDescribeReservedInstances struct { } @@ -14071,6 +14351,62 @@ func (m *awsEc2query_serializeOpDescribeStaleSecurityGroups) HandleSerialize(ctx return next.HandleSerialize(ctx, in) } +type awsEc2query_serializeOpDescribeStoreImageTasks struct { +} + +func (*awsEc2query_serializeOpDescribeStoreImageTasks) ID() string { + return "OperationSerializer" +} + +func (m *awsEc2query_serializeOpDescribeStoreImageTasks) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + 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.(*DescribeStoreImageTasksInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + 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("DescribeStoreImageTasks") + body.Key("Version").String("2016-11-15") + + if err := awsEc2query_serializeOpDocumentDescribeStoreImageTasksInput(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 + + return next.HandleSerialize(ctx, in) +} + type awsEc2query_serializeOpDescribeSubnets struct { } @@ -14799,6 +15135,62 @@ func (m *awsEc2query_serializeOpDescribeTransitGatewayVpcAttachments) HandleSeri return next.HandleSerialize(ctx, in) } +type awsEc2query_serializeOpDescribeTrunkInterfaceAssociations struct { +} + +func (*awsEc2query_serializeOpDescribeTrunkInterfaceAssociations) ID() string { + return "OperationSerializer" +} + +func (m *awsEc2query_serializeOpDescribeTrunkInterfaceAssociations) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + 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.(*DescribeTrunkInterfaceAssociationsInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + 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("DescribeTrunkInterfaceAssociations") + body.Key("Version").String("2016-11-15") + + if err := awsEc2query_serializeOpDocumentDescribeTrunkInterfaceAssociationsInput(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 + + return next.HandleSerialize(ctx, in) +} + type awsEc2query_serializeOpDescribeVolumeAttribute struct { } @@ -16143,6 +16535,118 @@ func (m *awsEc2query_serializeOpDisableFastSnapshotRestores) HandleSerialize(ctx return next.HandleSerialize(ctx, in) } +type awsEc2query_serializeOpDisableImageDeprecation struct { +} + +func (*awsEc2query_serializeOpDisableImageDeprecation) ID() string { + return "OperationSerializer" +} + +func (m *awsEc2query_serializeOpDisableImageDeprecation) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + 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.(*DisableImageDeprecationInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + 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("DisableImageDeprecation") + body.Key("Version").String("2016-11-15") + + if err := awsEc2query_serializeOpDocumentDisableImageDeprecationInput(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 + + return next.HandleSerialize(ctx, in) +} + +type awsEc2query_serializeOpDisableSerialConsoleAccess struct { +} + +func (*awsEc2query_serializeOpDisableSerialConsoleAccess) ID() string { + return "OperationSerializer" +} + +func (m *awsEc2query_serializeOpDisableSerialConsoleAccess) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + 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.(*DisableSerialConsoleAccessInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + 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("DisableSerialConsoleAccess") + body.Key("Version").String("2016-11-15") + + if err := awsEc2query_serializeOpDocumentDisableSerialConsoleAccessInput(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 + + return next.HandleSerialize(ctx, in) +} + type awsEc2query_serializeOpDisableTransitGatewayRouteTablePropagation struct { } @@ -16815,6 +17319,62 @@ func (m *awsEc2query_serializeOpDisassociateTransitGatewayRouteTable) HandleSeri return next.HandleSerialize(ctx, in) } +type awsEc2query_serializeOpDisassociateTrunkInterface struct { +} + +func (*awsEc2query_serializeOpDisassociateTrunkInterface) ID() string { + return "OperationSerializer" +} + +func (m *awsEc2query_serializeOpDisassociateTrunkInterface) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + 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.(*DisassociateTrunkInterfaceInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + 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("DisassociateTrunkInterface") + body.Key("Version").String("2016-11-15") + + if err := awsEc2query_serializeOpDocumentDisassociateTrunkInterfaceInput(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 + + return next.HandleSerialize(ctx, in) +} + type awsEc2query_serializeOpDisassociateVpcCidrBlock struct { } @@ -16983,6 +17543,118 @@ func (m *awsEc2query_serializeOpEnableFastSnapshotRestores) HandleSerialize(ctx return next.HandleSerialize(ctx, in) } +type awsEc2query_serializeOpEnableImageDeprecation struct { +} + +func (*awsEc2query_serializeOpEnableImageDeprecation) ID() string { + return "OperationSerializer" +} + +func (m *awsEc2query_serializeOpEnableImageDeprecation) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + 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.(*EnableImageDeprecationInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + 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("EnableImageDeprecation") + body.Key("Version").String("2016-11-15") + + if err := awsEc2query_serializeOpDocumentEnableImageDeprecationInput(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 + + return next.HandleSerialize(ctx, in) +} + +type awsEc2query_serializeOpEnableSerialConsoleAccess struct { +} + +func (*awsEc2query_serializeOpEnableSerialConsoleAccess) ID() string { + return "OperationSerializer" +} + +func (m *awsEc2query_serializeOpEnableSerialConsoleAccess) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + 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.(*EnableSerialConsoleAccessInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + 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("EnableSerialConsoleAccess") + body.Key("Version").String("2016-11-15") + + if err := awsEc2query_serializeOpDocumentEnableSerialConsoleAccessInput(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 + + return next.HandleSerialize(ctx, in) +} + type awsEc2query_serializeOpEnableTransitGatewayRouteTablePropagation struct { } @@ -17991,6 +18663,62 @@ func (m *awsEc2query_serializeOpGetEbsEncryptionByDefault) HandleSerialize(ctx c return next.HandleSerialize(ctx, in) } +type awsEc2query_serializeOpGetFlowLogsIntegrationTemplate struct { +} + +func (*awsEc2query_serializeOpGetFlowLogsIntegrationTemplate) ID() string { + return "OperationSerializer" +} + +func (m *awsEc2query_serializeOpGetFlowLogsIntegrationTemplate) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + 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.(*GetFlowLogsIntegrationTemplateInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + 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("GetFlowLogsIntegrationTemplate") + body.Key("Version").String("2016-11-15") + + if err := awsEc2query_serializeOpDocumentGetFlowLogsIntegrationTemplateInput(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 + + return next.HandleSerialize(ctx, in) +} + type awsEc2query_serializeOpGetGroupsForCapacityReservation struct { } @@ -18383,6 +19111,62 @@ func (m *awsEc2query_serializeOpGetReservedInstancesExchangeQuote) HandleSeriali return next.HandleSerialize(ctx, in) } +type awsEc2query_serializeOpGetSerialConsoleAccessStatus struct { +} + +func (*awsEc2query_serializeOpGetSerialConsoleAccessStatus) ID() string { + return "OperationSerializer" +} + +func (m *awsEc2query_serializeOpGetSerialConsoleAccessStatus) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( + out middleware.SerializeOutput, metadata middleware.Metadata, err error, +) { + 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.(*GetSerialConsoleAccessStatusInput) + _ = input + if !ok { + return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)} + } + + 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("GetSerialConsoleAccessStatus") + body.Key("Version").String("2016-11-15") + + if err := awsEc2query_serializeOpDocumentGetSerialConsoleAccessStatusInput(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 + + return next.HandleSerialize(ctx, in) +} + type awsEc2query_serializeOpGetTransitGatewayAttachmentPropagations struct { } @@ -24751,13 +25535,55 @@ func awsEc2query_serializeDocumentAssociationIdList(v []string, value query.Valu return nil } +func awsEc2query_serializeDocumentAthenaIntegration(v *types.AthenaIntegration, value query.Value) error { + object := value.Object() + _ = object + + if v.IntegrationResultS3DestinationArn != nil { + objectKey := object.Key("IntegrationResultS3DestinationArn") + objectKey.String(*v.IntegrationResultS3DestinationArn) + } + + if v.PartitionEndDate != nil { + objectKey := object.Key("PartitionEndDate") + objectKey.String(smithytime.FormatDateTime(*v.PartitionEndDate)) + } + + if len(v.PartitionLoadFrequency) > 0 { + objectKey := object.Key("PartitionLoadFrequency") + objectKey.String(string(v.PartitionLoadFrequency)) + } + + if v.PartitionStartDate != nil { + objectKey := object.Key("PartitionStartDate") + objectKey.String(smithytime.FormatDateTime(*v.PartitionStartDate)) + } + + return nil +} + +func awsEc2query_serializeDocumentAthenaIntegrationsSet(v []types.AthenaIntegration, value query.Value) error { + if len(v) == 0 { + return nil + } + array := value.Array("Item") + + for i := range v { + av := array.Value() + if err := awsEc2query_serializeDocumentAthenaIntegration(&v[i], av); err != nil { + return err + } + } + return nil +} + func awsEc2query_serializeDocumentAttributeBooleanValue(v *types.AttributeBooleanValue, value query.Value) error { object := value.Object() _ = object - if v.Value { + if v.Value != nil { objectKey := object.Key("Value") - objectKey.Boolean(v.Value) + objectKey.Boolean(*v.Value) } return nil @@ -25033,9 +25859,9 @@ func awsEc2query_serializeDocumentClientConnectOptions(v *types.ClientConnectOpt object := value.Object() _ = object - if v.Enabled { + if v.Enabled != nil { objectKey := object.Key("Enabled") - objectKey.Boolean(v.Enabled) + objectKey.Boolean(*v.Enabled) } if v.LambdaFunctionArn != nil { @@ -25060,9 +25886,9 @@ func awsEc2query_serializeDocumentClientData(v *types.ClientData, value query.Va objectKey.String(smithytime.FormatDateTime(*v.UploadEnd)) } - if v.UploadSize != 0 { + if v.UploadSize != nil { objectKey := object.Key("UploadSize") - objectKey.Double(v.UploadSize) + objectKey.Double(*v.UploadSize) } if v.UploadStart != nil { @@ -25174,9 +26000,9 @@ func awsEc2query_serializeDocumentConnectionLogOptions(v *types.ConnectionLogOpt objectKey.String(*v.CloudwatchLogStream) } - if v.Enabled { + if v.Enabled != nil { objectKey := object.Key("Enabled") - objectKey.Boolean(v.Enabled) + objectKey.Boolean(*v.Enabled) } return nil @@ -25212,14 +26038,14 @@ func awsEc2query_serializeDocumentCpuOptionsRequest(v *types.CpuOptionsRequest, object := value.Object() _ = object - if v.CoreCount != 0 { + if v.CoreCount != nil { objectKey := object.Key("CoreCount") - objectKey.Integer(v.CoreCount) + objectKey.Integer(*v.CoreCount) } - if v.ThreadsPerCore != 0 { + if v.ThreadsPerCore != nil { objectKey := object.Key("ThreadsPerCore") - objectKey.Integer(v.ThreadsPerCore) + objectKey.Integer(*v.ThreadsPerCore) } return nil @@ -25376,9 +26202,9 @@ func awsEc2query_serializeDocumentDeregisterInstanceTagAttributeRequest(v *types object := value.Object() _ = object - if v.IncludeAllTagsOfInstance { + if v.IncludeAllTagsOfInstance != nil { objectKey := object.Key("IncludeAllTagsOfInstance") - objectKey.Boolean(v.IncludeAllTagsOfInstance) + objectKey.Boolean(*v.IncludeAllTagsOfInstance) } if v.InstanceTagKeys != nil { @@ -25446,9 +26272,9 @@ func awsEc2query_serializeDocumentDiskImageDetail(v *types.DiskImageDetail, valu object := value.Object() _ = object - if v.Bytes != 0 { + if v.Bytes != nil { objectKey := object.Key("Bytes") - objectKey.Long(v.Bytes) + objectKey.Long(*v.Bytes) } if len(v.Format) > 0 { @@ -25490,9 +26316,9 @@ func awsEc2query_serializeDocumentDnsServersOptionsModifyStructure(v *types.DnsS } } - if v.Enabled { + if v.Enabled != nil { objectKey := object.Key("Enabled") - objectKey.Boolean(v.Enabled) + objectKey.Boolean(*v.Enabled) } return nil @@ -25502,19 +26328,19 @@ func awsEc2query_serializeDocumentEbsBlockDevice(v *types.EbsBlockDevice, value object := value.Object() _ = object - if v.DeleteOnTermination { + if v.DeleteOnTermination != nil { objectKey := object.Key("DeleteOnTermination") - objectKey.Boolean(v.DeleteOnTermination) + objectKey.Boolean(*v.DeleteOnTermination) } - if v.Encrypted { + if v.Encrypted != nil { objectKey := object.Key("Encrypted") - objectKey.Boolean(v.Encrypted) + objectKey.Boolean(*v.Encrypted) } - if v.Iops != 0 { + if v.Iops != nil { objectKey := object.Key("Iops") - objectKey.Integer(v.Iops) + objectKey.Integer(*v.Iops) } if v.KmsKeyId != nil { @@ -25532,14 +26358,14 @@ func awsEc2query_serializeDocumentEbsBlockDevice(v *types.EbsBlockDevice, value objectKey.String(*v.SnapshotId) } - if v.Throughput != 0 { + if v.Throughput != nil { objectKey := object.Key("Throughput") - objectKey.Integer(v.Throughput) + objectKey.Integer(*v.Throughput) } - if v.VolumeSize != 0 { + if v.VolumeSize != nil { objectKey := object.Key("VolumeSize") - objectKey.Integer(v.VolumeSize) + objectKey.Integer(*v.VolumeSize) } if len(v.VolumeType) > 0 { @@ -25554,9 +26380,9 @@ func awsEc2query_serializeDocumentEbsInstanceBlockDeviceSpecification(v *types.E object := value.Object() _ = object - if v.DeleteOnTermination { + if v.DeleteOnTermination != nil { objectKey := object.Key("DeleteOnTermination") - objectKey.Boolean(v.DeleteOnTermination) + objectKey.Boolean(*v.DeleteOnTermination) } if v.VolumeId != nil { @@ -25639,9 +26465,9 @@ func awsEc2query_serializeDocumentElasticInferenceAccelerator(v *types.ElasticIn object := value.Object() _ = object - if v.Count != 0 { + if v.Count != nil { objectKey := object.Key("Count") - objectKey.Integer(v.Count) + objectKey.Integer(*v.Count) } if v.Type != nil { @@ -25671,9 +26497,9 @@ func awsEc2query_serializeDocumentEnclaveOptionsRequest(v *types.EnclaveOptionsR object := value.Object() _ = object - if v.Enabled { + if v.Enabled != nil { objectKey := object.Key("Enabled") - objectKey.Boolean(v.Enabled) + objectKey.Boolean(*v.Enabled) } return nil @@ -25903,9 +26729,9 @@ func awsEc2query_serializeDocumentFleetLaunchTemplateOverridesRequest(v *types.F } } - if v.Priority != 0 { + if v.Priority != nil { objectKey := object.Key("Priority") - objectKey.Double(v.Priority) + objectKey.Double(*v.Priority) } if v.SubnetId != nil { @@ -25913,9 +26739,9 @@ func awsEc2query_serializeDocumentFleetLaunchTemplateOverridesRequest(v *types.F objectKey.String(*v.SubnetId) } - if v.WeightedCapacity != 0 { + if v.WeightedCapacity != nil { objectKey := object.Key("WeightedCapacity") - objectKey.Double(v.WeightedCapacity) + objectKey.Double(*v.WeightedCapacity) } return nil @@ -26105,9 +26931,9 @@ func awsEc2query_serializeDocumentHibernationOptionsRequest(v *types.Hibernation object := value.Object() _ = object - if v.Configured { + if v.Configured != nil { objectKey := object.Key("Configured") - objectKey.Boolean(v.Configured) + objectKey.Boolean(*v.Configured) } return nil @@ -26147,14 +26973,14 @@ func awsEc2query_serializeDocumentIcmpTypeCode(v *types.IcmpTypeCode, value quer object := value.Object() _ = object - if v.Code != 0 { + if v.Code != nil { objectKey := object.Key("Code") - objectKey.Integer(v.Code) + objectKey.Integer(*v.Code) } - if v.Type != 0 { + if v.Type != nil { objectKey := object.Key("Type") - objectKey.Integer(v.Type) + objectKey.Integer(*v.Type) } return nil @@ -26241,6 +27067,19 @@ func awsEc2query_serializeDocumentImageDiskContainerList(v []types.ImageDiskCont return nil } +func awsEc2query_serializeDocumentImageIdList(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_serializeDocumentImageIdStringList(v []string, value query.Value) error { if len(v) == 0 { return nil @@ -26319,9 +27158,9 @@ func awsEc2query_serializeDocumentImportInstanceLaunchSpecification(v *types.Imp objectKey.String(string(v.InstanceType)) } - if v.Monitoring { + if v.Monitoring != nil { objectKey := object.Key("Monitoring") - objectKey.Boolean(v.Monitoring) + objectKey.Boolean(*v.Monitoring) } if v.Placement != nil { @@ -26561,9 +27400,9 @@ func awsEc2query_serializeDocumentInstanceMetadataOptionsRequest(v *types.Instan objectKey.String(string(v.HttpEndpoint)) } - if v.HttpPutResponseHopLimit != 0 { + if v.HttpPutResponseHopLimit != nil { objectKey := object.Key("HttpPutResponseHopLimit") - objectKey.Integer(v.HttpPutResponseHopLimit) + objectKey.Integer(*v.HttpPutResponseHopLimit) } if len(v.HttpTokens) > 0 { @@ -26578,19 +27417,19 @@ func awsEc2query_serializeDocumentInstanceNetworkInterfaceSpecification(v *types object := value.Object() _ = object - if v.AssociateCarrierIpAddress { + if v.AssociateCarrierIpAddress != nil { objectKey := object.Key("AssociateCarrierIpAddress") - objectKey.Boolean(v.AssociateCarrierIpAddress) + objectKey.Boolean(*v.AssociateCarrierIpAddress) } - if v.AssociatePublicIpAddress { + if v.AssociatePublicIpAddress != nil { objectKey := object.Key("AssociatePublicIpAddress") - objectKey.Boolean(v.AssociatePublicIpAddress) + objectKey.Boolean(*v.AssociatePublicIpAddress) } - if v.DeleteOnTermination { + if v.DeleteOnTermination != nil { objectKey := object.Key("DeleteOnTermination") - objectKey.Boolean(v.DeleteOnTermination) + objectKey.Boolean(*v.DeleteOnTermination) } if v.Description != nil { @@ -26598,9 +27437,9 @@ func awsEc2query_serializeDocumentInstanceNetworkInterfaceSpecification(v *types objectKey.String(*v.Description) } - if v.DeviceIndex != 0 { + if v.DeviceIndex != nil { objectKey := object.Key("DeviceIndex") - objectKey.Integer(v.DeviceIndex) + objectKey.Integer(*v.DeviceIndex) } if v.Groups != nil { @@ -26615,9 +27454,9 @@ func awsEc2query_serializeDocumentInstanceNetworkInterfaceSpecification(v *types objectKey.String(*v.InterfaceType) } - if v.Ipv6AddressCount != 0 { + if v.Ipv6AddressCount != nil { objectKey := object.Key("Ipv6AddressCount") - objectKey.Integer(v.Ipv6AddressCount) + objectKey.Integer(*v.Ipv6AddressCount) } if v.Ipv6Addresses != nil { @@ -26627,9 +27466,9 @@ func awsEc2query_serializeDocumentInstanceNetworkInterfaceSpecification(v *types } } - if v.NetworkCardIndex != 0 { + if v.NetworkCardIndex != nil { objectKey := object.Key("NetworkCardIndex") - objectKey.Integer(v.NetworkCardIndex) + objectKey.Integer(*v.NetworkCardIndex) } if v.NetworkInterfaceId != nil { @@ -26649,9 +27488,9 @@ func awsEc2query_serializeDocumentInstanceNetworkInterfaceSpecification(v *types } } - if v.SecondaryPrivateIpAddressCount != 0 { + if v.SecondaryPrivateIpAddressCount != nil { objectKey := object.Key("SecondaryPrivateIpAddressCount") - objectKey.Integer(v.SecondaryPrivateIpAddressCount) + objectKey.Integer(*v.SecondaryPrivateIpAddressCount) } if v.SubnetId != nil { @@ -26681,9 +27520,9 @@ func awsEc2query_serializeDocumentInstanceSpecification(v *types.InstanceSpecifi object := value.Object() _ = object - if v.ExcludeBootVolume { + if v.ExcludeBootVolume != nil { objectKey := object.Key("ExcludeBootVolume") - objectKey.Boolean(v.ExcludeBootVolume) + objectKey.Boolean(*v.ExcludeBootVolume) } if v.InstanceId != nil { @@ -26720,6 +27559,20 @@ func awsEc2query_serializeDocumentInstanceTypeList(v []types.InstanceType, value return nil } +func awsEc2query_serializeDocumentIntegrateServices(v *types.IntegrateServices, value query.Value) error { + object := value.Object() + _ = object + + if v.AthenaIntegrations != nil { + objectKey := object.FlatKey("AthenaIntegration") + if err := awsEc2query_serializeDocumentAthenaIntegrationsSet(v.AthenaIntegrations, objectKey); err != nil { + return err + } + } + + return nil +} + func awsEc2query_serializeDocumentInternetGatewayIdList(v []string, value query.Value) error { if len(v) == 0 { return nil @@ -26737,9 +27590,9 @@ func awsEc2query_serializeDocumentIpPermission(v *types.IpPermission, value quer object := value.Object() _ = object - if v.FromPort != 0 { + if v.FromPort != nil { objectKey := object.Key("FromPort") - objectKey.Integer(v.FromPort) + objectKey.Integer(*v.FromPort) } if v.IpProtocol != nil { @@ -26768,9 +27621,9 @@ func awsEc2query_serializeDocumentIpPermission(v *types.IpPermission, value quer } } - if v.ToPort != 0 { + if v.ToPort != nil { objectKey := object.Key("ToPort") - objectKey.Integer(v.ToPort) + objectKey.Integer(*v.ToPort) } if v.UserIdGroupPairs != nil { @@ -27085,14 +27938,14 @@ func awsEc2query_serializeDocumentLaunchTemplateCpuOptionsRequest(v *types.Launc object := value.Object() _ = object - if v.CoreCount != 0 { + if v.CoreCount != nil { objectKey := object.Key("CoreCount") - objectKey.Integer(v.CoreCount) + objectKey.Integer(*v.CoreCount) } - if v.ThreadsPerCore != 0 { + if v.ThreadsPerCore != nil { objectKey := object.Key("ThreadsPerCore") - objectKey.Integer(v.ThreadsPerCore) + objectKey.Integer(*v.ThreadsPerCore) } return nil @@ -27102,19 +27955,19 @@ func awsEc2query_serializeDocumentLaunchTemplateEbsBlockDeviceRequest(v *types.L object := value.Object() _ = object - if v.DeleteOnTermination { + if v.DeleteOnTermination != nil { objectKey := object.Key("DeleteOnTermination") - objectKey.Boolean(v.DeleteOnTermination) + objectKey.Boolean(*v.DeleteOnTermination) } - if v.Encrypted { + if v.Encrypted != nil { objectKey := object.Key("Encrypted") - objectKey.Boolean(v.Encrypted) + objectKey.Boolean(*v.Encrypted) } - if v.Iops != 0 { + if v.Iops != nil { objectKey := object.Key("Iops") - objectKey.Integer(v.Iops) + objectKey.Integer(*v.Iops) } if v.KmsKeyId != nil { @@ -27127,14 +27980,14 @@ func awsEc2query_serializeDocumentLaunchTemplateEbsBlockDeviceRequest(v *types.L objectKey.String(*v.SnapshotId) } - if v.Throughput != 0 { + if v.Throughput != nil { objectKey := object.Key("Throughput") - objectKey.Integer(v.Throughput) + objectKey.Integer(*v.Throughput) } - if v.VolumeSize != 0 { + if v.VolumeSize != nil { objectKey := object.Key("VolumeSize") - objectKey.Integer(v.VolumeSize) + objectKey.Integer(*v.VolumeSize) } if len(v.VolumeType) > 0 { @@ -27149,9 +28002,9 @@ func awsEc2query_serializeDocumentLaunchTemplateElasticInferenceAccelerator(v *t object := value.Object() _ = object - if v.Count != 0 { + if v.Count != nil { objectKey := object.Key("Count") - objectKey.Integer(v.Count) + objectKey.Integer(*v.Count) } if v.Type != nil { @@ -27181,9 +28034,9 @@ func awsEc2query_serializeDocumentLaunchTemplateEnclaveOptionsRequest(v *types.L object := value.Object() _ = object - if v.Enabled { + if v.Enabled != nil { objectKey := object.Key("Enabled") - objectKey.Boolean(v.Enabled) + objectKey.Boolean(*v.Enabled) } return nil @@ -27193,9 +28046,9 @@ func awsEc2query_serializeDocumentLaunchTemplateHibernationOptionsRequest(v *typ object := value.Object() _ = object - if v.Configured { + if v.Configured != nil { objectKey := object.Key("Configured") - objectKey.Boolean(v.Configured) + objectKey.Boolean(*v.Configured) } return nil @@ -27259,9 +28112,9 @@ func awsEc2query_serializeDocumentLaunchTemplateInstanceMetadataOptionsRequest(v objectKey.String(string(v.HttpEndpoint)) } - if v.HttpPutResponseHopLimit != 0 { + if v.HttpPutResponseHopLimit != nil { objectKey := object.Key("HttpPutResponseHopLimit") - objectKey.Integer(v.HttpPutResponseHopLimit) + objectKey.Integer(*v.HttpPutResponseHopLimit) } if len(v.HttpTokens) > 0 { @@ -27276,19 +28129,19 @@ func awsEc2query_serializeDocumentLaunchTemplateInstanceNetworkInterfaceSpecific object := value.Object() _ = object - if v.AssociateCarrierIpAddress { + if v.AssociateCarrierIpAddress != nil { objectKey := object.Key("AssociateCarrierIpAddress") - objectKey.Boolean(v.AssociateCarrierIpAddress) + objectKey.Boolean(*v.AssociateCarrierIpAddress) } - if v.AssociatePublicIpAddress { + if v.AssociatePublicIpAddress != nil { objectKey := object.Key("AssociatePublicIpAddress") - objectKey.Boolean(v.AssociatePublicIpAddress) + objectKey.Boolean(*v.AssociatePublicIpAddress) } - if v.DeleteOnTermination { + if v.DeleteOnTermination != nil { objectKey := object.Key("DeleteOnTermination") - objectKey.Boolean(v.DeleteOnTermination) + objectKey.Boolean(*v.DeleteOnTermination) } if v.Description != nil { @@ -27296,9 +28149,9 @@ func awsEc2query_serializeDocumentLaunchTemplateInstanceNetworkInterfaceSpecific objectKey.String(*v.Description) } - if v.DeviceIndex != 0 { + if v.DeviceIndex != nil { objectKey := object.Key("DeviceIndex") - objectKey.Integer(v.DeviceIndex) + objectKey.Integer(*v.DeviceIndex) } if v.Groups != nil { @@ -27313,9 +28166,9 @@ func awsEc2query_serializeDocumentLaunchTemplateInstanceNetworkInterfaceSpecific objectKey.String(*v.InterfaceType) } - if v.Ipv6AddressCount != 0 { + if v.Ipv6AddressCount != nil { objectKey := object.Key("Ipv6AddressCount") - objectKey.Integer(v.Ipv6AddressCount) + objectKey.Integer(*v.Ipv6AddressCount) } if v.Ipv6Addresses != nil { @@ -27325,9 +28178,9 @@ func awsEc2query_serializeDocumentLaunchTemplateInstanceNetworkInterfaceSpecific } } - if v.NetworkCardIndex != 0 { + if v.NetworkCardIndex != nil { objectKey := object.Key("NetworkCardIndex") - objectKey.Integer(v.NetworkCardIndex) + objectKey.Integer(*v.NetworkCardIndex) } if v.NetworkInterfaceId != nil { @@ -27347,9 +28200,9 @@ func awsEc2query_serializeDocumentLaunchTemplateInstanceNetworkInterfaceSpecific } } - if v.SecondaryPrivateIpAddressCount != 0 { + if v.SecondaryPrivateIpAddressCount != nil { objectKey := object.Key("SecondaryPrivateIpAddressCount") - objectKey.Integer(v.SecondaryPrivateIpAddressCount) + objectKey.Integer(*v.SecondaryPrivateIpAddressCount) } if v.SubnetId != nil { @@ -27429,9 +28282,9 @@ func awsEc2query_serializeDocumentLaunchTemplateOverrides(v *types.LaunchTemplat objectKey.String(string(v.InstanceType)) } - if v.Priority != 0 { + if v.Priority != nil { objectKey := object.Key("Priority") - objectKey.Double(v.Priority) + objectKey.Double(*v.Priority) } if v.SpotPrice != nil { @@ -27444,9 +28297,9 @@ func awsEc2query_serializeDocumentLaunchTemplateOverrides(v *types.LaunchTemplat objectKey.String(*v.SubnetId) } - if v.WeightedCapacity != 0 { + if v.WeightedCapacity != nil { objectKey := object.Key("WeightedCapacity") - objectKey.Double(v.WeightedCapacity) + objectKey.Double(*v.WeightedCapacity) } return nil @@ -27496,9 +28349,9 @@ func awsEc2query_serializeDocumentLaunchTemplatePlacementRequest(v *types.Launch objectKey.String(*v.HostResourceGroupArn) } - if v.PartitionNumber != 0 { + if v.PartitionNumber != nil { objectKey := object.Key("PartitionNumber") - objectKey.Integer(v.PartitionNumber) + objectKey.Integer(*v.PartitionNumber) } if v.SpreadDomain != nil { @@ -27518,9 +28371,9 @@ func awsEc2query_serializeDocumentLaunchTemplatesMonitoringRequest(v *types.Laun object := value.Object() _ = object - if v.Enabled { + if v.Enabled != nil { objectKey := object.Key("Enabled") - objectKey.Boolean(v.Enabled) + objectKey.Boolean(*v.Enabled) } return nil @@ -27552,9 +28405,9 @@ func awsEc2query_serializeDocumentLaunchTemplateSpotMarketOptionsRequest(v *type object := value.Object() _ = object - if v.BlockDurationMinutes != 0 { + if v.BlockDurationMinutes != nil { objectKey := object.Key("BlockDurationMinutes") - objectKey.Integer(v.BlockDurationMinutes) + objectKey.Integer(*v.BlockDurationMinutes) } if len(v.InstanceInterruptionBehavior) > 0 { @@ -27880,9 +28733,9 @@ func awsEc2query_serializeDocumentModifyVpnTunnelOptionsSpecification(v *types.M objectKey.String(*v.DPDTimeoutAction) } - if v.DPDTimeoutSeconds != 0 { + if v.DPDTimeoutSeconds != nil { objectKey := object.Key("DPDTimeoutSeconds") - objectKey.Integer(v.DPDTimeoutSeconds) + objectKey.Integer(*v.DPDTimeoutSeconds) } if v.IKEVersions != nil { @@ -27913,9 +28766,9 @@ func awsEc2query_serializeDocumentModifyVpnTunnelOptionsSpecification(v *types.M } } - if v.Phase1LifetimeSeconds != 0 { + if v.Phase1LifetimeSeconds != nil { objectKey := object.Key("Phase1LifetimeSeconds") - objectKey.Integer(v.Phase1LifetimeSeconds) + objectKey.Integer(*v.Phase1LifetimeSeconds) } if v.Phase2DHGroupNumbers != nil { @@ -27939,9 +28792,9 @@ func awsEc2query_serializeDocumentModifyVpnTunnelOptionsSpecification(v *types.M } } - if v.Phase2LifetimeSeconds != 0 { + if v.Phase2LifetimeSeconds != nil { objectKey := object.Key("Phase2LifetimeSeconds") - objectKey.Integer(v.Phase2LifetimeSeconds) + objectKey.Integer(*v.Phase2LifetimeSeconds) } if v.PreSharedKey != nil { @@ -27949,19 +28802,19 @@ func awsEc2query_serializeDocumentModifyVpnTunnelOptionsSpecification(v *types.M objectKey.String(*v.PreSharedKey) } - if v.RekeyFuzzPercentage != 0 { + if v.RekeyFuzzPercentage != nil { objectKey := object.Key("RekeyFuzzPercentage") - objectKey.Integer(v.RekeyFuzzPercentage) + objectKey.Integer(*v.RekeyFuzzPercentage) } - if v.RekeyMarginTimeSeconds != 0 { + if v.RekeyMarginTimeSeconds != nil { objectKey := object.Key("RekeyMarginTimeSeconds") - objectKey.Integer(v.RekeyMarginTimeSeconds) + objectKey.Integer(*v.RekeyMarginTimeSeconds) } - if v.ReplayWindowSize != 0 { + if v.ReplayWindowSize != nil { objectKey := object.Key("ReplayWindowSize") - objectKey.Integer(v.ReplayWindowSize) + objectKey.Integer(*v.ReplayWindowSize) } if v.StartupAction != nil { @@ -28043,9 +28896,9 @@ func awsEc2query_serializeDocumentNetworkInterfaceAttachmentChanges(v *types.Net objectKey.String(*v.AttachmentId) } - if v.DeleteOnTermination { + if v.DeleteOnTermination != nil { objectKey := object.Key("DeleteOnTermination") - objectKey.Boolean(v.DeleteOnTermination) + objectKey.Boolean(*v.DeleteOnTermination) } return nil @@ -28145,19 +28998,19 @@ func awsEc2query_serializeDocumentOnDemandOptionsRequest(v *types.OnDemandOption objectKey.String(*v.MaxTotalPrice) } - if v.MinTargetCapacity != 0 { + if v.MinTargetCapacity != nil { objectKey := object.Key("MinTargetCapacity") - objectKey.Integer(v.MinTargetCapacity) + objectKey.Integer(*v.MinTargetCapacity) } - if v.SingleAvailabilityZone { + if v.SingleAvailabilityZone != nil { objectKey := object.Key("SingleAvailabilityZone") - objectKey.Boolean(v.SingleAvailabilityZone) + objectKey.Boolean(*v.SingleAvailabilityZone) } - if v.SingleInstanceType { + if v.SingleInstanceType != nil { objectKey := object.Key("SingleInstanceType") - objectKey.Boolean(v.SingleInstanceType) + objectKey.Boolean(*v.SingleInstanceType) } return nil @@ -28180,19 +29033,19 @@ func awsEc2query_serializeDocumentPeeringConnectionOptionsRequest(v *types.Peeri object := value.Object() _ = object - if v.AllowDnsResolutionFromRemoteVpc { + if v.AllowDnsResolutionFromRemoteVpc != nil { objectKey := object.Key("AllowDnsResolutionFromRemoteVpc") - objectKey.Boolean(v.AllowDnsResolutionFromRemoteVpc) + objectKey.Boolean(*v.AllowDnsResolutionFromRemoteVpc) } - if v.AllowEgressFromLocalClassicLinkToRemoteVpc { + if v.AllowEgressFromLocalClassicLinkToRemoteVpc != nil { objectKey := object.Key("AllowEgressFromLocalClassicLinkToRemoteVpc") - objectKey.Boolean(v.AllowEgressFromLocalClassicLinkToRemoteVpc) + objectKey.Boolean(*v.AllowEgressFromLocalClassicLinkToRemoteVpc) } - if v.AllowEgressFromLocalVpcToRemoteClassicLink { + if v.AllowEgressFromLocalVpcToRemoteClassicLink != nil { objectKey := object.Key("AllowEgressFromLocalVpcToRemoteClassicLink") - objectKey.Boolean(v.AllowEgressFromLocalVpcToRemoteClassicLink) + objectKey.Boolean(*v.AllowEgressFromLocalVpcToRemoteClassicLink) } return nil @@ -28217,9 +29070,9 @@ func awsEc2query_serializeDocumentPhase1DHGroupNumbersRequestListValue(v *types. object := value.Object() _ = object - if v.Value != 0 { + if v.Value != nil { objectKey := object.Key("Value") - objectKey.Integer(v.Value) + objectKey.Integer(*v.Value) } return nil @@ -28298,9 +29151,9 @@ func awsEc2query_serializeDocumentPhase2DHGroupNumbersRequestListValue(v *types. object := value.Object() _ = object - if v.Value != 0 { + if v.Value != nil { objectKey := object.Key("Value") - objectKey.Integer(v.Value) + objectKey.Integer(*v.Value) } return nil @@ -28389,9 +29242,9 @@ func awsEc2query_serializeDocumentPlacement(v *types.Placement, value query.Valu objectKey.String(*v.HostResourceGroupArn) } - if v.PartitionNumber != 0 { + if v.PartitionNumber != nil { objectKey := object.Key("PartitionNumber") - objectKey.Integer(v.PartitionNumber) + objectKey.Integer(*v.PartitionNumber) } if v.SpreadDomain != nil { @@ -28437,14 +29290,14 @@ func awsEc2query_serializeDocumentPortRange(v *types.PortRange, value query.Valu object := value.Object() _ = object - if v.From != 0 { + if v.From != nil { objectKey := object.Key("From") - objectKey.Integer(v.From) + objectKey.Integer(*v.From) } - if v.To != 0 { + if v.To != nil { objectKey := object.Key("To") - objectKey.Integer(v.To) + objectKey.Integer(*v.To) } return nil @@ -28504,14 +29357,14 @@ func awsEc2query_serializeDocumentPriceScheduleSpecification(v *types.PriceSched objectKey.String(string(v.CurrencyCode)) } - if v.Price != 0 { + if v.Price != nil { objectKey := object.Key("Price") - objectKey.Double(v.Price) + objectKey.Double(*v.Price) } - if v.Term != 0 { + if v.Term != nil { objectKey := object.Key("Term") - objectKey.Long(v.Term) + objectKey.Long(*v.Term) } return nil @@ -28551,9 +29404,9 @@ func awsEc2query_serializeDocumentPrivateIpAddressSpecification(v *types.Private object := value.Object() _ = object - if v.Primary { + if v.Primary != nil { objectKey := object.Key("Primary") - objectKey.Boolean(v.Primary) + objectKey.Boolean(*v.Primary) } if v.PrivateIpAddress != nil { @@ -28648,9 +29501,9 @@ func awsEc2query_serializeDocumentPurchaseRequest(v *types.PurchaseRequest, valu object := value.Object() _ = object - if v.InstanceCount != 0 { + if v.InstanceCount != nil { objectKey := object.Key("InstanceCount") - objectKey.Integer(v.InstanceCount) + objectKey.Integer(*v.InstanceCount) } if v.PurchaseToken != nil { @@ -28706,9 +29559,9 @@ func awsEc2query_serializeDocumentRegisterInstanceTagAttributeRequest(v *types.R object := value.Object() _ = object - if v.IncludeAllTagsOfInstance { + if v.IncludeAllTagsOfInstance != nil { objectKey := object.Key("IncludeAllTagsOfInstance") - objectKey.Boolean(v.IncludeAllTagsOfInstance) + objectKey.Boolean(*v.IncludeAllTagsOfInstance) } if v.InstanceTagKeys != nil { @@ -28748,6 +29601,19 @@ func awsEc2query_serializeDocumentRemovePrefixListEntry(v *types.RemovePrefixLis return nil } +func awsEc2query_serializeDocumentReplaceRootVolumeTaskIds(v []string, value query.Value) error { + if len(v) == 0 { + return nil + } + array := value.Array("ReplaceRootVolumeTaskId") + + for i := range v { + av := array.Value() + av.String(v[i]) + } + return nil +} + func awsEc2query_serializeDocumentRequestHostIdList(v []string, value query.Value) error { if len(v) == 0 { return nil @@ -28819,14 +29685,14 @@ func awsEc2query_serializeDocumentRequestLaunchTemplateData(v *types.RequestLaun } } - if v.DisableApiTermination { + if v.DisableApiTermination != nil { objectKey := object.Key("DisableApiTermination") - objectKey.Boolean(v.DisableApiTermination) + objectKey.Boolean(*v.DisableApiTermination) } - if v.EbsOptimized { + if v.EbsOptimized != nil { objectKey := object.Key("EbsOptimized") - objectKey.Boolean(v.EbsOptimized) + objectKey.Boolean(*v.EbsOptimized) } if v.ElasticGpuSpecifications != nil { @@ -28981,9 +29847,9 @@ func awsEc2query_serializeDocumentRequestSpotLaunchSpecification(v *types.Reques } } - if v.EbsOptimized { + if v.EbsOptimized != nil { objectKey := object.Key("EbsOptimized") - objectKey.Boolean(v.EbsOptimized) + objectKey.Boolean(*v.EbsOptimized) } if v.IamInstanceProfile != nil { @@ -29109,9 +29975,9 @@ func awsEc2query_serializeDocumentReservedInstanceLimitPrice(v *types.ReservedIn object := value.Object() _ = object - if v.Amount != 0 { + if v.Amount != nil { objectKey := object.Key("Amount") - objectKey.Double(v.Amount) + objectKey.Double(*v.Amount) } if len(v.CurrencyCode) > 0 { @@ -29131,9 +29997,9 @@ func awsEc2query_serializeDocumentReservedInstancesConfiguration(v *types.Reserv objectKey.String(*v.AvailabilityZone) } - if v.InstanceCount != 0 { + if v.InstanceCount != nil { objectKey := object.Key("InstanceCount") - objectKey.Integer(v.InstanceCount) + objectKey.Integer(*v.InstanceCount) } if len(v.InstanceType) > 0 { @@ -29264,14 +30130,46 @@ func awsEc2query_serializeDocumentRunInstancesMonitoringEnabled(v *types.RunInst object := value.Object() _ = object - if v.Enabled { + if v.Enabled != nil { objectKey := object.Key("Enabled") - objectKey.Boolean(v.Enabled) + objectKey.Boolean(*v.Enabled) } return nil } +func awsEc2query_serializeDocumentS3ObjectTag(v *types.S3ObjectTag, value query.Value) error { + object := value.Object() + _ = object + + if v.Key != nil { + objectKey := object.Key("Key") + objectKey.String(*v.Key) + } + + if v.Value != nil { + objectKey := object.Key("Value") + objectKey.String(*v.Value) + } + + return nil +} + +func awsEc2query_serializeDocumentS3ObjectTagList(v []types.S3ObjectTag, value query.Value) error { + if len(v) == 0 { + return nil + } + array := value.Array("Item") + + for i := range v { + av := array.Value() + if err := awsEc2query_serializeDocumentS3ObjectTag(&v[i], av); err != nil { + return err + } + } + return nil +} + func awsEc2query_serializeDocumentS3Storage(v *types.S3Storage, value query.Value) error { object := value.Object() _ = object @@ -29326,9 +30224,9 @@ func awsEc2query_serializeDocumentScheduledInstanceRecurrenceRequest(v *types.Sc objectKey.String(*v.Frequency) } - if v.Interval != 0 { + if v.Interval != nil { objectKey := object.Key("Interval") - objectKey.Integer(v.Interval) + objectKey.Integer(*v.Interval) } if v.OccurrenceDays != nil { @@ -29338,9 +30236,9 @@ func awsEc2query_serializeDocumentScheduledInstanceRecurrenceRequest(v *types.Sc } } - if v.OccurrenceRelativeToEnd { + if v.OccurrenceRelativeToEnd != nil { objectKey := object.Key("OccurrenceRelativeToEnd") - objectKey.Boolean(v.OccurrenceRelativeToEnd) + objectKey.Boolean(*v.OccurrenceRelativeToEnd) } if v.OccurrenceUnit != nil { @@ -29399,19 +30297,19 @@ func awsEc2query_serializeDocumentScheduledInstancesEbs(v *types.ScheduledInstan object := value.Object() _ = object - if v.DeleteOnTermination { + if v.DeleteOnTermination != nil { objectKey := object.Key("DeleteOnTermination") - objectKey.Boolean(v.DeleteOnTermination) + objectKey.Boolean(*v.DeleteOnTermination) } - if v.Encrypted { + if v.Encrypted != nil { objectKey := object.Key("Encrypted") - objectKey.Boolean(v.Encrypted) + objectKey.Boolean(*v.Encrypted) } - if v.Iops != 0 { + if v.Iops != nil { objectKey := object.Key("Iops") - objectKey.Integer(v.Iops) + objectKey.Integer(*v.Iops) } if v.SnapshotId != nil { @@ -29419,9 +30317,9 @@ func awsEc2query_serializeDocumentScheduledInstancesEbs(v *types.ScheduledInstan objectKey.String(*v.SnapshotId) } - if v.VolumeSize != 0 { + if v.VolumeSize != nil { objectKey := object.Key("VolumeSize") - objectKey.Integer(v.VolumeSize) + objectKey.Integer(*v.VolumeSize) } if v.VolumeType != nil { @@ -29487,9 +30385,9 @@ func awsEc2query_serializeDocumentScheduledInstancesLaunchSpecification(v *types } } - if v.EbsOptimized { + if v.EbsOptimized != nil { objectKey := object.Key("EbsOptimized") - objectKey.Boolean(v.EbsOptimized) + objectKey.Boolean(*v.EbsOptimized) } if v.IamInstanceProfile != nil { @@ -29569,9 +30467,9 @@ func awsEc2query_serializeDocumentScheduledInstancesMonitoring(v *types.Schedule object := value.Object() _ = object - if v.Enabled { + if v.Enabled != nil { objectKey := object.Key("Enabled") - objectKey.Boolean(v.Enabled) + objectKey.Boolean(*v.Enabled) } return nil @@ -29581,14 +30479,14 @@ func awsEc2query_serializeDocumentScheduledInstancesNetworkInterface(v *types.Sc object := value.Object() _ = object - if v.AssociatePublicIpAddress { + if v.AssociatePublicIpAddress != nil { objectKey := object.Key("AssociatePublicIpAddress") - objectKey.Boolean(v.AssociatePublicIpAddress) + objectKey.Boolean(*v.AssociatePublicIpAddress) } - if v.DeleteOnTermination { + if v.DeleteOnTermination != nil { objectKey := object.Key("DeleteOnTermination") - objectKey.Boolean(v.DeleteOnTermination) + objectKey.Boolean(*v.DeleteOnTermination) } if v.Description != nil { @@ -29596,9 +30494,9 @@ func awsEc2query_serializeDocumentScheduledInstancesNetworkInterface(v *types.Sc objectKey.String(*v.Description) } - if v.DeviceIndex != 0 { + if v.DeviceIndex != nil { objectKey := object.Key("DeviceIndex") - objectKey.Integer(v.DeviceIndex) + objectKey.Integer(*v.DeviceIndex) } if v.Groups != nil { @@ -29608,9 +30506,9 @@ func awsEc2query_serializeDocumentScheduledInstancesNetworkInterface(v *types.Sc } } - if v.Ipv6AddressCount != 0 { + if v.Ipv6AddressCount != nil { objectKey := object.Key("Ipv6AddressCount") - objectKey.Integer(v.Ipv6AddressCount) + objectKey.Integer(*v.Ipv6AddressCount) } if v.Ipv6Addresses != nil { @@ -29637,9 +30535,9 @@ func awsEc2query_serializeDocumentScheduledInstancesNetworkInterface(v *types.Sc } } - if v.SecondaryPrivateIpAddressCount != 0 { + if v.SecondaryPrivateIpAddressCount != nil { objectKey := object.Key("SecondaryPrivateIpAddressCount") - objectKey.Integer(v.SecondaryPrivateIpAddressCount) + objectKey.Integer(*v.SecondaryPrivateIpAddressCount) } if v.SubnetId != nil { @@ -29686,9 +30584,9 @@ func awsEc2query_serializeDocumentScheduledInstancesPrivateIpAddressConfig(v *ty object := value.Object() _ = object - if v.Primary { + if v.Primary != nil { objectKey := object.Key("Primary") - objectKey.Boolean(v.Primary) + objectKey.Boolean(*v.Primary) } if v.PrivateIpAddress != nil { @@ -29842,9 +30740,9 @@ func awsEc2query_serializeDocumentSpotFleetLaunchSpecification(v *types.SpotFlee } } - if v.EbsOptimized { + if v.EbsOptimized != nil { objectKey := object.Key("EbsOptimized") - objectKey.Boolean(v.EbsOptimized) + objectKey.Boolean(*v.EbsOptimized) } if v.IamInstanceProfile != nil { @@ -29929,9 +30827,9 @@ func awsEc2query_serializeDocumentSpotFleetLaunchSpecification(v *types.SpotFlee objectKey.String(*v.UserData) } - if v.WeightedCapacity != 0 { + if v.WeightedCapacity != nil { objectKey := object.Key("WeightedCapacity") - objectKey.Double(v.WeightedCapacity) + objectKey.Double(*v.WeightedCapacity) } return nil @@ -29941,9 +30839,9 @@ func awsEc2query_serializeDocumentSpotFleetMonitoring(v *types.SpotFleetMonitori object := value.Object() _ = object - if v.Enabled { + if v.Enabled != nil { objectKey := object.Key("Enabled") - objectKey.Boolean(v.Enabled) + objectKey.Boolean(*v.Enabled) } return nil @@ -29963,14 +30861,19 @@ func awsEc2query_serializeDocumentSpotFleetRequestConfigData(v *types.SpotFleetR objectKey.String(*v.ClientToken) } + if v.Context != nil { + objectKey := object.Key("Context") + objectKey.String(*v.Context) + } + if len(v.ExcessCapacityTerminationPolicy) > 0 { objectKey := object.Key("ExcessCapacityTerminationPolicy") objectKey.String(string(v.ExcessCapacityTerminationPolicy)) } - if v.FulfilledCapacity != 0 { + if v.FulfilledCapacity != nil { objectKey := object.Key("FulfilledCapacity") - objectKey.Double(v.FulfilledCapacity) + objectKey.Double(*v.FulfilledCapacity) } if v.IamFleetRole != nil { @@ -29983,9 +30886,9 @@ func awsEc2query_serializeDocumentSpotFleetRequestConfigData(v *types.SpotFleetR objectKey.String(string(v.InstanceInterruptionBehavior)) } - if v.InstancePoolsToUseCount != 0 { + if v.InstancePoolsToUseCount != nil { objectKey := object.Key("InstancePoolsToUseCount") - objectKey.Integer(v.InstancePoolsToUseCount) + objectKey.Integer(*v.InstancePoolsToUseCount) } if v.LaunchSpecifications != nil { @@ -30014,9 +30917,9 @@ func awsEc2query_serializeDocumentSpotFleetRequestConfigData(v *types.SpotFleetR objectKey.String(string(v.OnDemandAllocationStrategy)) } - if v.OnDemandFulfilledCapacity != 0 { + if v.OnDemandFulfilledCapacity != nil { objectKey := object.Key("OnDemandFulfilledCapacity") - objectKey.Double(v.OnDemandFulfilledCapacity) + objectKey.Double(*v.OnDemandFulfilledCapacity) } if v.OnDemandMaxTotalPrice != nil { @@ -30024,14 +30927,14 @@ func awsEc2query_serializeDocumentSpotFleetRequestConfigData(v *types.SpotFleetR objectKey.String(*v.OnDemandMaxTotalPrice) } - if v.OnDemandTargetCapacity != 0 { + if v.OnDemandTargetCapacity != nil { objectKey := object.Key("OnDemandTargetCapacity") - objectKey.Integer(v.OnDemandTargetCapacity) + objectKey.Integer(*v.OnDemandTargetCapacity) } - if v.ReplaceUnhealthyInstances { + if v.ReplaceUnhealthyInstances != nil { objectKey := object.Key("ReplaceUnhealthyInstances") - objectKey.Boolean(v.ReplaceUnhealthyInstances) + objectKey.Boolean(*v.ReplaceUnhealthyInstances) } if v.SpotMaintenanceStrategies != nil { @@ -30058,14 +30961,14 @@ func awsEc2query_serializeDocumentSpotFleetRequestConfigData(v *types.SpotFleetR } } - if v.TargetCapacity != 0 { + if v.TargetCapacity != nil { objectKey := object.Key("TargetCapacity") - objectKey.Integer(v.TargetCapacity) + objectKey.Integer(*v.TargetCapacity) } - if v.TerminateInstancesWithExpiration { + if v.TerminateInstancesWithExpiration != nil { objectKey := object.Key("TerminateInstancesWithExpiration") - objectKey.Boolean(v.TerminateInstancesWithExpiration) + objectKey.Boolean(*v.TerminateInstancesWithExpiration) } if len(v.Type) > 0 { @@ -30164,9 +31067,9 @@ func awsEc2query_serializeDocumentSpotMarketOptions(v *types.SpotMarketOptions, object := value.Object() _ = object - if v.BlockDurationMinutes != 0 { + if v.BlockDurationMinutes != nil { objectKey := object.Key("BlockDurationMinutes") - objectKey.Integer(v.BlockDurationMinutes) + objectKey.Integer(*v.BlockDurationMinutes) } if len(v.InstanceInterruptionBehavior) > 0 { @@ -30206,9 +31109,9 @@ func awsEc2query_serializeDocumentSpotOptionsRequest(v *types.SpotOptionsRequest objectKey.String(string(v.InstanceInterruptionBehavior)) } - if v.InstancePoolsToUseCount != 0 { + if v.InstancePoolsToUseCount != nil { objectKey := object.Key("InstancePoolsToUseCount") - objectKey.Integer(v.InstancePoolsToUseCount) + objectKey.Integer(*v.InstancePoolsToUseCount) } if v.MaintenanceStrategies != nil { @@ -30223,19 +31126,19 @@ func awsEc2query_serializeDocumentSpotOptionsRequest(v *types.SpotOptionsRequest objectKey.String(*v.MaxTotalPrice) } - if v.MinTargetCapacity != 0 { + if v.MinTargetCapacity != nil { objectKey := object.Key("MinTargetCapacity") - objectKey.Integer(v.MinTargetCapacity) + objectKey.Integer(*v.MinTargetCapacity) } - if v.SingleAvailabilityZone { + if v.SingleAvailabilityZone != nil { objectKey := object.Key("SingleAvailabilityZone") - objectKey.Boolean(v.SingleAvailabilityZone) + objectKey.Boolean(*v.SingleAvailabilityZone) } - if v.SingleInstanceType { + if v.SingleInstanceType != nil { objectKey := object.Key("SingleInstanceType") - objectKey.Boolean(v.SingleInstanceType) + objectKey.Boolean(*v.SingleInstanceType) } return nil @@ -30382,19 +31285,19 @@ func awsEc2query_serializeDocumentTargetCapacitySpecificationRequest(v *types.Ta objectKey.String(string(v.DefaultTargetCapacityType)) } - if v.OnDemandTargetCapacity != 0 { + if v.OnDemandTargetCapacity != nil { objectKey := object.Key("OnDemandTargetCapacity") - objectKey.Integer(v.OnDemandTargetCapacity) + objectKey.Integer(*v.OnDemandTargetCapacity) } - if v.SpotTargetCapacity != 0 { + if v.SpotTargetCapacity != nil { objectKey := object.Key("SpotTargetCapacity") - objectKey.Integer(v.SpotTargetCapacity) + objectKey.Integer(*v.SpotTargetCapacity) } - if v.TotalTargetCapacity != 0 { + if v.TotalTargetCapacity != nil { objectKey := object.Key("TotalTargetCapacity") - objectKey.Integer(v.TotalTargetCapacity) + objectKey.Integer(*v.TotalTargetCapacity) } return nil @@ -30404,9 +31307,9 @@ func awsEc2query_serializeDocumentTargetConfigurationRequest(v *types.TargetConf object := value.Object() _ = object - if v.InstanceCount != 0 { + if v.InstanceCount != nil { objectKey := object.Key("InstanceCount") - objectKey.Integer(v.InstanceCount) + objectKey.Integer(*v.InstanceCount) } if v.OfferingId != nil { @@ -30516,14 +31419,14 @@ func awsEc2query_serializeDocumentTrafficMirrorPortRangeRequest(v *types.Traffic object := value.Object() _ = object - if v.FromPort != 0 { + if v.FromPort != nil { objectKey := object.Key("FromPort") - objectKey.Integer(v.FromPort) + objectKey.Integer(*v.FromPort) } - if v.ToPort != 0 { + if v.ToPort != nil { objectKey := object.Key("ToPort") - objectKey.Integer(v.ToPort) + objectKey.Integer(*v.ToPort) } return nil @@ -30611,9 +31514,9 @@ func awsEc2query_serializeDocumentTransitGatewayConnectRequestBgpOptions(v *type object := value.Object() _ = object - if v.PeerAsn != 0 { + if v.PeerAsn != nil { objectKey := object.Key("PeerAsn") - objectKey.Long(v.PeerAsn) + objectKey.Long(*v.PeerAsn) } return nil @@ -30662,9 +31565,9 @@ func awsEc2query_serializeDocumentTransitGatewayRequestOptions(v *types.TransitG object := value.Object() _ = object - if v.AmazonSideAsn != 0 { + if v.AmazonSideAsn != nil { objectKey := object.Key("AmazonSideAsn") - objectKey.Long(v.AmazonSideAsn) + objectKey.Long(*v.AmazonSideAsn) } if len(v.AutoAcceptSharedAttachments) > 0 { @@ -30733,6 +31636,19 @@ func awsEc2query_serializeDocumentTransitGatewaySubnetIdList(v []string, value q return nil } +func awsEc2query_serializeDocumentTrunkInterfaceAssociationIdList(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_serializeDocumentUserBucket(v *types.UserBucket, value query.Value) error { object := value.Object() _ = object @@ -30875,9 +31791,9 @@ func awsEc2query_serializeDocumentVolumeDetail(v *types.VolumeDetail, value quer object := value.Object() _ = object - if v.Size != 0 { + if v.Size != nil { objectKey := object.Key("Size") - objectKey.Long(v.Size) + objectKey.Long(*v.Size) } return nil @@ -31017,9 +31933,9 @@ func awsEc2query_serializeDocumentVpnConnectionOptionsSpecification(v *types.Vpn object := value.Object() _ = object - if v.EnableAcceleration { + if v.EnableAcceleration != nil { objectKey := object.Key("EnableAcceleration") - objectKey.Boolean(v.EnableAcceleration) + objectKey.Boolean(*v.EnableAcceleration) } if v.LocalIpv4NetworkCidr != nil { @@ -31042,9 +31958,9 @@ func awsEc2query_serializeDocumentVpnConnectionOptionsSpecification(v *types.Vpn objectKey.String(*v.RemoteIpv6NetworkCidr) } - if v.StaticRoutesOnly { + if v.StaticRoutesOnly != nil { objectKey := object.Key("StaticRoutesOnly") - objectKey.Boolean(v.StaticRoutesOnly) + objectKey.Boolean(*v.StaticRoutesOnly) } if len(v.TunnelInsideIpVersion) > 0 { @@ -31084,9 +32000,9 @@ func awsEc2query_serializeDocumentVpnTunnelOptionsSpecification(v *types.VpnTunn objectKey.String(*v.DPDTimeoutAction) } - if v.DPDTimeoutSeconds != 0 { + if v.DPDTimeoutSeconds != nil { objectKey := object.Key("DPDTimeoutSeconds") - objectKey.Integer(v.DPDTimeoutSeconds) + objectKey.Integer(*v.DPDTimeoutSeconds) } if v.IKEVersions != nil { @@ -31117,9 +32033,9 @@ func awsEc2query_serializeDocumentVpnTunnelOptionsSpecification(v *types.VpnTunn } } - if v.Phase1LifetimeSeconds != 0 { + if v.Phase1LifetimeSeconds != nil { objectKey := object.Key("Phase1LifetimeSeconds") - objectKey.Integer(v.Phase1LifetimeSeconds) + objectKey.Integer(*v.Phase1LifetimeSeconds) } if v.Phase2DHGroupNumbers != nil { @@ -31143,9 +32059,9 @@ func awsEc2query_serializeDocumentVpnTunnelOptionsSpecification(v *types.VpnTunn } } - if v.Phase2LifetimeSeconds != 0 { + if v.Phase2LifetimeSeconds != nil { objectKey := object.Key("Phase2LifetimeSeconds") - objectKey.Integer(v.Phase2LifetimeSeconds) + objectKey.Integer(*v.Phase2LifetimeSeconds) } if v.PreSharedKey != nil { @@ -31153,19 +32069,19 @@ func awsEc2query_serializeDocumentVpnTunnelOptionsSpecification(v *types.VpnTunn objectKey.String(*v.PreSharedKey) } - if v.RekeyFuzzPercentage != 0 { + if v.RekeyFuzzPercentage != nil { objectKey := object.Key("RekeyFuzzPercentage") - objectKey.Integer(v.RekeyFuzzPercentage) + objectKey.Integer(*v.RekeyFuzzPercentage) } - if v.RekeyMarginTimeSeconds != 0 { + if v.RekeyMarginTimeSeconds != nil { objectKey := object.Key("RekeyMarginTimeSeconds") - objectKey.Integer(v.RekeyMarginTimeSeconds) + objectKey.Integer(*v.RekeyMarginTimeSeconds) } - if v.ReplayWindowSize != 0 { + if v.ReplayWindowSize != nil { objectKey := object.Key("ReplayWindowSize") - objectKey.Integer(v.ReplayWindowSize) + objectKey.Integer(*v.ReplayWindowSize) } if v.StartupAction != nil { @@ -31231,9 +32147,9 @@ func awsEc2query_serializeOpDocumentAcceptReservedInstancesExchangeQuoteInput(v object := value.Object() _ = object - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.ReservedInstanceIds != nil { @@ -31257,9 +32173,9 @@ func awsEc2query_serializeOpDocumentAcceptTransitGatewayMulticastDomainAssociati object := value.Object() _ = object - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.SubnetIds != nil { @@ -31286,9 +32202,9 @@ func awsEc2query_serializeOpDocumentAcceptTransitGatewayPeeringAttachmentInput(v object := value.Object() _ = object - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.TransitGatewayAttachmentId != nil { @@ -31303,9 +32219,9 @@ func awsEc2query_serializeOpDocumentAcceptTransitGatewayVpcAttachmentInput(v *Ac object := value.Object() _ = object - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.TransitGatewayAttachmentId != nil { @@ -31320,9 +32236,9 @@ func awsEc2query_serializeOpDocumentAcceptVpcEndpointConnectionsInput(v *AcceptV object := value.Object() _ = object - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.ServiceId != nil { @@ -31344,9 +32260,9 @@ func awsEc2query_serializeOpDocumentAcceptVpcPeeringConnectionInput(v *AcceptVpc object := value.Object() _ = object - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.VpcPeeringConnectionId != nil { @@ -31366,9 +32282,9 @@ func awsEc2query_serializeOpDocumentAdvertiseByoipCidrInput(v *AdvertiseByoipCid objectKey.String(*v.Cidr) } - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } return nil @@ -31393,9 +32309,9 @@ func awsEc2query_serializeOpDocumentAllocateAddressInput(v *AllocateAddressInput objectKey.String(string(v.Domain)) } - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.NetworkBorderGroup != nil { @@ -31452,9 +32368,9 @@ func awsEc2query_serializeOpDocumentAllocateHostsInput(v *AllocateHostsInput, va objectKey.String(*v.InstanceType) } - if v.Quantity != 0 { + if v.Quantity != nil { objectKey := object.Key("Quantity") - objectKey.Integer(v.Quantity) + objectKey.Integer(*v.Quantity) } if v.TagSpecifications != nil { @@ -31476,9 +32392,9 @@ func awsEc2query_serializeOpDocumentApplySecurityGroupsToClientVpnTargetNetworkI objectKey.String(*v.ClientVpnEndpointId) } - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.SecurityGroupIds != nil { @@ -31500,9 +32416,9 @@ func awsEc2query_serializeOpDocumentAssignIpv6AddressesInput(v *AssignIpv6Addres object := value.Object() _ = object - if v.Ipv6AddressCount != 0 { + if v.Ipv6AddressCount != nil { objectKey := object.Key("Ipv6AddressCount") - objectKey.Integer(v.Ipv6AddressCount) + objectKey.Integer(*v.Ipv6AddressCount) } if v.Ipv6Addresses != nil { @@ -31524,9 +32440,9 @@ func awsEc2query_serializeOpDocumentAssignPrivateIpAddressesInput(v *AssignPriva object := value.Object() _ = object - if v.AllowReassignment { + if v.AllowReassignment != nil { objectKey := object.Key("AllowReassignment") - objectKey.Boolean(v.AllowReassignment) + objectKey.Boolean(*v.AllowReassignment) } if v.NetworkInterfaceId != nil { @@ -31541,9 +32457,9 @@ func awsEc2query_serializeOpDocumentAssignPrivateIpAddressesInput(v *AssignPriva } } - if v.SecondaryPrivateIpAddressCount != 0 { + if v.SecondaryPrivateIpAddressCount != nil { objectKey := object.Key("SecondaryPrivateIpAddressCount") - objectKey.Integer(v.SecondaryPrivateIpAddressCount) + objectKey.Integer(*v.SecondaryPrivateIpAddressCount) } return nil @@ -31558,14 +32474,14 @@ func awsEc2query_serializeOpDocumentAssociateAddressInput(v *AssociateAddressInp objectKey.String(*v.AllocationId) } - if v.AllowReassociation { + if v.AllowReassociation != nil { objectKey := object.Key("AllowReassociation") - objectKey.Boolean(v.AllowReassociation) + objectKey.Boolean(*v.AllowReassociation) } - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.InstanceId != nil { @@ -31605,9 +32521,9 @@ func awsEc2query_serializeOpDocumentAssociateClientVpnTargetNetworkInput(v *Asso objectKey.String(*v.ClientVpnEndpointId) } - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.SubnetId != nil { @@ -31627,9 +32543,9 @@ func awsEc2query_serializeOpDocumentAssociateDhcpOptionsInput(v *AssociateDhcpOp objectKey.String(*v.DhcpOptionsId) } - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.VpcId != nil { @@ -31649,9 +32565,9 @@ func awsEc2query_serializeOpDocumentAssociateEnclaveCertificateIamRoleInput(v *A objectKey.String(*v.CertificateArn) } - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.RoleArn != nil { @@ -31685,9 +32601,9 @@ func awsEc2query_serializeOpDocumentAssociateRouteTableInput(v *AssociateRouteTa object := value.Object() _ = object - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.GatewayId != nil { @@ -31729,9 +32645,9 @@ func awsEc2query_serializeOpDocumentAssociateTransitGatewayMulticastDomainInput( object := value.Object() _ = object - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.SubnetIds != nil { @@ -31758,9 +32674,9 @@ func awsEc2query_serializeOpDocumentAssociateTransitGatewayRouteTableInput(v *As object := value.Object() _ = object - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.TransitGatewayAttachmentId != nil { @@ -31776,13 +32692,50 @@ func awsEc2query_serializeOpDocumentAssociateTransitGatewayRouteTableInput(v *As return nil } +func awsEc2query_serializeOpDocumentAssociateTrunkInterfaceInput(v *AssociateTrunkInterfaceInput, value query.Value) error { + object := value.Object() + _ = object + + if v.BranchInterfaceId != nil { + objectKey := object.Key("BranchInterfaceId") + objectKey.String(*v.BranchInterfaceId) + } + + if v.ClientToken != nil { + objectKey := object.Key("ClientToken") + objectKey.String(*v.ClientToken) + } + + if v.DryRun != nil { + objectKey := object.Key("DryRun") + objectKey.Boolean(*v.DryRun) + } + + if v.GreKey != nil { + objectKey := object.Key("GreKey") + objectKey.Integer(*v.GreKey) + } + + if v.TrunkInterfaceId != nil { + objectKey := object.Key("TrunkInterfaceId") + objectKey.String(*v.TrunkInterfaceId) + } + + if v.VlanId != nil { + objectKey := object.Key("VlanId") + objectKey.Integer(*v.VlanId) + } + + return nil +} + func awsEc2query_serializeOpDocumentAssociateVpcCidrBlockInput(v *AssociateVpcCidrBlockInput, value query.Value) error { object := value.Object() _ = object - if v.AmazonProvidedIpv6CidrBlock { + if v.AmazonProvidedIpv6CidrBlock != nil { objectKey := object.Key("AmazonProvidedIpv6CidrBlock") - objectKey.Boolean(v.AmazonProvidedIpv6CidrBlock) + objectKey.Boolean(*v.AmazonProvidedIpv6CidrBlock) } if v.CidrBlock != nil { @@ -31817,9 +32770,9 @@ func awsEc2query_serializeOpDocumentAttachClassicLinkVpcInput(v *AttachClassicLi object := value.Object() _ = object - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.Groups != nil { @@ -31846,9 +32799,9 @@ func awsEc2query_serializeOpDocumentAttachInternetGatewayInput(v *AttachInternet object := value.Object() _ = object - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.InternetGatewayId != nil { @@ -31868,14 +32821,14 @@ func awsEc2query_serializeOpDocumentAttachNetworkInterfaceInput(v *AttachNetwork object := value.Object() _ = object - if v.DeviceIndex != 0 { + if v.DeviceIndex != nil { objectKey := object.Key("DeviceIndex") - objectKey.Integer(v.DeviceIndex) + objectKey.Integer(*v.DeviceIndex) } - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.InstanceId != nil { @@ -31883,9 +32836,9 @@ func awsEc2query_serializeOpDocumentAttachNetworkInterfaceInput(v *AttachNetwork objectKey.String(*v.InstanceId) } - if v.NetworkCardIndex != 0 { + if v.NetworkCardIndex != nil { objectKey := object.Key("NetworkCardIndex") - objectKey.Integer(v.NetworkCardIndex) + objectKey.Integer(*v.NetworkCardIndex) } if v.NetworkInterfaceId != nil { @@ -31905,9 +32858,9 @@ func awsEc2query_serializeOpDocumentAttachVolumeInput(v *AttachVolumeInput, valu objectKey.String(*v.Device) } - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.InstanceId != nil { @@ -31927,9 +32880,9 @@ func awsEc2query_serializeOpDocumentAttachVpnGatewayInput(v *AttachVpnGatewayInp object := value.Object() _ = object - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.VpcId != nil { @@ -31954,9 +32907,9 @@ func awsEc2query_serializeOpDocumentAuthorizeClientVpnIngressInput(v *AuthorizeC objectKey.String(*v.AccessGroupId) } - if v.AuthorizeAllGroups { + if v.AuthorizeAllGroups != nil { objectKey := object.Key("AuthorizeAllGroups") - objectKey.Boolean(v.AuthorizeAllGroups) + objectKey.Boolean(*v.AuthorizeAllGroups) } if v.ClientToken != nil { @@ -31974,9 +32927,9 @@ func awsEc2query_serializeOpDocumentAuthorizeClientVpnIngressInput(v *AuthorizeC objectKey.String(*v.Description) } - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.TargetNetworkCidr != nil { @@ -31996,14 +32949,14 @@ func awsEc2query_serializeOpDocumentAuthorizeSecurityGroupEgressInput(v *Authori objectKey.String(*v.CidrIp) } - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } - if v.FromPort != 0 { + if v.FromPort != nil { objectKey := object.Key("FromPort") - objectKey.Integer(v.FromPort) + objectKey.Integer(*v.FromPort) } if v.GroupId != nil { @@ -32033,9 +32986,9 @@ func awsEc2query_serializeOpDocumentAuthorizeSecurityGroupEgressInput(v *Authori objectKey.String(*v.SourceSecurityGroupOwnerId) } - if v.ToPort != 0 { + if v.ToPort != nil { objectKey := object.Key("ToPort") - objectKey.Integer(v.ToPort) + objectKey.Integer(*v.ToPort) } return nil @@ -32050,14 +33003,14 @@ func awsEc2query_serializeOpDocumentAuthorizeSecurityGroupIngressInput(v *Author objectKey.String(*v.CidrIp) } - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } - if v.FromPort != 0 { + if v.FromPort != nil { objectKey := object.Key("FromPort") - objectKey.Integer(v.FromPort) + objectKey.Integer(*v.FromPort) } if v.GroupId != nil { @@ -32092,9 +33045,9 @@ func awsEc2query_serializeOpDocumentAuthorizeSecurityGroupIngressInput(v *Author objectKey.String(*v.SourceSecurityGroupOwnerId) } - if v.ToPort != 0 { + if v.ToPort != nil { objectKey := object.Key("ToPort") - objectKey.Integer(v.ToPort) + objectKey.Integer(*v.ToPort) } return nil @@ -32104,9 +33057,9 @@ func awsEc2query_serializeOpDocumentBundleInstanceInput(v *BundleInstanceInput, object := value.Object() _ = object - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.InstanceId != nil { @@ -32133,9 +33086,9 @@ func awsEc2query_serializeOpDocumentCancelBundleTaskInput(v *CancelBundleTaskInp objectKey.String(*v.BundleId) } - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } return nil @@ -32150,9 +33103,9 @@ func awsEc2query_serializeOpDocumentCancelCapacityReservationInput(v *CancelCapa objectKey.String(*v.CapacityReservationId) } - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } return nil @@ -32167,9 +33120,9 @@ func awsEc2query_serializeOpDocumentCancelConversionTaskInput(v *CancelConversio objectKey.String(*v.ConversionTaskId) } - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.ReasonMessage != nil { @@ -32201,9 +33154,9 @@ func awsEc2query_serializeOpDocumentCancelImportTaskInput(v *CancelImportTaskInp objectKey.String(*v.CancelReason) } - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.ImportTaskId != nil { @@ -32230,9 +33183,9 @@ func awsEc2query_serializeOpDocumentCancelSpotFleetRequestsInput(v *CancelSpotFl object := value.Object() _ = object - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.SpotFleetRequestIds != nil { @@ -32242,9 +33195,9 @@ func awsEc2query_serializeOpDocumentCancelSpotFleetRequestsInput(v *CancelSpotFl } } - if v.TerminateInstances { + if v.TerminateInstances != nil { objectKey := object.Key("TerminateInstances") - objectKey.Boolean(v.TerminateInstances) + objectKey.Boolean(*v.TerminateInstances) } return nil @@ -32254,9 +33207,9 @@ func awsEc2query_serializeOpDocumentCancelSpotInstanceRequestsInput(v *CancelSpo object := value.Object() _ = object - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.SpotInstanceRequestIds != nil { @@ -32273,9 +33226,9 @@ func awsEc2query_serializeOpDocumentConfirmProductInstanceInput(v *ConfirmProduc object := value.Object() _ = object - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.InstanceId != nil { @@ -32305,9 +33258,9 @@ func awsEc2query_serializeOpDocumentCopyFpgaImageInput(v *CopyFpgaImageInput, va objectKey.String(*v.Description) } - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.Name != nil { @@ -32347,14 +33300,14 @@ func awsEc2query_serializeOpDocumentCopyImageInput(v *CopyImageInput, value quer objectKey.String(*v.DestinationOutpostArn) } - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } - if v.Encrypted { + if v.Encrypted != nil { objectKey := object.Key("Encrypted") - objectKey.Boolean(v.Encrypted) + objectKey.Boolean(*v.Encrypted) } if v.KmsKeyId != nil { @@ -32389,19 +33342,24 @@ func awsEc2query_serializeOpDocumentCopySnapshotInput(v *CopySnapshotInput, valu objectKey.String(*v.Description) } + if v.DestinationOutpostArn != nil { + objectKey := object.Key("DestinationOutpostArn") + objectKey.String(*v.DestinationOutpostArn) + } + if v.destinationRegion != nil { objectKey := object.Key("DestinationRegion") objectKey.String(*v.destinationRegion) } - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } - if v.Encrypted { + if v.Encrypted != nil { objectKey := object.Key("Encrypted") - objectKey.Boolean(v.Encrypted) + objectKey.Boolean(*v.Encrypted) } if v.KmsKeyId != nil { @@ -32453,14 +33411,14 @@ func awsEc2query_serializeOpDocumentCreateCapacityReservationInput(v *CreateCapa objectKey.String(*v.ClientToken) } - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } - if v.EbsOptimized { + if v.EbsOptimized != nil { objectKey := object.Key("EbsOptimized") - objectKey.Boolean(v.EbsOptimized) + objectKey.Boolean(*v.EbsOptimized) } if v.EndDate != nil { @@ -32473,14 +33431,14 @@ func awsEc2query_serializeOpDocumentCreateCapacityReservationInput(v *CreateCapa objectKey.String(string(v.EndDateType)) } - if v.EphemeralStorage { + if v.EphemeralStorage != nil { objectKey := object.Key("EphemeralStorage") - objectKey.Boolean(v.EphemeralStorage) + objectKey.Boolean(*v.EphemeralStorage) } - if v.InstanceCount != 0 { + if v.InstanceCount != nil { objectKey := object.Key("InstanceCount") - objectKey.Integer(v.InstanceCount) + objectKey.Integer(*v.InstanceCount) } if len(v.InstanceMatchCriteria) > 0 { @@ -32498,6 +33456,11 @@ func awsEc2query_serializeOpDocumentCreateCapacityReservationInput(v *CreateCapa objectKey.String(*v.InstanceType) } + if v.OutpostArn != nil { + objectKey := object.Key("OutpostArn") + objectKey.String(*v.OutpostArn) + } + if v.TagSpecifications != nil { objectKey := object.FlatKey("TagSpecifications") if err := awsEc2query_serializeDocumentTagSpecificationList(v.TagSpecifications, objectKey); err != nil { @@ -32522,9 +33485,9 @@ func awsEc2query_serializeOpDocumentCreateCarrierGatewayInput(v *CreateCarrierGa objectKey.String(*v.ClientToken) } - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.TagSpecifications != nil { @@ -32589,9 +33552,9 @@ func awsEc2query_serializeOpDocumentCreateClientVpnEndpointInput(v *CreateClient } } - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.SecurityGroupIds != nil { @@ -32611,9 +33574,9 @@ func awsEc2query_serializeOpDocumentCreateClientVpnEndpointInput(v *CreateClient objectKey.String(*v.ServerCertificateArn) } - if v.SplitTunnel { + if v.SplitTunnel != nil { objectKey := object.Key("SplitTunnel") - objectKey.Boolean(v.SplitTunnel) + objectKey.Boolean(*v.SplitTunnel) } if v.TagSpecifications != nil { @@ -32633,9 +33596,9 @@ func awsEc2query_serializeOpDocumentCreateClientVpnEndpointInput(v *CreateClient objectKey.String(*v.VpcId) } - if v.VpnPort != 0 { + if v.VpnPort != nil { objectKey := object.Key("VpnPort") - objectKey.Integer(v.VpnPort) + objectKey.Integer(*v.VpnPort) } return nil @@ -32665,9 +33628,9 @@ func awsEc2query_serializeOpDocumentCreateClientVpnRouteInput(v *CreateClientVpn objectKey.String(*v.DestinationCidrBlock) } - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.TargetVpcSubnetId != nil { @@ -32682,9 +33645,9 @@ func awsEc2query_serializeOpDocumentCreateCustomerGatewayInput(v *CreateCustomer object := value.Object() _ = object - if v.BgpAsn != 0 { + if v.BgpAsn != nil { objectKey := object.Key("BgpAsn") - objectKey.Integer(v.BgpAsn) + objectKey.Integer(*v.BgpAsn) } if v.CertificateArn != nil { @@ -32697,9 +33660,9 @@ func awsEc2query_serializeOpDocumentCreateCustomerGatewayInput(v *CreateCustomer objectKey.String(*v.DeviceName) } - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.PublicIp != nil { @@ -32731,9 +33694,9 @@ func awsEc2query_serializeOpDocumentCreateDefaultSubnetInput(v *CreateDefaultSub objectKey.String(*v.AvailabilityZone) } - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } return nil @@ -32743,9 +33706,9 @@ func awsEc2query_serializeOpDocumentCreateDefaultVpcInput(v *CreateDefaultVpcInp object := value.Object() _ = object - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } return nil @@ -32762,9 +33725,9 @@ func awsEc2query_serializeOpDocumentCreateDhcpOptionsInput(v *CreateDhcpOptionsI } } - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.TagSpecifications != nil { @@ -32786,9 +33749,9 @@ func awsEc2query_serializeOpDocumentCreateEgressOnlyInternetGatewayInput(v *Crea objectKey.String(*v.ClientToken) } - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.TagSpecifications != nil { @@ -32815,9 +33778,14 @@ func awsEc2query_serializeOpDocumentCreateFleetInput(v *CreateFleetInput, value objectKey.String(*v.ClientToken) } - if v.DryRun { + if v.Context != nil { + objectKey := object.Key("Context") + objectKey.String(*v.Context) + } + + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if len(v.ExcessCapacityTerminationPolicy) > 0 { @@ -32839,9 +33807,9 @@ func awsEc2query_serializeOpDocumentCreateFleetInput(v *CreateFleetInput, value } } - if v.ReplaceUnhealthyInstances { + if v.ReplaceUnhealthyInstances != nil { objectKey := object.Key("ReplaceUnhealthyInstances") - objectKey.Boolean(v.ReplaceUnhealthyInstances) + objectKey.Boolean(*v.ReplaceUnhealthyInstances) } if v.SpotOptions != nil { @@ -32865,9 +33833,9 @@ func awsEc2query_serializeOpDocumentCreateFleetInput(v *CreateFleetInput, value } } - if v.TerminateInstancesWithExpiration { + if v.TerminateInstancesWithExpiration != nil { objectKey := object.Key("TerminateInstancesWithExpiration") - objectKey.Boolean(v.TerminateInstancesWithExpiration) + objectKey.Boolean(*v.TerminateInstancesWithExpiration) } if len(v.Type) > 0 { @@ -32902,9 +33870,9 @@ func awsEc2query_serializeOpDocumentCreateFlowLogsInput(v *CreateFlowLogsInput, objectKey.String(*v.DeliverLogsPermissionArn) } - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.LogDestination != nil { @@ -32927,9 +33895,9 @@ func awsEc2query_serializeOpDocumentCreateFlowLogsInput(v *CreateFlowLogsInput, objectKey.String(*v.LogGroupName) } - if v.MaxAggregationInterval != 0 { + if v.MaxAggregationInterval != nil { objectKey := object.Key("MaxAggregationInterval") - objectKey.Integer(v.MaxAggregationInterval) + objectKey.Integer(*v.MaxAggregationInterval) } if v.ResourceIds != nil { @@ -32973,9 +33941,9 @@ func awsEc2query_serializeOpDocumentCreateFpgaImageInput(v *CreateFpgaImageInput objectKey.String(*v.Description) } - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.InputStorageLocation != nil { @@ -33023,9 +33991,9 @@ func awsEc2query_serializeOpDocumentCreateImageInput(v *CreateImageInput, value objectKey.String(*v.Description) } - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.InstanceId != nil { @@ -33038,14 +34006,9 @@ func awsEc2query_serializeOpDocumentCreateImageInput(v *CreateImageInput, value objectKey.String(*v.Name) } - if v.NoReboot { + if v.NoReboot != nil { objectKey := object.Key("NoReboot") - objectKey.Boolean(v.NoReboot) - } - - if v.OutpostArn != nil { - objectKey := object.Key("OutpostArn") - objectKey.String(*v.OutpostArn) + objectKey.Boolean(*v.NoReboot) } if v.TagSpecifications != nil { @@ -33098,9 +34061,9 @@ func awsEc2query_serializeOpDocumentCreateInternetGatewayInput(v *CreateInternet object := value.Object() _ = object - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.TagSpecifications != nil { @@ -33117,9 +34080,9 @@ func awsEc2query_serializeOpDocumentCreateKeyPairInput(v *CreateKeyPairInput, va object := value.Object() _ = object - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.KeyName != nil { @@ -33146,9 +34109,9 @@ func awsEc2query_serializeOpDocumentCreateLaunchTemplateInput(v *CreateLaunchTem objectKey.String(*v.ClientToken) } - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.LaunchTemplateData != nil { @@ -33187,9 +34150,9 @@ func awsEc2query_serializeOpDocumentCreateLaunchTemplateVersionInput(v *CreateLa objectKey.String(*v.ClientToken) } - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.LaunchTemplateData != nil { @@ -33231,9 +34194,9 @@ func awsEc2query_serializeOpDocumentCreateLocalGatewayRouteInput(v *CreateLocalG objectKey.String(*v.DestinationCidrBlock) } - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.LocalGatewayRouteTableId != nil { @@ -33253,9 +34216,9 @@ func awsEc2query_serializeOpDocumentCreateLocalGatewayRouteTableVpcAssociationIn object := value.Object() _ = object - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.LocalGatewayRouteTableId != nil { @@ -33292,9 +34255,9 @@ func awsEc2query_serializeOpDocumentCreateManagedPrefixListInput(v *CreateManage objectKey.String(*v.ClientToken) } - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.Entries != nil { @@ -33304,9 +34267,9 @@ func awsEc2query_serializeOpDocumentCreateManagedPrefixListInput(v *CreateManage } } - if v.MaxEntries != 0 { + if v.MaxEntries != nil { objectKey := object.Key("MaxEntries") - objectKey.Integer(v.MaxEntries) + objectKey.Integer(*v.MaxEntries) } if v.PrefixListName != nil { @@ -33338,9 +34301,14 @@ func awsEc2query_serializeOpDocumentCreateNatGatewayInput(v *CreateNatGatewayInp objectKey.String(*v.ClientToken) } - if v.DryRun { + if len(v.ConnectivityType) > 0 { + objectKey := object.Key("ConnectivityType") + objectKey.String(string(v.ConnectivityType)) + } + + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.SubnetId != nil { @@ -33367,14 +34335,14 @@ func awsEc2query_serializeOpDocumentCreateNetworkAclEntryInput(v *CreateNetworkA objectKey.String(*v.CidrBlock) } - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } - if v.Egress { + if v.Egress != nil { objectKey := object.Key("Egress") - objectKey.Boolean(v.Egress) + objectKey.Boolean(*v.Egress) } if v.IcmpTypeCode != nil { @@ -33411,9 +34379,9 @@ func awsEc2query_serializeOpDocumentCreateNetworkAclEntryInput(v *CreateNetworkA objectKey.String(string(v.RuleAction)) } - if v.RuleNumber != 0 { + if v.RuleNumber != nil { objectKey := object.Key("RuleNumber") - objectKey.Integer(v.RuleNumber) + objectKey.Integer(*v.RuleNumber) } return nil @@ -33423,9 +34391,9 @@ func awsEc2query_serializeOpDocumentCreateNetworkAclInput(v *CreateNetworkAclInp object := value.Object() _ = object - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.TagSpecifications != nil { @@ -33462,14 +34430,14 @@ func awsEc2query_serializeOpDocumentCreateNetworkInsightsPathInput(v *CreateNetw objectKey.String(*v.DestinationIp) } - if v.DestinationPort != 0 { + if v.DestinationPort != nil { objectKey := object.Key("DestinationPort") - objectKey.Integer(v.DestinationPort) + objectKey.Integer(*v.DestinationPort) } - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if len(v.Protocol) > 0 { @@ -33501,14 +34469,19 @@ func awsEc2query_serializeOpDocumentCreateNetworkInterfaceInput(v *CreateNetwork object := value.Object() _ = object + if v.ClientToken != nil { + objectKey := object.Key("ClientToken") + objectKey.String(*v.ClientToken) + } + if v.Description != nil { objectKey := object.Key("Description") objectKey.String(*v.Description) } - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.Groups != nil { @@ -33523,9 +34496,9 @@ func awsEc2query_serializeOpDocumentCreateNetworkInterfaceInput(v *CreateNetwork objectKey.String(string(v.InterfaceType)) } - if v.Ipv6AddressCount != 0 { + if v.Ipv6AddressCount != nil { objectKey := object.Key("Ipv6AddressCount") - objectKey.Integer(v.Ipv6AddressCount) + objectKey.Integer(*v.Ipv6AddressCount) } if v.Ipv6Addresses != nil { @@ -33547,9 +34520,9 @@ func awsEc2query_serializeOpDocumentCreateNetworkInterfaceInput(v *CreateNetwork } } - if v.SecondaryPrivateIpAddressCount != 0 { + if v.SecondaryPrivateIpAddressCount != nil { objectKey := object.Key("SecondaryPrivateIpAddressCount") - objectKey.Integer(v.SecondaryPrivateIpAddressCount) + objectKey.Integer(*v.SecondaryPrivateIpAddressCount) } if v.SubnetId != nil { @@ -33581,9 +34554,9 @@ func awsEc2query_serializeOpDocumentCreateNetworkInterfacePermissionInput(v *Cre objectKey.String(*v.AwsService) } - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.NetworkInterfaceId != nil { @@ -33603,9 +34576,9 @@ func awsEc2query_serializeOpDocumentCreatePlacementGroupInput(v *CreatePlacement object := value.Object() _ = object - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.GroupName != nil { @@ -33613,9 +34586,9 @@ func awsEc2query_serializeOpDocumentCreatePlacementGroupInput(v *CreatePlacement objectKey.String(*v.GroupName) } - if v.PartitionCount != 0 { + if v.PartitionCount != nil { objectKey := object.Key("PartitionCount") - objectKey.Integer(v.PartitionCount) + objectKey.Integer(*v.PartitionCount) } if len(v.Strategy) > 0 { @@ -33633,6 +34606,40 @@ func awsEc2query_serializeOpDocumentCreatePlacementGroupInput(v *CreatePlacement return nil } +func awsEc2query_serializeOpDocumentCreateReplaceRootVolumeTaskInput(v *CreateReplaceRootVolumeTaskInput, value query.Value) error { + object := value.Object() + _ = object + + if v.ClientToken != nil { + objectKey := object.Key("ClientToken") + objectKey.String(*v.ClientToken) + } + + if v.DryRun != nil { + objectKey := object.Key("DryRun") + objectKey.Boolean(*v.DryRun) + } + + if v.InstanceId != nil { + objectKey := object.Key("InstanceId") + objectKey.String(*v.InstanceId) + } + + if v.SnapshotId != nil { + objectKey := object.Key("SnapshotId") + objectKey.String(*v.SnapshotId) + } + + if v.TagSpecifications != nil { + objectKey := object.FlatKey("TagSpecification") + if err := awsEc2query_serializeDocumentTagSpecificationList(v.TagSpecifications, objectKey); err != nil { + return err + } + } + + return nil +} + func awsEc2query_serializeOpDocumentCreateReservedInstancesListingInput(v *CreateReservedInstancesListingInput, value query.Value) error { object := value.Object() _ = object @@ -33642,9 +34649,9 @@ func awsEc2query_serializeOpDocumentCreateReservedInstancesListingInput(v *Creat objectKey.String(*v.ClientToken) } - if v.InstanceCount != 0 { + if v.InstanceCount != nil { objectKey := object.Key("InstanceCount") - objectKey.Integer(v.InstanceCount) + objectKey.Integer(*v.InstanceCount) } if v.PriceSchedules != nil { @@ -33662,6 +34669,40 @@ func awsEc2query_serializeOpDocumentCreateReservedInstancesListingInput(v *Creat return nil } +func awsEc2query_serializeOpDocumentCreateRestoreImageTaskInput(v *CreateRestoreImageTaskInput, value query.Value) error { + object := value.Object() + _ = object + + if v.Bucket != nil { + objectKey := object.Key("Bucket") + objectKey.String(*v.Bucket) + } + + if v.DryRun != nil { + objectKey := object.Key("DryRun") + objectKey.Boolean(*v.DryRun) + } + + if v.Name != nil { + objectKey := object.Key("Name") + objectKey.String(*v.Name) + } + + if v.ObjectKey != nil { + objectKey := object.Key("ObjectKey") + objectKey.String(*v.ObjectKey) + } + + if v.TagSpecifications != nil { + objectKey := object.FlatKey("TagSpecification") + if err := awsEc2query_serializeDocumentTagSpecificationList(v.TagSpecifications, objectKey); err != nil { + return err + } + } + + return nil +} + func awsEc2query_serializeOpDocumentCreateRouteInput(v *CreateRouteInput, value query.Value) error { object := value.Object() _ = object @@ -33686,9 +34727,9 @@ func awsEc2query_serializeOpDocumentCreateRouteInput(v *CreateRouteInput, value objectKey.String(*v.DestinationPrefixListId) } - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.EgressOnlyInternetGatewayId != nil { @@ -33748,9 +34789,9 @@ func awsEc2query_serializeOpDocumentCreateRouteTableInput(v *CreateRouteTableInp object := value.Object() _ = object - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.TagSpecifications != nil { @@ -33777,9 +34818,9 @@ func awsEc2query_serializeOpDocumentCreateSecurityGroupInput(v *CreateSecurityGr objectKey.String(*v.Description) } - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.GroupName != nil { @@ -33811,9 +34852,14 @@ func awsEc2query_serializeOpDocumentCreateSnapshotInput(v *CreateSnapshotInput, objectKey.String(*v.Description) } - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) + } + + if v.OutpostArn != nil { + objectKey := object.Key("OutpostArn") + objectKey.String(*v.OutpostArn) } if v.TagSpecifications != nil { @@ -33845,9 +34891,9 @@ func awsEc2query_serializeOpDocumentCreateSnapshotsInput(v *CreateSnapshotsInput objectKey.String(*v.Description) } - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.InstanceSpecification != nil { @@ -33857,6 +34903,11 @@ func awsEc2query_serializeOpDocumentCreateSnapshotsInput(v *CreateSnapshotsInput } } + if v.OutpostArn != nil { + objectKey := object.Key("OutpostArn") + objectKey.String(*v.OutpostArn) + } + if v.TagSpecifications != nil { objectKey := object.FlatKey("TagSpecification") if err := awsEc2query_serializeDocumentTagSpecificationList(v.TagSpecifications, objectKey); err != nil { @@ -33876,9 +34927,9 @@ func awsEc2query_serializeOpDocumentCreateSpotDatafeedSubscriptionInput(v *Creat objectKey.String(*v.Bucket) } - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.Prefix != nil { @@ -33889,6 +34940,35 @@ func awsEc2query_serializeOpDocumentCreateSpotDatafeedSubscriptionInput(v *Creat return nil } +func awsEc2query_serializeOpDocumentCreateStoreImageTaskInput(v *CreateStoreImageTaskInput, value query.Value) error { + object := value.Object() + _ = object + + if v.Bucket != nil { + objectKey := object.Key("Bucket") + objectKey.String(*v.Bucket) + } + + if v.DryRun != nil { + objectKey := object.Key("DryRun") + objectKey.Boolean(*v.DryRun) + } + + if v.ImageId != nil { + objectKey := object.Key("ImageId") + objectKey.String(*v.ImageId) + } + + if v.S3ObjectTags != nil { + objectKey := object.FlatKey("S3ObjectTag") + if err := awsEc2query_serializeDocumentS3ObjectTagList(v.S3ObjectTags, objectKey); err != nil { + return err + } + } + + return nil +} + func awsEc2query_serializeOpDocumentCreateSubnetInput(v *CreateSubnetInput, value query.Value) error { object := value.Object() _ = object @@ -33908,9 +34988,9 @@ func awsEc2query_serializeOpDocumentCreateSubnetInput(v *CreateSubnetInput, valu objectKey.String(*v.CidrBlock) } - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.Ipv6CidrBlock != nil { @@ -33942,9 +35022,9 @@ func awsEc2query_serializeOpDocumentCreateTagsInput(v *CreateTagsInput, value qu object := value.Object() _ = object - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.Resources != nil { @@ -33978,9 +35058,9 @@ func awsEc2query_serializeOpDocumentCreateTrafficMirrorFilterInput(v *CreateTraf objectKey.String(*v.Description) } - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.TagSpecifications != nil { @@ -34019,14 +35099,14 @@ func awsEc2query_serializeOpDocumentCreateTrafficMirrorFilterRuleInput(v *Create } } - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } - if v.Protocol != 0 { + if v.Protocol != nil { objectKey := object.Key("Protocol") - objectKey.Integer(v.Protocol) + objectKey.Integer(*v.Protocol) } if len(v.RuleAction) > 0 { @@ -34034,9 +35114,9 @@ func awsEc2query_serializeOpDocumentCreateTrafficMirrorFilterRuleInput(v *Create objectKey.String(string(v.RuleAction)) } - if v.RuleNumber != 0 { + if v.RuleNumber != nil { objectKey := object.Key("RuleNumber") - objectKey.Integer(v.RuleNumber) + objectKey.Integer(*v.RuleNumber) } if v.SourceCidrBlock != nil { @@ -34078,9 +35158,9 @@ func awsEc2query_serializeOpDocumentCreateTrafficMirrorSessionInput(v *CreateTra objectKey.String(*v.Description) } - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.NetworkInterfaceId != nil { @@ -34088,14 +35168,14 @@ func awsEc2query_serializeOpDocumentCreateTrafficMirrorSessionInput(v *CreateTra objectKey.String(*v.NetworkInterfaceId) } - if v.PacketLength != 0 { + if v.PacketLength != nil { objectKey := object.Key("PacketLength") - objectKey.Integer(v.PacketLength) + objectKey.Integer(*v.PacketLength) } - if v.SessionNumber != 0 { + if v.SessionNumber != nil { objectKey := object.Key("SessionNumber") - objectKey.Integer(v.SessionNumber) + objectKey.Integer(*v.SessionNumber) } if v.TagSpecifications != nil { @@ -34115,9 +35195,9 @@ func awsEc2query_serializeOpDocumentCreateTrafficMirrorSessionInput(v *CreateTra objectKey.String(*v.TrafficMirrorTargetId) } - if v.VirtualNetworkId != 0 { + if v.VirtualNetworkId != nil { objectKey := object.Key("VirtualNetworkId") - objectKey.Integer(v.VirtualNetworkId) + objectKey.Integer(*v.VirtualNetworkId) } return nil @@ -34137,9 +35217,9 @@ func awsEc2query_serializeOpDocumentCreateTrafficMirrorTargetInput(v *CreateTraf objectKey.String(*v.Description) } - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.NetworkInterfaceId != nil { @@ -34166,9 +35246,9 @@ func awsEc2query_serializeOpDocumentCreateTransitGatewayConnectInput(v *CreateTr object := value.Object() _ = object - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.Options != nil { @@ -34204,9 +35284,9 @@ func awsEc2query_serializeOpDocumentCreateTransitGatewayConnectPeerInput(v *Crea } } - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.InsideCidrBlocks != nil { @@ -34250,9 +35330,9 @@ func awsEc2query_serializeOpDocumentCreateTransitGatewayInput(v *CreateTransitGa objectKey.String(*v.Description) } - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.Options != nil { @@ -34276,9 +35356,9 @@ func awsEc2query_serializeOpDocumentCreateTransitGatewayMulticastDomainInput(v * object := value.Object() _ = object - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.Options != nil { @@ -34307,9 +35387,9 @@ func awsEc2query_serializeOpDocumentCreateTransitGatewayPeeringAttachmentInput(v object := value.Object() _ = object - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.PeerAccountId != nil { @@ -34346,14 +35426,14 @@ func awsEc2query_serializeOpDocumentCreateTransitGatewayPrefixListReferenceInput object := value.Object() _ = object - if v.Blackhole { + if v.Blackhole != nil { objectKey := object.Key("Blackhole") - objectKey.Boolean(v.Blackhole) + objectKey.Boolean(*v.Blackhole) } - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.PrefixListId != nil { @@ -34378,9 +35458,9 @@ func awsEc2query_serializeOpDocumentCreateTransitGatewayRouteInput(v *CreateTran object := value.Object() _ = object - if v.Blackhole { + if v.Blackhole != nil { objectKey := object.Key("Blackhole") - objectKey.Boolean(v.Blackhole) + objectKey.Boolean(*v.Blackhole) } if v.DestinationCidrBlock != nil { @@ -34388,9 +35468,9 @@ func awsEc2query_serializeOpDocumentCreateTransitGatewayRouteInput(v *CreateTran objectKey.String(*v.DestinationCidrBlock) } - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.TransitGatewayAttachmentId != nil { @@ -34410,9 +35490,9 @@ func awsEc2query_serializeOpDocumentCreateTransitGatewayRouteTableInput(v *Creat object := value.Object() _ = object - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.TagSpecifications != nil { @@ -34434,9 +35514,9 @@ func awsEc2query_serializeOpDocumentCreateTransitGatewayVpcAttachmentInput(v *Cr object := value.Object() _ = object - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.Options != nil { @@ -34482,19 +35562,19 @@ func awsEc2query_serializeOpDocumentCreateVolumeInput(v *CreateVolumeInput, valu objectKey.String(*v.AvailabilityZone) } - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } - if v.Encrypted { + if v.Encrypted != nil { objectKey := object.Key("Encrypted") - objectKey.Boolean(v.Encrypted) + objectKey.Boolean(*v.Encrypted) } - if v.Iops != 0 { + if v.Iops != nil { objectKey := object.Key("Iops") - objectKey.Integer(v.Iops) + objectKey.Integer(*v.Iops) } if v.KmsKeyId != nil { @@ -34502,9 +35582,9 @@ func awsEc2query_serializeOpDocumentCreateVolumeInput(v *CreateVolumeInput, valu objectKey.String(*v.KmsKeyId) } - if v.MultiAttachEnabled { + if v.MultiAttachEnabled != nil { objectKey := object.Key("MultiAttachEnabled") - objectKey.Boolean(v.MultiAttachEnabled) + objectKey.Boolean(*v.MultiAttachEnabled) } if v.OutpostArn != nil { @@ -34512,9 +35592,9 @@ func awsEc2query_serializeOpDocumentCreateVolumeInput(v *CreateVolumeInput, valu objectKey.String(*v.OutpostArn) } - if v.Size != 0 { + if v.Size != nil { objectKey := object.Key("Size") - objectKey.Integer(v.Size) + objectKey.Integer(*v.Size) } if v.SnapshotId != nil { @@ -34529,9 +35609,9 @@ func awsEc2query_serializeOpDocumentCreateVolumeInput(v *CreateVolumeInput, valu } } - if v.Throughput != 0 { + if v.Throughput != nil { objectKey := object.Key("Throughput") - objectKey.Integer(v.Throughput) + objectKey.Integer(*v.Throughput) } if len(v.VolumeType) > 0 { @@ -34563,9 +35643,9 @@ func awsEc2query_serializeOpDocumentCreateVpcEndpointConnectionNotificationInput objectKey.String(*v.ConnectionNotificationArn) } - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.ServiceId != nil { @@ -34590,9 +35670,9 @@ func awsEc2query_serializeOpDocumentCreateVpcEndpointInput(v *CreateVpcEndpointI objectKey.String(*v.ClientToken) } - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.PolicyDocument != nil { @@ -34600,9 +35680,9 @@ func awsEc2query_serializeOpDocumentCreateVpcEndpointInput(v *CreateVpcEndpointI objectKey.String(*v.PolicyDocument) } - if v.PrivateDnsEnabled { + if v.PrivateDnsEnabled != nil { objectKey := object.Key("PrivateDnsEnabled") - objectKey.Boolean(v.PrivateDnsEnabled) + objectKey.Boolean(*v.PrivateDnsEnabled) } if v.RouteTableIds != nil { @@ -34655,9 +35735,9 @@ func awsEc2query_serializeOpDocumentCreateVpcEndpointServiceConfigurationInput(v object := value.Object() _ = object - if v.AcceptanceRequired { + if v.AcceptanceRequired != nil { objectKey := object.Key("AcceptanceRequired") - objectKey.Boolean(v.AcceptanceRequired) + objectKey.Boolean(*v.AcceptanceRequired) } if v.ClientToken != nil { @@ -34665,9 +35745,9 @@ func awsEc2query_serializeOpDocumentCreateVpcEndpointServiceConfigurationInput(v objectKey.String(*v.ClientToken) } - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.GatewayLoadBalancerArns != nil { @@ -34703,9 +35783,9 @@ func awsEc2query_serializeOpDocumentCreateVpcInput(v *CreateVpcInput, value quer object := value.Object() _ = object - if v.AmazonProvidedIpv6CidrBlock { + if v.AmazonProvidedIpv6CidrBlock != nil { objectKey := object.Key("AmazonProvidedIpv6CidrBlock") - objectKey.Boolean(v.AmazonProvidedIpv6CidrBlock) + objectKey.Boolean(*v.AmazonProvidedIpv6CidrBlock) } if v.CidrBlock != nil { @@ -34713,9 +35793,9 @@ func awsEc2query_serializeOpDocumentCreateVpcInput(v *CreateVpcInput, value quer objectKey.String(*v.CidrBlock) } - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if len(v.InstanceTenancy) > 0 { @@ -34752,9 +35832,9 @@ func awsEc2query_serializeOpDocumentCreateVpcPeeringConnectionInput(v *CreateVpc object := value.Object() _ = object - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.PeerOwnerId != nil { @@ -34796,9 +35876,9 @@ func awsEc2query_serializeOpDocumentCreateVpnConnectionInput(v *CreateVpnConnect objectKey.String(*v.CustomerGatewayId) } - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.Options != nil { @@ -34854,9 +35934,9 @@ func awsEc2query_serializeOpDocumentCreateVpnGatewayInput(v *CreateVpnGatewayInp object := value.Object() _ = object - if v.AmazonSideAsn != 0 { + if v.AmazonSideAsn != nil { objectKey := object.Key("AmazonSideAsn") - objectKey.Long(v.AmazonSideAsn) + objectKey.Long(*v.AmazonSideAsn) } if v.AvailabilityZone != nil { @@ -34864,9 +35944,9 @@ func awsEc2query_serializeOpDocumentCreateVpnGatewayInput(v *CreateVpnGatewayInp objectKey.String(*v.AvailabilityZone) } - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.TagSpecifications != nil { @@ -34893,9 +35973,9 @@ func awsEc2query_serializeOpDocumentDeleteCarrierGatewayInput(v *DeleteCarrierGa objectKey.String(*v.CarrierGatewayId) } - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } return nil @@ -34910,9 +35990,9 @@ func awsEc2query_serializeOpDocumentDeleteClientVpnEndpointInput(v *DeleteClient objectKey.String(*v.ClientVpnEndpointId) } - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } return nil @@ -34932,9 +36012,9 @@ func awsEc2query_serializeOpDocumentDeleteClientVpnRouteInput(v *DeleteClientVpn objectKey.String(*v.DestinationCidrBlock) } - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.TargetVpcSubnetId != nil { @@ -34954,9 +36034,9 @@ func awsEc2query_serializeOpDocumentDeleteCustomerGatewayInput(v *DeleteCustomer objectKey.String(*v.CustomerGatewayId) } - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } return nil @@ -34971,9 +36051,9 @@ func awsEc2query_serializeOpDocumentDeleteDhcpOptionsInput(v *DeleteDhcpOptionsI objectKey.String(*v.DhcpOptionsId) } - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } return nil @@ -34983,9 +36063,9 @@ func awsEc2query_serializeOpDocumentDeleteEgressOnlyInternetGatewayInput(v *Dele object := value.Object() _ = object - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.EgressOnlyInternetGatewayId != nil { @@ -35000,9 +36080,9 @@ func awsEc2query_serializeOpDocumentDeleteFleetsInput(v *DeleteFleetsInput, valu object := value.Object() _ = object - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.FleetIds != nil { @@ -35012,9 +36092,9 @@ func awsEc2query_serializeOpDocumentDeleteFleetsInput(v *DeleteFleetsInput, valu } } - if v.TerminateInstances { + if v.TerminateInstances != nil { objectKey := object.Key("TerminateInstances") - objectKey.Boolean(v.TerminateInstances) + objectKey.Boolean(*v.TerminateInstances) } return nil @@ -35024,9 +36104,9 @@ func awsEc2query_serializeOpDocumentDeleteFlowLogsInput(v *DeleteFlowLogsInput, object := value.Object() _ = object - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.FlowLogIds != nil { @@ -35043,9 +36123,9 @@ func awsEc2query_serializeOpDocumentDeleteFpgaImageInput(v *DeleteFpgaImageInput object := value.Object() _ = object - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.FpgaImageId != nil { @@ -35060,9 +36140,9 @@ func awsEc2query_serializeOpDocumentDeleteInternetGatewayInput(v *DeleteInternet object := value.Object() _ = object - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.InternetGatewayId != nil { @@ -35077,9 +36157,9 @@ func awsEc2query_serializeOpDocumentDeleteKeyPairInput(v *DeleteKeyPairInput, va object := value.Object() _ = object - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.KeyName != nil { @@ -35099,9 +36179,9 @@ func awsEc2query_serializeOpDocumentDeleteLaunchTemplateInput(v *DeleteLaunchTem object := value.Object() _ = object - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.LaunchTemplateId != nil { @@ -35121,9 +36201,9 @@ func awsEc2query_serializeOpDocumentDeleteLaunchTemplateVersionsInput(v *DeleteL object := value.Object() _ = object - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.LaunchTemplateId != nil { @@ -35155,9 +36235,9 @@ func awsEc2query_serializeOpDocumentDeleteLocalGatewayRouteInput(v *DeleteLocalG objectKey.String(*v.DestinationCidrBlock) } - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.LocalGatewayRouteTableId != nil { @@ -35172,9 +36252,9 @@ func awsEc2query_serializeOpDocumentDeleteLocalGatewayRouteTableVpcAssociationIn object := value.Object() _ = object - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.LocalGatewayRouteTableVpcAssociationId != nil { @@ -35189,9 +36269,9 @@ func awsEc2query_serializeOpDocumentDeleteManagedPrefixListInput(v *DeleteManage object := value.Object() _ = object - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.PrefixListId != nil { @@ -35206,9 +36286,9 @@ func awsEc2query_serializeOpDocumentDeleteNatGatewayInput(v *DeleteNatGatewayInp object := value.Object() _ = object - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.NatGatewayId != nil { @@ -35223,14 +36303,14 @@ func awsEc2query_serializeOpDocumentDeleteNetworkAclEntryInput(v *DeleteNetworkA object := value.Object() _ = object - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } - if v.Egress { + if v.Egress != nil { objectKey := object.Key("Egress") - objectKey.Boolean(v.Egress) + objectKey.Boolean(*v.Egress) } if v.NetworkAclId != nil { @@ -35238,9 +36318,9 @@ func awsEc2query_serializeOpDocumentDeleteNetworkAclEntryInput(v *DeleteNetworkA objectKey.String(*v.NetworkAclId) } - if v.RuleNumber != 0 { + if v.RuleNumber != nil { objectKey := object.Key("RuleNumber") - objectKey.Integer(v.RuleNumber) + objectKey.Integer(*v.RuleNumber) } return nil @@ -35250,9 +36330,9 @@ func awsEc2query_serializeOpDocumentDeleteNetworkAclInput(v *DeleteNetworkAclInp object := value.Object() _ = object - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.NetworkAclId != nil { @@ -35267,9 +36347,9 @@ func awsEc2query_serializeOpDocumentDeleteNetworkInsightsAnalysisInput(v *Delete object := value.Object() _ = object - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.NetworkInsightsAnalysisId != nil { @@ -35284,9 +36364,9 @@ func awsEc2query_serializeOpDocumentDeleteNetworkInsightsPathInput(v *DeleteNetw object := value.Object() _ = object - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.NetworkInsightsPathId != nil { @@ -35301,9 +36381,9 @@ func awsEc2query_serializeOpDocumentDeleteNetworkInterfaceInput(v *DeleteNetwork object := value.Object() _ = object - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.NetworkInterfaceId != nil { @@ -35318,14 +36398,14 @@ func awsEc2query_serializeOpDocumentDeleteNetworkInterfacePermissionInput(v *Del object := value.Object() _ = object - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } - if v.Force { + if v.Force != nil { objectKey := object.Key("Force") - objectKey.Boolean(v.Force) + objectKey.Boolean(*v.Force) } if v.NetworkInterfacePermissionId != nil { @@ -35340,9 +36420,9 @@ func awsEc2query_serializeOpDocumentDeletePlacementGroupInput(v *DeletePlacement object := value.Object() _ = object - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.GroupName != nil { @@ -35357,9 +36437,9 @@ func awsEc2query_serializeOpDocumentDeleteQueuedReservedInstancesInput(v *Delete object := value.Object() _ = object - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.ReservedInstancesIds != nil { @@ -35391,9 +36471,9 @@ func awsEc2query_serializeOpDocumentDeleteRouteInput(v *DeleteRouteInput, value objectKey.String(*v.DestinationPrefixListId) } - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.RouteTableId != nil { @@ -35408,9 +36488,9 @@ func awsEc2query_serializeOpDocumentDeleteRouteTableInput(v *DeleteRouteTableInp object := value.Object() _ = object - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.RouteTableId != nil { @@ -35425,9 +36505,9 @@ func awsEc2query_serializeOpDocumentDeleteSecurityGroupInput(v *DeleteSecurityGr object := value.Object() _ = object - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.GroupId != nil { @@ -35447,9 +36527,9 @@ func awsEc2query_serializeOpDocumentDeleteSnapshotInput(v *DeleteSnapshotInput, object := value.Object() _ = object - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.SnapshotId != nil { @@ -35464,9 +36544,9 @@ func awsEc2query_serializeOpDocumentDeleteSpotDatafeedSubscriptionInput(v *Delet object := value.Object() _ = object - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } return nil @@ -35476,9 +36556,9 @@ func awsEc2query_serializeOpDocumentDeleteSubnetInput(v *DeleteSubnetInput, valu object := value.Object() _ = object - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.SubnetId != nil { @@ -35493,9 +36573,9 @@ func awsEc2query_serializeOpDocumentDeleteTagsInput(v *DeleteTagsInput, value qu object := value.Object() _ = object - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.Resources != nil { @@ -35519,9 +36599,9 @@ func awsEc2query_serializeOpDocumentDeleteTrafficMirrorFilterInput(v *DeleteTraf object := value.Object() _ = object - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.TrafficMirrorFilterId != nil { @@ -35536,9 +36616,9 @@ func awsEc2query_serializeOpDocumentDeleteTrafficMirrorFilterRuleInput(v *Delete object := value.Object() _ = object - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.TrafficMirrorFilterRuleId != nil { @@ -35553,9 +36633,9 @@ func awsEc2query_serializeOpDocumentDeleteTrafficMirrorSessionInput(v *DeleteTra object := value.Object() _ = object - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.TrafficMirrorSessionId != nil { @@ -35570,9 +36650,9 @@ func awsEc2query_serializeOpDocumentDeleteTrafficMirrorTargetInput(v *DeleteTraf object := value.Object() _ = object - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.TrafficMirrorTargetId != nil { @@ -35587,9 +36667,9 @@ func awsEc2query_serializeOpDocumentDeleteTransitGatewayConnectInput(v *DeleteTr object := value.Object() _ = object - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.TransitGatewayAttachmentId != nil { @@ -35604,9 +36684,9 @@ func awsEc2query_serializeOpDocumentDeleteTransitGatewayConnectPeerInput(v *Dele object := value.Object() _ = object - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.TransitGatewayConnectPeerId != nil { @@ -35621,9 +36701,9 @@ func awsEc2query_serializeOpDocumentDeleteTransitGatewayInput(v *DeleteTransitGa object := value.Object() _ = object - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.TransitGatewayId != nil { @@ -35638,9 +36718,9 @@ func awsEc2query_serializeOpDocumentDeleteTransitGatewayMulticastDomainInput(v * object := value.Object() _ = object - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.TransitGatewayMulticastDomainId != nil { @@ -35655,9 +36735,9 @@ func awsEc2query_serializeOpDocumentDeleteTransitGatewayPeeringAttachmentInput(v object := value.Object() _ = object - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.TransitGatewayAttachmentId != nil { @@ -35672,9 +36752,9 @@ func awsEc2query_serializeOpDocumentDeleteTransitGatewayPrefixListReferenceInput object := value.Object() _ = object - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.PrefixListId != nil { @@ -35699,9 +36779,9 @@ func awsEc2query_serializeOpDocumentDeleteTransitGatewayRouteInput(v *DeleteTran objectKey.String(*v.DestinationCidrBlock) } - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.TransitGatewayRouteTableId != nil { @@ -35716,9 +36796,9 @@ func awsEc2query_serializeOpDocumentDeleteTransitGatewayRouteTableInput(v *Delet object := value.Object() _ = object - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.TransitGatewayRouteTableId != nil { @@ -35733,9 +36813,9 @@ func awsEc2query_serializeOpDocumentDeleteTransitGatewayVpcAttachmentInput(v *De object := value.Object() _ = object - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.TransitGatewayAttachmentId != nil { @@ -35750,9 +36830,9 @@ func awsEc2query_serializeOpDocumentDeleteVolumeInput(v *DeleteVolumeInput, valu object := value.Object() _ = object - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.VolumeId != nil { @@ -35774,9 +36854,9 @@ func awsEc2query_serializeOpDocumentDeleteVpcEndpointConnectionNotificationsInpu } } - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } return nil @@ -35786,9 +36866,9 @@ func awsEc2query_serializeOpDocumentDeleteVpcEndpointServiceConfigurationsInput( object := value.Object() _ = object - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.ServiceIds != nil { @@ -35805,9 +36885,9 @@ func awsEc2query_serializeOpDocumentDeleteVpcEndpointsInput(v *DeleteVpcEndpoint object := value.Object() _ = object - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.VpcEndpointIds != nil { @@ -35824,9 +36904,9 @@ func awsEc2query_serializeOpDocumentDeleteVpcInput(v *DeleteVpcInput, value quer object := value.Object() _ = object - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.VpcId != nil { @@ -35841,9 +36921,9 @@ func awsEc2query_serializeOpDocumentDeleteVpcPeeringConnectionInput(v *DeleteVpc object := value.Object() _ = object - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.VpcPeeringConnectionId != nil { @@ -35858,9 +36938,9 @@ func awsEc2query_serializeOpDocumentDeleteVpnConnectionInput(v *DeleteVpnConnect object := value.Object() _ = object - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.VpnConnectionId != nil { @@ -35892,9 +36972,9 @@ func awsEc2query_serializeOpDocumentDeleteVpnGatewayInput(v *DeleteVpnGatewayInp object := value.Object() _ = object - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.VpnGatewayId != nil { @@ -35914,9 +36994,9 @@ func awsEc2query_serializeOpDocumentDeprovisionByoipCidrInput(v *DeprovisionByoi objectKey.String(*v.Cidr) } - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } return nil @@ -35926,9 +37006,9 @@ func awsEc2query_serializeOpDocumentDeregisterImageInput(v *DeregisterImageInput object := value.Object() _ = object - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.ImageId != nil { @@ -35943,9 +37023,9 @@ func awsEc2query_serializeOpDocumentDeregisterInstanceEventNotificationAttribute object := value.Object() _ = object - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.InstanceTagAttribute != nil { @@ -35962,9 +37042,9 @@ func awsEc2query_serializeOpDocumentDeregisterTransitGatewayMulticastGroupMember object := value.Object() _ = object - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.GroupIpAddress != nil { @@ -35991,9 +37071,9 @@ func awsEc2query_serializeOpDocumentDeregisterTransitGatewayMulticastGroupSource object := value.Object() _ = object - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.GroupIpAddress != nil { @@ -36027,9 +37107,9 @@ func awsEc2query_serializeOpDocumentDescribeAccountAttributesInput(v *DescribeAc } } - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } return nil @@ -36051,14 +37131,14 @@ func awsEc2query_serializeOpDocumentDescribeAddressesAttributeInput(v *DescribeA objectKey.String(string(v.Attribute)) } - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } - if v.MaxResults != 0 { + if v.MaxResults != nil { objectKey := object.Key("MaxResults") - objectKey.Integer(v.MaxResults) + objectKey.Integer(*v.MaxResults) } if v.NextToken != nil { @@ -36080,9 +37160,9 @@ func awsEc2query_serializeOpDocumentDescribeAddressesInput(v *DescribeAddressesI } } - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.Filters != nil { @@ -36106,9 +37186,9 @@ func awsEc2query_serializeOpDocumentDescribeAggregateIdFormatInput(v *DescribeAg object := value.Object() _ = object - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } return nil @@ -36118,14 +37198,14 @@ func awsEc2query_serializeOpDocumentDescribeAvailabilityZonesInput(v *DescribeAv object := value.Object() _ = object - if v.AllAvailabilityZones { + if v.AllAvailabilityZones != nil { objectKey := object.Key("AllAvailabilityZones") - objectKey.Boolean(v.AllAvailabilityZones) + objectKey.Boolean(*v.AllAvailabilityZones) } - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.Filters != nil { @@ -36163,9 +37243,9 @@ func awsEc2query_serializeOpDocumentDescribeBundleTasksInput(v *DescribeBundleTa } } - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.Filters != nil { @@ -36182,14 +37262,14 @@ func awsEc2query_serializeOpDocumentDescribeByoipCidrsInput(v *DescribeByoipCidr object := value.Object() _ = object - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } - if v.MaxResults != 0 { + if v.MaxResults != nil { objectKey := object.Key("MaxResults") - objectKey.Integer(v.MaxResults) + objectKey.Integer(*v.MaxResults) } if v.NextToken != nil { @@ -36211,9 +37291,9 @@ func awsEc2query_serializeOpDocumentDescribeCapacityReservationsInput(v *Describ } } - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.Filters != nil { @@ -36223,9 +37303,9 @@ func awsEc2query_serializeOpDocumentDescribeCapacityReservationsInput(v *Describ } } - if v.MaxResults != 0 { + if v.MaxResults != nil { objectKey := object.Key("MaxResults") - objectKey.Integer(v.MaxResults) + objectKey.Integer(*v.MaxResults) } if v.NextToken != nil { @@ -36247,9 +37327,9 @@ func awsEc2query_serializeOpDocumentDescribeCarrierGatewaysInput(v *DescribeCarr } } - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.Filters != nil { @@ -36259,9 +37339,9 @@ func awsEc2query_serializeOpDocumentDescribeCarrierGatewaysInput(v *DescribeCarr } } - if v.MaxResults != 0 { + if v.MaxResults != nil { objectKey := object.Key("MaxResults") - objectKey.Integer(v.MaxResults) + objectKey.Integer(*v.MaxResults) } if v.NextToken != nil { @@ -36276,9 +37356,9 @@ func awsEc2query_serializeOpDocumentDescribeClassicLinkInstancesInput(v *Describ object := value.Object() _ = object - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.Filters != nil { @@ -36295,9 +37375,9 @@ func awsEc2query_serializeOpDocumentDescribeClassicLinkInstancesInput(v *Describ } } - if v.MaxResults != 0 { + if v.MaxResults != nil { objectKey := object.Key("MaxResults") - objectKey.Integer(v.MaxResults) + objectKey.Integer(*v.MaxResults) } if v.NextToken != nil { @@ -36317,9 +37397,9 @@ func awsEc2query_serializeOpDocumentDescribeClientVpnAuthorizationRulesInput(v * objectKey.String(*v.ClientVpnEndpointId) } - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.Filters != nil { @@ -36329,9 +37409,9 @@ func awsEc2query_serializeOpDocumentDescribeClientVpnAuthorizationRulesInput(v * } } - if v.MaxResults != 0 { + if v.MaxResults != nil { objectKey := object.Key("MaxResults") - objectKey.Integer(v.MaxResults) + objectKey.Integer(*v.MaxResults) } if v.NextToken != nil { @@ -36351,9 +37431,9 @@ func awsEc2query_serializeOpDocumentDescribeClientVpnConnectionsInput(v *Describ objectKey.String(*v.ClientVpnEndpointId) } - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.Filters != nil { @@ -36363,9 +37443,9 @@ func awsEc2query_serializeOpDocumentDescribeClientVpnConnectionsInput(v *Describ } } - if v.MaxResults != 0 { + if v.MaxResults != nil { objectKey := object.Key("MaxResults") - objectKey.Integer(v.MaxResults) + objectKey.Integer(*v.MaxResults) } if v.NextToken != nil { @@ -36387,9 +37467,9 @@ func awsEc2query_serializeOpDocumentDescribeClientVpnEndpointsInput(v *DescribeC } } - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.Filters != nil { @@ -36399,9 +37479,9 @@ func awsEc2query_serializeOpDocumentDescribeClientVpnEndpointsInput(v *DescribeC } } - if v.MaxResults != 0 { + if v.MaxResults != nil { objectKey := object.Key("MaxResults") - objectKey.Integer(v.MaxResults) + objectKey.Integer(*v.MaxResults) } if v.NextToken != nil { @@ -36421,9 +37501,9 @@ func awsEc2query_serializeOpDocumentDescribeClientVpnRoutesInput(v *DescribeClie objectKey.String(*v.ClientVpnEndpointId) } - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.Filters != nil { @@ -36433,9 +37513,9 @@ func awsEc2query_serializeOpDocumentDescribeClientVpnRoutesInput(v *DescribeClie } } - if v.MaxResults != 0 { + if v.MaxResults != nil { objectKey := object.Key("MaxResults") - objectKey.Integer(v.MaxResults) + objectKey.Integer(*v.MaxResults) } if v.NextToken != nil { @@ -36462,9 +37542,9 @@ func awsEc2query_serializeOpDocumentDescribeClientVpnTargetNetworksInput(v *Desc objectKey.String(*v.ClientVpnEndpointId) } - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.Filters != nil { @@ -36474,9 +37554,9 @@ func awsEc2query_serializeOpDocumentDescribeClientVpnTargetNetworksInput(v *Desc } } - if v.MaxResults != 0 { + if v.MaxResults != nil { objectKey := object.Key("MaxResults") - objectKey.Integer(v.MaxResults) + objectKey.Integer(*v.MaxResults) } if v.NextToken != nil { @@ -36491,9 +37571,9 @@ func awsEc2query_serializeOpDocumentDescribeCoipPoolsInput(v *DescribeCoipPoolsI object := value.Object() _ = object - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.Filters != nil { @@ -36503,9 +37583,9 @@ func awsEc2query_serializeOpDocumentDescribeCoipPoolsInput(v *DescribeCoipPoolsI } } - if v.MaxResults != 0 { + if v.MaxResults != nil { objectKey := object.Key("MaxResults") - objectKey.Integer(v.MaxResults) + objectKey.Integer(*v.MaxResults) } if v.NextToken != nil { @@ -36534,9 +37614,9 @@ func awsEc2query_serializeOpDocumentDescribeConversionTasksInput(v *DescribeConv } } - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } return nil @@ -36553,9 +37633,9 @@ func awsEc2query_serializeOpDocumentDescribeCustomerGatewaysInput(v *DescribeCus } } - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.Filters != nil { @@ -36579,9 +37659,9 @@ func awsEc2query_serializeOpDocumentDescribeDhcpOptionsInput(v *DescribeDhcpOpti } } - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.Filters != nil { @@ -36591,9 +37671,9 @@ func awsEc2query_serializeOpDocumentDescribeDhcpOptionsInput(v *DescribeDhcpOpti } } - if v.MaxResults != 0 { + if v.MaxResults != nil { objectKey := object.Key("MaxResults") - objectKey.Integer(v.MaxResults) + objectKey.Integer(*v.MaxResults) } if v.NextToken != nil { @@ -36608,9 +37688,9 @@ func awsEc2query_serializeOpDocumentDescribeEgressOnlyInternetGatewaysInput(v *D object := value.Object() _ = object - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.EgressOnlyInternetGatewayIds != nil { @@ -36627,9 +37707,9 @@ func awsEc2query_serializeOpDocumentDescribeEgressOnlyInternetGatewaysInput(v *D } } - if v.MaxResults != 0 { + if v.MaxResults != nil { objectKey := object.Key("MaxResults") - objectKey.Integer(v.MaxResults) + objectKey.Integer(*v.MaxResults) } if v.NextToken != nil { @@ -36644,9 +37724,9 @@ func awsEc2query_serializeOpDocumentDescribeElasticGpusInput(v *DescribeElasticG object := value.Object() _ = object - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.ElasticGpuIds != nil { @@ -36663,9 +37743,9 @@ func awsEc2query_serializeOpDocumentDescribeElasticGpusInput(v *DescribeElasticG } } - if v.MaxResults != 0 { + if v.MaxResults != nil { objectKey := object.Key("MaxResults") - objectKey.Integer(v.MaxResults) + objectKey.Integer(*v.MaxResults) } if v.NextToken != nil { @@ -36680,9 +37760,9 @@ func awsEc2query_serializeOpDocumentDescribeExportImageTasksInput(v *DescribeExp object := value.Object() _ = object - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.ExportImageTaskIds != nil { @@ -36699,9 +37779,9 @@ func awsEc2query_serializeOpDocumentDescribeExportImageTasksInput(v *DescribeExp } } - if v.MaxResults != 0 { + if v.MaxResults != nil { objectKey := object.Key("MaxResults") - objectKey.Integer(v.MaxResults) + objectKey.Integer(*v.MaxResults) } if v.NextToken != nil { @@ -36737,9 +37817,9 @@ func awsEc2query_serializeOpDocumentDescribeFastSnapshotRestoresInput(v *Describ object := value.Object() _ = object - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.Filters != nil { @@ -36766,9 +37846,9 @@ func awsEc2query_serializeOpDocumentDescribeFleetHistoryInput(v *DescribeFleetHi object := value.Object() _ = object - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if len(v.EventType) > 0 { @@ -36781,9 +37861,9 @@ func awsEc2query_serializeOpDocumentDescribeFleetHistoryInput(v *DescribeFleetHi objectKey.String(*v.FleetId) } - if v.MaxResults != 0 { + if v.MaxResults != nil { objectKey := object.Key("MaxResults") - objectKey.Integer(v.MaxResults) + objectKey.Integer(*v.MaxResults) } if v.NextToken != nil { @@ -36803,9 +37883,9 @@ func awsEc2query_serializeOpDocumentDescribeFleetInstancesInput(v *DescribeFleet object := value.Object() _ = object - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.Filters != nil { @@ -36820,9 +37900,9 @@ func awsEc2query_serializeOpDocumentDescribeFleetInstancesInput(v *DescribeFleet objectKey.String(*v.FleetId) } - if v.MaxResults != 0 { + if v.MaxResults != nil { objectKey := object.Key("MaxResults") - objectKey.Integer(v.MaxResults) + objectKey.Integer(*v.MaxResults) } if v.NextToken != nil { @@ -36837,9 +37917,9 @@ func awsEc2query_serializeOpDocumentDescribeFleetsInput(v *DescribeFleetsInput, object := value.Object() _ = object - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.Filters != nil { @@ -36856,9 +37936,9 @@ func awsEc2query_serializeOpDocumentDescribeFleetsInput(v *DescribeFleetsInput, } } - if v.MaxResults != 0 { + if v.MaxResults != nil { objectKey := object.Key("MaxResults") - objectKey.Integer(v.MaxResults) + objectKey.Integer(*v.MaxResults) } if v.NextToken != nil { @@ -36873,9 +37953,9 @@ func awsEc2query_serializeOpDocumentDescribeFlowLogsInput(v *DescribeFlowLogsInp object := value.Object() _ = object - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.Filter != nil { @@ -36892,9 +37972,9 @@ func awsEc2query_serializeOpDocumentDescribeFlowLogsInput(v *DescribeFlowLogsInp } } - if v.MaxResults != 0 { + if v.MaxResults != nil { objectKey := object.Key("MaxResults") - objectKey.Integer(v.MaxResults) + objectKey.Integer(*v.MaxResults) } if v.NextToken != nil { @@ -36914,9 +37994,9 @@ func awsEc2query_serializeOpDocumentDescribeFpgaImageAttributeInput(v *DescribeF objectKey.String(string(v.Attribute)) } - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.FpgaImageId != nil { @@ -36931,9 +38011,9 @@ func awsEc2query_serializeOpDocumentDescribeFpgaImagesInput(v *DescribeFpgaImage object := value.Object() _ = object - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.Filters != nil { @@ -36950,9 +38030,9 @@ func awsEc2query_serializeOpDocumentDescribeFpgaImagesInput(v *DescribeFpgaImage } } - if v.MaxResults != 0 { + if v.MaxResults != nil { objectKey := object.Key("MaxResults") - objectKey.Integer(v.MaxResults) + objectKey.Integer(*v.MaxResults) } if v.NextToken != nil { @@ -36981,19 +38061,19 @@ func awsEc2query_serializeOpDocumentDescribeHostReservationOfferingsInput(v *Des } } - if v.MaxDuration != 0 { + if v.MaxDuration != nil { objectKey := object.Key("MaxDuration") - objectKey.Integer(v.MaxDuration) + objectKey.Integer(*v.MaxDuration) } - if v.MaxResults != 0 { + if v.MaxResults != nil { objectKey := object.Key("MaxResults") - objectKey.Integer(v.MaxResults) + objectKey.Integer(*v.MaxResults) } - if v.MinDuration != 0 { + if v.MinDuration != nil { objectKey := object.Key("MinDuration") - objectKey.Integer(v.MinDuration) + objectKey.Integer(*v.MinDuration) } if v.NextToken != nil { @@ -37027,9 +38107,9 @@ func awsEc2query_serializeOpDocumentDescribeHostReservationsInput(v *DescribeHos } } - if v.MaxResults != 0 { + if v.MaxResults != nil { objectKey := object.Key("MaxResults") - objectKey.Integer(v.MaxResults) + objectKey.Integer(*v.MaxResults) } if v.NextToken != nil { @@ -37058,9 +38138,9 @@ func awsEc2query_serializeOpDocumentDescribeHostsInput(v *DescribeHostsInput, va } } - if v.MaxResults != 0 { + if v.MaxResults != nil { objectKey := object.Key("MaxResults") - objectKey.Integer(v.MaxResults) + objectKey.Integer(*v.MaxResults) } if v.NextToken != nil { @@ -37089,9 +38169,9 @@ func awsEc2query_serializeOpDocumentDescribeIamInstanceProfileAssociationsInput( } } - if v.MaxResults != 0 { + if v.MaxResults != nil { objectKey := object.Key("MaxResults") - objectKey.Integer(v.MaxResults) + objectKey.Integer(*v.MaxResults) } if v.NextToken != nil { @@ -37140,9 +38220,9 @@ func awsEc2query_serializeOpDocumentDescribeImageAttributeInput(v *DescribeImage objectKey.String(string(v.Attribute)) } - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.ImageId != nil { @@ -37157,9 +38237,9 @@ func awsEc2query_serializeOpDocumentDescribeImagesInput(v *DescribeImagesInput, object := value.Object() _ = object - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.ExecutableUsers != nil { @@ -37183,6 +38263,11 @@ func awsEc2query_serializeOpDocumentDescribeImagesInput(v *DescribeImagesInput, } } + if v.IncludeDeprecated != nil { + objectKey := object.Key("IncludeDeprecated") + objectKey.Boolean(*v.IncludeDeprecated) + } + if v.Owners != nil { objectKey := object.FlatKey("Owner") if err := awsEc2query_serializeDocumentOwnerStringList(v.Owners, objectKey); err != nil { @@ -37197,9 +38282,9 @@ func awsEc2query_serializeOpDocumentDescribeImportImageTasksInput(v *DescribeImp object := value.Object() _ = object - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.Filters != nil { @@ -37216,9 +38301,9 @@ func awsEc2query_serializeOpDocumentDescribeImportImageTasksInput(v *DescribeImp } } - if v.MaxResults != 0 { + if v.MaxResults != nil { objectKey := object.Key("MaxResults") - objectKey.Integer(v.MaxResults) + objectKey.Integer(*v.MaxResults) } if v.NextToken != nil { @@ -37233,9 +38318,9 @@ func awsEc2query_serializeOpDocumentDescribeImportSnapshotTasksInput(v *Describe object := value.Object() _ = object - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.Filters != nil { @@ -37252,9 +38337,9 @@ func awsEc2query_serializeOpDocumentDescribeImportSnapshotTasksInput(v *Describe } } - if v.MaxResults != 0 { + if v.MaxResults != nil { objectKey := object.Key("MaxResults") - objectKey.Integer(v.MaxResults) + objectKey.Integer(*v.MaxResults) } if v.NextToken != nil { @@ -37274,9 +38359,9 @@ func awsEc2query_serializeOpDocumentDescribeInstanceAttributeInput(v *DescribeIn objectKey.String(string(v.Attribute)) } - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.InstanceId != nil { @@ -37291,9 +38376,9 @@ func awsEc2query_serializeOpDocumentDescribeInstanceCreditSpecificationsInput(v object := value.Object() _ = object - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.Filters != nil { @@ -37310,9 +38395,9 @@ func awsEc2query_serializeOpDocumentDescribeInstanceCreditSpecificationsInput(v } } - if v.MaxResults != 0 { + if v.MaxResults != nil { objectKey := object.Key("MaxResults") - objectKey.Integer(v.MaxResults) + objectKey.Integer(*v.MaxResults) } if v.NextToken != nil { @@ -37327,9 +38412,9 @@ func awsEc2query_serializeOpDocumentDescribeInstanceEventNotificationAttributesI object := value.Object() _ = object - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } return nil @@ -37339,9 +38424,9 @@ func awsEc2query_serializeOpDocumentDescribeInstancesInput(v *DescribeInstancesI object := value.Object() _ = object - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.Filters != nil { @@ -37358,9 +38443,9 @@ func awsEc2query_serializeOpDocumentDescribeInstancesInput(v *DescribeInstancesI } } - if v.MaxResults != 0 { + if v.MaxResults != nil { objectKey := object.Key("MaxResults") - objectKey.Integer(v.MaxResults) + objectKey.Integer(*v.MaxResults) } if v.NextToken != nil { @@ -37375,9 +38460,9 @@ func awsEc2query_serializeOpDocumentDescribeInstanceStatusInput(v *DescribeInsta object := value.Object() _ = object - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.Filters != nil { @@ -37387,9 +38472,9 @@ func awsEc2query_serializeOpDocumentDescribeInstanceStatusInput(v *DescribeInsta } } - if v.IncludeAllInstances { + if v.IncludeAllInstances != nil { objectKey := object.Key("IncludeAllInstances") - objectKey.Boolean(v.IncludeAllInstances) + objectKey.Boolean(*v.IncludeAllInstances) } if v.InstanceIds != nil { @@ -37399,9 +38484,9 @@ func awsEc2query_serializeOpDocumentDescribeInstanceStatusInput(v *DescribeInsta } } - if v.MaxResults != 0 { + if v.MaxResults != nil { objectKey := object.Key("MaxResults") - objectKey.Integer(v.MaxResults) + objectKey.Integer(*v.MaxResults) } if v.NextToken != nil { @@ -37416,9 +38501,9 @@ func awsEc2query_serializeOpDocumentDescribeInstanceTypeOfferingsInput(v *Descri object := value.Object() _ = object - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.Filters != nil { @@ -37450,9 +38535,9 @@ func awsEc2query_serializeOpDocumentDescribeInstanceTypesInput(v *DescribeInstan object := value.Object() _ = object - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.Filters != nil { @@ -37486,9 +38571,9 @@ func awsEc2query_serializeOpDocumentDescribeInternetGatewaysInput(v *DescribeInt object := value.Object() _ = object - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.Filters != nil { @@ -37505,9 +38590,9 @@ func awsEc2query_serializeOpDocumentDescribeInternetGatewaysInput(v *DescribeInt } } - if v.MaxResults != 0 { + if v.MaxResults != nil { objectKey := object.Key("MaxResults") - objectKey.Integer(v.MaxResults) + objectKey.Integer(*v.MaxResults) } if v.NextToken != nil { @@ -37522,9 +38607,9 @@ func awsEc2query_serializeOpDocumentDescribeIpv6PoolsInput(v *DescribeIpv6PoolsI object := value.Object() _ = object - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.Filters != nil { @@ -37534,9 +38619,9 @@ func awsEc2query_serializeOpDocumentDescribeIpv6PoolsInput(v *DescribeIpv6PoolsI } } - if v.MaxResults != 0 { + if v.MaxResults != nil { objectKey := object.Key("MaxResults") - objectKey.Integer(v.MaxResults) + objectKey.Integer(*v.MaxResults) } if v.NextToken != nil { @@ -37558,9 +38643,9 @@ func awsEc2query_serializeOpDocumentDescribeKeyPairsInput(v *DescribeKeyPairsInp object := value.Object() _ = object - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.Filters != nil { @@ -37591,9 +38676,9 @@ func awsEc2query_serializeOpDocumentDescribeLaunchTemplatesInput(v *DescribeLaun object := value.Object() _ = object - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.Filters != nil { @@ -37617,9 +38702,9 @@ func awsEc2query_serializeOpDocumentDescribeLaunchTemplatesInput(v *DescribeLaun } } - if v.MaxResults != 0 { + if v.MaxResults != nil { objectKey := object.Key("MaxResults") - objectKey.Integer(v.MaxResults) + objectKey.Integer(*v.MaxResults) } if v.NextToken != nil { @@ -37634,9 +38719,9 @@ func awsEc2query_serializeOpDocumentDescribeLaunchTemplateVersionsInput(v *Descr object := value.Object() _ = object - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.Filters != nil { @@ -37656,9 +38741,9 @@ func awsEc2query_serializeOpDocumentDescribeLaunchTemplateVersionsInput(v *Descr objectKey.String(*v.LaunchTemplateName) } - if v.MaxResults != 0 { + if v.MaxResults != nil { objectKey := object.Key("MaxResults") - objectKey.Integer(v.MaxResults) + objectKey.Integer(*v.MaxResults) } if v.MaxVersion != nil { @@ -37690,9 +38775,9 @@ func awsEc2query_serializeOpDocumentDescribeLocalGatewayRouteTablesInput(v *Desc object := value.Object() _ = object - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.Filters != nil { @@ -37709,9 +38794,9 @@ func awsEc2query_serializeOpDocumentDescribeLocalGatewayRouteTablesInput(v *Desc } } - if v.MaxResults != 0 { + if v.MaxResults != nil { objectKey := object.Key("MaxResults") - objectKey.Integer(v.MaxResults) + objectKey.Integer(*v.MaxResults) } if v.NextToken != nil { @@ -37726,9 +38811,9 @@ func awsEc2query_serializeOpDocumentDescribeLocalGatewayRouteTableVirtualInterfa object := value.Object() _ = object - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.Filters != nil { @@ -37745,9 +38830,9 @@ func awsEc2query_serializeOpDocumentDescribeLocalGatewayRouteTableVirtualInterfa } } - if v.MaxResults != 0 { + if v.MaxResults != nil { objectKey := object.Key("MaxResults") - objectKey.Integer(v.MaxResults) + objectKey.Integer(*v.MaxResults) } if v.NextToken != nil { @@ -37762,9 +38847,9 @@ func awsEc2query_serializeOpDocumentDescribeLocalGatewayRouteTableVpcAssociation object := value.Object() _ = object - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.Filters != nil { @@ -37781,9 +38866,9 @@ func awsEc2query_serializeOpDocumentDescribeLocalGatewayRouteTableVpcAssociation } } - if v.MaxResults != 0 { + if v.MaxResults != nil { objectKey := object.Key("MaxResults") - objectKey.Integer(v.MaxResults) + objectKey.Integer(*v.MaxResults) } if v.NextToken != nil { @@ -37798,9 +38883,9 @@ func awsEc2query_serializeOpDocumentDescribeLocalGatewaysInput(v *DescribeLocalG object := value.Object() _ = object - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.Filters != nil { @@ -37817,9 +38902,9 @@ func awsEc2query_serializeOpDocumentDescribeLocalGatewaysInput(v *DescribeLocalG } } - if v.MaxResults != 0 { + if v.MaxResults != nil { objectKey := object.Key("MaxResults") - objectKey.Integer(v.MaxResults) + objectKey.Integer(*v.MaxResults) } if v.NextToken != nil { @@ -37834,9 +38919,9 @@ func awsEc2query_serializeOpDocumentDescribeLocalGatewayVirtualInterfaceGroupsIn object := value.Object() _ = object - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.Filters != nil { @@ -37853,9 +38938,9 @@ func awsEc2query_serializeOpDocumentDescribeLocalGatewayVirtualInterfaceGroupsIn } } - if v.MaxResults != 0 { + if v.MaxResults != nil { objectKey := object.Key("MaxResults") - objectKey.Integer(v.MaxResults) + objectKey.Integer(*v.MaxResults) } if v.NextToken != nil { @@ -37870,9 +38955,9 @@ func awsEc2query_serializeOpDocumentDescribeLocalGatewayVirtualInterfacesInput(v object := value.Object() _ = object - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.Filters != nil { @@ -37889,9 +38974,9 @@ func awsEc2query_serializeOpDocumentDescribeLocalGatewayVirtualInterfacesInput(v } } - if v.MaxResults != 0 { + if v.MaxResults != nil { objectKey := object.Key("MaxResults") - objectKey.Integer(v.MaxResults) + objectKey.Integer(*v.MaxResults) } if v.NextToken != nil { @@ -37906,9 +38991,9 @@ func awsEc2query_serializeOpDocumentDescribeManagedPrefixListsInput(v *DescribeM object := value.Object() _ = object - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.Filters != nil { @@ -37918,9 +39003,9 @@ func awsEc2query_serializeOpDocumentDescribeManagedPrefixListsInput(v *DescribeM } } - if v.MaxResults != 0 { + if v.MaxResults != nil { objectKey := object.Key("MaxResults") - objectKey.Integer(v.MaxResults) + objectKey.Integer(*v.MaxResults) } if v.NextToken != nil { @@ -37942,9 +39027,9 @@ func awsEc2query_serializeOpDocumentDescribeMovingAddressesInput(v *DescribeMovi object := value.Object() _ = object - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.Filters != nil { @@ -37954,9 +39039,9 @@ func awsEc2query_serializeOpDocumentDescribeMovingAddressesInput(v *DescribeMovi } } - if v.MaxResults != 0 { + if v.MaxResults != nil { objectKey := object.Key("MaxResults") - objectKey.Integer(v.MaxResults) + objectKey.Integer(*v.MaxResults) } if v.NextToken != nil { @@ -37978,9 +39063,9 @@ func awsEc2query_serializeOpDocumentDescribeNatGatewaysInput(v *DescribeNatGatew object := value.Object() _ = object - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.Filter != nil { @@ -37990,9 +39075,9 @@ func awsEc2query_serializeOpDocumentDescribeNatGatewaysInput(v *DescribeNatGatew } } - if v.MaxResults != 0 { + if v.MaxResults != nil { objectKey := object.Key("MaxResults") - objectKey.Integer(v.MaxResults) + objectKey.Integer(*v.MaxResults) } if v.NatGatewayIds != nil { @@ -38014,9 +39099,9 @@ func awsEc2query_serializeOpDocumentDescribeNetworkAclsInput(v *DescribeNetworkA object := value.Object() _ = object - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.Filters != nil { @@ -38026,9 +39111,9 @@ func awsEc2query_serializeOpDocumentDescribeNetworkAclsInput(v *DescribeNetworkA } } - if v.MaxResults != 0 { + if v.MaxResults != nil { objectKey := object.Key("MaxResults") - objectKey.Integer(v.MaxResults) + objectKey.Integer(*v.MaxResults) } if v.NetworkAclIds != nil { @@ -38060,9 +39145,9 @@ func awsEc2query_serializeOpDocumentDescribeNetworkInsightsAnalysesInput(v *Desc objectKey.String(smithytime.FormatDateTime(*v.AnalysisStartTime)) } - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.Filters != nil { @@ -38072,9 +39157,9 @@ func awsEc2query_serializeOpDocumentDescribeNetworkInsightsAnalysesInput(v *Desc } } - if v.MaxResults != 0 { + if v.MaxResults != nil { objectKey := object.Key("MaxResults") - objectKey.Integer(v.MaxResults) + objectKey.Integer(*v.MaxResults) } if v.NetworkInsightsAnalysisIds != nil { @@ -38101,9 +39186,9 @@ func awsEc2query_serializeOpDocumentDescribeNetworkInsightsPathsInput(v *Describ object := value.Object() _ = object - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.Filters != nil { @@ -38113,9 +39198,9 @@ func awsEc2query_serializeOpDocumentDescribeNetworkInsightsPathsInput(v *Describ } } - if v.MaxResults != 0 { + if v.MaxResults != nil { objectKey := object.Key("MaxResults") - objectKey.Integer(v.MaxResults) + objectKey.Integer(*v.MaxResults) } if v.NetworkInsightsPathIds != nil { @@ -38142,9 +39227,9 @@ func awsEc2query_serializeOpDocumentDescribeNetworkInterfaceAttributeInput(v *De objectKey.String(string(v.Attribute)) } - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.NetworkInterfaceId != nil { @@ -38166,9 +39251,9 @@ func awsEc2query_serializeOpDocumentDescribeNetworkInterfacePermissionsInput(v * } } - if v.MaxResults != 0 { + if v.MaxResults != nil { objectKey := object.Key("MaxResults") - objectKey.Integer(v.MaxResults) + objectKey.Integer(*v.MaxResults) } if v.NetworkInterfacePermissionIds != nil { @@ -38190,9 +39275,9 @@ func awsEc2query_serializeOpDocumentDescribeNetworkInterfacesInput(v *DescribeNe object := value.Object() _ = object - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.Filters != nil { @@ -38202,9 +39287,9 @@ func awsEc2query_serializeOpDocumentDescribeNetworkInterfacesInput(v *DescribeNe } } - if v.MaxResults != 0 { + if v.MaxResults != nil { objectKey := object.Key("MaxResults") - objectKey.Integer(v.MaxResults) + objectKey.Integer(*v.MaxResults) } if v.NetworkInterfaceIds != nil { @@ -38226,9 +39311,9 @@ func awsEc2query_serializeOpDocumentDescribePlacementGroupsInput(v *DescribePlac object := value.Object() _ = object - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.Filters != nil { @@ -38259,9 +39344,9 @@ func awsEc2query_serializeOpDocumentDescribePrefixListsInput(v *DescribePrefixLi object := value.Object() _ = object - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.Filters != nil { @@ -38271,9 +39356,9 @@ func awsEc2query_serializeOpDocumentDescribePrefixListsInput(v *DescribePrefixLi } } - if v.MaxResults != 0 { + if v.MaxResults != nil { objectKey := object.Key("MaxResults") - objectKey.Integer(v.MaxResults) + objectKey.Integer(*v.MaxResults) } if v.NextToken != nil { @@ -38295,14 +39380,14 @@ func awsEc2query_serializeOpDocumentDescribePrincipalIdFormatInput(v *DescribePr object := value.Object() _ = object - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } - if v.MaxResults != 0 { + if v.MaxResults != nil { objectKey := object.Key("MaxResults") - objectKey.Integer(v.MaxResults) + objectKey.Integer(*v.MaxResults) } if v.NextToken != nil { @@ -38331,9 +39416,9 @@ func awsEc2query_serializeOpDocumentDescribePublicIpv4PoolsInput(v *DescribePubl } } - if v.MaxResults != 0 { + if v.MaxResults != nil { objectKey := object.Key("MaxResults") - objectKey.Integer(v.MaxResults) + objectKey.Integer(*v.MaxResults) } if v.NextToken != nil { @@ -38355,14 +39440,14 @@ func awsEc2query_serializeOpDocumentDescribeRegionsInput(v *DescribeRegionsInput object := value.Object() _ = object - if v.AllRegions { + if v.AllRegions != nil { objectKey := object.Key("AllRegions") - objectKey.Boolean(v.AllRegions) + objectKey.Boolean(*v.AllRegions) } - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.Filters != nil { @@ -38382,13 +39467,49 @@ func awsEc2query_serializeOpDocumentDescribeRegionsInput(v *DescribeRegionsInput return nil } +func awsEc2query_serializeOpDocumentDescribeReplaceRootVolumeTasksInput(v *DescribeReplaceRootVolumeTasksInput, value query.Value) error { + object := value.Object() + _ = object + + 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) + } + + if v.ReplaceRootVolumeTaskIds != nil { + objectKey := object.FlatKey("ReplaceRootVolumeTaskId") + if err := awsEc2query_serializeDocumentReplaceRootVolumeTaskIds(v.ReplaceRootVolumeTaskIds, objectKey); err != nil { + return err + } + } + + return nil +} + func awsEc2query_serializeOpDocumentDescribeReservedInstancesInput(v *DescribeReservedInstancesInput, value query.Value) error { object := value.Object() _ = object - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.Filters != nil { @@ -38477,9 +39598,9 @@ func awsEc2query_serializeOpDocumentDescribeReservedInstancesOfferingsInput(v *D objectKey.String(*v.AvailabilityZone) } - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.Filters != nil { @@ -38489,9 +39610,9 @@ func awsEc2query_serializeOpDocumentDescribeReservedInstancesOfferingsInput(v *D } } - if v.IncludeMarketplace { + if v.IncludeMarketplace != nil { objectKey := object.Key("IncludeMarketplace") - objectKey.Boolean(v.IncludeMarketplace) + objectKey.Boolean(*v.IncludeMarketplace) } if len(v.InstanceTenancy) > 0 { @@ -38504,24 +39625,24 @@ func awsEc2query_serializeOpDocumentDescribeReservedInstancesOfferingsInput(v *D objectKey.String(string(v.InstanceType)) } - if v.MaxDuration != 0 { + if v.MaxDuration != nil { objectKey := object.Key("MaxDuration") - objectKey.Long(v.MaxDuration) + objectKey.Long(*v.MaxDuration) } - if v.MaxInstanceCount != 0 { + if v.MaxInstanceCount != nil { objectKey := object.Key("MaxInstanceCount") - objectKey.Integer(v.MaxInstanceCount) + objectKey.Integer(*v.MaxInstanceCount) } - if v.MaxResults != 0 { + if v.MaxResults != nil { objectKey := object.Key("MaxResults") - objectKey.Integer(v.MaxResults) + objectKey.Integer(*v.MaxResults) } - if v.MinDuration != 0 { + if v.MinDuration != nil { objectKey := object.Key("MinDuration") - objectKey.Long(v.MinDuration) + objectKey.Long(*v.MinDuration) } if v.NextToken != nil { @@ -38558,9 +39679,9 @@ func awsEc2query_serializeOpDocumentDescribeRouteTablesInput(v *DescribeRouteTab object := value.Object() _ = object - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.Filters != nil { @@ -38570,9 +39691,9 @@ func awsEc2query_serializeOpDocumentDescribeRouteTablesInput(v *DescribeRouteTab } } - if v.MaxResults != 0 { + if v.MaxResults != nil { objectKey := object.Key("MaxResults") - objectKey.Integer(v.MaxResults) + objectKey.Integer(*v.MaxResults) } if v.NextToken != nil { @@ -38594,9 +39715,9 @@ func awsEc2query_serializeOpDocumentDescribeScheduledInstanceAvailabilityInput(v object := value.Object() _ = object - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.Filters != nil { @@ -38613,19 +39734,19 @@ func awsEc2query_serializeOpDocumentDescribeScheduledInstanceAvailabilityInput(v } } - if v.MaxResults != 0 { + if v.MaxResults != nil { objectKey := object.Key("MaxResults") - objectKey.Integer(v.MaxResults) + objectKey.Integer(*v.MaxResults) } - if v.MaxSlotDurationInHours != 0 { + if v.MaxSlotDurationInHours != nil { objectKey := object.Key("MaxSlotDurationInHours") - objectKey.Integer(v.MaxSlotDurationInHours) + objectKey.Integer(*v.MaxSlotDurationInHours) } - if v.MinSlotDurationInHours != 0 { + if v.MinSlotDurationInHours != nil { objectKey := object.Key("MinSlotDurationInHours") - objectKey.Integer(v.MinSlotDurationInHours) + objectKey.Integer(*v.MinSlotDurationInHours) } if v.NextToken != nil { @@ -38647,9 +39768,9 @@ func awsEc2query_serializeOpDocumentDescribeScheduledInstancesInput(v *DescribeS object := value.Object() _ = object - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.Filters != nil { @@ -38659,9 +39780,9 @@ func awsEc2query_serializeOpDocumentDescribeScheduledInstancesInput(v *DescribeS } } - if v.MaxResults != 0 { + if v.MaxResults != nil { objectKey := object.Key("MaxResults") - objectKey.Integer(v.MaxResults) + objectKey.Integer(*v.MaxResults) } if v.NextToken != nil { @@ -38690,9 +39811,9 @@ func awsEc2query_serializeOpDocumentDescribeSecurityGroupReferencesInput(v *Desc object := value.Object() _ = object - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.GroupId != nil { @@ -38709,9 +39830,9 @@ func awsEc2query_serializeOpDocumentDescribeSecurityGroupsInput(v *DescribeSecur object := value.Object() _ = object - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.Filters != nil { @@ -38735,9 +39856,9 @@ func awsEc2query_serializeOpDocumentDescribeSecurityGroupsInput(v *DescribeSecur } } - if v.MaxResults != 0 { + if v.MaxResults != nil { objectKey := object.Key("MaxResults") - objectKey.Integer(v.MaxResults) + objectKey.Integer(*v.MaxResults) } if v.NextToken != nil { @@ -38757,9 +39878,9 @@ func awsEc2query_serializeOpDocumentDescribeSnapshotAttributeInput(v *DescribeSn objectKey.String(string(v.Attribute)) } - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.SnapshotId != nil { @@ -38774,9 +39895,9 @@ func awsEc2query_serializeOpDocumentDescribeSnapshotsInput(v *DescribeSnapshotsI object := value.Object() _ = object - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.Filters != nil { @@ -38786,9 +39907,9 @@ func awsEc2query_serializeOpDocumentDescribeSnapshotsInput(v *DescribeSnapshotsI } } - if v.MaxResults != 0 { + if v.MaxResults != nil { objectKey := object.Key("MaxResults") - objectKey.Integer(v.MaxResults) + objectKey.Integer(*v.MaxResults) } if v.NextToken != nil { @@ -38824,9 +39945,9 @@ func awsEc2query_serializeOpDocumentDescribeSpotDatafeedSubscriptionInput(v *Des object := value.Object() _ = object - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } return nil @@ -38836,14 +39957,14 @@ func awsEc2query_serializeOpDocumentDescribeSpotFleetInstancesInput(v *DescribeS object := value.Object() _ = object - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } - if v.MaxResults != 0 { + if v.MaxResults != nil { objectKey := object.Key("MaxResults") - objectKey.Integer(v.MaxResults) + objectKey.Integer(*v.MaxResults) } if v.NextToken != nil { @@ -38863,9 +39984,9 @@ func awsEc2query_serializeOpDocumentDescribeSpotFleetRequestHistoryInput(v *Desc object := value.Object() _ = object - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if len(v.EventType) > 0 { @@ -38873,9 +39994,9 @@ func awsEc2query_serializeOpDocumentDescribeSpotFleetRequestHistoryInput(v *Desc objectKey.String(string(v.EventType)) } - if v.MaxResults != 0 { + if v.MaxResults != nil { objectKey := object.Key("MaxResults") - objectKey.Integer(v.MaxResults) + objectKey.Integer(*v.MaxResults) } if v.NextToken != nil { @@ -38900,14 +40021,14 @@ func awsEc2query_serializeOpDocumentDescribeSpotFleetRequestsInput(v *DescribeSp object := value.Object() _ = object - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } - if v.MaxResults != 0 { + if v.MaxResults != nil { objectKey := object.Key("MaxResults") - objectKey.Integer(v.MaxResults) + objectKey.Integer(*v.MaxResults) } if v.NextToken != nil { @@ -38929,9 +40050,9 @@ func awsEc2query_serializeOpDocumentDescribeSpotInstanceRequestsInput(v *Describ object := value.Object() _ = object - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.Filters != nil { @@ -38941,9 +40062,9 @@ func awsEc2query_serializeOpDocumentDescribeSpotInstanceRequestsInput(v *Describ } } - if v.MaxResults != 0 { + if v.MaxResults != nil { objectKey := object.Key("MaxResults") - objectKey.Integer(v.MaxResults) + objectKey.Integer(*v.MaxResults) } if v.NextToken != nil { @@ -38970,9 +40091,9 @@ func awsEc2query_serializeOpDocumentDescribeSpotPriceHistoryInput(v *DescribeSpo objectKey.String(*v.AvailabilityZone) } - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.EndTime != nil { @@ -38994,9 +40115,9 @@ func awsEc2query_serializeOpDocumentDescribeSpotPriceHistoryInput(v *DescribeSpo } } - if v.MaxResults != 0 { + if v.MaxResults != nil { objectKey := object.Key("MaxResults") - objectKey.Integer(v.MaxResults) + objectKey.Integer(*v.MaxResults) } if v.NextToken != nil { @@ -39023,14 +40144,14 @@ func awsEc2query_serializeOpDocumentDescribeStaleSecurityGroupsInput(v *Describe object := value.Object() _ = object - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } - if v.MaxResults != 0 { + if v.MaxResults != nil { objectKey := object.Key("MaxResults") - objectKey.Integer(v.MaxResults) + objectKey.Integer(*v.MaxResults) } if v.NextToken != nil { @@ -39046,13 +40167,49 @@ func awsEc2query_serializeOpDocumentDescribeStaleSecurityGroupsInput(v *Describe return nil } +func awsEc2query_serializeOpDocumentDescribeStoreImageTasksInput(v *DescribeStoreImageTasksInput, value query.Value) error { + object := value.Object() + _ = object + + 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.ImageIds != nil { + objectKey := object.FlatKey("ImageId") + if err := awsEc2query_serializeDocumentImageIdList(v.ImageIds, 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_serializeOpDocumentDescribeSubnetsInput(v *DescribeSubnetsInput, value query.Value) error { object := value.Object() _ = object - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.Filters != nil { @@ -39062,9 +40219,9 @@ func awsEc2query_serializeOpDocumentDescribeSubnetsInput(v *DescribeSubnetsInput } } - if v.MaxResults != 0 { + if v.MaxResults != nil { objectKey := object.Key("MaxResults") - objectKey.Integer(v.MaxResults) + objectKey.Integer(*v.MaxResults) } if v.NextToken != nil { @@ -39086,9 +40243,9 @@ func awsEc2query_serializeOpDocumentDescribeTagsInput(v *DescribeTagsInput, valu object := value.Object() _ = object - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.Filters != nil { @@ -39098,9 +40255,9 @@ func awsEc2query_serializeOpDocumentDescribeTagsInput(v *DescribeTagsInput, valu } } - if v.MaxResults != 0 { + if v.MaxResults != nil { objectKey := object.Key("MaxResults") - objectKey.Integer(v.MaxResults) + objectKey.Integer(*v.MaxResults) } if v.NextToken != nil { @@ -39115,9 +40272,9 @@ func awsEc2query_serializeOpDocumentDescribeTrafficMirrorFiltersInput(v *Describ object := value.Object() _ = object - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.Filters != nil { @@ -39127,9 +40284,9 @@ func awsEc2query_serializeOpDocumentDescribeTrafficMirrorFiltersInput(v *Describ } } - if v.MaxResults != 0 { + if v.MaxResults != nil { objectKey := object.Key("MaxResults") - objectKey.Integer(v.MaxResults) + objectKey.Integer(*v.MaxResults) } if v.NextToken != nil { @@ -39151,9 +40308,9 @@ func awsEc2query_serializeOpDocumentDescribeTrafficMirrorSessionsInput(v *Descri object := value.Object() _ = object - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.Filters != nil { @@ -39163,9 +40320,9 @@ func awsEc2query_serializeOpDocumentDescribeTrafficMirrorSessionsInput(v *Descri } } - if v.MaxResults != 0 { + if v.MaxResults != nil { objectKey := object.Key("MaxResults") - objectKey.Integer(v.MaxResults) + objectKey.Integer(*v.MaxResults) } if v.NextToken != nil { @@ -39187,9 +40344,9 @@ func awsEc2query_serializeOpDocumentDescribeTrafficMirrorTargetsInput(v *Describ object := value.Object() _ = object - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.Filters != nil { @@ -39199,9 +40356,9 @@ func awsEc2query_serializeOpDocumentDescribeTrafficMirrorTargetsInput(v *Describ } } - if v.MaxResults != 0 { + if v.MaxResults != nil { objectKey := object.Key("MaxResults") - objectKey.Integer(v.MaxResults) + objectKey.Integer(*v.MaxResults) } if v.NextToken != nil { @@ -39223,9 +40380,9 @@ func awsEc2query_serializeOpDocumentDescribeTransitGatewayAttachmentsInput(v *De object := value.Object() _ = object - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.Filters != nil { @@ -39235,9 +40392,9 @@ func awsEc2query_serializeOpDocumentDescribeTransitGatewayAttachmentsInput(v *De } } - if v.MaxResults != 0 { + if v.MaxResults != nil { objectKey := object.Key("MaxResults") - objectKey.Integer(v.MaxResults) + objectKey.Integer(*v.MaxResults) } if v.NextToken != nil { @@ -39259,9 +40416,9 @@ func awsEc2query_serializeOpDocumentDescribeTransitGatewayConnectPeersInput(v *D object := value.Object() _ = object - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.Filters != nil { @@ -39271,9 +40428,9 @@ func awsEc2query_serializeOpDocumentDescribeTransitGatewayConnectPeersInput(v *D } } - if v.MaxResults != 0 { + if v.MaxResults != nil { objectKey := object.Key("MaxResults") - objectKey.Integer(v.MaxResults) + objectKey.Integer(*v.MaxResults) } if v.NextToken != nil { @@ -39295,9 +40452,9 @@ func awsEc2query_serializeOpDocumentDescribeTransitGatewayConnectsInput(v *Descr object := value.Object() _ = object - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.Filters != nil { @@ -39307,9 +40464,9 @@ func awsEc2query_serializeOpDocumentDescribeTransitGatewayConnectsInput(v *Descr } } - if v.MaxResults != 0 { + if v.MaxResults != nil { objectKey := object.Key("MaxResults") - objectKey.Integer(v.MaxResults) + objectKey.Integer(*v.MaxResults) } if v.NextToken != nil { @@ -39331,9 +40488,9 @@ func awsEc2query_serializeOpDocumentDescribeTransitGatewayMulticastDomainsInput( object := value.Object() _ = object - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.Filters != nil { @@ -39343,9 +40500,9 @@ func awsEc2query_serializeOpDocumentDescribeTransitGatewayMulticastDomainsInput( } } - if v.MaxResults != 0 { + if v.MaxResults != nil { objectKey := object.Key("MaxResults") - objectKey.Integer(v.MaxResults) + objectKey.Integer(*v.MaxResults) } if v.NextToken != nil { @@ -39367,9 +40524,9 @@ func awsEc2query_serializeOpDocumentDescribeTransitGatewayPeeringAttachmentsInpu object := value.Object() _ = object - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.Filters != nil { @@ -39379,9 +40536,9 @@ func awsEc2query_serializeOpDocumentDescribeTransitGatewayPeeringAttachmentsInpu } } - if v.MaxResults != 0 { + if v.MaxResults != nil { objectKey := object.Key("MaxResults") - objectKey.Integer(v.MaxResults) + objectKey.Integer(*v.MaxResults) } if v.NextToken != nil { @@ -39403,9 +40560,9 @@ func awsEc2query_serializeOpDocumentDescribeTransitGatewayRouteTablesInput(v *De object := value.Object() _ = object - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.Filters != nil { @@ -39415,9 +40572,9 @@ func awsEc2query_serializeOpDocumentDescribeTransitGatewayRouteTablesInput(v *De } } - if v.MaxResults != 0 { + if v.MaxResults != nil { objectKey := object.Key("MaxResults") - objectKey.Integer(v.MaxResults) + objectKey.Integer(*v.MaxResults) } if v.NextToken != nil { @@ -39439,9 +40596,9 @@ func awsEc2query_serializeOpDocumentDescribeTransitGatewaysInput(v *DescribeTran object := value.Object() _ = object - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.Filters != nil { @@ -39451,9 +40608,9 @@ func awsEc2query_serializeOpDocumentDescribeTransitGatewaysInput(v *DescribeTran } } - if v.MaxResults != 0 { + if v.MaxResults != nil { objectKey := object.Key("MaxResults") - objectKey.Integer(v.MaxResults) + objectKey.Integer(*v.MaxResults) } if v.NextToken != nil { @@ -39475,9 +40632,9 @@ func awsEc2query_serializeOpDocumentDescribeTransitGatewayVpcAttachmentsInput(v object := value.Object() _ = object - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.Filters != nil { @@ -39487,9 +40644,9 @@ func awsEc2query_serializeOpDocumentDescribeTransitGatewayVpcAttachmentsInput(v } } - if v.MaxResults != 0 { + if v.MaxResults != nil { objectKey := object.Key("MaxResults") - objectKey.Integer(v.MaxResults) + objectKey.Integer(*v.MaxResults) } if v.NextToken != nil { @@ -39507,6 +40664,42 @@ func awsEc2query_serializeOpDocumentDescribeTransitGatewayVpcAttachmentsInput(v return nil } +func awsEc2query_serializeOpDocumentDescribeTrunkInterfaceAssociationsInput(v *DescribeTrunkInterfaceAssociationsInput, value query.Value) error { + object := value.Object() + _ = object + + if v.AssociationIds != nil { + objectKey := object.FlatKey("AssociationId") + if err := awsEc2query_serializeDocumentTrunkInterfaceAssociationIdList(v.AssociationIds, 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_serializeOpDocumentDescribeVolumeAttributeInput(v *DescribeVolumeAttributeInput, value query.Value) error { object := value.Object() _ = object @@ -39516,9 +40709,9 @@ func awsEc2query_serializeOpDocumentDescribeVolumeAttributeInput(v *DescribeVolu objectKey.String(string(v.Attribute)) } - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.VolumeId != nil { @@ -39533,9 +40726,9 @@ func awsEc2query_serializeOpDocumentDescribeVolumesInput(v *DescribeVolumesInput object := value.Object() _ = object - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.Filters != nil { @@ -39545,9 +40738,9 @@ func awsEc2query_serializeOpDocumentDescribeVolumesInput(v *DescribeVolumesInput } } - if v.MaxResults != 0 { + if v.MaxResults != nil { objectKey := object.Key("MaxResults") - objectKey.Integer(v.MaxResults) + objectKey.Integer(*v.MaxResults) } if v.NextToken != nil { @@ -39569,9 +40762,9 @@ func awsEc2query_serializeOpDocumentDescribeVolumesModificationsInput(v *Describ object := value.Object() _ = object - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.Filters != nil { @@ -39581,9 +40774,9 @@ func awsEc2query_serializeOpDocumentDescribeVolumesModificationsInput(v *Describ } } - if v.MaxResults != 0 { + if v.MaxResults != nil { objectKey := object.Key("MaxResults") - objectKey.Integer(v.MaxResults) + objectKey.Integer(*v.MaxResults) } if v.NextToken != nil { @@ -39605,9 +40798,9 @@ func awsEc2query_serializeOpDocumentDescribeVolumeStatusInput(v *DescribeVolumeS object := value.Object() _ = object - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.Filters != nil { @@ -39617,9 +40810,9 @@ func awsEc2query_serializeOpDocumentDescribeVolumeStatusInput(v *DescribeVolumeS } } - if v.MaxResults != 0 { + if v.MaxResults != nil { objectKey := object.Key("MaxResults") - objectKey.Integer(v.MaxResults) + objectKey.Integer(*v.MaxResults) } if v.NextToken != nil { @@ -39646,9 +40839,9 @@ func awsEc2query_serializeOpDocumentDescribeVpcAttributeInput(v *DescribeVpcAttr objectKey.String(string(v.Attribute)) } - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.VpcId != nil { @@ -39663,9 +40856,9 @@ func awsEc2query_serializeOpDocumentDescribeVpcClassicLinkDnsSupportInput(v *Des object := value.Object() _ = object - if v.MaxResults != 0 { + if v.MaxResults != nil { objectKey := object.Key("MaxResults") - objectKey.Integer(v.MaxResults) + objectKey.Integer(*v.MaxResults) } if v.NextToken != nil { @@ -39687,9 +40880,9 @@ func awsEc2query_serializeOpDocumentDescribeVpcClassicLinkInput(v *DescribeVpcCl object := value.Object() _ = object - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.Filters != nil { @@ -39718,9 +40911,9 @@ func awsEc2query_serializeOpDocumentDescribeVpcEndpointConnectionNotificationsIn objectKey.String(*v.ConnectionNotificationId) } - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.Filters != nil { @@ -39730,9 +40923,9 @@ func awsEc2query_serializeOpDocumentDescribeVpcEndpointConnectionNotificationsIn } } - if v.MaxResults != 0 { + if v.MaxResults != nil { objectKey := object.Key("MaxResults") - objectKey.Integer(v.MaxResults) + objectKey.Integer(*v.MaxResults) } if v.NextToken != nil { @@ -39747,9 +40940,9 @@ func awsEc2query_serializeOpDocumentDescribeVpcEndpointConnectionsInput(v *Descr object := value.Object() _ = object - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.Filters != nil { @@ -39759,9 +40952,9 @@ func awsEc2query_serializeOpDocumentDescribeVpcEndpointConnectionsInput(v *Descr } } - if v.MaxResults != 0 { + if v.MaxResults != nil { objectKey := object.Key("MaxResults") - objectKey.Integer(v.MaxResults) + objectKey.Integer(*v.MaxResults) } if v.NextToken != nil { @@ -39776,9 +40969,9 @@ func awsEc2query_serializeOpDocumentDescribeVpcEndpointServiceConfigurationsInpu object := value.Object() _ = object - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.Filters != nil { @@ -39788,9 +40981,9 @@ func awsEc2query_serializeOpDocumentDescribeVpcEndpointServiceConfigurationsInpu } } - if v.MaxResults != 0 { + if v.MaxResults != nil { objectKey := object.Key("MaxResults") - objectKey.Integer(v.MaxResults) + objectKey.Integer(*v.MaxResults) } if v.NextToken != nil { @@ -39812,9 +41005,9 @@ func awsEc2query_serializeOpDocumentDescribeVpcEndpointServicePermissionsInput(v object := value.Object() _ = object - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.Filters != nil { @@ -39824,9 +41017,9 @@ func awsEc2query_serializeOpDocumentDescribeVpcEndpointServicePermissionsInput(v } } - if v.MaxResults != 0 { + if v.MaxResults != nil { objectKey := object.Key("MaxResults") - objectKey.Integer(v.MaxResults) + objectKey.Integer(*v.MaxResults) } if v.NextToken != nil { @@ -39846,9 +41039,9 @@ func awsEc2query_serializeOpDocumentDescribeVpcEndpointServicesInput(v *Describe object := value.Object() _ = object - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.Filters != nil { @@ -39858,9 +41051,9 @@ func awsEc2query_serializeOpDocumentDescribeVpcEndpointServicesInput(v *Describe } } - if v.MaxResults != 0 { + if v.MaxResults != nil { objectKey := object.Key("MaxResults") - objectKey.Integer(v.MaxResults) + objectKey.Integer(*v.MaxResults) } if v.NextToken != nil { @@ -39882,9 +41075,9 @@ func awsEc2query_serializeOpDocumentDescribeVpcEndpointsInput(v *DescribeVpcEndp object := value.Object() _ = object - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.Filters != nil { @@ -39894,9 +41087,9 @@ func awsEc2query_serializeOpDocumentDescribeVpcEndpointsInput(v *DescribeVpcEndp } } - if v.MaxResults != 0 { + if v.MaxResults != nil { objectKey := object.Key("MaxResults") - objectKey.Integer(v.MaxResults) + objectKey.Integer(*v.MaxResults) } if v.NextToken != nil { @@ -39918,9 +41111,9 @@ func awsEc2query_serializeOpDocumentDescribeVpcPeeringConnectionsInput(v *Descri object := value.Object() _ = object - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.Filters != nil { @@ -39930,9 +41123,9 @@ func awsEc2query_serializeOpDocumentDescribeVpcPeeringConnectionsInput(v *Descri } } - if v.MaxResults != 0 { + if v.MaxResults != nil { objectKey := object.Key("MaxResults") - objectKey.Integer(v.MaxResults) + objectKey.Integer(*v.MaxResults) } if v.NextToken != nil { @@ -39954,9 +41147,9 @@ func awsEc2query_serializeOpDocumentDescribeVpcsInput(v *DescribeVpcsInput, valu object := value.Object() _ = object - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.Filters != nil { @@ -39966,9 +41159,9 @@ func awsEc2query_serializeOpDocumentDescribeVpcsInput(v *DescribeVpcsInput, valu } } - if v.MaxResults != 0 { + if v.MaxResults != nil { objectKey := object.Key("MaxResults") - objectKey.Integer(v.MaxResults) + objectKey.Integer(*v.MaxResults) } if v.NextToken != nil { @@ -39990,9 +41183,9 @@ func awsEc2query_serializeOpDocumentDescribeVpnConnectionsInput(v *DescribeVpnCo object := value.Object() _ = object - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.Filters != nil { @@ -40016,9 +41209,9 @@ func awsEc2query_serializeOpDocumentDescribeVpnGatewaysInput(v *DescribeVpnGatew object := value.Object() _ = object - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.Filters != nil { @@ -40042,9 +41235,9 @@ func awsEc2query_serializeOpDocumentDetachClassicLinkVpcInput(v *DetachClassicLi object := value.Object() _ = object - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.InstanceId != nil { @@ -40064,9 +41257,9 @@ func awsEc2query_serializeOpDocumentDetachInternetGatewayInput(v *DetachInternet object := value.Object() _ = object - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.InternetGatewayId != nil { @@ -40091,14 +41284,14 @@ func awsEc2query_serializeOpDocumentDetachNetworkInterfaceInput(v *DetachNetwork objectKey.String(*v.AttachmentId) } - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } - if v.Force { + if v.Force != nil { objectKey := object.Key("Force") - objectKey.Boolean(v.Force) + objectKey.Boolean(*v.Force) } return nil @@ -40113,14 +41306,14 @@ func awsEc2query_serializeOpDocumentDetachVolumeInput(v *DetachVolumeInput, valu objectKey.String(*v.Device) } - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } - if v.Force { + if v.Force != nil { objectKey := object.Key("Force") - objectKey.Boolean(v.Force) + objectKey.Boolean(*v.Force) } if v.InstanceId != nil { @@ -40140,9 +41333,9 @@ func awsEc2query_serializeOpDocumentDetachVpnGatewayInput(v *DetachVpnGatewayInp object := value.Object() _ = object - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.VpcId != nil { @@ -40162,9 +41355,9 @@ func awsEc2query_serializeOpDocumentDisableEbsEncryptionByDefaultInput(v *Disabl object := value.Object() _ = object - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } return nil @@ -40181,9 +41374,9 @@ func awsEc2query_serializeOpDocumentDisableFastSnapshotRestoresInput(v *DisableF } } - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.SourceSnapshotIds != nil { @@ -40196,13 +41389,42 @@ func awsEc2query_serializeOpDocumentDisableFastSnapshotRestoresInput(v *DisableF return nil } +func awsEc2query_serializeOpDocumentDisableImageDeprecationInput(v *DisableImageDeprecationInput, value query.Value) error { + object := value.Object() + _ = object + + if v.DryRun != nil { + objectKey := object.Key("DryRun") + objectKey.Boolean(*v.DryRun) + } + + if v.ImageId != nil { + objectKey := object.Key("ImageId") + objectKey.String(*v.ImageId) + } + + return nil +} + +func awsEc2query_serializeOpDocumentDisableSerialConsoleAccessInput(v *DisableSerialConsoleAccessInput, value query.Value) error { + object := value.Object() + _ = object + + if v.DryRun != nil { + objectKey := object.Key("DryRun") + objectKey.Boolean(*v.DryRun) + } + + return nil +} + func awsEc2query_serializeOpDocumentDisableTransitGatewayRouteTablePropagationInput(v *DisableTransitGatewayRouteTablePropagationInput, value query.Value) error { object := value.Object() _ = object - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.TransitGatewayAttachmentId != nil { @@ -40222,9 +41444,9 @@ func awsEc2query_serializeOpDocumentDisableVgwRoutePropagationInput(v *DisableVg object := value.Object() _ = object - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.GatewayId != nil { @@ -40256,9 +41478,9 @@ func awsEc2query_serializeOpDocumentDisableVpcClassicLinkInput(v *DisableVpcClas object := value.Object() _ = object - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.VpcId != nil { @@ -40278,9 +41500,9 @@ func awsEc2query_serializeOpDocumentDisassociateAddressInput(v *DisassociateAddr objectKey.String(*v.AssociationId) } - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.PublicIp != nil { @@ -40305,9 +41527,9 @@ func awsEc2query_serializeOpDocumentDisassociateClientVpnTargetNetworkInput(v *D objectKey.String(*v.ClientVpnEndpointId) } - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } return nil @@ -40322,9 +41544,9 @@ func awsEc2query_serializeOpDocumentDisassociateEnclaveCertificateIamRoleInput(v objectKey.String(*v.CertificateArn) } - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.RoleArn != nil { @@ -40356,9 +41578,9 @@ func awsEc2query_serializeOpDocumentDisassociateRouteTableInput(v *DisassociateR objectKey.String(*v.AssociationId) } - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } return nil @@ -40380,9 +41602,9 @@ func awsEc2query_serializeOpDocumentDisassociateTransitGatewayMulticastDomainInp object := value.Object() _ = object - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.SubnetIds != nil { @@ -40409,9 +41631,9 @@ func awsEc2query_serializeOpDocumentDisassociateTransitGatewayRouteTableInput(v object := value.Object() _ = object - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.TransitGatewayAttachmentId != nil { @@ -40427,6 +41649,28 @@ func awsEc2query_serializeOpDocumentDisassociateTransitGatewayRouteTableInput(v return nil } +func awsEc2query_serializeOpDocumentDisassociateTrunkInterfaceInput(v *DisassociateTrunkInterfaceInput, value query.Value) error { + object := value.Object() + _ = object + + if v.AssociationId != nil { + objectKey := object.Key("AssociationId") + objectKey.String(*v.AssociationId) + } + + if v.ClientToken != nil { + objectKey := object.Key("ClientToken") + objectKey.String(*v.ClientToken) + } + + if v.DryRun != nil { + objectKey := object.Key("DryRun") + objectKey.Boolean(*v.DryRun) + } + + return nil +} + func awsEc2query_serializeOpDocumentDisassociateVpcCidrBlockInput(v *DisassociateVpcCidrBlockInput, value query.Value) error { object := value.Object() _ = object @@ -40443,9 +41687,9 @@ func awsEc2query_serializeOpDocumentEnableEbsEncryptionByDefaultInput(v *EnableE object := value.Object() _ = object - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } return nil @@ -40462,9 +41706,9 @@ func awsEc2query_serializeOpDocumentEnableFastSnapshotRestoresInput(v *EnableFas } } - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.SourceSnapshotIds != nil { @@ -40477,13 +41721,47 @@ func awsEc2query_serializeOpDocumentEnableFastSnapshotRestoresInput(v *EnableFas return nil } +func awsEc2query_serializeOpDocumentEnableImageDeprecationInput(v *EnableImageDeprecationInput, value query.Value) error { + object := value.Object() + _ = object + + if v.DeprecateAt != nil { + objectKey := object.Key("DeprecateAt") + objectKey.String(smithytime.FormatDateTime(*v.DeprecateAt)) + } + + if v.DryRun != nil { + objectKey := object.Key("DryRun") + objectKey.Boolean(*v.DryRun) + } + + if v.ImageId != nil { + objectKey := object.Key("ImageId") + objectKey.String(*v.ImageId) + } + + return nil +} + +func awsEc2query_serializeOpDocumentEnableSerialConsoleAccessInput(v *EnableSerialConsoleAccessInput, value query.Value) error { + object := value.Object() + _ = object + + if v.DryRun != nil { + objectKey := object.Key("DryRun") + objectKey.Boolean(*v.DryRun) + } + + return nil +} + func awsEc2query_serializeOpDocumentEnableTransitGatewayRouteTablePropagationInput(v *EnableTransitGatewayRouteTablePropagationInput, value query.Value) error { object := value.Object() _ = object - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.TransitGatewayAttachmentId != nil { @@ -40503,9 +41781,9 @@ func awsEc2query_serializeOpDocumentEnableVgwRoutePropagationInput(v *EnableVgwR object := value.Object() _ = object - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.GatewayId != nil { @@ -40525,9 +41803,9 @@ func awsEc2query_serializeOpDocumentEnableVolumeIOInput(v *EnableVolumeIOInput, object := value.Object() _ = object - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.VolumeId != nil { @@ -40554,9 +41832,9 @@ func awsEc2query_serializeOpDocumentEnableVpcClassicLinkInput(v *EnableVpcClassi object := value.Object() _ = object - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.VpcId != nil { @@ -40576,9 +41854,9 @@ func awsEc2query_serializeOpDocumentExportClientVpnClientCertificateRevocationLi objectKey.String(*v.ClientVpnEndpointId) } - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } return nil @@ -40593,9 +41871,9 @@ func awsEc2query_serializeOpDocumentExportClientVpnClientConfigurationInput(v *E objectKey.String(*v.ClientVpnEndpointId) } - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } return nil @@ -40620,9 +41898,9 @@ func awsEc2query_serializeOpDocumentExportImageInput(v *ExportImageInput, value objectKey.String(string(v.DiskImageFormat)) } - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.ImageId != nil { @@ -40656,9 +41934,9 @@ func awsEc2query_serializeOpDocumentExportTransitGatewayRoutesInput(v *ExportTra object := value.Object() _ = object - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.Filters != nil { @@ -40690,9 +41968,9 @@ func awsEc2query_serializeOpDocumentGetAssociatedEnclaveCertificateIamRolesInput objectKey.String(*v.CertificateArn) } - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } return nil @@ -40702,14 +41980,14 @@ func awsEc2query_serializeOpDocumentGetAssociatedIpv6PoolCidrsInput(v *GetAssoci object := value.Object() _ = object - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } - if v.MaxResults != 0 { + if v.MaxResults != nil { objectKey := object.Key("MaxResults") - objectKey.Integer(v.MaxResults) + objectKey.Integer(*v.MaxResults) } if v.NextToken != nil { @@ -40734,14 +42012,14 @@ func awsEc2query_serializeOpDocumentGetCapacityReservationUsageInput(v *GetCapac objectKey.String(*v.CapacityReservationId) } - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } - if v.MaxResults != 0 { + if v.MaxResults != nil { objectKey := object.Key("MaxResults") - objectKey.Integer(v.MaxResults) + objectKey.Integer(*v.MaxResults) } if v.NextToken != nil { @@ -40756,9 +42034,9 @@ func awsEc2query_serializeOpDocumentGetCoipPoolUsageInput(v *GetCoipPoolUsageInp object := value.Object() _ = object - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.Filters != nil { @@ -40768,9 +42046,9 @@ func awsEc2query_serializeOpDocumentGetCoipPoolUsageInput(v *GetCoipPoolUsageInp } } - if v.MaxResults != 0 { + if v.MaxResults != nil { objectKey := object.Key("MaxResults") - objectKey.Integer(v.MaxResults) + objectKey.Integer(*v.MaxResults) } if v.NextToken != nil { @@ -40790,9 +42068,9 @@ func awsEc2query_serializeOpDocumentGetConsoleOutputInput(v *GetConsoleOutputInp object := value.Object() _ = object - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.InstanceId != nil { @@ -40800,9 +42078,9 @@ func awsEc2query_serializeOpDocumentGetConsoleOutputInput(v *GetConsoleOutputInp objectKey.String(*v.InstanceId) } - if v.Latest { + if v.Latest != nil { objectKey := object.Key("Latest") - objectKey.Boolean(v.Latest) + objectKey.Boolean(*v.Latest) } return nil @@ -40812,9 +42090,9 @@ func awsEc2query_serializeOpDocumentGetConsoleScreenshotInput(v *GetConsoleScree object := value.Object() _ = object - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.InstanceId != nil { @@ -40822,9 +42100,9 @@ func awsEc2query_serializeOpDocumentGetConsoleScreenshotInput(v *GetConsoleScree objectKey.String(*v.InstanceId) } - if v.WakeUp { + if v.WakeUp != nil { objectKey := object.Key("WakeUp") - objectKey.Boolean(v.WakeUp) + objectKey.Boolean(*v.WakeUp) } return nil @@ -40834,9 +42112,9 @@ func awsEc2query_serializeOpDocumentGetDefaultCreditSpecificationInput(v *GetDef object := value.Object() _ = object - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if len(v.InstanceFamily) > 0 { @@ -40851,9 +42129,9 @@ func awsEc2query_serializeOpDocumentGetEbsDefaultKmsKeyIdInput(v *GetEbsDefaultK object := value.Object() _ = object - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } return nil @@ -40863,9 +42141,38 @@ func awsEc2query_serializeOpDocumentGetEbsEncryptionByDefaultInput(v *GetEbsEncr object := value.Object() _ = object - if v.DryRun { + if v.DryRun != nil { + objectKey := object.Key("DryRun") + objectKey.Boolean(*v.DryRun) + } + + return nil +} + +func awsEc2query_serializeOpDocumentGetFlowLogsIntegrationTemplateInput(v *GetFlowLogsIntegrationTemplateInput, value query.Value) error { + object := value.Object() + _ = object + + if v.ConfigDeliveryS3DestinationArn != nil { + objectKey := object.Key("ConfigDeliveryS3DestinationArn") + objectKey.String(*v.ConfigDeliveryS3DestinationArn) + } + + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) + } + + if v.FlowLogId != nil { + objectKey := object.Key("FlowLogId") + objectKey.String(*v.FlowLogId) + } + + if v.IntegrateServices != nil { + objectKey := object.Key("IntegrateService") + if err := awsEc2query_serializeDocumentIntegrateServices(v.IntegrateServices, objectKey); err != nil { + return err + } } return nil @@ -40880,14 +42187,14 @@ func awsEc2query_serializeOpDocumentGetGroupsForCapacityReservationInput(v *GetG objectKey.String(*v.CapacityReservationId) } - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } - if v.MaxResults != 0 { + if v.MaxResults != nil { objectKey := object.Key("MaxResults") - objectKey.Integer(v.MaxResults) + objectKey.Integer(*v.MaxResults) } if v.NextToken != nil { @@ -40921,9 +42228,9 @@ func awsEc2query_serializeOpDocumentGetLaunchTemplateDataInput(v *GetLaunchTempl object := value.Object() _ = object - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.InstanceId != nil { @@ -40938,14 +42245,14 @@ func awsEc2query_serializeOpDocumentGetManagedPrefixListAssociationsInput(v *Get object := value.Object() _ = object - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } - if v.MaxResults != 0 { + if v.MaxResults != nil { objectKey := object.Key("MaxResults") - objectKey.Integer(v.MaxResults) + objectKey.Integer(*v.MaxResults) } if v.NextToken != nil { @@ -40965,14 +42272,14 @@ func awsEc2query_serializeOpDocumentGetManagedPrefixListEntriesInput(v *GetManag object := value.Object() _ = object - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } - if v.MaxResults != 0 { + if v.MaxResults != nil { objectKey := object.Key("MaxResults") - objectKey.Integer(v.MaxResults) + objectKey.Integer(*v.MaxResults) } if v.NextToken != nil { @@ -40985,9 +42292,9 @@ func awsEc2query_serializeOpDocumentGetManagedPrefixListEntriesInput(v *GetManag objectKey.String(*v.PrefixListId) } - if v.TargetVersion != 0 { + if v.TargetVersion != nil { objectKey := object.Key("TargetVersion") - objectKey.Long(v.TargetVersion) + objectKey.Long(*v.TargetVersion) } return nil @@ -40997,9 +42304,9 @@ func awsEc2query_serializeOpDocumentGetPasswordDataInput(v *GetPasswordDataInput object := value.Object() _ = object - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.InstanceId != nil { @@ -41014,9 +42321,9 @@ func awsEc2query_serializeOpDocumentGetReservedInstancesExchangeQuoteInput(v *Ge object := value.Object() _ = object - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.ReservedInstanceIds != nil { @@ -41036,13 +42343,25 @@ func awsEc2query_serializeOpDocumentGetReservedInstancesExchangeQuoteInput(v *Ge return nil } +func awsEc2query_serializeOpDocumentGetSerialConsoleAccessStatusInput(v *GetSerialConsoleAccessStatusInput, value query.Value) error { + object := value.Object() + _ = object + + if v.DryRun != nil { + objectKey := object.Key("DryRun") + objectKey.Boolean(*v.DryRun) + } + + return nil +} + func awsEc2query_serializeOpDocumentGetTransitGatewayAttachmentPropagationsInput(v *GetTransitGatewayAttachmentPropagationsInput, value query.Value) error { object := value.Object() _ = object - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.Filters != nil { @@ -41052,9 +42371,9 @@ func awsEc2query_serializeOpDocumentGetTransitGatewayAttachmentPropagationsInput } } - if v.MaxResults != 0 { + if v.MaxResults != nil { objectKey := object.Key("MaxResults") - objectKey.Integer(v.MaxResults) + objectKey.Integer(*v.MaxResults) } if v.NextToken != nil { @@ -41074,9 +42393,9 @@ func awsEc2query_serializeOpDocumentGetTransitGatewayMulticastDomainAssociations object := value.Object() _ = object - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.Filters != nil { @@ -41086,9 +42405,9 @@ func awsEc2query_serializeOpDocumentGetTransitGatewayMulticastDomainAssociations } } - if v.MaxResults != 0 { + if v.MaxResults != nil { objectKey := object.Key("MaxResults") - objectKey.Integer(v.MaxResults) + objectKey.Integer(*v.MaxResults) } if v.NextToken != nil { @@ -41108,9 +42427,9 @@ func awsEc2query_serializeOpDocumentGetTransitGatewayPrefixListReferencesInput(v object := value.Object() _ = object - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.Filters != nil { @@ -41120,9 +42439,9 @@ func awsEc2query_serializeOpDocumentGetTransitGatewayPrefixListReferencesInput(v } } - if v.MaxResults != 0 { + if v.MaxResults != nil { objectKey := object.Key("MaxResults") - objectKey.Integer(v.MaxResults) + objectKey.Integer(*v.MaxResults) } if v.NextToken != nil { @@ -41142,9 +42461,9 @@ func awsEc2query_serializeOpDocumentGetTransitGatewayRouteTableAssociationsInput object := value.Object() _ = object - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.Filters != nil { @@ -41154,9 +42473,9 @@ func awsEc2query_serializeOpDocumentGetTransitGatewayRouteTableAssociationsInput } } - if v.MaxResults != 0 { + if v.MaxResults != nil { objectKey := object.Key("MaxResults") - objectKey.Integer(v.MaxResults) + objectKey.Integer(*v.MaxResults) } if v.NextToken != nil { @@ -41176,9 +42495,9 @@ func awsEc2query_serializeOpDocumentGetTransitGatewayRouteTablePropagationsInput object := value.Object() _ = object - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.Filters != nil { @@ -41188,9 +42507,9 @@ func awsEc2query_serializeOpDocumentGetTransitGatewayRouteTablePropagationsInput } } - if v.MaxResults != 0 { + if v.MaxResults != nil { objectKey := object.Key("MaxResults") - objectKey.Integer(v.MaxResults) + objectKey.Integer(*v.MaxResults) } if v.NextToken != nil { @@ -41220,9 +42539,9 @@ func awsEc2query_serializeOpDocumentImportClientVpnClientCertificateRevocationLi objectKey.String(*v.ClientVpnEndpointId) } - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } return nil @@ -41261,14 +42580,14 @@ func awsEc2query_serializeOpDocumentImportImageInput(v *ImportImageInput, value } } - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } - if v.Encrypted { + if v.Encrypted != nil { objectKey := object.Key("Encrypted") - objectKey.Boolean(v.Encrypted) + objectKey.Boolean(*v.Encrypted) } if v.Hypervisor != nil { @@ -41329,9 +42648,9 @@ func awsEc2query_serializeOpDocumentImportInstanceInput(v *ImportInstanceInput, } } - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.LaunchSpecification != nil { @@ -41353,9 +42672,9 @@ func awsEc2query_serializeOpDocumentImportKeyPairInput(v *ImportKeyPairInput, va object := value.Object() _ = object - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.KeyName != nil { @@ -41406,14 +42725,14 @@ func awsEc2query_serializeOpDocumentImportSnapshotInput(v *ImportSnapshotInput, } } - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } - if v.Encrypted { + if v.Encrypted != nil { objectKey := object.Key("Encrypted") - objectKey.Boolean(v.Encrypted) + objectKey.Boolean(*v.Encrypted) } if v.KmsKeyId != nil { @@ -41450,9 +42769,9 @@ func awsEc2query_serializeOpDocumentImportVolumeInput(v *ImportVolumeInput, valu objectKey.String(*v.Description) } - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.Image != nil { @@ -41486,9 +42805,9 @@ func awsEc2query_serializeOpDocumentModifyAddressAttributeInput(v *ModifyAddress objectKey.String(*v.DomainName) } - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } return nil @@ -41498,9 +42817,9 @@ func awsEc2query_serializeOpDocumentModifyAvailabilityZoneGroupInput(v *ModifyAv object := value.Object() _ = object - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.GroupName != nil { @@ -41520,14 +42839,19 @@ func awsEc2query_serializeOpDocumentModifyCapacityReservationInput(v *ModifyCapa object := value.Object() _ = object + if v.Accept != nil { + objectKey := object.Key("Accept") + objectKey.Boolean(*v.Accept) + } + if v.CapacityReservationId != nil { objectKey := object.Key("CapacityReservationId") objectKey.String(*v.CapacityReservationId) } - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.EndDate != nil { @@ -41540,9 +42864,9 @@ func awsEc2query_serializeOpDocumentModifyCapacityReservationInput(v *ModifyCapa objectKey.String(string(v.EndDateType)) } - if v.InstanceCount != 0 { + if v.InstanceCount != nil { objectKey := object.Key("InstanceCount") - objectKey.Integer(v.InstanceCount) + objectKey.Integer(*v.InstanceCount) } return nil @@ -41583,9 +42907,9 @@ func awsEc2query_serializeOpDocumentModifyClientVpnEndpointInput(v *ModifyClient } } - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.SecurityGroupIds != nil { @@ -41605,9 +42929,9 @@ func awsEc2query_serializeOpDocumentModifyClientVpnEndpointInput(v *ModifyClient objectKey.String(*v.ServerCertificateArn) } - if v.SplitTunnel { + if v.SplitTunnel != nil { objectKey := object.Key("SplitTunnel") - objectKey.Boolean(v.SplitTunnel) + objectKey.Boolean(*v.SplitTunnel) } if v.VpcId != nil { @@ -41615,9 +42939,9 @@ func awsEc2query_serializeOpDocumentModifyClientVpnEndpointInput(v *ModifyClient objectKey.String(*v.VpcId) } - if v.VpnPort != 0 { + if v.VpnPort != nil { objectKey := object.Key("VpnPort") - objectKey.Integer(v.VpnPort) + objectKey.Integer(*v.VpnPort) } return nil @@ -41632,9 +42956,9 @@ func awsEc2query_serializeOpDocumentModifyDefaultCreditSpecificationInput(v *Mod objectKey.String(*v.CpuCredits) } - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if len(v.InstanceFamily) > 0 { @@ -41649,9 +42973,9 @@ func awsEc2query_serializeOpDocumentModifyEbsDefaultKmsKeyIdInput(v *ModifyEbsDe object := value.Object() _ = object - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.KmsKeyId != nil { @@ -41666,9 +42990,14 @@ func awsEc2query_serializeOpDocumentModifyFleetInput(v *ModifyFleetInput, value object := value.Object() _ = object - if v.DryRun { + if v.Context != nil { + objectKey := object.Key("Context") + objectKey.String(*v.Context) + } + + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if len(v.ExcessCapacityTerminationPolicy) > 0 { @@ -41712,9 +43041,9 @@ func awsEc2query_serializeOpDocumentModifyFpgaImageAttributeInput(v *ModifyFpgaI objectKey.String(*v.Description) } - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.FpgaImageId != nil { @@ -41811,9 +43140,9 @@ func awsEc2query_serializeOpDocumentModifyIdentityIdFormatInput(v *ModifyIdentit objectKey.String(*v.Resource) } - if v.UseLongIds { + if v.UseLongIds != nil { objectKey := object.Key("UseLongIds") - objectKey.Boolean(v.UseLongIds) + objectKey.Boolean(*v.UseLongIds) } return nil @@ -41828,9 +43157,9 @@ func awsEc2query_serializeOpDocumentModifyIdFormatInput(v *ModifyIdFormatInput, objectKey.String(*v.Resource) } - if v.UseLongIds { + if v.UseLongIds != nil { objectKey := object.Key("UseLongIds") - objectKey.Boolean(v.UseLongIds) + objectKey.Boolean(*v.UseLongIds) } return nil @@ -41852,9 +43181,9 @@ func awsEc2query_serializeOpDocumentModifyImageAttributeInput(v *ModifyImageAttr } } - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.ImageId != nil { @@ -41926,9 +43255,9 @@ func awsEc2query_serializeOpDocumentModifyInstanceAttributeInput(v *ModifyInstan } } - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.EbsOptimized != nil { @@ -42025,9 +43354,9 @@ func awsEc2query_serializeOpDocumentModifyInstanceCapacityReservationAttributesI } } - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.InstanceId != nil { @@ -42047,9 +43376,9 @@ func awsEc2query_serializeOpDocumentModifyInstanceCreditSpecificationInput(v *Mo objectKey.String(*v.ClientToken) } - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.InstanceCreditSpecifications != nil { @@ -42066,9 +43395,9 @@ func awsEc2query_serializeOpDocumentModifyInstanceEventStartTimeInput(v *ModifyI object := value.Object() _ = object - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.InstanceEventId != nil { @@ -42093,9 +43422,9 @@ func awsEc2query_serializeOpDocumentModifyInstanceMetadataOptionsInput(v *Modify object := value.Object() _ = object - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if len(v.HttpEndpoint) > 0 { @@ -42103,9 +43432,9 @@ func awsEc2query_serializeOpDocumentModifyInstanceMetadataOptionsInput(v *Modify objectKey.String(string(v.HttpEndpoint)) } - if v.HttpPutResponseHopLimit != 0 { + if v.HttpPutResponseHopLimit != nil { objectKey := object.Key("HttpPutResponseHopLimit") - objectKey.Integer(v.HttpPutResponseHopLimit) + objectKey.Integer(*v.HttpPutResponseHopLimit) } if len(v.HttpTokens) > 0 { @@ -42150,9 +43479,9 @@ func awsEc2query_serializeOpDocumentModifyInstancePlacementInput(v *ModifyInstan objectKey.String(*v.InstanceId) } - if v.PartitionNumber != 0 { + if v.PartitionNumber != nil { objectKey := object.Key("PartitionNumber") - objectKey.Integer(v.PartitionNumber) + objectKey.Integer(*v.PartitionNumber) } if len(v.Tenancy) > 0 { @@ -42177,9 +43506,9 @@ func awsEc2query_serializeOpDocumentModifyLaunchTemplateInput(v *ModifyLaunchTem objectKey.String(*v.DefaultVersion) } - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.LaunchTemplateId != nil { @@ -42206,14 +43535,14 @@ func awsEc2query_serializeOpDocumentModifyManagedPrefixListInput(v *ModifyManage } } - if v.CurrentVersion != 0 { + if v.CurrentVersion != nil { objectKey := object.Key("CurrentVersion") - objectKey.Long(v.CurrentVersion) + objectKey.Long(*v.CurrentVersion) } - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.PrefixListId != nil { @@ -42254,9 +43583,9 @@ func awsEc2query_serializeOpDocumentModifyNetworkInterfaceAttributeInput(v *Modi } } - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.Groups != nil { @@ -42323,9 +43652,9 @@ func awsEc2query_serializeOpDocumentModifySnapshotAttributeInput(v *ModifySnapsh } } - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.GroupNames != nil { @@ -42359,6 +43688,11 @@ func awsEc2query_serializeOpDocumentModifySpotFleetRequestInput(v *ModifySpotFle object := value.Object() _ = object + if v.Context != nil { + objectKey := object.Key("Context") + objectKey.String(*v.Context) + } + if len(v.ExcessCapacityTerminationPolicy) > 0 { objectKey := object.Key("ExcessCapacityTerminationPolicy") objectKey.String(string(v.ExcessCapacityTerminationPolicy)) @@ -42371,9 +43705,9 @@ func awsEc2query_serializeOpDocumentModifySpotFleetRequestInput(v *ModifySpotFle } } - if v.OnDemandTargetCapacity != 0 { + if v.OnDemandTargetCapacity != nil { objectKey := object.Key("OnDemandTargetCapacity") - objectKey.Integer(v.OnDemandTargetCapacity) + objectKey.Integer(*v.OnDemandTargetCapacity) } if v.SpotFleetRequestId != nil { @@ -42381,9 +43715,9 @@ func awsEc2query_serializeOpDocumentModifySpotFleetRequestInput(v *ModifySpotFle objectKey.String(*v.SpotFleetRequestId) } - if v.TargetCapacity != 0 { + if v.TargetCapacity != nil { objectKey := object.Key("TargetCapacity") - objectKey.Integer(v.TargetCapacity) + objectKey.Integer(*v.TargetCapacity) } return nil @@ -42438,9 +43772,9 @@ func awsEc2query_serializeOpDocumentModifyTrafficMirrorFilterNetworkServicesInpu } } - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.RemoveNetworkServices != nil { @@ -42479,14 +43813,14 @@ func awsEc2query_serializeOpDocumentModifyTrafficMirrorFilterRuleInput(v *Modify } } - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } - if v.Protocol != 0 { + if v.Protocol != nil { objectKey := object.Key("Protocol") - objectKey.Integer(v.Protocol) + objectKey.Integer(*v.Protocol) } if v.RemoveFields != nil { @@ -42501,9 +43835,9 @@ func awsEc2query_serializeOpDocumentModifyTrafficMirrorFilterRuleInput(v *Modify objectKey.String(string(v.RuleAction)) } - if v.RuleNumber != 0 { + if v.RuleNumber != nil { objectKey := object.Key("RuleNumber") - objectKey.Integer(v.RuleNumber) + objectKey.Integer(*v.RuleNumber) } if v.SourceCidrBlock != nil { @@ -42540,14 +43874,14 @@ func awsEc2query_serializeOpDocumentModifyTrafficMirrorSessionInput(v *ModifyTra objectKey.String(*v.Description) } - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } - if v.PacketLength != 0 { + if v.PacketLength != nil { objectKey := object.Key("PacketLength") - objectKey.Integer(v.PacketLength) + objectKey.Integer(*v.PacketLength) } if v.RemoveFields != nil { @@ -42557,9 +43891,9 @@ func awsEc2query_serializeOpDocumentModifyTrafficMirrorSessionInput(v *ModifyTra } } - if v.SessionNumber != 0 { + if v.SessionNumber != nil { objectKey := object.Key("SessionNumber") - objectKey.Integer(v.SessionNumber) + objectKey.Integer(*v.SessionNumber) } if v.TrafficMirrorFilterId != nil { @@ -42577,9 +43911,9 @@ func awsEc2query_serializeOpDocumentModifyTrafficMirrorSessionInput(v *ModifyTra objectKey.String(*v.TrafficMirrorTargetId) } - if v.VirtualNetworkId != 0 { + if v.VirtualNetworkId != nil { objectKey := object.Key("VirtualNetworkId") - objectKey.Integer(v.VirtualNetworkId) + objectKey.Integer(*v.VirtualNetworkId) } return nil @@ -42594,9 +43928,9 @@ func awsEc2query_serializeOpDocumentModifyTransitGatewayInput(v *ModifyTransitGa objectKey.String(*v.Description) } - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.Options != nil { @@ -42618,14 +43952,14 @@ func awsEc2query_serializeOpDocumentModifyTransitGatewayPrefixListReferenceInput object := value.Object() _ = object - if v.Blackhole { + if v.Blackhole != nil { objectKey := object.Key("Blackhole") - objectKey.Boolean(v.Blackhole) + objectKey.Boolean(*v.Blackhole) } - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.PrefixListId != nil { @@ -42657,9 +43991,9 @@ func awsEc2query_serializeOpDocumentModifyTransitGatewayVpcAttachmentInput(v *Mo } } - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.Options != nil { @@ -42695,9 +44029,9 @@ func awsEc2query_serializeOpDocumentModifyVolumeAttributeInput(v *ModifyVolumeAt } } - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.VolumeId != nil { @@ -42712,29 +44046,29 @@ func awsEc2query_serializeOpDocumentModifyVolumeInput(v *ModifyVolumeInput, valu object := value.Object() _ = object - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } - if v.Iops != 0 { + if v.Iops != nil { objectKey := object.Key("Iops") - objectKey.Integer(v.Iops) + objectKey.Integer(*v.Iops) } - if v.MultiAttachEnabled { + if v.MultiAttachEnabled != nil { objectKey := object.Key("MultiAttachEnabled") - objectKey.Boolean(v.MultiAttachEnabled) + objectKey.Boolean(*v.MultiAttachEnabled) } - if v.Size != 0 { + if v.Size != nil { objectKey := object.Key("Size") - objectKey.Integer(v.Size) + objectKey.Integer(*v.Size) } - if v.Throughput != 0 { + if v.Throughput != nil { objectKey := object.Key("Throughput") - objectKey.Integer(v.Throughput) + objectKey.Integer(*v.Throughput) } if v.VolumeId != nil { @@ -42797,9 +44131,9 @@ func awsEc2query_serializeOpDocumentModifyVpcEndpointConnectionNotificationInput objectKey.String(*v.ConnectionNotificationId) } - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } return nil @@ -42830,9 +44164,9 @@ func awsEc2query_serializeOpDocumentModifyVpcEndpointInput(v *ModifyVpcEndpointI } } - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.PolicyDocument != nil { @@ -42840,9 +44174,9 @@ func awsEc2query_serializeOpDocumentModifyVpcEndpointInput(v *ModifyVpcEndpointI objectKey.String(*v.PolicyDocument) } - if v.PrivateDnsEnabled { + if v.PrivateDnsEnabled != nil { objectKey := object.Key("PrivateDnsEnabled") - objectKey.Boolean(v.PrivateDnsEnabled) + objectKey.Boolean(*v.PrivateDnsEnabled) } if v.RemoveRouteTableIds != nil { @@ -42866,9 +44200,9 @@ func awsEc2query_serializeOpDocumentModifyVpcEndpointInput(v *ModifyVpcEndpointI } } - if v.ResetPolicy { + if v.ResetPolicy != nil { objectKey := object.Key("ResetPolicy") - objectKey.Boolean(v.ResetPolicy) + objectKey.Boolean(*v.ResetPolicy) } if v.VpcEndpointId != nil { @@ -42883,9 +44217,9 @@ func awsEc2query_serializeOpDocumentModifyVpcEndpointServiceConfigurationInput(v object := value.Object() _ = object - if v.AcceptanceRequired { + if v.AcceptanceRequired != nil { objectKey := object.Key("AcceptanceRequired") - objectKey.Boolean(v.AcceptanceRequired) + objectKey.Boolean(*v.AcceptanceRequired) } if v.AddGatewayLoadBalancerArns != nil { @@ -42902,9 +44236,9 @@ func awsEc2query_serializeOpDocumentModifyVpcEndpointServiceConfigurationInput(v } } - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.PrivateDnsName != nil { @@ -42926,9 +44260,9 @@ func awsEc2query_serializeOpDocumentModifyVpcEndpointServiceConfigurationInput(v } } - if v.RemovePrivateDnsName { + if v.RemovePrivateDnsName != nil { objectKey := object.Key("RemovePrivateDnsName") - objectKey.Boolean(v.RemovePrivateDnsName) + objectKey.Boolean(*v.RemovePrivateDnsName) } if v.ServiceId != nil { @@ -42950,9 +44284,9 @@ func awsEc2query_serializeOpDocumentModifyVpcEndpointServicePermissionsInput(v * } } - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.RemoveAllowedPrincipals != nil { @@ -42981,9 +44315,9 @@ func awsEc2query_serializeOpDocumentModifyVpcPeeringConnectionOptionsInput(v *Mo } } - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.RequesterPeeringConnectionOptions != nil { @@ -43005,9 +44339,9 @@ func awsEc2query_serializeOpDocumentModifyVpcTenancyInput(v *ModifyVpcTenancyInp object := value.Object() _ = object - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if len(v.InstanceTenancy) > 0 { @@ -43032,9 +44366,9 @@ func awsEc2query_serializeOpDocumentModifyVpnConnectionInput(v *ModifyVpnConnect objectKey.String(*v.CustomerGatewayId) } - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.TransitGatewayId != nil { @@ -43059,9 +44393,9 @@ func awsEc2query_serializeOpDocumentModifyVpnConnectionOptionsInput(v *ModifyVpn object := value.Object() _ = object - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.LocalIpv4NetworkCidr != nil { @@ -43096,9 +44430,9 @@ func awsEc2query_serializeOpDocumentModifyVpnTunnelCertificateInput(v *ModifyVpn object := value.Object() _ = object - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.VpnConnectionId != nil { @@ -43118,9 +44452,9 @@ func awsEc2query_serializeOpDocumentModifyVpnTunnelOptionsInput(v *ModifyVpnTunn object := value.Object() _ = object - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.TunnelOptions != nil { @@ -43147,9 +44481,9 @@ func awsEc2query_serializeOpDocumentMonitorInstancesInput(v *MonitorInstancesInp object := value.Object() _ = object - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.InstanceIds != nil { @@ -43166,9 +44500,9 @@ func awsEc2query_serializeOpDocumentMoveAddressToVpcInput(v *MoveAddressToVpcInp object := value.Object() _ = object - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.PublicIp != nil { @@ -43200,9 +44534,14 @@ func awsEc2query_serializeOpDocumentProvisionByoipCidrInput(v *ProvisionByoipCid objectKey.String(*v.Description) } - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) + } + + if v.MultiRegion != nil { + objectKey := object.Key("MultiRegion") + objectKey.Boolean(*v.MultiRegion) } if v.PoolTagSpecifications != nil { @@ -43212,9 +44551,9 @@ func awsEc2query_serializeOpDocumentProvisionByoipCidrInput(v *ProvisionByoipCid } } - if v.PubliclyAdvertisable { + if v.PubliclyAdvertisable != nil { objectKey := object.Key("PubliclyAdvertisable") - objectKey.Boolean(v.PubliclyAdvertisable) + objectKey.Boolean(*v.PubliclyAdvertisable) } return nil @@ -43265,14 +44604,14 @@ func awsEc2query_serializeOpDocumentPurchaseReservedInstancesOfferingInput(v *Pu object := value.Object() _ = object - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } - if v.InstanceCount != 0 { + if v.InstanceCount != nil { objectKey := object.Key("InstanceCount") - objectKey.Integer(v.InstanceCount) + objectKey.Integer(*v.InstanceCount) } if v.LimitPrice != nil { @@ -43304,9 +44643,9 @@ func awsEc2query_serializeOpDocumentPurchaseScheduledInstancesInput(v *PurchaseS objectKey.String(*v.ClientToken) } - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.PurchaseRequests != nil { @@ -43323,9 +44662,9 @@ func awsEc2query_serializeOpDocumentRebootInstancesInput(v *RebootInstancesInput object := value.Object() _ = object - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.InstanceIds != nil { @@ -43371,14 +44710,14 @@ func awsEc2query_serializeOpDocumentRegisterImageInput(v *RegisterImageInput, va objectKey.String(*v.Description) } - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } - if v.EnaSupport { + if v.EnaSupport != nil { objectKey := object.Key("EnaSupport") - objectKey.Boolean(v.EnaSupport) + objectKey.Boolean(*v.EnaSupport) } if v.ImageLocation != nil { @@ -43423,9 +44762,9 @@ func awsEc2query_serializeOpDocumentRegisterInstanceEventNotificationAttributesI object := value.Object() _ = object - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.InstanceTagAttribute != nil { @@ -43442,9 +44781,9 @@ func awsEc2query_serializeOpDocumentRegisterTransitGatewayMulticastGroupMembersI object := value.Object() _ = object - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.GroupIpAddress != nil { @@ -43471,9 +44810,9 @@ func awsEc2query_serializeOpDocumentRegisterTransitGatewayMulticastGroupSourcesI object := value.Object() _ = object - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.GroupIpAddress != nil { @@ -43500,9 +44839,9 @@ func awsEc2query_serializeOpDocumentRejectTransitGatewayMulticastDomainAssociati object := value.Object() _ = object - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.SubnetIds != nil { @@ -43529,9 +44868,9 @@ func awsEc2query_serializeOpDocumentRejectTransitGatewayPeeringAttachmentInput(v object := value.Object() _ = object - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.TransitGatewayAttachmentId != nil { @@ -43546,9 +44885,9 @@ func awsEc2query_serializeOpDocumentRejectTransitGatewayVpcAttachmentInput(v *Re object := value.Object() _ = object - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.TransitGatewayAttachmentId != nil { @@ -43563,9 +44902,9 @@ func awsEc2query_serializeOpDocumentRejectVpcEndpointConnectionsInput(v *RejectV object := value.Object() _ = object - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.ServiceId != nil { @@ -43587,9 +44926,9 @@ func awsEc2query_serializeOpDocumentRejectVpcPeeringConnectionInput(v *RejectVpc object := value.Object() _ = object - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.VpcPeeringConnectionId != nil { @@ -43609,9 +44948,9 @@ func awsEc2query_serializeOpDocumentReleaseAddressInput(v *ReleaseAddressInput, objectKey.String(*v.AllocationId) } - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.NetworkBorderGroup != nil { @@ -43669,9 +45008,9 @@ func awsEc2query_serializeOpDocumentReplaceNetworkAclAssociationInput(v *Replace objectKey.String(*v.AssociationId) } - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.NetworkAclId != nil { @@ -43691,14 +45030,14 @@ func awsEc2query_serializeOpDocumentReplaceNetworkAclEntryInput(v *ReplaceNetwor objectKey.String(*v.CidrBlock) } - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } - if v.Egress { + if v.Egress != nil { objectKey := object.Key("Egress") - objectKey.Boolean(v.Egress) + objectKey.Boolean(*v.Egress) } if v.IcmpTypeCode != nil { @@ -43735,9 +45074,9 @@ func awsEc2query_serializeOpDocumentReplaceNetworkAclEntryInput(v *ReplaceNetwor objectKey.String(string(v.RuleAction)) } - if v.RuleNumber != 0 { + if v.RuleNumber != nil { objectKey := object.Key("RuleNumber") - objectKey.Integer(v.RuleNumber) + objectKey.Integer(*v.RuleNumber) } return nil @@ -43767,9 +45106,9 @@ func awsEc2query_serializeOpDocumentReplaceRouteInput(v *ReplaceRouteInput, valu objectKey.String(*v.DestinationPrefixListId) } - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.EgressOnlyInternetGatewayId != nil { @@ -43792,9 +45131,9 @@ func awsEc2query_serializeOpDocumentReplaceRouteInput(v *ReplaceRouteInput, valu objectKey.String(*v.LocalGatewayId) } - if v.LocalTarget { + if v.LocalTarget != nil { objectKey := object.Key("LocalTarget") - objectKey.Boolean(v.LocalTarget) + objectKey.Boolean(*v.LocalTarget) } if v.NatGatewayId != nil { @@ -43839,9 +45178,9 @@ func awsEc2query_serializeOpDocumentReplaceRouteTableAssociationInput(v *Replace objectKey.String(*v.AssociationId) } - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.RouteTableId != nil { @@ -43856,9 +45195,9 @@ func awsEc2query_serializeOpDocumentReplaceTransitGatewayRouteInput(v *ReplaceTr object := value.Object() _ = object - if v.Blackhole { + if v.Blackhole != nil { objectKey := object.Key("Blackhole") - objectKey.Boolean(v.Blackhole) + objectKey.Boolean(*v.Blackhole) } if v.DestinationCidrBlock != nil { @@ -43866,9 +45205,9 @@ func awsEc2query_serializeOpDocumentReplaceTransitGatewayRouteInput(v *ReplaceTr objectKey.String(*v.DestinationCidrBlock) } - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.TransitGatewayAttachmentId != nil { @@ -43893,9 +45232,9 @@ func awsEc2query_serializeOpDocumentReportInstanceStatusInput(v *ReportInstanceS objectKey.String(*v.Description) } - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.EndTime != nil { @@ -43934,9 +45273,9 @@ func awsEc2query_serializeOpDocumentRequestSpotFleetInput(v *RequestSpotFleetInp object := value.Object() _ = object - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.SpotFleetRequestConfig != nil { @@ -43958,9 +45297,9 @@ func awsEc2query_serializeOpDocumentRequestSpotInstancesInput(v *RequestSpotInst objectKey.String(*v.AvailabilityZoneGroup) } - if v.BlockDurationMinutes != 0 { + if v.BlockDurationMinutes != nil { objectKey := object.Key("BlockDurationMinutes") - objectKey.Integer(v.BlockDurationMinutes) + objectKey.Integer(*v.BlockDurationMinutes) } if v.ClientToken != nil { @@ -43968,14 +45307,14 @@ func awsEc2query_serializeOpDocumentRequestSpotInstancesInput(v *RequestSpotInst objectKey.String(*v.ClientToken) } - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } - if v.InstanceCount != 0 { + if v.InstanceCount != nil { objectKey := object.Key("InstanceCount") - objectKey.Integer(v.InstanceCount) + objectKey.Integer(*v.InstanceCount) } if len(v.InstanceInterruptionBehavior) > 0 { @@ -44039,9 +45378,9 @@ func awsEc2query_serializeOpDocumentResetAddressAttributeInput(v *ResetAddressAt objectKey.String(string(v.Attribute)) } - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } return nil @@ -44051,9 +45390,9 @@ func awsEc2query_serializeOpDocumentResetEbsDefaultKmsKeyIdInput(v *ResetEbsDefa object := value.Object() _ = object - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } return nil @@ -44068,9 +45407,9 @@ func awsEc2query_serializeOpDocumentResetFpgaImageAttributeInput(v *ResetFpgaIma objectKey.String(string(v.Attribute)) } - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.FpgaImageId != nil { @@ -44090,9 +45429,9 @@ func awsEc2query_serializeOpDocumentResetImageAttributeInput(v *ResetImageAttrib objectKey.String(string(v.Attribute)) } - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.ImageId != nil { @@ -44112,9 +45451,9 @@ func awsEc2query_serializeOpDocumentResetInstanceAttributeInput(v *ResetInstance objectKey.String(string(v.Attribute)) } - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.InstanceId != nil { @@ -44129,9 +45468,9 @@ func awsEc2query_serializeOpDocumentResetNetworkInterfaceAttributeInput(v *Reset object := value.Object() _ = object - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.NetworkInterfaceId != nil { @@ -44156,9 +45495,9 @@ func awsEc2query_serializeOpDocumentResetSnapshotAttributeInput(v *ResetSnapshot objectKey.String(string(v.Attribute)) } - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.SnapshotId != nil { @@ -44173,9 +45512,9 @@ func awsEc2query_serializeOpDocumentRestoreAddressToClassicInput(v *RestoreAddre object := value.Object() _ = object - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.PublicIp != nil { @@ -44190,14 +45529,14 @@ func awsEc2query_serializeOpDocumentRestoreManagedPrefixListVersionInput(v *Rest object := value.Object() _ = object - if v.CurrentVersion != 0 { + if v.CurrentVersion != nil { objectKey := object.Key("CurrentVersion") - objectKey.Long(v.CurrentVersion) + objectKey.Long(*v.CurrentVersion) } - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.PrefixListId != nil { @@ -44205,9 +45544,9 @@ func awsEc2query_serializeOpDocumentRestoreManagedPrefixListVersionInput(v *Rest objectKey.String(*v.PrefixListId) } - if v.PreviousVersion != 0 { + if v.PreviousVersion != nil { objectKey := object.Key("PreviousVersion") - objectKey.Long(v.PreviousVersion) + objectKey.Long(*v.PreviousVersion) } return nil @@ -44227,14 +45566,14 @@ func awsEc2query_serializeOpDocumentRevokeClientVpnIngressInput(v *RevokeClientV objectKey.String(*v.ClientVpnEndpointId) } - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } - if v.RevokeAllGroups { + if v.RevokeAllGroups != nil { objectKey := object.Key("RevokeAllGroups") - objectKey.Boolean(v.RevokeAllGroups) + objectKey.Boolean(*v.RevokeAllGroups) } if v.TargetNetworkCidr != nil { @@ -44254,14 +45593,14 @@ func awsEc2query_serializeOpDocumentRevokeSecurityGroupEgressInput(v *RevokeSecu objectKey.String(*v.CidrIp) } - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } - if v.FromPort != 0 { + if v.FromPort != nil { objectKey := object.Key("FromPort") - objectKey.Integer(v.FromPort) + objectKey.Integer(*v.FromPort) } if v.GroupId != nil { @@ -44291,9 +45630,9 @@ func awsEc2query_serializeOpDocumentRevokeSecurityGroupEgressInput(v *RevokeSecu objectKey.String(*v.SourceSecurityGroupOwnerId) } - if v.ToPort != 0 { + if v.ToPort != nil { objectKey := object.Key("ToPort") - objectKey.Integer(v.ToPort) + objectKey.Integer(*v.ToPort) } return nil @@ -44308,14 +45647,14 @@ func awsEc2query_serializeOpDocumentRevokeSecurityGroupIngressInput(v *RevokeSec objectKey.String(*v.CidrIp) } - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } - if v.FromPort != 0 { + if v.FromPort != nil { objectKey := object.Key("FromPort") - objectKey.Integer(v.FromPort) + objectKey.Integer(*v.FromPort) } if v.GroupId != nil { @@ -44350,9 +45689,9 @@ func awsEc2query_serializeOpDocumentRevokeSecurityGroupIngressInput(v *RevokeSec objectKey.String(*v.SourceSecurityGroupOwnerId) } - if v.ToPort != 0 { + if v.ToPort != nil { objectKey := object.Key("ToPort") - objectKey.Integer(v.ToPort) + objectKey.Integer(*v.ToPort) } return nil @@ -44400,19 +45739,19 @@ func awsEc2query_serializeOpDocumentRunInstancesInput(v *RunInstancesInput, valu } } - if v.DisableApiTermination { + if v.DisableApiTermination != nil { objectKey := object.Key("DisableApiTermination") - objectKey.Boolean(v.DisableApiTermination) + objectKey.Boolean(*v.DisableApiTermination) } - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } - if v.EbsOptimized { + if v.EbsOptimized != nil { objectKey := object.Key("EbsOptimized") - objectKey.Boolean(v.EbsOptimized) + objectKey.Boolean(*v.EbsOptimized) } if v.ElasticGpuSpecification != nil { @@ -44472,9 +45811,9 @@ func awsEc2query_serializeOpDocumentRunInstancesInput(v *RunInstancesInput, valu objectKey.String(string(v.InstanceType)) } - if v.Ipv6AddressCount != 0 { + if v.Ipv6AddressCount != nil { objectKey := object.Key("Ipv6AddressCount") - objectKey.Integer(v.Ipv6AddressCount) + objectKey.Integer(*v.Ipv6AddressCount) } if v.Ipv6Addresses != nil { @@ -44508,9 +45847,9 @@ func awsEc2query_serializeOpDocumentRunInstancesInput(v *RunInstancesInput, valu } } - if v.MaxCount != 0 { + if v.MaxCount != nil { objectKey := object.Key("MaxCount") - objectKey.Integer(v.MaxCount) + objectKey.Integer(*v.MaxCount) } if v.MetadataOptions != nil { @@ -44520,9 +45859,9 @@ func awsEc2query_serializeOpDocumentRunInstancesInput(v *RunInstancesInput, valu } } - if v.MinCount != 0 { + if v.MinCount != nil { objectKey := object.Key("MinCount") - objectKey.Integer(v.MinCount) + objectKey.Integer(*v.MinCount) } if v.Monitoring != nil { @@ -44599,14 +45938,14 @@ func awsEc2query_serializeOpDocumentRunScheduledInstancesInput(v *RunScheduledIn objectKey.String(*v.ClientToken) } - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } - if v.InstanceCount != 0 { + if v.InstanceCount != nil { objectKey := object.Key("InstanceCount") - objectKey.Integer(v.InstanceCount) + objectKey.Integer(*v.InstanceCount) } if v.LaunchSpecification != nil { @@ -44628,9 +45967,9 @@ func awsEc2query_serializeOpDocumentSearchLocalGatewayRoutesInput(v *SearchLocal object := value.Object() _ = object - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.Filters != nil { @@ -44662,9 +46001,9 @@ func awsEc2query_serializeOpDocumentSearchTransitGatewayMulticastGroupsInput(v * object := value.Object() _ = object - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.Filters != nil { @@ -44674,9 +46013,9 @@ func awsEc2query_serializeOpDocumentSearchTransitGatewayMulticastGroupsInput(v * } } - if v.MaxResults != 0 { + if v.MaxResults != nil { objectKey := object.Key("MaxResults") - objectKey.Integer(v.MaxResults) + objectKey.Integer(*v.MaxResults) } if v.NextToken != nil { @@ -44696,9 +46035,9 @@ func awsEc2query_serializeOpDocumentSearchTransitGatewayRoutesInput(v *SearchTra object := value.Object() _ = object - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.Filters != nil { @@ -44708,9 +46047,9 @@ func awsEc2query_serializeOpDocumentSearchTransitGatewayRoutesInput(v *SearchTra } } - if v.MaxResults != 0 { + if v.MaxResults != nil { objectKey := object.Key("MaxResults") - objectKey.Integer(v.MaxResults) + objectKey.Integer(*v.MaxResults) } if v.TransitGatewayRouteTableId != nil { @@ -44725,9 +46064,9 @@ func awsEc2query_serializeOpDocumentSendDiagnosticInterruptInput(v *SendDiagnost object := value.Object() _ = object - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.InstanceId != nil { @@ -44747,9 +46086,9 @@ func awsEc2query_serializeOpDocumentStartInstancesInput(v *StartInstancesInput, objectKey.String(*v.AdditionalInfo) } - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.InstanceIds != nil { @@ -44771,9 +46110,9 @@ func awsEc2query_serializeOpDocumentStartNetworkInsightsAnalysisInput(v *StartNe objectKey.String(*v.ClientToken) } - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.FilterInArns != nil { @@ -44802,9 +46141,9 @@ func awsEc2query_serializeOpDocumentStartVpcEndpointServicePrivateDnsVerificatio object := value.Object() _ = object - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.ServiceId != nil { @@ -44819,19 +46158,19 @@ func awsEc2query_serializeOpDocumentStopInstancesInput(v *StopInstancesInput, va object := value.Object() _ = object - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } - if v.Force { + if v.Force != nil { objectKey := object.Key("Force") - objectKey.Boolean(v.Force) + objectKey.Boolean(*v.Force) } - if v.Hibernate { + if v.Hibernate != nil { objectKey := object.Key("Hibernate") - objectKey.Boolean(v.Hibernate) + objectKey.Boolean(*v.Hibernate) } if v.InstanceIds != nil { @@ -44858,9 +46197,9 @@ func awsEc2query_serializeOpDocumentTerminateClientVpnConnectionsInput(v *Termin objectKey.String(*v.ConnectionId) } - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.Username != nil { @@ -44875,9 +46214,9 @@ func awsEc2query_serializeOpDocumentTerminateInstancesInput(v *TerminateInstance object := value.Object() _ = object - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.InstanceIds != nil { @@ -44932,9 +46271,9 @@ func awsEc2query_serializeOpDocumentUnmonitorInstancesInput(v *UnmonitorInstance object := value.Object() _ = object - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.InstanceIds != nil { @@ -44951,9 +46290,9 @@ func awsEc2query_serializeOpDocumentUpdateSecurityGroupRuleDescriptionsEgressInp object := value.Object() _ = object - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.GroupId != nil { @@ -44980,9 +46319,9 @@ func awsEc2query_serializeOpDocumentUpdateSecurityGroupRuleDescriptionsIngressIn object := value.Object() _ = object - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } if v.GroupId != nil { @@ -45014,9 +46353,9 @@ func awsEc2query_serializeOpDocumentWithdrawByoipCidrInput(v *WithdrawByoipCidrI objectKey.String(*v.Cidr) } - if v.DryRun { + if v.DryRun != nil { objectKey := object.Key("DryRun") - objectKey.Boolean(v.DryRun) + objectKey.Boolean(*v.DryRun) } return 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 c3e8f0d9d..7cffedfed 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 @@ -106,9 +106,10 @@ type AllocationStrategy string // Enum values for AllocationStrategy const ( - AllocationStrategyLowestPrice AllocationStrategy = "lowestPrice" - AllocationStrategyDiversified AllocationStrategy = "diversified" - AllocationStrategyCapacityOptimized AllocationStrategy = "capacityOptimized" + AllocationStrategyLowestPrice AllocationStrategy = "lowestPrice" + AllocationStrategyDiversified AllocationStrategy = "diversified" + AllocationStrategyCapacityOptimized AllocationStrategy = "capacityOptimized" + AllocationStrategyCapacityOptimizedPrioritized AllocationStrategy = "capacityOptimizedPrioritized" ) // Values returns all known values for AllocationStrategy. Note that this can be @@ -119,6 +120,7 @@ func (AllocationStrategy) Values() []AllocationStrategy { "lowestPrice", "diversified", "capacityOptimized", + "capacityOptimizedPrioritized", } } @@ -867,6 +869,24 @@ func (ConnectionNotificationType) Values() []ConnectionNotificationType { } } +type ConnectivityType string + +// Enum values for ConnectivityType +const ( + ConnectivityTypePrivate ConnectivityType = "private" + ConnectivityTypePublic ConnectivityType = "public" +) + +// Values returns all known values for ConnectivityType. 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 (ConnectivityType) Values() []ConnectivityType { + return []ConnectivityType{ + "private", + "public", + } +} + type ContainerFormat string // Enum values for ContainerFormat @@ -2082,402 +2102,412 @@ type InstanceType string // Enum values for InstanceType const ( - InstanceTypeT1Micro InstanceType = "t1.micro" - InstanceTypeT2Nano InstanceType = "t2.nano" - InstanceTypeT2Micro InstanceType = "t2.micro" - InstanceTypeT2Small InstanceType = "t2.small" - InstanceTypeT2Medium InstanceType = "t2.medium" - InstanceTypeT2Large InstanceType = "t2.large" - InstanceTypeT2Xlarge InstanceType = "t2.xlarge" - InstanceTypeT22xlarge InstanceType = "t2.2xlarge" - InstanceTypeT3Nano InstanceType = "t3.nano" - InstanceTypeT3Micro InstanceType = "t3.micro" - InstanceTypeT3Small InstanceType = "t3.small" - InstanceTypeT3Medium InstanceType = "t3.medium" - InstanceTypeT3Large InstanceType = "t3.large" - InstanceTypeT3Xlarge InstanceType = "t3.xlarge" - InstanceTypeT32xlarge InstanceType = "t3.2xlarge" - InstanceTypeT3aNano InstanceType = "t3a.nano" - InstanceTypeT3aMicro InstanceType = "t3a.micro" - InstanceTypeT3aSmall InstanceType = "t3a.small" - InstanceTypeT3aMedium InstanceType = "t3a.medium" - InstanceTypeT3aLarge InstanceType = "t3a.large" - InstanceTypeT3aXlarge InstanceType = "t3a.xlarge" - InstanceTypeT3a2xlarge InstanceType = "t3a.2xlarge" - InstanceTypeT4gNano InstanceType = "t4g.nano" - InstanceTypeT4gMicro InstanceType = "t4g.micro" - InstanceTypeT4gSmall InstanceType = "t4g.small" - InstanceTypeT4gMedium InstanceType = "t4g.medium" - InstanceTypeT4gLarge InstanceType = "t4g.large" - InstanceTypeT4gXlarge InstanceType = "t4g.xlarge" - InstanceTypeT4g2xlarge InstanceType = "t4g.2xlarge" - InstanceTypeM1Small InstanceType = "m1.small" - InstanceTypeM1Medium InstanceType = "m1.medium" - InstanceTypeM1Large InstanceType = "m1.large" - InstanceTypeM1Xlarge InstanceType = "m1.xlarge" - InstanceTypeM3Medium InstanceType = "m3.medium" - InstanceTypeM3Large InstanceType = "m3.large" - InstanceTypeM3Xlarge InstanceType = "m3.xlarge" - InstanceTypeM32xlarge InstanceType = "m3.2xlarge" - InstanceTypeM4Large InstanceType = "m4.large" - InstanceTypeM4Xlarge InstanceType = "m4.xlarge" - InstanceTypeM42xlarge InstanceType = "m4.2xlarge" - InstanceTypeM44xlarge InstanceType = "m4.4xlarge" - InstanceTypeM410xlarge InstanceType = "m4.10xlarge" - InstanceTypeM416xlarge InstanceType = "m4.16xlarge" - InstanceTypeM2Xlarge InstanceType = "m2.xlarge" - InstanceTypeM22xlarge InstanceType = "m2.2xlarge" - InstanceTypeM24xlarge InstanceType = "m2.4xlarge" - InstanceTypeCr18xlarge InstanceType = "cr1.8xlarge" - InstanceTypeR3Large InstanceType = "r3.large" - InstanceTypeR3Xlarge InstanceType = "r3.xlarge" - InstanceTypeR32xlarge InstanceType = "r3.2xlarge" - InstanceTypeR34xlarge InstanceType = "r3.4xlarge" - InstanceTypeR38xlarge InstanceType = "r3.8xlarge" - InstanceTypeR4Large InstanceType = "r4.large" - InstanceTypeR4Xlarge InstanceType = "r4.xlarge" - InstanceTypeR42xlarge InstanceType = "r4.2xlarge" - InstanceTypeR44xlarge InstanceType = "r4.4xlarge" - InstanceTypeR48xlarge InstanceType = "r4.8xlarge" - InstanceTypeR416xlarge InstanceType = "r4.16xlarge" - InstanceTypeR5Large InstanceType = "r5.large" - InstanceTypeR5Xlarge InstanceType = "r5.xlarge" - InstanceTypeR52xlarge InstanceType = "r5.2xlarge" - InstanceTypeR54xlarge InstanceType = "r5.4xlarge" - InstanceTypeR58xlarge InstanceType = "r5.8xlarge" - InstanceTypeR512xlarge InstanceType = "r5.12xlarge" - InstanceTypeR516xlarge InstanceType = "r5.16xlarge" - InstanceTypeR524xlarge InstanceType = "r5.24xlarge" - InstanceTypeR5Metal InstanceType = "r5.metal" - InstanceTypeR5aLarge InstanceType = "r5a.large" - InstanceTypeR5aXlarge InstanceType = "r5a.xlarge" - InstanceTypeR5a2xlarge InstanceType = "r5a.2xlarge" - InstanceTypeR5a4xlarge InstanceType = "r5a.4xlarge" - InstanceTypeR5a8xlarge InstanceType = "r5a.8xlarge" - InstanceTypeR5a12xlarge InstanceType = "r5a.12xlarge" - InstanceTypeR5a16xlarge InstanceType = "r5a.16xlarge" - InstanceTypeR5a24xlarge InstanceType = "r5a.24xlarge" - InstanceTypeR5bLarge InstanceType = "r5b.large" - InstanceTypeR5bXlarge InstanceType = "r5b.xlarge" - InstanceTypeR5b2xlarge InstanceType = "r5b.2xlarge" - InstanceTypeR5b4xlarge InstanceType = "r5b.4xlarge" - InstanceTypeR5b8xlarge InstanceType = "r5b.8xlarge" - InstanceTypeR5b12xlarge InstanceType = "r5b.12xlarge" - InstanceTypeR5b16xlarge InstanceType = "r5b.16xlarge" - InstanceTypeR5b24xlarge InstanceType = "r5b.24xlarge" - InstanceTypeR5bMetal InstanceType = "r5b.metal" - InstanceTypeR5dLarge InstanceType = "r5d.large" - InstanceTypeR5dXlarge InstanceType = "r5d.xlarge" - InstanceTypeR5d2xlarge InstanceType = "r5d.2xlarge" - InstanceTypeR5d4xlarge InstanceType = "r5d.4xlarge" - InstanceTypeR5d8xlarge InstanceType = "r5d.8xlarge" - InstanceTypeR5d12xlarge InstanceType = "r5d.12xlarge" - InstanceTypeR5d16xlarge InstanceType = "r5d.16xlarge" - InstanceTypeR5d24xlarge InstanceType = "r5d.24xlarge" - InstanceTypeR5dMetal InstanceType = "r5d.metal" - InstanceTypeR5adLarge InstanceType = "r5ad.large" - InstanceTypeR5adXlarge InstanceType = "r5ad.xlarge" - InstanceTypeR5ad2xlarge InstanceType = "r5ad.2xlarge" - InstanceTypeR5ad4xlarge InstanceType = "r5ad.4xlarge" - InstanceTypeR5ad8xlarge InstanceType = "r5ad.8xlarge" - InstanceTypeR5ad12xlarge InstanceType = "r5ad.12xlarge" - InstanceTypeR5ad16xlarge InstanceType = "r5ad.16xlarge" - InstanceTypeR5ad24xlarge InstanceType = "r5ad.24xlarge" - InstanceTypeR6gMetal InstanceType = "r6g.metal" - InstanceTypeR6gMedium InstanceType = "r6g.medium" - InstanceTypeR6gLarge InstanceType = "r6g.large" - InstanceTypeR6gXlarge InstanceType = "r6g.xlarge" - InstanceTypeR6g2xlarge InstanceType = "r6g.2xlarge" - InstanceTypeR6g4xlarge InstanceType = "r6g.4xlarge" - InstanceTypeR6g8xlarge InstanceType = "r6g.8xlarge" - InstanceTypeR6g12xlarge InstanceType = "r6g.12xlarge" - InstanceTypeR6g16xlarge InstanceType = "r6g.16xlarge" - InstanceTypeR6gdMetal InstanceType = "r6gd.metal" - InstanceTypeR6gdMedium InstanceType = "r6gd.medium" - InstanceTypeR6gdLarge InstanceType = "r6gd.large" - InstanceTypeR6gdXlarge InstanceType = "r6gd.xlarge" - InstanceTypeR6gd2xlarge InstanceType = "r6gd.2xlarge" - InstanceTypeR6gd4xlarge InstanceType = "r6gd.4xlarge" - InstanceTypeR6gd8xlarge InstanceType = "r6gd.8xlarge" - InstanceTypeR6gd12xlarge InstanceType = "r6gd.12xlarge" - InstanceTypeR6gd16xlarge InstanceType = "r6gd.16xlarge" - InstanceTypeX116xlarge InstanceType = "x1.16xlarge" - InstanceTypeX132xlarge InstanceType = "x1.32xlarge" - InstanceTypeX1eXlarge InstanceType = "x1e.xlarge" - InstanceTypeX1e2xlarge InstanceType = "x1e.2xlarge" - InstanceTypeX1e4xlarge InstanceType = "x1e.4xlarge" - InstanceTypeX1e8xlarge InstanceType = "x1e.8xlarge" - InstanceTypeX1e16xlarge InstanceType = "x1e.16xlarge" - InstanceTypeX1e32xlarge InstanceType = "x1e.32xlarge" - InstanceTypeI2Xlarge InstanceType = "i2.xlarge" - InstanceTypeI22xlarge InstanceType = "i2.2xlarge" - InstanceTypeI24xlarge InstanceType = "i2.4xlarge" - InstanceTypeI28xlarge InstanceType = "i2.8xlarge" - InstanceTypeI3Large InstanceType = "i3.large" - InstanceTypeI3Xlarge InstanceType = "i3.xlarge" - InstanceTypeI32xlarge InstanceType = "i3.2xlarge" - InstanceTypeI34xlarge InstanceType = "i3.4xlarge" - InstanceTypeI38xlarge InstanceType = "i3.8xlarge" - InstanceTypeI316xlarge InstanceType = "i3.16xlarge" - InstanceTypeI3Metal InstanceType = "i3.metal" - InstanceTypeI3enLarge InstanceType = "i3en.large" - InstanceTypeI3enXlarge InstanceType = "i3en.xlarge" - InstanceTypeI3en2xlarge InstanceType = "i3en.2xlarge" - InstanceTypeI3en3xlarge InstanceType = "i3en.3xlarge" - InstanceTypeI3en6xlarge InstanceType = "i3en.6xlarge" - InstanceTypeI3en12xlarge InstanceType = "i3en.12xlarge" - InstanceTypeI3en24xlarge InstanceType = "i3en.24xlarge" - InstanceTypeI3enMetal InstanceType = "i3en.metal" - InstanceTypeHi14xlarge InstanceType = "hi1.4xlarge" - InstanceTypeHs18xlarge InstanceType = "hs1.8xlarge" - InstanceTypeC1Medium InstanceType = "c1.medium" - InstanceTypeC1Xlarge InstanceType = "c1.xlarge" - InstanceTypeC3Large InstanceType = "c3.large" - InstanceTypeC3Xlarge InstanceType = "c3.xlarge" - InstanceTypeC32xlarge InstanceType = "c3.2xlarge" - InstanceTypeC34xlarge InstanceType = "c3.4xlarge" - InstanceTypeC38xlarge InstanceType = "c3.8xlarge" - InstanceTypeC4Large InstanceType = "c4.large" - InstanceTypeC4Xlarge InstanceType = "c4.xlarge" - InstanceTypeC42xlarge InstanceType = "c4.2xlarge" - InstanceTypeC44xlarge InstanceType = "c4.4xlarge" - InstanceTypeC48xlarge InstanceType = "c4.8xlarge" - InstanceTypeC5Large InstanceType = "c5.large" - InstanceTypeC5Xlarge InstanceType = "c5.xlarge" - InstanceTypeC52xlarge InstanceType = "c5.2xlarge" - InstanceTypeC54xlarge InstanceType = "c5.4xlarge" - InstanceTypeC59xlarge InstanceType = "c5.9xlarge" - InstanceTypeC512xlarge InstanceType = "c5.12xlarge" - InstanceTypeC518xlarge InstanceType = "c5.18xlarge" - InstanceTypeC524xlarge InstanceType = "c5.24xlarge" - InstanceTypeC5Metal InstanceType = "c5.metal" - InstanceTypeC5aLarge InstanceType = "c5a.large" - InstanceTypeC5aXlarge InstanceType = "c5a.xlarge" - InstanceTypeC5a2xlarge InstanceType = "c5a.2xlarge" - InstanceTypeC5a4xlarge InstanceType = "c5a.4xlarge" - InstanceTypeC5a8xlarge InstanceType = "c5a.8xlarge" - InstanceTypeC5a12xlarge InstanceType = "c5a.12xlarge" - InstanceTypeC5a16xlarge InstanceType = "c5a.16xlarge" - InstanceTypeC5a24xlarge InstanceType = "c5a.24xlarge" - InstanceTypeC5adLarge InstanceType = "c5ad.large" - InstanceTypeC5adXlarge InstanceType = "c5ad.xlarge" - InstanceTypeC5ad2xlarge InstanceType = "c5ad.2xlarge" - InstanceTypeC5ad4xlarge InstanceType = "c5ad.4xlarge" - InstanceTypeC5ad8xlarge InstanceType = "c5ad.8xlarge" - InstanceTypeC5ad12xlarge InstanceType = "c5ad.12xlarge" - InstanceTypeC5ad16xlarge InstanceType = "c5ad.16xlarge" - InstanceTypeC5ad24xlarge InstanceType = "c5ad.24xlarge" - InstanceTypeC5dLarge InstanceType = "c5d.large" - InstanceTypeC5dXlarge InstanceType = "c5d.xlarge" - InstanceTypeC5d2xlarge InstanceType = "c5d.2xlarge" - InstanceTypeC5d4xlarge InstanceType = "c5d.4xlarge" - InstanceTypeC5d9xlarge InstanceType = "c5d.9xlarge" - InstanceTypeC5d12xlarge InstanceType = "c5d.12xlarge" - InstanceTypeC5d18xlarge InstanceType = "c5d.18xlarge" - InstanceTypeC5d24xlarge InstanceType = "c5d.24xlarge" - InstanceTypeC5dMetal InstanceType = "c5d.metal" - InstanceTypeC5nLarge InstanceType = "c5n.large" - InstanceTypeC5nXlarge InstanceType = "c5n.xlarge" - InstanceTypeC5n2xlarge InstanceType = "c5n.2xlarge" - InstanceTypeC5n4xlarge InstanceType = "c5n.4xlarge" - InstanceTypeC5n9xlarge InstanceType = "c5n.9xlarge" - InstanceTypeC5n18xlarge InstanceType = "c5n.18xlarge" - InstanceTypeC5nMetal InstanceType = "c5n.metal" - InstanceTypeC6gMetal InstanceType = "c6g.metal" - InstanceTypeC6gMedium InstanceType = "c6g.medium" - InstanceTypeC6gLarge InstanceType = "c6g.large" - InstanceTypeC6gXlarge InstanceType = "c6g.xlarge" - InstanceTypeC6g2xlarge InstanceType = "c6g.2xlarge" - InstanceTypeC6g4xlarge InstanceType = "c6g.4xlarge" - InstanceTypeC6g8xlarge InstanceType = "c6g.8xlarge" - InstanceTypeC6g12xlarge InstanceType = "c6g.12xlarge" - InstanceTypeC6g16xlarge InstanceType = "c6g.16xlarge" - InstanceTypeC6gdMetal InstanceType = "c6gd.metal" - InstanceTypeC6gdMedium InstanceType = "c6gd.medium" - InstanceTypeC6gdLarge InstanceType = "c6gd.large" - InstanceTypeC6gdXlarge InstanceType = "c6gd.xlarge" - InstanceTypeC6gd2xlarge InstanceType = "c6gd.2xlarge" - InstanceTypeC6gd4xlarge InstanceType = "c6gd.4xlarge" - InstanceTypeC6gd8xlarge InstanceType = "c6gd.8xlarge" - InstanceTypeC6gd12xlarge InstanceType = "c6gd.12xlarge" - InstanceTypeC6gd16xlarge InstanceType = "c6gd.16xlarge" - InstanceTypeC6gnMedium InstanceType = "c6gn.medium" - InstanceTypeC6gnLarge InstanceType = "c6gn.large" - InstanceTypeC6gnXlarge InstanceType = "c6gn.xlarge" - InstanceTypeC6gn2xlarge InstanceType = "c6gn.2xlarge" - InstanceTypeC6gn4xlarge InstanceType = "c6gn.4xlarge" - InstanceTypeC6gn8xlarge InstanceType = "c6gn.8xlarge" - InstanceTypeC6gn12xlarge InstanceType = "c6gn.12xlarge" - InstanceTypeC6gn16xlarge InstanceType = "c6gn.16xlarge" - InstanceTypeC6gnMetal InstanceType = "c6gn.metal" - InstanceTypeCc14xlarge InstanceType = "cc1.4xlarge" - InstanceTypeCc28xlarge InstanceType = "cc2.8xlarge" - InstanceTypeG22xlarge InstanceType = "g2.2xlarge" - InstanceTypeG28xlarge InstanceType = "g2.8xlarge" - InstanceTypeG34xlarge InstanceType = "g3.4xlarge" - InstanceTypeG38xlarge InstanceType = "g3.8xlarge" - InstanceTypeG316xlarge InstanceType = "g3.16xlarge" - InstanceTypeG3sXlarge InstanceType = "g3s.xlarge" - InstanceTypeG4adXlarge InstanceType = "g4ad.xlarge" - InstanceTypeG4ad2xlarge InstanceType = "g4ad.2xlarge" - InstanceTypeG4ad4xlarge InstanceType = "g4ad.4xlarge" - InstanceTypeG4ad8xlarge InstanceType = "g4ad.8xlarge" - InstanceTypeG4ad16xlarge InstanceType = "g4ad.16xlarge" - InstanceTypeG4dnXlarge InstanceType = "g4dn.xlarge" - InstanceTypeG4dn2xlarge InstanceType = "g4dn.2xlarge" - InstanceTypeG4dn4xlarge InstanceType = "g4dn.4xlarge" - InstanceTypeG4dn8xlarge InstanceType = "g4dn.8xlarge" - InstanceTypeG4dn12xlarge InstanceType = "g4dn.12xlarge" - InstanceTypeG4dn16xlarge InstanceType = "g4dn.16xlarge" - InstanceTypeG4dnMetal InstanceType = "g4dn.metal" - InstanceTypeCg14xlarge InstanceType = "cg1.4xlarge" - InstanceTypeP2Xlarge InstanceType = "p2.xlarge" - InstanceTypeP28xlarge InstanceType = "p2.8xlarge" - InstanceTypeP216xlarge InstanceType = "p2.16xlarge" - InstanceTypeP32xlarge InstanceType = "p3.2xlarge" - InstanceTypeP38xlarge InstanceType = "p3.8xlarge" - InstanceTypeP316xlarge InstanceType = "p3.16xlarge" - InstanceTypeP3dn24xlarge InstanceType = "p3dn.24xlarge" - InstanceTypeP4d24xlarge InstanceType = "p4d.24xlarge" - InstanceTypeD2Xlarge InstanceType = "d2.xlarge" - InstanceTypeD22xlarge InstanceType = "d2.2xlarge" - InstanceTypeD24xlarge InstanceType = "d2.4xlarge" - InstanceTypeD28xlarge InstanceType = "d2.8xlarge" - InstanceTypeD3Xlarge InstanceType = "d3.xlarge" - InstanceTypeD32xlarge InstanceType = "d3.2xlarge" - InstanceTypeD34xlarge InstanceType = "d3.4xlarge" - InstanceTypeD38xlarge InstanceType = "d3.8xlarge" - InstanceTypeD3Metal InstanceType = "d3.metal" - InstanceTypeD3enLarge InstanceType = "d3en.large" - InstanceTypeD3enXlarge InstanceType = "d3en.xlarge" - InstanceTypeD3en2xlarge InstanceType = "d3en.2xlarge" - InstanceTypeD3en4xlarge InstanceType = "d3en.4xlarge" - InstanceTypeD3en6xlarge InstanceType = "d3en.6xlarge" - InstanceTypeD3en8xlarge InstanceType = "d3en.8xlarge" - InstanceTypeD3en12xlarge InstanceType = "d3en.12xlarge" - InstanceTypeD3enMetal InstanceType = "d3en.metal" - InstanceTypeF12xlarge InstanceType = "f1.2xlarge" - InstanceTypeF14xlarge InstanceType = "f1.4xlarge" - InstanceTypeF116xlarge InstanceType = "f1.16xlarge" - InstanceTypeM5Large InstanceType = "m5.large" - InstanceTypeM5Xlarge InstanceType = "m5.xlarge" - InstanceTypeM52xlarge InstanceType = "m5.2xlarge" - InstanceTypeM54xlarge InstanceType = "m5.4xlarge" - InstanceTypeM58xlarge InstanceType = "m5.8xlarge" - InstanceTypeM512xlarge InstanceType = "m5.12xlarge" - InstanceTypeM516xlarge InstanceType = "m5.16xlarge" - InstanceTypeM524xlarge InstanceType = "m5.24xlarge" - InstanceTypeM5Metal InstanceType = "m5.metal" - InstanceTypeM5aLarge InstanceType = "m5a.large" - InstanceTypeM5aXlarge InstanceType = "m5a.xlarge" - InstanceTypeM5a2xlarge InstanceType = "m5a.2xlarge" - InstanceTypeM5a4xlarge InstanceType = "m5a.4xlarge" - InstanceTypeM5a8xlarge InstanceType = "m5a.8xlarge" - InstanceTypeM5a12xlarge InstanceType = "m5a.12xlarge" - InstanceTypeM5a16xlarge InstanceType = "m5a.16xlarge" - InstanceTypeM5a24xlarge InstanceType = "m5a.24xlarge" - InstanceTypeM5dLarge InstanceType = "m5d.large" - InstanceTypeM5dXlarge InstanceType = "m5d.xlarge" - InstanceTypeM5d2xlarge InstanceType = "m5d.2xlarge" - InstanceTypeM5d4xlarge InstanceType = "m5d.4xlarge" - InstanceTypeM5d8xlarge InstanceType = "m5d.8xlarge" - InstanceTypeM5d12xlarge InstanceType = "m5d.12xlarge" - InstanceTypeM5d16xlarge InstanceType = "m5d.16xlarge" - InstanceTypeM5d24xlarge InstanceType = "m5d.24xlarge" - InstanceTypeM5dMetal InstanceType = "m5d.metal" - InstanceTypeM5adLarge InstanceType = "m5ad.large" - InstanceTypeM5adXlarge InstanceType = "m5ad.xlarge" - InstanceTypeM5ad2xlarge InstanceType = "m5ad.2xlarge" - InstanceTypeM5ad4xlarge InstanceType = "m5ad.4xlarge" - InstanceTypeM5ad8xlarge InstanceType = "m5ad.8xlarge" - InstanceTypeM5ad12xlarge InstanceType = "m5ad.12xlarge" - InstanceTypeM5ad16xlarge InstanceType = "m5ad.16xlarge" - InstanceTypeM5ad24xlarge InstanceType = "m5ad.24xlarge" - InstanceTypeM5znLarge InstanceType = "m5zn.large" - InstanceTypeM5znXlarge InstanceType = "m5zn.xlarge" - InstanceTypeM5zn2xlarge InstanceType = "m5zn.2xlarge" - InstanceTypeM5zn3xlarge InstanceType = "m5zn.3xlarge" - InstanceTypeM5zn6xlarge InstanceType = "m5zn.6xlarge" - InstanceTypeM5zn12xlarge InstanceType = "m5zn.12xlarge" - InstanceTypeM5znMetal InstanceType = "m5zn.metal" - InstanceTypeH12xlarge InstanceType = "h1.2xlarge" - InstanceTypeH14xlarge InstanceType = "h1.4xlarge" - InstanceTypeH18xlarge InstanceType = "h1.8xlarge" - InstanceTypeH116xlarge InstanceType = "h1.16xlarge" - InstanceTypeHpc5a48xlarge InstanceType = "hpc5a.48xlarge" - InstanceTypeZ1dLarge InstanceType = "z1d.large" - InstanceTypeZ1dXlarge InstanceType = "z1d.xlarge" - InstanceTypeZ1d2xlarge InstanceType = "z1d.2xlarge" - InstanceTypeZ1d3xlarge InstanceType = "z1d.3xlarge" - InstanceTypeZ1d6xlarge InstanceType = "z1d.6xlarge" - InstanceTypeZ1d12xlarge InstanceType = "z1d.12xlarge" - InstanceTypeZ1dMetal InstanceType = "z1d.metal" - InstanceTypeU6tb1Metal InstanceType = "u-6tb1.metal" - InstanceTypeU9tb1Metal InstanceType = "u-9tb1.metal" - InstanceTypeU12tb1Metal InstanceType = "u-12tb1.metal" - InstanceTypeU18tb1Metal InstanceType = "u-18tb1.metal" - InstanceTypeU24tb1Metal InstanceType = "u-24tb1.metal" - InstanceTypeA1Medium InstanceType = "a1.medium" - InstanceTypeA1Large InstanceType = "a1.large" - InstanceTypeA1Xlarge InstanceType = "a1.xlarge" - InstanceTypeA12xlarge InstanceType = "a1.2xlarge" - InstanceTypeA14xlarge InstanceType = "a1.4xlarge" - InstanceTypeA1Metal InstanceType = "a1.metal" - InstanceTypeM5dnLarge InstanceType = "m5dn.large" - InstanceTypeM5dnXlarge InstanceType = "m5dn.xlarge" - InstanceTypeM5dn2xlarge InstanceType = "m5dn.2xlarge" - InstanceTypeM5dn4xlarge InstanceType = "m5dn.4xlarge" - InstanceTypeM5dn8xlarge InstanceType = "m5dn.8xlarge" - InstanceTypeM5dn12xlarge InstanceType = "m5dn.12xlarge" - InstanceTypeM5dn16xlarge InstanceType = "m5dn.16xlarge" - InstanceTypeM5dn24xlarge InstanceType = "m5dn.24xlarge" - InstanceTypeM5nLarge InstanceType = "m5n.large" - InstanceTypeM5nXlarge InstanceType = "m5n.xlarge" - InstanceTypeM5n2xlarge InstanceType = "m5n.2xlarge" - InstanceTypeM5n4xlarge InstanceType = "m5n.4xlarge" - InstanceTypeM5n8xlarge InstanceType = "m5n.8xlarge" - InstanceTypeM5n12xlarge InstanceType = "m5n.12xlarge" - InstanceTypeM5n16xlarge InstanceType = "m5n.16xlarge" - InstanceTypeM5n24xlarge InstanceType = "m5n.24xlarge" - InstanceTypeR5dnLarge InstanceType = "r5dn.large" - InstanceTypeR5dnXlarge InstanceType = "r5dn.xlarge" - InstanceTypeR5dn2xlarge InstanceType = "r5dn.2xlarge" - InstanceTypeR5dn4xlarge InstanceType = "r5dn.4xlarge" - InstanceTypeR5dn8xlarge InstanceType = "r5dn.8xlarge" - InstanceTypeR5dn12xlarge InstanceType = "r5dn.12xlarge" - InstanceTypeR5dn16xlarge InstanceType = "r5dn.16xlarge" - InstanceTypeR5dn24xlarge InstanceType = "r5dn.24xlarge" - InstanceTypeR5nLarge InstanceType = "r5n.large" - InstanceTypeR5nXlarge InstanceType = "r5n.xlarge" - InstanceTypeR5n2xlarge InstanceType = "r5n.2xlarge" - InstanceTypeR5n4xlarge InstanceType = "r5n.4xlarge" - InstanceTypeR5n8xlarge InstanceType = "r5n.8xlarge" - InstanceTypeR5n12xlarge InstanceType = "r5n.12xlarge" - InstanceTypeR5n16xlarge InstanceType = "r5n.16xlarge" - InstanceTypeR5n24xlarge InstanceType = "r5n.24xlarge" - InstanceTypeInf1Xlarge InstanceType = "inf1.xlarge" - InstanceTypeInf12xlarge InstanceType = "inf1.2xlarge" - InstanceTypeInf16xlarge InstanceType = "inf1.6xlarge" - InstanceTypeInf124xlarge InstanceType = "inf1.24xlarge" - InstanceTypeM6gMetal InstanceType = "m6g.metal" - InstanceTypeM6gMedium InstanceType = "m6g.medium" - InstanceTypeM6gLarge InstanceType = "m6g.large" - InstanceTypeM6gXlarge InstanceType = "m6g.xlarge" - InstanceTypeM6g2xlarge InstanceType = "m6g.2xlarge" - InstanceTypeM6g4xlarge InstanceType = "m6g.4xlarge" - InstanceTypeM6g8xlarge InstanceType = "m6g.8xlarge" - InstanceTypeM6g12xlarge InstanceType = "m6g.12xlarge" - InstanceTypeM6g16xlarge InstanceType = "m6g.16xlarge" - InstanceTypeM6gdMetal InstanceType = "m6gd.metal" - InstanceTypeM6gdMedium InstanceType = "m6gd.medium" - InstanceTypeM6gdLarge InstanceType = "m6gd.large" - InstanceTypeM6gdXlarge InstanceType = "m6gd.xlarge" - InstanceTypeM6gd2xlarge InstanceType = "m6gd.2xlarge" - InstanceTypeM6gd4xlarge InstanceType = "m6gd.4xlarge" - InstanceTypeM6gd8xlarge InstanceType = "m6gd.8xlarge" - InstanceTypeM6gd12xlarge InstanceType = "m6gd.12xlarge" - InstanceTypeM6gd16xlarge InstanceType = "m6gd.16xlarge" - InstanceTypeMac1Metal InstanceType = "mac1.metal" + InstanceTypeT1Micro InstanceType = "t1.micro" + InstanceTypeT2Nano InstanceType = "t2.nano" + InstanceTypeT2Micro InstanceType = "t2.micro" + InstanceTypeT2Small InstanceType = "t2.small" + InstanceTypeT2Medium InstanceType = "t2.medium" + InstanceTypeT2Large InstanceType = "t2.large" + InstanceTypeT2Xlarge InstanceType = "t2.xlarge" + InstanceTypeT22xlarge InstanceType = "t2.2xlarge" + InstanceTypeT3Nano InstanceType = "t3.nano" + InstanceTypeT3Micro InstanceType = "t3.micro" + InstanceTypeT3Small InstanceType = "t3.small" + InstanceTypeT3Medium InstanceType = "t3.medium" + InstanceTypeT3Large InstanceType = "t3.large" + InstanceTypeT3Xlarge InstanceType = "t3.xlarge" + InstanceTypeT32xlarge InstanceType = "t3.2xlarge" + InstanceTypeT3aNano InstanceType = "t3a.nano" + InstanceTypeT3aMicro InstanceType = "t3a.micro" + InstanceTypeT3aSmall InstanceType = "t3a.small" + InstanceTypeT3aMedium InstanceType = "t3a.medium" + InstanceTypeT3aLarge InstanceType = "t3a.large" + InstanceTypeT3aXlarge InstanceType = "t3a.xlarge" + InstanceTypeT3a2xlarge InstanceType = "t3a.2xlarge" + InstanceTypeT4gNano InstanceType = "t4g.nano" + InstanceTypeT4gMicro InstanceType = "t4g.micro" + InstanceTypeT4gSmall InstanceType = "t4g.small" + InstanceTypeT4gMedium InstanceType = "t4g.medium" + InstanceTypeT4gLarge InstanceType = "t4g.large" + InstanceTypeT4gXlarge InstanceType = "t4g.xlarge" + InstanceTypeT4g2xlarge InstanceType = "t4g.2xlarge" + InstanceTypeM1Small InstanceType = "m1.small" + InstanceTypeM1Medium InstanceType = "m1.medium" + InstanceTypeM1Large InstanceType = "m1.large" + InstanceTypeM1Xlarge InstanceType = "m1.xlarge" + InstanceTypeM3Medium InstanceType = "m3.medium" + InstanceTypeM3Large InstanceType = "m3.large" + InstanceTypeM3Xlarge InstanceType = "m3.xlarge" + InstanceTypeM32xlarge InstanceType = "m3.2xlarge" + InstanceTypeM4Large InstanceType = "m4.large" + InstanceTypeM4Xlarge InstanceType = "m4.xlarge" + InstanceTypeM42xlarge InstanceType = "m4.2xlarge" + InstanceTypeM44xlarge InstanceType = "m4.4xlarge" + InstanceTypeM410xlarge InstanceType = "m4.10xlarge" + InstanceTypeM416xlarge InstanceType = "m4.16xlarge" + InstanceTypeM2Xlarge InstanceType = "m2.xlarge" + InstanceTypeM22xlarge InstanceType = "m2.2xlarge" + InstanceTypeM24xlarge InstanceType = "m2.4xlarge" + InstanceTypeCr18xlarge InstanceType = "cr1.8xlarge" + InstanceTypeR3Large InstanceType = "r3.large" + InstanceTypeR3Xlarge InstanceType = "r3.xlarge" + InstanceTypeR32xlarge InstanceType = "r3.2xlarge" + InstanceTypeR34xlarge InstanceType = "r3.4xlarge" + InstanceTypeR38xlarge InstanceType = "r3.8xlarge" + InstanceTypeR4Large InstanceType = "r4.large" + InstanceTypeR4Xlarge InstanceType = "r4.xlarge" + InstanceTypeR42xlarge InstanceType = "r4.2xlarge" + InstanceTypeR44xlarge InstanceType = "r4.4xlarge" + InstanceTypeR48xlarge InstanceType = "r4.8xlarge" + InstanceTypeR416xlarge InstanceType = "r4.16xlarge" + InstanceTypeR5Large InstanceType = "r5.large" + InstanceTypeR5Xlarge InstanceType = "r5.xlarge" + InstanceTypeR52xlarge InstanceType = "r5.2xlarge" + InstanceTypeR54xlarge InstanceType = "r5.4xlarge" + InstanceTypeR58xlarge InstanceType = "r5.8xlarge" + InstanceTypeR512xlarge InstanceType = "r5.12xlarge" + InstanceTypeR516xlarge InstanceType = "r5.16xlarge" + InstanceTypeR524xlarge InstanceType = "r5.24xlarge" + InstanceTypeR5Metal InstanceType = "r5.metal" + InstanceTypeR5aLarge InstanceType = "r5a.large" + InstanceTypeR5aXlarge InstanceType = "r5a.xlarge" + InstanceTypeR5a2xlarge InstanceType = "r5a.2xlarge" + InstanceTypeR5a4xlarge InstanceType = "r5a.4xlarge" + InstanceTypeR5a8xlarge InstanceType = "r5a.8xlarge" + InstanceTypeR5a12xlarge InstanceType = "r5a.12xlarge" + InstanceTypeR5a16xlarge InstanceType = "r5a.16xlarge" + InstanceTypeR5a24xlarge InstanceType = "r5a.24xlarge" + InstanceTypeR5bLarge InstanceType = "r5b.large" + InstanceTypeR5bXlarge InstanceType = "r5b.xlarge" + InstanceTypeR5b2xlarge InstanceType = "r5b.2xlarge" + InstanceTypeR5b4xlarge InstanceType = "r5b.4xlarge" + InstanceTypeR5b8xlarge InstanceType = "r5b.8xlarge" + InstanceTypeR5b12xlarge InstanceType = "r5b.12xlarge" + InstanceTypeR5b16xlarge InstanceType = "r5b.16xlarge" + InstanceTypeR5b24xlarge InstanceType = "r5b.24xlarge" + InstanceTypeR5bMetal InstanceType = "r5b.metal" + InstanceTypeR5dLarge InstanceType = "r5d.large" + InstanceTypeR5dXlarge InstanceType = "r5d.xlarge" + InstanceTypeR5d2xlarge InstanceType = "r5d.2xlarge" + InstanceTypeR5d4xlarge InstanceType = "r5d.4xlarge" + InstanceTypeR5d8xlarge InstanceType = "r5d.8xlarge" + InstanceTypeR5d12xlarge InstanceType = "r5d.12xlarge" + InstanceTypeR5d16xlarge InstanceType = "r5d.16xlarge" + InstanceTypeR5d24xlarge InstanceType = "r5d.24xlarge" + InstanceTypeR5dMetal InstanceType = "r5d.metal" + InstanceTypeR5adLarge InstanceType = "r5ad.large" + InstanceTypeR5adXlarge InstanceType = "r5ad.xlarge" + InstanceTypeR5ad2xlarge InstanceType = "r5ad.2xlarge" + InstanceTypeR5ad4xlarge InstanceType = "r5ad.4xlarge" + InstanceTypeR5ad8xlarge InstanceType = "r5ad.8xlarge" + InstanceTypeR5ad12xlarge InstanceType = "r5ad.12xlarge" + InstanceTypeR5ad16xlarge InstanceType = "r5ad.16xlarge" + InstanceTypeR5ad24xlarge InstanceType = "r5ad.24xlarge" + InstanceTypeR6gMetal InstanceType = "r6g.metal" + InstanceTypeR6gMedium InstanceType = "r6g.medium" + InstanceTypeR6gLarge InstanceType = "r6g.large" + InstanceTypeR6gXlarge InstanceType = "r6g.xlarge" + InstanceTypeR6g2xlarge InstanceType = "r6g.2xlarge" + InstanceTypeR6g4xlarge InstanceType = "r6g.4xlarge" + InstanceTypeR6g8xlarge InstanceType = "r6g.8xlarge" + InstanceTypeR6g12xlarge InstanceType = "r6g.12xlarge" + InstanceTypeR6g16xlarge InstanceType = "r6g.16xlarge" + InstanceTypeR6gdMetal InstanceType = "r6gd.metal" + InstanceTypeR6gdMedium InstanceType = "r6gd.medium" + InstanceTypeR6gdLarge InstanceType = "r6gd.large" + InstanceTypeR6gdXlarge InstanceType = "r6gd.xlarge" + InstanceTypeR6gd2xlarge InstanceType = "r6gd.2xlarge" + InstanceTypeR6gd4xlarge InstanceType = "r6gd.4xlarge" + InstanceTypeR6gd8xlarge InstanceType = "r6gd.8xlarge" + InstanceTypeR6gd12xlarge InstanceType = "r6gd.12xlarge" + InstanceTypeR6gd16xlarge InstanceType = "r6gd.16xlarge" + InstanceTypeX116xlarge InstanceType = "x1.16xlarge" + InstanceTypeX132xlarge InstanceType = "x1.32xlarge" + InstanceTypeX1eXlarge InstanceType = "x1e.xlarge" + InstanceTypeX1e2xlarge InstanceType = "x1e.2xlarge" + InstanceTypeX1e4xlarge InstanceType = "x1e.4xlarge" + InstanceTypeX1e8xlarge InstanceType = "x1e.8xlarge" + InstanceTypeX1e16xlarge InstanceType = "x1e.16xlarge" + InstanceTypeX1e32xlarge InstanceType = "x1e.32xlarge" + InstanceTypeI2Xlarge InstanceType = "i2.xlarge" + InstanceTypeI22xlarge InstanceType = "i2.2xlarge" + InstanceTypeI24xlarge InstanceType = "i2.4xlarge" + InstanceTypeI28xlarge InstanceType = "i2.8xlarge" + InstanceTypeI3Large InstanceType = "i3.large" + InstanceTypeI3Xlarge InstanceType = "i3.xlarge" + InstanceTypeI32xlarge InstanceType = "i3.2xlarge" + InstanceTypeI34xlarge InstanceType = "i3.4xlarge" + InstanceTypeI38xlarge InstanceType = "i3.8xlarge" + InstanceTypeI316xlarge InstanceType = "i3.16xlarge" + InstanceTypeI3Metal InstanceType = "i3.metal" + InstanceTypeI3enLarge InstanceType = "i3en.large" + InstanceTypeI3enXlarge InstanceType = "i3en.xlarge" + InstanceTypeI3en2xlarge InstanceType = "i3en.2xlarge" + InstanceTypeI3en3xlarge InstanceType = "i3en.3xlarge" + InstanceTypeI3en6xlarge InstanceType = "i3en.6xlarge" + InstanceTypeI3en12xlarge InstanceType = "i3en.12xlarge" + InstanceTypeI3en24xlarge InstanceType = "i3en.24xlarge" + InstanceTypeI3enMetal InstanceType = "i3en.metal" + InstanceTypeHi14xlarge InstanceType = "hi1.4xlarge" + InstanceTypeHs18xlarge InstanceType = "hs1.8xlarge" + InstanceTypeC1Medium InstanceType = "c1.medium" + InstanceTypeC1Xlarge InstanceType = "c1.xlarge" + InstanceTypeC3Large InstanceType = "c3.large" + InstanceTypeC3Xlarge InstanceType = "c3.xlarge" + InstanceTypeC32xlarge InstanceType = "c3.2xlarge" + InstanceTypeC34xlarge InstanceType = "c3.4xlarge" + InstanceTypeC38xlarge InstanceType = "c3.8xlarge" + InstanceTypeC4Large InstanceType = "c4.large" + InstanceTypeC4Xlarge InstanceType = "c4.xlarge" + InstanceTypeC42xlarge InstanceType = "c4.2xlarge" + InstanceTypeC44xlarge InstanceType = "c4.4xlarge" + InstanceTypeC48xlarge InstanceType = "c4.8xlarge" + InstanceTypeC5Large InstanceType = "c5.large" + InstanceTypeC5Xlarge InstanceType = "c5.xlarge" + InstanceTypeC52xlarge InstanceType = "c5.2xlarge" + InstanceTypeC54xlarge InstanceType = "c5.4xlarge" + InstanceTypeC59xlarge InstanceType = "c5.9xlarge" + InstanceTypeC512xlarge InstanceType = "c5.12xlarge" + InstanceTypeC518xlarge InstanceType = "c5.18xlarge" + InstanceTypeC524xlarge InstanceType = "c5.24xlarge" + InstanceTypeC5Metal InstanceType = "c5.metal" + InstanceTypeC5aLarge InstanceType = "c5a.large" + InstanceTypeC5aXlarge InstanceType = "c5a.xlarge" + InstanceTypeC5a2xlarge InstanceType = "c5a.2xlarge" + InstanceTypeC5a4xlarge InstanceType = "c5a.4xlarge" + InstanceTypeC5a8xlarge InstanceType = "c5a.8xlarge" + InstanceTypeC5a12xlarge InstanceType = "c5a.12xlarge" + InstanceTypeC5a16xlarge InstanceType = "c5a.16xlarge" + InstanceTypeC5a24xlarge InstanceType = "c5a.24xlarge" + InstanceTypeC5adLarge InstanceType = "c5ad.large" + InstanceTypeC5adXlarge InstanceType = "c5ad.xlarge" + InstanceTypeC5ad2xlarge InstanceType = "c5ad.2xlarge" + InstanceTypeC5ad4xlarge InstanceType = "c5ad.4xlarge" + InstanceTypeC5ad8xlarge InstanceType = "c5ad.8xlarge" + InstanceTypeC5ad12xlarge InstanceType = "c5ad.12xlarge" + InstanceTypeC5ad16xlarge InstanceType = "c5ad.16xlarge" + InstanceTypeC5ad24xlarge InstanceType = "c5ad.24xlarge" + InstanceTypeC5dLarge InstanceType = "c5d.large" + InstanceTypeC5dXlarge InstanceType = "c5d.xlarge" + InstanceTypeC5d2xlarge InstanceType = "c5d.2xlarge" + InstanceTypeC5d4xlarge InstanceType = "c5d.4xlarge" + InstanceTypeC5d9xlarge InstanceType = "c5d.9xlarge" + InstanceTypeC5d12xlarge InstanceType = "c5d.12xlarge" + InstanceTypeC5d18xlarge InstanceType = "c5d.18xlarge" + InstanceTypeC5d24xlarge InstanceType = "c5d.24xlarge" + InstanceTypeC5dMetal InstanceType = "c5d.metal" + InstanceTypeC5nLarge InstanceType = "c5n.large" + InstanceTypeC5nXlarge InstanceType = "c5n.xlarge" + InstanceTypeC5n2xlarge InstanceType = "c5n.2xlarge" + InstanceTypeC5n4xlarge InstanceType = "c5n.4xlarge" + InstanceTypeC5n9xlarge InstanceType = "c5n.9xlarge" + InstanceTypeC5n18xlarge InstanceType = "c5n.18xlarge" + InstanceTypeC5nMetal InstanceType = "c5n.metal" + InstanceTypeC6gMetal InstanceType = "c6g.metal" + InstanceTypeC6gMedium InstanceType = "c6g.medium" + InstanceTypeC6gLarge InstanceType = "c6g.large" + InstanceTypeC6gXlarge InstanceType = "c6g.xlarge" + InstanceTypeC6g2xlarge InstanceType = "c6g.2xlarge" + InstanceTypeC6g4xlarge InstanceType = "c6g.4xlarge" + InstanceTypeC6g8xlarge InstanceType = "c6g.8xlarge" + InstanceTypeC6g12xlarge InstanceType = "c6g.12xlarge" + InstanceTypeC6g16xlarge InstanceType = "c6g.16xlarge" + InstanceTypeC6gdMetal InstanceType = "c6gd.metal" + InstanceTypeC6gdMedium InstanceType = "c6gd.medium" + InstanceTypeC6gdLarge InstanceType = "c6gd.large" + InstanceTypeC6gdXlarge InstanceType = "c6gd.xlarge" + InstanceTypeC6gd2xlarge InstanceType = "c6gd.2xlarge" + InstanceTypeC6gd4xlarge InstanceType = "c6gd.4xlarge" + InstanceTypeC6gd8xlarge InstanceType = "c6gd.8xlarge" + InstanceTypeC6gd12xlarge InstanceType = "c6gd.12xlarge" + InstanceTypeC6gd16xlarge InstanceType = "c6gd.16xlarge" + InstanceTypeC6gnMedium InstanceType = "c6gn.medium" + InstanceTypeC6gnLarge InstanceType = "c6gn.large" + InstanceTypeC6gnXlarge InstanceType = "c6gn.xlarge" + InstanceTypeC6gn2xlarge InstanceType = "c6gn.2xlarge" + InstanceTypeC6gn4xlarge InstanceType = "c6gn.4xlarge" + InstanceTypeC6gn8xlarge InstanceType = "c6gn.8xlarge" + InstanceTypeC6gn12xlarge InstanceType = "c6gn.12xlarge" + InstanceTypeC6gn16xlarge InstanceType = "c6gn.16xlarge" + InstanceTypeCc14xlarge InstanceType = "cc1.4xlarge" + InstanceTypeCc28xlarge InstanceType = "cc2.8xlarge" + InstanceTypeG22xlarge InstanceType = "g2.2xlarge" + InstanceTypeG28xlarge InstanceType = "g2.8xlarge" + InstanceTypeG34xlarge InstanceType = "g3.4xlarge" + InstanceTypeG38xlarge InstanceType = "g3.8xlarge" + InstanceTypeG316xlarge InstanceType = "g3.16xlarge" + InstanceTypeG3sXlarge InstanceType = "g3s.xlarge" + InstanceTypeG4ad4xlarge InstanceType = "g4ad.4xlarge" + InstanceTypeG4ad8xlarge InstanceType = "g4ad.8xlarge" + InstanceTypeG4ad16xlarge InstanceType = "g4ad.16xlarge" + InstanceTypeG4dnXlarge InstanceType = "g4dn.xlarge" + InstanceTypeG4dn2xlarge InstanceType = "g4dn.2xlarge" + InstanceTypeG4dn4xlarge InstanceType = "g4dn.4xlarge" + InstanceTypeG4dn8xlarge InstanceType = "g4dn.8xlarge" + InstanceTypeG4dn12xlarge InstanceType = "g4dn.12xlarge" + InstanceTypeG4dn16xlarge InstanceType = "g4dn.16xlarge" + InstanceTypeG4dnMetal InstanceType = "g4dn.metal" + InstanceTypeCg14xlarge InstanceType = "cg1.4xlarge" + InstanceTypeP2Xlarge InstanceType = "p2.xlarge" + InstanceTypeP28xlarge InstanceType = "p2.8xlarge" + InstanceTypeP216xlarge InstanceType = "p2.16xlarge" + InstanceTypeP32xlarge InstanceType = "p3.2xlarge" + InstanceTypeP38xlarge InstanceType = "p3.8xlarge" + InstanceTypeP316xlarge InstanceType = "p3.16xlarge" + InstanceTypeP3dn24xlarge InstanceType = "p3dn.24xlarge" + InstanceTypeP4d24xlarge InstanceType = "p4d.24xlarge" + InstanceTypeD2Xlarge InstanceType = "d2.xlarge" + InstanceTypeD22xlarge InstanceType = "d2.2xlarge" + InstanceTypeD24xlarge InstanceType = "d2.4xlarge" + InstanceTypeD28xlarge InstanceType = "d2.8xlarge" + InstanceTypeD3Xlarge InstanceType = "d3.xlarge" + InstanceTypeD32xlarge InstanceType = "d3.2xlarge" + InstanceTypeD34xlarge InstanceType = "d3.4xlarge" + InstanceTypeD38xlarge InstanceType = "d3.8xlarge" + InstanceTypeD3enXlarge InstanceType = "d3en.xlarge" + InstanceTypeD3en2xlarge InstanceType = "d3en.2xlarge" + InstanceTypeD3en4xlarge InstanceType = "d3en.4xlarge" + InstanceTypeD3en6xlarge InstanceType = "d3en.6xlarge" + InstanceTypeD3en8xlarge InstanceType = "d3en.8xlarge" + InstanceTypeD3en12xlarge InstanceType = "d3en.12xlarge" + InstanceTypeF12xlarge InstanceType = "f1.2xlarge" + InstanceTypeF14xlarge InstanceType = "f1.4xlarge" + InstanceTypeF116xlarge InstanceType = "f1.16xlarge" + InstanceTypeM5Large InstanceType = "m5.large" + InstanceTypeM5Xlarge InstanceType = "m5.xlarge" + InstanceTypeM52xlarge InstanceType = "m5.2xlarge" + InstanceTypeM54xlarge InstanceType = "m5.4xlarge" + InstanceTypeM58xlarge InstanceType = "m5.8xlarge" + InstanceTypeM512xlarge InstanceType = "m5.12xlarge" + InstanceTypeM516xlarge InstanceType = "m5.16xlarge" + InstanceTypeM524xlarge InstanceType = "m5.24xlarge" + InstanceTypeM5Metal InstanceType = "m5.metal" + InstanceTypeM5aLarge InstanceType = "m5a.large" + InstanceTypeM5aXlarge InstanceType = "m5a.xlarge" + InstanceTypeM5a2xlarge InstanceType = "m5a.2xlarge" + InstanceTypeM5a4xlarge InstanceType = "m5a.4xlarge" + InstanceTypeM5a8xlarge InstanceType = "m5a.8xlarge" + InstanceTypeM5a12xlarge InstanceType = "m5a.12xlarge" + InstanceTypeM5a16xlarge InstanceType = "m5a.16xlarge" + InstanceTypeM5a24xlarge InstanceType = "m5a.24xlarge" + InstanceTypeM5dLarge InstanceType = "m5d.large" + InstanceTypeM5dXlarge InstanceType = "m5d.xlarge" + InstanceTypeM5d2xlarge InstanceType = "m5d.2xlarge" + InstanceTypeM5d4xlarge InstanceType = "m5d.4xlarge" + InstanceTypeM5d8xlarge InstanceType = "m5d.8xlarge" + InstanceTypeM5d12xlarge InstanceType = "m5d.12xlarge" + InstanceTypeM5d16xlarge InstanceType = "m5d.16xlarge" + InstanceTypeM5d24xlarge InstanceType = "m5d.24xlarge" + InstanceTypeM5dMetal InstanceType = "m5d.metal" + InstanceTypeM5adLarge InstanceType = "m5ad.large" + InstanceTypeM5adXlarge InstanceType = "m5ad.xlarge" + InstanceTypeM5ad2xlarge InstanceType = "m5ad.2xlarge" + InstanceTypeM5ad4xlarge InstanceType = "m5ad.4xlarge" + InstanceTypeM5ad8xlarge InstanceType = "m5ad.8xlarge" + InstanceTypeM5ad12xlarge InstanceType = "m5ad.12xlarge" + InstanceTypeM5ad16xlarge InstanceType = "m5ad.16xlarge" + InstanceTypeM5ad24xlarge InstanceType = "m5ad.24xlarge" + InstanceTypeM5znLarge InstanceType = "m5zn.large" + InstanceTypeM5znXlarge InstanceType = "m5zn.xlarge" + InstanceTypeM5zn2xlarge InstanceType = "m5zn.2xlarge" + InstanceTypeM5zn3xlarge InstanceType = "m5zn.3xlarge" + InstanceTypeM5zn6xlarge InstanceType = "m5zn.6xlarge" + InstanceTypeM5zn12xlarge InstanceType = "m5zn.12xlarge" + InstanceTypeM5znMetal InstanceType = "m5zn.metal" + InstanceTypeH12xlarge InstanceType = "h1.2xlarge" + InstanceTypeH14xlarge InstanceType = "h1.4xlarge" + InstanceTypeH18xlarge InstanceType = "h1.8xlarge" + InstanceTypeH116xlarge InstanceType = "h1.16xlarge" + InstanceTypeZ1dLarge InstanceType = "z1d.large" + InstanceTypeZ1dXlarge InstanceType = "z1d.xlarge" + InstanceTypeZ1d2xlarge InstanceType = "z1d.2xlarge" + InstanceTypeZ1d3xlarge InstanceType = "z1d.3xlarge" + InstanceTypeZ1d6xlarge InstanceType = "z1d.6xlarge" + InstanceTypeZ1d12xlarge InstanceType = "z1d.12xlarge" + InstanceTypeZ1dMetal InstanceType = "z1d.metal" + InstanceTypeU6tb156xlarge InstanceType = "u-6tb1.56xlarge" + InstanceTypeU6tb1112xlarge InstanceType = "u-6tb1.112xlarge" + InstanceTypeU9tb1112xlarge InstanceType = "u-9tb1.112xlarge" + InstanceTypeU12tb1112xlarge InstanceType = "u-12tb1.112xlarge" + InstanceTypeU6tb1Metal InstanceType = "u-6tb1.metal" + InstanceTypeU9tb1Metal InstanceType = "u-9tb1.metal" + InstanceTypeU12tb1Metal InstanceType = "u-12tb1.metal" + InstanceTypeU18tb1Metal InstanceType = "u-18tb1.metal" + InstanceTypeU24tb1Metal InstanceType = "u-24tb1.metal" + InstanceTypeA1Medium InstanceType = "a1.medium" + InstanceTypeA1Large InstanceType = "a1.large" + InstanceTypeA1Xlarge InstanceType = "a1.xlarge" + InstanceTypeA12xlarge InstanceType = "a1.2xlarge" + InstanceTypeA14xlarge InstanceType = "a1.4xlarge" + InstanceTypeA1Metal InstanceType = "a1.metal" + InstanceTypeM5dnLarge InstanceType = "m5dn.large" + InstanceTypeM5dnXlarge InstanceType = "m5dn.xlarge" + InstanceTypeM5dn2xlarge InstanceType = "m5dn.2xlarge" + InstanceTypeM5dn4xlarge InstanceType = "m5dn.4xlarge" + InstanceTypeM5dn8xlarge InstanceType = "m5dn.8xlarge" + InstanceTypeM5dn12xlarge InstanceType = "m5dn.12xlarge" + InstanceTypeM5dn16xlarge InstanceType = "m5dn.16xlarge" + InstanceTypeM5dn24xlarge InstanceType = "m5dn.24xlarge" + InstanceTypeM5dnMetal InstanceType = "m5dn.metal" + InstanceTypeM5nLarge InstanceType = "m5n.large" + InstanceTypeM5nXlarge InstanceType = "m5n.xlarge" + InstanceTypeM5n2xlarge InstanceType = "m5n.2xlarge" + InstanceTypeM5n4xlarge InstanceType = "m5n.4xlarge" + InstanceTypeM5n8xlarge InstanceType = "m5n.8xlarge" + InstanceTypeM5n12xlarge InstanceType = "m5n.12xlarge" + InstanceTypeM5n16xlarge InstanceType = "m5n.16xlarge" + InstanceTypeM5n24xlarge InstanceType = "m5n.24xlarge" + InstanceTypeM5nMetal InstanceType = "m5n.metal" + InstanceTypeR5dnLarge InstanceType = "r5dn.large" + InstanceTypeR5dnXlarge InstanceType = "r5dn.xlarge" + InstanceTypeR5dn2xlarge InstanceType = "r5dn.2xlarge" + InstanceTypeR5dn4xlarge InstanceType = "r5dn.4xlarge" + InstanceTypeR5dn8xlarge InstanceType = "r5dn.8xlarge" + InstanceTypeR5dn12xlarge InstanceType = "r5dn.12xlarge" + InstanceTypeR5dn16xlarge InstanceType = "r5dn.16xlarge" + InstanceTypeR5dn24xlarge InstanceType = "r5dn.24xlarge" + InstanceTypeR5dnMetal InstanceType = "r5dn.metal" + InstanceTypeR5nLarge InstanceType = "r5n.large" + InstanceTypeR5nXlarge InstanceType = "r5n.xlarge" + InstanceTypeR5n2xlarge InstanceType = "r5n.2xlarge" + InstanceTypeR5n4xlarge InstanceType = "r5n.4xlarge" + InstanceTypeR5n8xlarge InstanceType = "r5n.8xlarge" + InstanceTypeR5n12xlarge InstanceType = "r5n.12xlarge" + InstanceTypeR5n16xlarge InstanceType = "r5n.16xlarge" + InstanceTypeR5n24xlarge InstanceType = "r5n.24xlarge" + InstanceTypeR5nMetal InstanceType = "r5n.metal" + InstanceTypeInf1Xlarge InstanceType = "inf1.xlarge" + InstanceTypeInf12xlarge InstanceType = "inf1.2xlarge" + InstanceTypeInf16xlarge InstanceType = "inf1.6xlarge" + InstanceTypeInf124xlarge InstanceType = "inf1.24xlarge" + InstanceTypeM6gMetal InstanceType = "m6g.metal" + InstanceTypeM6gMedium InstanceType = "m6g.medium" + InstanceTypeM6gLarge InstanceType = "m6g.large" + InstanceTypeM6gXlarge InstanceType = "m6g.xlarge" + InstanceTypeM6g2xlarge InstanceType = "m6g.2xlarge" + InstanceTypeM6g4xlarge InstanceType = "m6g.4xlarge" + InstanceTypeM6g8xlarge InstanceType = "m6g.8xlarge" + InstanceTypeM6g12xlarge InstanceType = "m6g.12xlarge" + InstanceTypeM6g16xlarge InstanceType = "m6g.16xlarge" + InstanceTypeM6gdMetal InstanceType = "m6gd.metal" + InstanceTypeM6gdMedium InstanceType = "m6gd.medium" + InstanceTypeM6gdLarge InstanceType = "m6gd.large" + InstanceTypeM6gdXlarge InstanceType = "m6gd.xlarge" + InstanceTypeM6gd2xlarge InstanceType = "m6gd.2xlarge" + InstanceTypeM6gd4xlarge InstanceType = "m6gd.4xlarge" + InstanceTypeM6gd8xlarge InstanceType = "m6gd.8xlarge" + InstanceTypeM6gd12xlarge InstanceType = "m6gd.12xlarge" + InstanceTypeM6gd16xlarge InstanceType = "m6gd.16xlarge" + InstanceTypeMac1Metal InstanceType = "mac1.metal" + InstanceTypeX2gdMedium InstanceType = "x2gd.medium" + InstanceTypeX2gdLarge InstanceType = "x2gd.large" + InstanceTypeX2gdXlarge InstanceType = "x2gd.xlarge" + InstanceTypeX2gd2xlarge InstanceType = "x2gd.2xlarge" + InstanceTypeX2gd4xlarge InstanceType = "x2gd.4xlarge" + InstanceTypeX2gd8xlarge InstanceType = "x2gd.8xlarge" + InstanceTypeX2gd12xlarge InstanceType = "x2gd.12xlarge" + InstanceTypeX2gd16xlarge InstanceType = "x2gd.16xlarge" + InstanceTypeX2gdMetal InstanceType = "x2gd.metal" ) // Values returns all known values for InstanceType. Note that this can be expanded @@ -2712,7 +2742,6 @@ func (InstanceType) Values() []InstanceType { "c6gn.8xlarge", "c6gn.12xlarge", "c6gn.16xlarge", - "c6gn.metal", "cc1.4xlarge", "cc2.8xlarge", "g2.2xlarge", @@ -2721,8 +2750,6 @@ func (InstanceType) Values() []InstanceType { "g3.8xlarge", "g3.16xlarge", "g3s.xlarge", - "g4ad.xlarge", - "g4ad.2xlarge", "g4ad.4xlarge", "g4ad.8xlarge", "g4ad.16xlarge", @@ -2750,15 +2777,12 @@ func (InstanceType) Values() []InstanceType { "d3.2xlarge", "d3.4xlarge", "d3.8xlarge", - "d3.metal", - "d3en.large", "d3en.xlarge", "d3en.2xlarge", "d3en.4xlarge", "d3en.6xlarge", "d3en.8xlarge", "d3en.12xlarge", - "d3en.metal", "f1.2xlarge", "f1.4xlarge", "f1.16xlarge", @@ -2807,7 +2831,6 @@ func (InstanceType) Values() []InstanceType { "h1.4xlarge", "h1.8xlarge", "h1.16xlarge", - "hpc5a.48xlarge", "z1d.large", "z1d.xlarge", "z1d.2xlarge", @@ -2815,6 +2838,10 @@ func (InstanceType) Values() []InstanceType { "z1d.6xlarge", "z1d.12xlarge", "z1d.metal", + "u-6tb1.56xlarge", + "u-6tb1.112xlarge", + "u-9tb1.112xlarge", + "u-12tb1.112xlarge", "u-6tb1.metal", "u-9tb1.metal", "u-12tb1.metal", @@ -2834,6 +2861,7 @@ func (InstanceType) Values() []InstanceType { "m5dn.12xlarge", "m5dn.16xlarge", "m5dn.24xlarge", + "m5dn.metal", "m5n.large", "m5n.xlarge", "m5n.2xlarge", @@ -2842,6 +2870,7 @@ func (InstanceType) Values() []InstanceType { "m5n.12xlarge", "m5n.16xlarge", "m5n.24xlarge", + "m5n.metal", "r5dn.large", "r5dn.xlarge", "r5dn.2xlarge", @@ -2850,6 +2879,7 @@ func (InstanceType) Values() []InstanceType { "r5dn.12xlarge", "r5dn.16xlarge", "r5dn.24xlarge", + "r5dn.metal", "r5n.large", "r5n.xlarge", "r5n.2xlarge", @@ -2858,6 +2888,7 @@ func (InstanceType) Values() []InstanceType { "r5n.12xlarge", "r5n.16xlarge", "r5n.24xlarge", + "r5n.metal", "inf1.xlarge", "inf1.2xlarge", "inf1.6xlarge", @@ -2881,6 +2912,15 @@ func (InstanceType) Values() []InstanceType { "m6gd.12xlarge", "m6gd.16xlarge", "mac1.metal", + "x2gd.medium", + "x2gd.large", + "x2gd.xlarge", + "x2gd.2xlarge", + "x2gd.4xlarge", + "x2gd.8xlarge", + "x2gd.12xlarge", + "x2gd.16xlarge", + "x2gd.metal", } } @@ -2920,6 +2960,24 @@ func (InterfacePermissionType) Values() []InterfacePermissionType { } } +type InterfaceProtocolType string + +// Enum values for InterfaceProtocolType +const ( + InterfaceProtocolTypeVlan InterfaceProtocolType = "VLAN" + InterfaceProtocolTypeGre InterfaceProtocolType = "GRE" +) + +// Values returns all known values for InterfaceProtocolType. 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 (InterfaceProtocolType) Values() []InterfaceProtocolType { + return []InterfaceProtocolType{ + "VLAN", + "GRE", + } +} + type Ipv6SupportValue string // Enum values for Ipv6SupportValue @@ -3306,7 +3364,9 @@ type NetworkInterfaceCreationType string // Enum values for NetworkInterfaceCreationType const ( - NetworkInterfaceCreationTypeEfa NetworkInterfaceCreationType = "efa" + NetworkInterfaceCreationTypeEfa NetworkInterfaceCreationType = "efa" + NetworkInterfaceCreationTypeBranch NetworkInterfaceCreationType = "branch" + NetworkInterfaceCreationTypeTrunk NetworkInterfaceCreationType = "trunk" ) // Values returns all known values for NetworkInterfaceCreationType. Note that this @@ -3315,6 +3375,8 @@ const ( func (NetworkInterfaceCreationType) Values() []NetworkInterfaceCreationType { return []NetworkInterfaceCreationType{ "efa", + "branch", + "trunk", } } @@ -3372,6 +3434,7 @@ const ( NetworkInterfaceTypeInterface NetworkInterfaceType = "interface" NetworkInterfaceTypeNatGateway NetworkInterfaceType = "natGateway" NetworkInterfaceTypeEfa NetworkInterfaceType = "efa" + NetworkInterfaceTypeTrunk NetworkInterfaceType = "trunk" ) // Values returns all known values for NetworkInterfaceType. Note that this can be @@ -3382,6 +3445,7 @@ func (NetworkInterfaceType) Values() []NetworkInterfaceType { "interface", "natGateway", "efa", + "trunk", } } @@ -3465,6 +3529,28 @@ func (OperationType) Values() []OperationType { } } +type PartitionLoadFrequency string + +// Enum values for PartitionLoadFrequency +const ( + PartitionLoadFrequencyNone PartitionLoadFrequency = "none" + PartitionLoadFrequencyDaily PartitionLoadFrequency = "daily" + PartitionLoadFrequencyWeekly PartitionLoadFrequency = "weekly" + PartitionLoadFrequencyMonthly PartitionLoadFrequency = "monthly" +) + +// Values returns all known values for PartitionLoadFrequency. 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 (PartitionLoadFrequency) Values() []PartitionLoadFrequency { + return []PartitionLoadFrequency{ + "none", + "daily", + "weekly", + "monthly", + } +} + type PaymentOption string // Enum values for PaymentOption @@ -3727,6 +3813,32 @@ func (ReplacementStrategy) Values() []ReplacementStrategy { } } +type ReplaceRootVolumeTaskState string + +// Enum values for ReplaceRootVolumeTaskState +const ( + ReplaceRootVolumeTaskStatePending ReplaceRootVolumeTaskState = "pending" + ReplaceRootVolumeTaskStateInProgress ReplaceRootVolumeTaskState = "in-progress" + ReplaceRootVolumeTaskStateFailing ReplaceRootVolumeTaskState = "failing" + ReplaceRootVolumeTaskStateSucceeded ReplaceRootVolumeTaskState = "succeeded" + ReplaceRootVolumeTaskStateFailed ReplaceRootVolumeTaskState = "failed" + ReplaceRootVolumeTaskStateFailedDetached ReplaceRootVolumeTaskState = "failed-detached" +) + +// Values returns all known values for ReplaceRootVolumeTaskState. 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 (ReplaceRootVolumeTaskState) Values() []ReplaceRootVolumeTaskState { + return []ReplaceRootVolumeTaskState{ + "pending", + "in-progress", + "failing", + "succeeded", + "failed", + "failed-detached", + } +} + type ReportInstanceReasonCodes string // Enum values for ReportInstanceReasonCodes @@ -3885,12 +3997,12 @@ const ( ResourceTypeNetworkAcl ResourceType = "network-acl" ResourceTypeNetworkInterface ResourceType = "network-interface" ResourceTypeNetworkInsightsAnalysis ResourceType = "network-insights-analysis" + ResourceTypeNetworkInsightsBoundary ResourceType = "network-insights-boundary" ResourceTypeNetworkInsightsPath ResourceType = "network-insights-path" ResourceTypePlacementGroup ResourceType = "placement-group" ResourceTypeReservedInstances ResourceType = "reserved-instances" ResourceTypeRouteTable ResourceType = "route-table" ResourceTypeSecurityGroup ResourceType = "security-group" - ResourceTypeSecurityGroupRule ResourceType = "security-group-rule" ResourceTypeSnapshot ResourceType = "snapshot" ResourceTypeSpotFleetRequest ResourceType = "spot-fleet-request" ResourceTypeSpotInstancesRequest ResourceType = "spot-instances-request" @@ -3940,12 +4052,12 @@ func (ResourceType) Values() []ResourceType { "network-acl", "network-interface", "network-insights-analysis", + "network-insights-boundary", "network-insights-path", "placement-group", "reserved-instances", "route-table", "security-group", - "security-group-rule", "snapshot", "spot-fleet-request", "spot-instances-request", @@ -4220,9 +4332,10 @@ type SpotAllocationStrategy string // Enum values for SpotAllocationStrategy const ( - SpotAllocationStrategyLowestPrice SpotAllocationStrategy = "lowest-price" - SpotAllocationStrategyDiversified SpotAllocationStrategy = "diversified" - SpotAllocationStrategyCapacityOptimized SpotAllocationStrategy = "capacity-optimized" + SpotAllocationStrategyLowestPrice SpotAllocationStrategy = "lowest-price" + SpotAllocationStrategyDiversified SpotAllocationStrategy = "diversified" + SpotAllocationStrategyCapacityOptimized SpotAllocationStrategy = "capacity-optimized" + SpotAllocationStrategyCapacityOptimizedPrioritized SpotAllocationStrategy = "capacity-optimized-prioritized" ) // Values returns all known values for SpotAllocationStrategy. Note that this can @@ -4233,6 +4346,7 @@ func (SpotAllocationStrategy) Values() []SpotAllocationStrategy { "lowest-price", "diversified", "capacity-optimized", + "capacity-optimized-prioritized", } } 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 3bd28ddcb..d4b6a37a0 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 @@ -87,7 +87,7 @@ type Address struct { // The ID of the network interface. NetworkInterfaceId *string - // The ID of the AWS account that owns the network interface. + // The ID of the account that owns the network interface. NetworkInterfaceOwnerId *string // The private IP address associated with the Elastic IP address. @@ -103,13 +103,19 @@ type Address struct { Tags []Tag } +// The attributes associated with an Elastic IP address. type AddressAttribute struct { + + // [EC2-VPC] The allocation ID. AllocationId *string + // The pointer (PTR) record for the IP address. PtrRecord *string + // The updated PTR record for the IP address. PtrRecordUpdate *PtrUpdateStatus + // The public IP address. PublicIp *string } @@ -140,7 +146,7 @@ type AnalysisAclRule struct { Cidr *string // Indicates whether the rule is an outbound rule. - Egress bool + Egress *bool // The range of ports. PortRange *PortRange @@ -152,7 +158,7 @@ type AnalysisAclRule struct { RuleAction *string // The rule number. - RuleNumber int32 + RuleNumber *int32 } // Describes a path component. @@ -169,10 +175,10 @@ type AnalysisComponent struct { type AnalysisLoadBalancerListener struct { // [Classic Load Balancers] The back-end port for the listener. - InstancePort int32 + InstancePort *int32 // The port on which the load balancer is listening. - LoadBalancerPort int32 + LoadBalancerPort *int32 } // Describes a load balancer target. @@ -188,7 +194,7 @@ type AnalysisLoadBalancerTarget struct { Instance *AnalysisComponent // The port on which the target is listening. - Port int32 + Port *int32 } // Describes a header. Reflects any changes made by a component as traffic passes @@ -299,7 +305,7 @@ type AssociatedRole struct { // The key of the Amazon S3 object ey where the certificate, certificate chain, and // encrypted private key bundle is stored. The object key is formated as follows: - // certificate_arn/role_arn. + // role_arn/certificate_arn. CertificateS3ObjectKey *string // The ID of the KMS customer master key (CMK) used to encrypt the private key. @@ -327,11 +333,31 @@ type AssociationStatus struct { Message *string } +// Describes integration options for Amazon Athena. +type AthenaIntegration struct { + + // The location in Amazon S3 to store the generated CloudFormation template. + // + // This member is required. + IntegrationResultS3DestinationArn *string + + // The schedule for adding new partitions to the table. + // + // This member is required. + PartitionLoadFrequency PartitionLoadFrequency + + // The end date for the partition. + PartitionEndDate *time.Time + + // The start date for the partition. + PartitionStartDate *time.Time +} + // Describes a value for a resource attribute that is a Boolean value. type AttributeBooleanValue struct { // The attribute value. The valid values are true or false. - Value bool + Value *bool } // Describes a value for a resource attribute that is a String. @@ -345,7 +371,7 @@ type AttributeValue struct { type AuthorizationRule struct { // Indicates whether the authorization rule grants access to all clients. - AccessAll bool + AccessAll *bool // The ID of the Client VPN endpoint with which the authorization rule is // associated. @@ -429,7 +455,7 @@ type AvailableCapacity struct { AvailableInstanceCapacity []InstanceCapacity // The number of vCPUs available for launching instances onto the Dedicated Host. - AvailableVCpus int32 + AvailableVCpus *int32 } type BlobAttributeValue struct { @@ -446,7 +472,7 @@ type BlockDeviceMapping struct { // launched. Ebs *EbsBlockDevice - // Suppresses the specified device included in the block device mapping of the AMI. + // To omit the device from the block device mapping, specify an empty string. NoDevice *string // The virtual device name (ephemeralN). Instance store volumes are numbered @@ -500,8 +526,8 @@ type BundleTaskError struct { Message *string } -// Information about an address range that is provisioned for use with your AWS -// resources through bring your own IP addresses (BYOIP). +// Information about an address range that is provisioned for use with your Amazon +// Web Services resources through bring your own IP addresses (BYOIP). type ByoipCidr struct { // The address range, in CIDR notation. @@ -572,7 +598,7 @@ type CapacityReservation struct { // The remaining capacity. Indicates the number of instances that can be launched // in the Capacity Reservation. - AvailableInstanceCount int32 + AvailableInstanceCount *int32 // The Amazon Resource Name (ARN) of the Capacity Reservation. CapacityReservationArn *string @@ -588,7 +614,7 @@ type CapacityReservation struct { // configuration stack to provide optimal I/O performance. This optimization isn't // available with all instance types. Additional usage charges apply when using an // EBS- optimized instance. - EbsOptimized bool + EbsOptimized *bool // The date and time at which the Capacity Reservation expires. When a Capacity // Reservation expires, the reserved capacity is released and you can no longer @@ -608,7 +634,7 @@ type CapacityReservation struct { // Indicates whether the Capacity Reservation supports instances with temporary, // block-level storage. - EphemeralStorage bool + EphemeralStorage *bool // Indicates the type of instance launches that the Capacity Reservation accepts. // The options include: @@ -632,9 +658,16 @@ type CapacityReservation struct { // The type of instance for which the Capacity Reservation reserves capacity. InstanceType *string - // The ID of the AWS account that owns the Capacity Reservation. + // The Amazon Resource Name (ARN) of the Outpost on which the Capacity Reservation + // was created. + OutpostArn *string + + // The ID of the account that owns the Capacity Reservation. OwnerId *string + // The date and time at which the Capacity Reservation was started. + StartDate *time.Time + // The current state of the Capacity Reservation. A Capacity Reservation can be in // one of the following states: // @@ -646,16 +679,16 @@ type CapacityReservation struct { // reserved capacity is no longer available for your use. // // * cancelled - The - // Capacity Reservation was manually cancelled. The reserved capacity is no longer - // available for your use. + // Capacity Reservation was cancelled. The reserved capacity is no longer available + // for your use. // - // * pending - The Capacity Reservation request was - // successful but the capacity provisioning is still pending. + // * 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 might fail due to invalid request parameters, + // capacity constraints, or instance limit constraints. Failed requests are + // retained for 60 minutes. State CapacityReservationState // Any tags assigned to the Capacity Reservation. @@ -665,16 +698,16 @@ type CapacityReservation struct { // have one of the following tenancy settings: // // * default - The Capacity - // Reservation is created on hardware that is shared with other AWS accounts. + // Reservation is created on hardware that is shared with other accounts. // // * // dedicated - The Capacity Reservation is created on single-tenant hardware that - // is dedicated to a single AWS account. + // is dedicated to a single account. Tenancy CapacityReservationTenancy // The total number of instances for which the Capacity Reservation reserves // capacity. - TotalInstanceCount int32 + TotalInstanceCount *int32 } // Describes a resource group to which a Capacity Reservation has been added. @@ -683,7 +716,7 @@ type CapacityReservationGroup struct { // The ARN of the resource group. GroupArn *string - // The ID of the AWS account that owns the resource group. + // The ID of the account that owns the resource group. OwnerId *string } @@ -692,10 +725,10 @@ type CapacityReservationGroup struct { // instant. For more information about Capacity Reservations, see On-Demand // Capacity Reservations // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-capacity-reservations.html) -// in the Amazon Elastic Compute Cloud User Guide. For examples of using Capacity -// Reservations in an EC2 Fleet, see EC2 Fleet example configurations +// in the Amazon EC2 User Guide. For examples of using Capacity Reservations in an +// EC2 Fleet, see EC2 Fleet example configurations // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-fleet-examples.html) in -// the Amazon Elastic Compute Cloud User Guide. +// the Amazon EC2 User Guide. type CapacityReservationOptions struct { // Indicates whether to use unused Capacity Reservations for fulfilling On-Demand @@ -716,10 +749,10 @@ type CapacityReservationOptions struct { // instant. For more information about Capacity Reservations, see On-Demand // Capacity Reservations // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-capacity-reservations.html) -// in the Amazon Elastic Compute Cloud User Guide. For examples of using Capacity -// Reservations in an EC2 Fleet, see EC2 Fleet example configurations +// in the Amazon EC2 User Guide. For examples of using Capacity Reservations in an +// EC2 Fleet, see EC2 Fleet example configurations // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-fleet-examples.html) in -// the Amazon Elastic Compute Cloud User Guide. +// the Amazon EC2 User Guide. type CapacityReservationOptionsRequest struct { // Indicates whether to use unused Capacity Reservations for fulfilling On-Demand @@ -841,8 +874,8 @@ type CertificateAuthenticationRequest struct { } // Provides authorization for Amazon to bring a specific IP address range to a -// specific AWS account using bring your own IP addresses (BYOIP). For more -// information, see Prepare to Bring Your Address Range to Your AWS Account +// specific account using bring your own IP addresses (BYOIP). For more +// information, see Configuring your BYOIP address range // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-byoip.html#prepare-for-byoip) // in the Amazon Elastic Compute Cloud User Guide. type CidrAuthorizationContext struct { @@ -869,7 +902,7 @@ type CidrBlock struct { type ClassicLinkDnsSupport struct { // Indicates whether ClassicLink DNS support is enabled for the VPC. - ClassicLinkDnsSupported bool + ClassicLinkDnsSupported *bool // The ID of the VPC. VpcId *string @@ -922,7 +955,7 @@ type ClientConnectOptions struct { // Indicates whether client connect options are enabled. The default is false (not // enabled). - Enabled bool + Enabled *bool // The Amazon Resource Name (ARN) of the AWS Lambda function used for connection // authorization. @@ -933,7 +966,7 @@ type ClientConnectOptions struct { type ClientConnectResponseOptions struct { // Indicates whether client connect options are enabled. - Enabled bool + Enabled *bool // The Amazon Resource Name (ARN) of the AWS Lambda function used for connection // authorization. @@ -953,7 +986,7 @@ type ClientData struct { UploadEnd *time.Time // The size of the uploaded disk image, in GiB. - UploadSize float64 + UploadSize *float64 // The time that the disk upload starts. UploadStart *time.Time @@ -1126,7 +1159,7 @@ type ClientVpnEndpoint struct { // Endpoint // (https://docs.aws.amazon.com/vpn/latest/clientvpn-admin/split-tunnel-vpn.html) // in the AWS Client VPN Administrator Guide. - SplitTunnel bool + SplitTunnel *bool // The current state of the Client VPN endpoint. Status *ClientVpnEndpointStatus @@ -1141,7 +1174,7 @@ type ClientVpnEndpoint struct { VpcId *string // The port number for the Client VPN endpoint. - VpnPort int32 + VpnPort *int32 // The protocol used by the VPN session. VpnProtocol VpnProtocol @@ -1267,7 +1300,7 @@ type ConnectionLogOptions struct { CloudwatchLogStream *string // Indicates whether connection logging is enabled. - Enabled bool + Enabled *bool } // Information about the client connection logging options for a Client VPN @@ -1284,7 +1317,7 @@ type ConnectionLogResponseOptions struct { // Indicates whether client connection logging is enabled for the Client VPN // endpoint. - Enabled bool + Enabled *bool } // Describes a connection notification for a VPC endpoint or VPC endpoint service. @@ -1345,10 +1378,10 @@ type ConversionTask struct { type CpuOptions struct { // The number of CPU cores for the instance. - CoreCount int32 + CoreCount *int32 // The number of threads per CPU core. - ThreadsPerCore int32 + ThreadsPerCore *int32 } // The CPU options for the instance. Both the core count and threads per core must @@ -1356,11 +1389,11 @@ type CpuOptions struct { type CpuOptionsRequest struct { // The number of CPU cores for the instance. - CoreCount int32 + CoreCount *int32 // The number of threads per CPU core. To disable multithreading for the instance, // specify a value of 1. Otherwise, specify the default value of 2. - ThreadsPerCore int32 + ThreadsPerCore *int32 } // Describes the instances that could not be launched by the fleet. @@ -1563,7 +1596,7 @@ type DeleteLaunchTemplateVersionsResponseErrorItem struct { ResponseError *ResponseError // The version number of the launch template. - VersionNumber int64 + VersionNumber *int64 } // Describes a launch template version that was successfully deleted. @@ -1576,7 +1609,7 @@ type DeleteLaunchTemplateVersionsResponseSuccessItem struct { LaunchTemplateName *string // The version number of the launch template. - VersionNumber int64 + VersionNumber *int64 } // Describes the error for a Reserved Instance whose queued purchase could not be @@ -1598,7 +1631,7 @@ type DeregisterInstanceTagAttributeRequest struct { // Indicates whether to deregister all tag keys in the current Region. Specify // false to deregister all tag keys. - IncludeAllTagsOfInstance bool + IncludeAllTagsOfInstance *bool // Information about the tag keys to deregister. InstanceTagKeys []string @@ -1843,7 +1876,7 @@ type DiskImageDescription struct { ImportManifestUrl *string // The size of the disk image, in GiB. - Size int64 + Size *int64 } // Describes a disk image. @@ -1852,7 +1885,7 @@ type DiskImageDetail struct { // The size of the disk image, in GiB. // // This member is required. - Bytes int64 + Bytes *int64 // The disk image format. // @@ -1879,7 +1912,7 @@ type DiskImageVolumeDescription struct { Id *string // The size of the volume, in GiB. - Size int64 + Size *int64 } // Describes the disk. @@ -1915,7 +1948,7 @@ type DnsServersOptionsModifyStructure struct { // Indicates whether DNS servers should be used. Specify False to delete the // existing DNS servers. - Enabled bool + Enabled *bool } // Describes a block device for an EBS volume. @@ -1924,22 +1957,22 @@ type EbsBlockDevice struct { // Indicates whether the EBS volume is deleted on instance termination. For more // information, see Preserving Amazon EBS volumes on instance termination // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/terminating-instances.html#preserving-volumes-on-termination) - // in the Amazon Elastic Compute Cloud User Guide. - DeleteOnTermination bool + // in the Amazon EC2 User Guide. + DeleteOnTermination *bool // Indicates whether the encryption state of an EBS volume is changed while being // restored from a backing snapshot. The effect of setting the encryption state to // true depends on the volume origin (new or from a snapshot), starting encryption // state, ownership, and whether encryption by default is enabled. For more - // information, see Amazon EBS Encryption + // information, see Amazon EBS encryption // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSEncryption.html#encryption-parameters) - // in the Amazon Elastic Compute Cloud User Guide. In no case can you remove - // encryption from an encrypted volume. Encrypted volumes can only be attached to - // instances that support Amazon EBS encryption. For more information, see - // Supported instance types + // in the Amazon EC2 User Guide. In no case can you remove encryption from an + // encrypted volume. Encrypted volumes can only be attached to instances that + // support Amazon EBS encryption. For more information, see Supported instance + // types // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSEncryption.html#EBSEncryption_supported_instances). // This parameter is not returned by . - Encrypted bool + Encrypted *bool // The number of I/O operations per second (IOPS). For gp3, io1, and io2 volumes, // this represents the number of IOPS that are provisioned for the volume. For gp2 @@ -1960,7 +1993,7 @@ type EbsBlockDevice struct { // Other instance families guarantee performance up to 32,000 IOPS. This parameter // is required for io1 and io2 volumes. The default for gp3 volumes is 3,000 IOPS. // This parameter is not supported for gp2, st1, sc1, or standard volumes. - Iops int32 + Iops *int32 // Identifier (key ID, key alias, ID ARN, or alias ARN) for a customer managed CMK // under which the EBS volume is encrypted. This parameter is only supported on @@ -1972,6 +2005,7 @@ type EbsBlockDevice struct { // (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_RequestSpotInstances.html). KmsKeyId *string + // The ARN of the Outpost on which the snapshot is stored. OutpostArn *string // The ID of the snapshot. @@ -1979,7 +2013,7 @@ type EbsBlockDevice struct { // The throughput that the volume supports, in MiB/s. This parameter is valid only // for gp3 volumes. Valid Range: Minimum value of 125. Maximum value of 1000. - Throughput int32 + Throughput *int32 // The size of the volume, in GiBs. You must specify either a snapshot ID or a // volume size. If you specify a snapshot, the default is the snapshot size. You @@ -1991,18 +2025,16 @@ type EbsBlockDevice struct { // // * io1 and io2: 4-16,384 // - // * st1: 500-16,384 - // - // * sc1: 500-16,384 + // * st1 and sc1: 125-16,384 // - // * - // standard: 1-1,024 - VolumeSize int32 + // * standard: + // 1-1,024 + VolumeSize *int32 // The volume type. For more information, see Amazon EBS volume types // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSVolumeTypes.html) in the - // Amazon Elastic Compute Cloud User Guide. If the volume type is io1 or io2, you - // must specify the IOPS that the volume supports. + // Amazon EC2 User Guide. If the volume type is io1 or io2, you must specify the + // IOPS that the volume supports. VolumeType VolumeType } @@ -2013,9 +2045,9 @@ type EbsInfo struct { EbsOptimizedInfo *EbsOptimizedInfo // Indicates whether the instance type is Amazon EBS-optimized. For more - // information, see Amazon EBS-Optimized Instances + // information, see Amazon EBS-optimized instances // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSOptimized.html) in - // Amazon EC2 User Guide for Linux Instances. + // Amazon EC2 User Guide. EbsOptimizedSupport EbsOptimizedSupport // Indicates whether Amazon EBS encryption is supported. @@ -2032,7 +2064,7 @@ type EbsInstanceBlockDevice struct { AttachTime *time.Time // Indicates whether the volume is deleted on instance termination. - DeleteOnTermination bool + DeleteOnTermination *bool // The attachment state. Status AttachmentStatus @@ -2046,7 +2078,7 @@ type EbsInstanceBlockDevice struct { type EbsInstanceBlockDeviceSpecification struct { // Indicates whether the volume is deleted on instance termination. - DeleteOnTermination bool + DeleteOnTermination *bool // The ID of the EBS volume. VolumeId *string @@ -2076,6 +2108,13 @@ type EbsOptimizedInfo struct { MaximumThroughputInMBps *float64 } +// Describes the Elastic Fabric Adapters for the instance type. +type EfaInfo struct { + + // The maximum number of Elastic Fabric Adapters for the instance type. + MaximumEfaInterfaces *int32 +} + // Describes an egress-only internet gateway. type EgressOnlyInternetGateway struct { @@ -2170,7 +2209,7 @@ type ElasticInferenceAccelerator struct { // The number of elastic inference accelerators to attach to the instance. Default: // 1 - Count int32 + Count *int32 } // Describes the association between an instance and an elastic inference @@ -2268,22 +2307,25 @@ type EnableFastSnapshotRestoreSuccessItem struct { StateTransitionReason *string } -// Indicates whether the instance is enabled for AWS Nitro Enclaves. +// Indicates whether the instance is enabled for Amazon Web Services Nitro +// Enclaves. type EnclaveOptions struct { - // If this parameter is set to true, the instance is enabled for AWS Nitro - // Enclaves; otherwise, it is not enabled for AWS Nitro Enclaves. - Enabled bool + // If this parameter is set to true, the instance is enabled for Amazon Web + // Services Nitro Enclaves; otherwise, it is not enabled for Amazon Web Services + // Nitro Enclaves. + Enabled *bool } -// Indicates whether the instance is enabled for AWS Nitro Enclaves. For more -// information, see What is AWS Nitro Enclaves? -// (https://docs.aws.amazon.com/enclaves/latest/user/nitro-enclave.html) in the AWS -// Nitro Enclaves User Guide. +// Indicates whether the instance is enabled for Amazon Web Services Nitro +// Enclaves. For more information, see What is Amazon Web Services Nitro Enclaves? +// (https://docs.aws.amazon.com/enclaves/latest/user/nitro-enclave.html) in the +// Amazon Web Services Nitro Enclaves User Guide. type EnclaveOptionsRequest struct { - // To enable the instance for AWS Nitro Enclaves, set this parameter to true. - Enabled bool + // To enable the instance for Amazon Web Services Nitro Enclaves, set this + // parameter to true. + Enabled *bool } // Describes an EC2 Fleet or Spot Fleet event. @@ -2436,7 +2478,7 @@ type Explanation struct { LoadBalancerArn *string // The listener port of the load balancer. - LoadBalancerListenerPort int32 + LoadBalancerListenerPort *int32 // The target. LoadBalancerTarget *AnalysisLoadBalancerTarget @@ -2448,7 +2490,7 @@ type Explanation struct { LoadBalancerTargetGroups []AnalysisComponent // The target port. - LoadBalancerTargetPort int32 + LoadBalancerTargetPort *int32 // The missing component. MissingComponent *string @@ -2463,7 +2505,7 @@ type Explanation struct { PacketField *string // The port. - Port int32 + Port *int32 // The port ranges. PortRanges []PortRange @@ -2542,11 +2584,11 @@ type ExportImageTask struct { // The status message for the export image task. StatusMessage *string - // Any tags assigned to the image being exported. + // Any tags assigned to the export image task. Tags []Tag } -// Describes an instance export task. +// Describes an export instance task. type ExportTask struct { // A description of the resource being exported. @@ -2593,7 +2635,7 @@ type ExportTaskS3LocationRequest struct { S3Prefix *string } -// Describes the format and location for an instance export task. +// Describes the format and location for the export task. type ExportToS3Task struct { // The container format used to combine disk images with metadata (such as OVF). If @@ -2612,7 +2654,7 @@ type ExportToS3Task struct { S3Key *string } -// Describes an instance export task. +// Describes an export instance task. type ExportToS3TaskSpecification struct { // The container format used to combine disk images with metadata (such as OVF). If @@ -2666,32 +2708,7 @@ type FederatedAuthenticationRequest struct { // A filter name and value pair that is used to return a more specific list of // results from a describe operation. Filters can be used to match a set of -// resources by specific criteria, such as tags, attributes, or IDs. The filters -// supported by a describe operation are documented with the describe operation. -// For example: -// -// * DescribeAvailabilityZones -// -// * DescribeImages -// -// * -// DescribeInstances -// -// * DescribeKeyPairs -// -// * DescribeSecurityGroups -// -// * -// DescribeSnapshots -// -// * DescribeSubnets -// -// * DescribeTags -// -// * DescribeVolumes -// -// * -// DescribeVpcs +// resources by specific criteria, such as tags, attributes, or IDs. type Filter struct { // The name of the filter. Filter names are case-sensitive. @@ -2717,6 +2734,9 @@ type FleetData struct { // Constraints: Maximum 64 ASCII characters ClientToken *string + // Reserved. + Context *string + // The creation date and time of the EC2 Fleet. CreateTime *time.Time @@ -2736,11 +2756,11 @@ type FleetData struct { // The number of units fulfilled by this request compared to the set target // capacity. - FulfilledCapacity float64 + FulfilledCapacity *float64 // The number of units fulfilled by this request compared to the set target // On-Demand capacity. - FulfilledOnDemandCapacity float64 + FulfilledOnDemandCapacity *float64 // Information about the instances that were launched by the fleet. Valid only when // Type is set to instant. @@ -2752,8 +2772,12 @@ type FleetData struct { // The allocation strategy of On-Demand Instances in an EC2 Fleet. OnDemandOptions *OnDemandOptions - // Indicates whether EC2 Fleet should replace unhealthy instances. - ReplaceUnhealthyInstances bool + // Indicates whether EC2 Fleet should replace unhealthy Spot Instances. Supported + // only for fleets of type maintain. For more information, see EC2 Fleet health + // checks + // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/manage-ec2-fleet.html#ec2-fleet-health-checks) + // in the Amazon EC2 User Guide. + ReplaceUnhealthyInstances *bool // The configuration of Spot Instances in an EC2 Fleet. SpotOptions *SpotOptions @@ -2769,7 +2793,7 @@ type FleetData struct { // Indicates whether running instances should be terminated when the EC2 Fleet // expires. - TerminateInstancesWithExpiration bool + TerminateInstancesWithExpiration *bool // The type of request. Indicates whether the EC2 Fleet only requests the target // capacity, or also attempts to maintain it. If you request a certain target @@ -2812,7 +2836,8 @@ type FleetLaunchTemplateConfigRequest struct { LaunchTemplateSpecification *FleetLaunchTemplateSpecificationRequest // Any parameters that you specify override the same parameters in the launch - // template. + // template. For fleets of type request and maintain, a maximum of 300 items is + // allowed across all launch templates. Overrides []FleetLaunchTemplateOverridesRequest } @@ -2831,18 +2856,23 @@ type FleetLaunchTemplateOverrides struct { // The location where the instance launched, if applicable. Placement *PlacementResponse - // The priority for the launch template override. If AllocationStrategy is set to - // prioritized, EC2 Fleet uses priority to determine which launch template override - // to use first in fulfilling On-Demand capacity. The highest priority is launched - // first. Valid values are whole numbers starting at 0. The lower the number, the - // higher the priority. If no number is set, the override has the lowest priority. - Priority float64 + // The priority for the launch template override. The highest priority is launched + // first. If the On-Demand AllocationStrategy is set to prioritized, EC2 Fleet uses + // priority to determine which launch template override to use first in fulfilling + // On-Demand capacity. If the Spot AllocationStrategy is set to + // capacity-optimized-prioritized, EC2 Fleet uses priority on a best-effort basis + // to determine which launch template override to use in fulfilling Spot capacity, + // but optimizes for capacity first. Valid values are whole numbers starting at 0. + // The lower the number, the higher the priority. If no number is set, the override + // has the lowest priority. You can set the same priority for different launch + // template overrides. + Priority *float64 // The ID of the subnet in which to launch the instances. SubnetId *string // The number of units provided by the specified instance type. - WeightedCapacity float64 + WeightedCapacity *float64 } // Describes overrides for a launch template. @@ -2860,13 +2890,17 @@ type FleetLaunchTemplateOverridesRequest struct { // The location where the instance launched, if applicable. Placement *Placement - // The priority for the launch template override. If AllocationStrategy is set to - // prioritized, EC2 Fleet uses priority to determine which launch template override - // to use first in fulfilling On-Demand capacity. The highest priority is launched - // first. Valid values are whole numbers starting at 0. The lower the number, the - // higher the priority. If no number is set, the launch template override has the - // lowest priority. - Priority float64 + // The priority for the launch template override. The highest priority is launched + // first. If the On-Demand AllocationStrategy is set to prioritized, EC2 Fleet uses + // priority to determine which launch template override to use first in fulfilling + // On-Demand capacity. If the Spot AllocationStrategy is set to + // capacity-optimized-prioritized, EC2 Fleet uses priority on a best-effort basis + // to determine which launch template override to use in fulfilling Spot capacity, + // but optimizes for capacity first. Valid values are whole numbers starting at 0. + // The lower the number, the higher the priority. If no number is set, the launch + // template override has the lowest priority. You can set the same priority for + // different launch template overrides. + Priority *float64 // The IDs of the subnets in which to launch the instances. Separate multiple // subnet IDs using commas (for example, subnet-1234abcdeexample1, @@ -2875,7 +2909,7 @@ type FleetLaunchTemplateOverridesRequest struct { SubnetId *string // The number of units provided by the specified instance type. - WeightedCapacity float64 + WeightedCapacity *float64 } // Describes the Amazon EC2 launch template and the launch template version that @@ -2905,7 +2939,7 @@ type FleetLaunchTemplateSpecification struct { // can be used by an EC2 Fleet to configure Amazon EC2 instances. For information // about launch templates, see Launching an instance from a launch template // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-launch-templates.html) -// in the Amazon Elastic Compute Cloud User Guide. +// in the Amazon EC2 User Guide. type FleetLaunchTemplateSpecificationRequest struct { // The ID of the launch template. If you specify the template ID, you can't specify @@ -2940,7 +2974,7 @@ type FleetSpotCapacityRebalance struct { // that your Spot Instance is at an elevated risk of being interrupted. For more // information, see Capacity rebalancing // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-fleet-configuration-strategies.html#ec2-fleet-capacity-rebalance) -// in the Amazon Elastic Compute Cloud User Guide. +// in the Amazon EC2 User Guide. type FleetSpotCapacityRebalanceRequest struct { // The replacement strategy to use. Only available for fleets of type maintain. To @@ -3021,7 +3055,7 @@ type FlowLog struct { // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html#ec2-nitro-instances), // the aggregation interval is always 60 seconds (1 minute) or less, regardless of // the specified value. Valid Values: 60 | 600 - MaxAggregationInterval int32 + MaxAggregationInterval *int32 // The ID of the resource on which the flow log was created. ResourceId *string @@ -3063,7 +3097,7 @@ type FpgaImage struct { CreateTime *time.Time // Indicates whether data retention support is enabled for the AFI. - DataRetentionSupport bool + DataRetentionSupport *bool // The description of the AFI. Description *string @@ -3091,7 +3125,7 @@ type FpgaImage struct { ProductCodes []ProductCode // Indicates whether the AFI is public. - Public bool + Public *bool // The version of the AWS Shell that was used to create the bitstream. ShellVersion *string @@ -3206,12 +3240,12 @@ type GroupIdentifier struct { // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Hibernate.html#hibernating-prerequisites). // For more information, see Hibernate your instance // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Hibernate.html) in the -// Amazon Elastic Compute Cloud User Guide. +// Amazon EC2 User Guide. type HibernationOptions struct { // If this parameter is set to true, your instance is enabled for hibernation; // otherwise, it is not enabled for hibernation. - Configured bool + Configured *bool } // Indicates whether your instance is configured for hibernation. This parameter is @@ -3219,12 +3253,12 @@ type HibernationOptions struct { // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Hibernate.html#hibernating-prerequisites). // For more information, see Hibernate your instance // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Hibernate.html) in the -// Amazon Elastic Compute Cloud User Guide. +// Amazon EC2 User Guide. type HibernationOptionsRequest struct { // If you set this parameter to true, your instance is enabled for hibernation. // Default: false - Configured bool + Configured *bool } // Describes an event in the history of the Spot Fleet request. @@ -3273,9 +3307,9 @@ type Host struct { AllocationTime *time.Time // Indicates whether the Dedicated Host supports multiple instance types of the - // same instance family, or a specific instance type only. one indicates that the - // Dedicated Host supports multiple instance types in the instance family. off - // indicates that the Dedicated Host supports a single instance type only. + // same instance family. If the value is on, the Dedicated Host supports multiple + // instance types in the instance family. If the value is off, the Dedicated Host + // supports a single instance type only. AllowsMultipleInstanceTypes AllowsMultipleInstanceTypes // Whether auto-placement is on or off. @@ -3291,7 +3325,7 @@ type Host struct { AvailableCapacity *AvailableCapacity // Unique, case-sensitive identifier that you provide to ensure the idempotency of - // the request. For more information, see How to Ensure Idempotency + // the request. For more information, see Ensuring Idempotency // (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html). ClientToken *string @@ -3314,9 +3348,9 @@ type Host struct { // Indicates whether the Dedicated Host is in a host resource group. If // memberOfServiceLinkedResourceGroup is true, the host is in a host resource // group; otherwise, it is not. - MemberOfServiceLinkedResourceGroup bool + MemberOfServiceLinkedResourceGroup *bool - // The ID of the AWS account that owns the Dedicated Host. + // The ID of the account that owns the Dedicated Host. OwnerId *string // The time that the Dedicated Host was released. @@ -3338,7 +3372,7 @@ type HostInstance struct { // The instance type (for example, m3.medium) of the running instance. InstanceType *string - // The ID of the AWS account that owns the instance. + // The ID of the account that owns the instance. OwnerId *string } @@ -3349,7 +3383,7 @@ type HostOffering struct { CurrencyCode CurrencyCodeValues // The duration of the offering (in seconds). - Duration int32 + Duration *int32 // The hourly price of the offering. HourlyPrice *string @@ -3371,7 +3405,7 @@ type HostOffering struct { type HostProperties struct { // The number of cores on the Dedicated Host. - Cores int32 + Cores *int32 // The instance family supported by the Dedicated Host. For example, m5. InstanceFamily *string @@ -3381,17 +3415,17 @@ type HostProperties struct { InstanceType *string // The number of sockets on the Dedicated Host. - Sockets int32 + Sockets *int32 // The total number of vCPUs on the Dedicated Host. - TotalVCpus int32 + TotalVCpus *int32 } // Details about the Dedicated Host Reservation and associated Dedicated Hosts. type HostReservation struct { // The number of Dedicated Hosts the reservation is associated with. - Count int32 + Count *int32 // The currency in which the upfrontPrice and hourlyPrice amounts are specified. At // this time, the only supported currency is USD. @@ -3399,7 +3433,7 @@ type HostReservation struct { // The length of the reservation's term, specified in seconds. Can be 31536000 (1 // year) | 94608000 (3 years). - Duration int32 + Duration *int32 // The date and time that the reservation ends. End *time.Time @@ -3481,10 +3515,10 @@ type IamInstanceProfileSpecification struct { type IcmpTypeCode struct { // The ICMP code. A value of -1 means all codes for the specified ICMP type. - Code int32 + Code *int32 // The ICMP type. A value of -1 means all types. - Type int32 + Type *int32 } // Describes the ID format for a resource. @@ -3499,7 +3533,7 @@ type IdFormat struct { Resource *string // Indicates whether longer IDs (17-character IDs) are enabled for the resource. - UseLongIds bool + UseLongIds *bool } // The internet key exchange (IKE) version permitted for the VPN tunnel. @@ -3525,16 +3559,24 @@ type Image struct { // Any block device mapping entries. BlockDeviceMappings []BlockDeviceMapping + // The boot mode of the image. For more information, see Boot modes + // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ami-boot.html) in the + // Amazon Elastic Compute Cloud User Guide. BootMode BootModeValues // The date and time the image was created. CreationDate *string + // The date and time to deprecate the AMI, in UTC, in the following format: + // YYYY-MM-DDTHH:MM:SSZ. If you specified a value for seconds, Amazon EC2 rounds + // the seconds to the nearest minute. + DeprecationTime *string + // The description of the AMI that was provided during image creation. Description *string // Specifies whether enhanced networking with ENA is enabled. - EnaSupport bool + EnaSupport *bool // The hypervisor type of the image. Hypervisor HypervisorType @@ -3577,7 +3619,7 @@ type Image struct { // Indicates whether the image has public launch permissions. The value is true if // this image has public launch permissions or false if it has only implicit and // explicit launch permissions. - Public bool + Public *bool // The RAM disk associated with the image, if any. Only applicable for machine // images. @@ -3628,8 +3670,8 @@ type ImageDiskContainer struct { // The block device mapping for the disk. DeviceName *string - // The format of the disk image being imported. Valid values: OVA | VHD | VHDX - // |VMDK + // The format of the disk image being imported. Valid values: OVA | VHD | VHDX | + // VMDK | RAW Format *string // The ID of the EBS snapshot to be used for importing the snapshot. @@ -3667,7 +3709,7 @@ type ImportImageTask struct { Description *string // Indicates whether the image is encrypted. - Encrypted bool + Encrypted *bool // The target hypervisor for the import task. Valid values: xen Hypervisor *string @@ -3734,7 +3776,7 @@ type ImportInstanceLaunchSpecification struct { InstanceType InstanceType // Indicates whether monitoring is enabled. - Monitoring bool + Monitoring *bool // The placement information for the instance. Placement *Placement @@ -3772,7 +3814,7 @@ type ImportInstanceVolumeDetailItem struct { AvailabilityZone *string // The number of bytes converted so far. - BytesConverted int64 + BytesConverted *int64 // A description of the task. Description *string @@ -3813,7 +3855,7 @@ type ImportVolumeTaskDetails struct { AvailabilityZone *string // The number of bytes converted so far. - BytesConverted int64 + BytesConverted *int64 // The description you provided when starting the import volume task. Description *string @@ -3850,7 +3892,7 @@ type Instance struct { // The AMI launch index, which can be used to find this instance in the launch // group. - AmiLaunchIndex int32 + AmiLaunchIndex *int32 // The architecture of the image. Architecture ArchitectureValues @@ -3858,6 +3900,9 @@ type Instance struct { // Any block device mapping entries for the instance. BlockDeviceMappings []InstanceBlockDeviceMapping + // The boot mode of the instance. For more information, see Boot modes + // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ami-boot.html) in the + // Amazon EC2 User Guide. BootMode BootModeValues // The ID of the Capacity Reservation. @@ -3878,7 +3923,7 @@ type Instance struct { // configuration stack to provide optimal I/O performance. This optimization isn't // available with all instance types. Additional usage charges apply when using an // EBS Optimized instance. - EbsOptimized bool + EbsOptimized *bool // The Elastic GPU associated with the instance. ElasticGpuAssociations []ElasticGpuAssociation @@ -3887,9 +3932,10 @@ type Instance struct { ElasticInferenceAcceleratorAssociations []ElasticInferenceAcceleratorAssociation // Specifies whether enhanced networking with ENA is enabled. - EnaSupport bool + EnaSupport *bool - // Indicates whether the instance is enabled for AWS Nitro Enclaves. + // Indicates whether the instance is enabled for Amazon Web Services Nitro + // Enclaves. EnclaveOptions *EnclaveOptions // Indicates whether the instance is enabled for hibernation. @@ -3983,14 +4029,8 @@ type Instance struct { // The security groups for the instance. SecurityGroups []GroupIdentifier - // Specifies whether to enable an instance launched in a VPC to perform NAT. This - // controls whether source/destination checking is enabled on the instance. A value - // of true means that checking is enabled, and false means that checking is - // disabled. The value must be false for the instance to perform NAT. For more - // information, see NAT Instances - // (https://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_NAT_Instance.html) - // in the Amazon Virtual Private Cloud User Guide. - SourceDestCheck bool + // Indicates whether source/destination checking is enabled. + SourceDestCheck *bool // If the request is a Spot Instance request, the ID of the request. SpotInstanceRequestId *string @@ -4055,21 +4095,21 @@ type InstanceCapacity struct { // The number of instances that can be launched onto the Dedicated Host based on // the host's available capacity. - AvailableCapacity int32 + AvailableCapacity *int32 // The instance type supported by the Dedicated Host. InstanceType *string // The total number of instances that can be launched onto the Dedicated Host if // there are no instances running on it. - TotalCapacity int32 + TotalCapacity *int32 } // Describes a Reserved Instance listing state. type InstanceCount struct { // The number of listed Reserved Instances in the state specified by the state. - InstanceCount int32 + InstanceCount *int32 // The states of the listed Reserved Instances. State ListingState @@ -4154,7 +4194,7 @@ type InstanceMetadataOptionsRequest struct { // The desired HTTP PUT response hop limit for instance metadata requests. The // larger the number, the further instance metadata requests can travel. Default: 1 // Possible values: Integers from 1 to 64 - HttpPutResponseHopLimit int32 + HttpPutResponseHopLimit *int32 // The state of token usage for your instance metadata requests. If the parameter // is not specified in the request, the default state is optional. If the state is @@ -4180,7 +4220,7 @@ type InstanceMetadataOptionsResponse struct { // The desired HTTP PUT response hop limit for instance metadata requests. The // larger the number, the further instance metadata requests can travel. Default: 1 // Possible values: Integers from 1 to 64 - HttpPutResponseHopLimit int32 + HttpPutResponseHopLimit *int32 // The state of token usage for your instance metadata requests. If the parameter // is not specified in the request, the default state is optional. If the state is @@ -4227,7 +4267,7 @@ type InstanceNetworkInterface struct { // One or more security groups. Groups []GroupIdentifier - // Describes the type of network interface. Valid values: interface | efa + // Describes the type of network interface. Valid values: interface | efa | trunk InterfaceType *string // One or more IPv6 addresses associated with the network interface. @@ -4239,7 +4279,7 @@ type InstanceNetworkInterface struct { // The ID of the network interface. NetworkInterfaceId *string - // The ID of the AWS account that created the network interface. + // The ID of the account that created the network interface. OwnerId *string // The private DNS name. @@ -4251,8 +4291,8 @@ type InstanceNetworkInterface struct { // One or more private IPv4 addresses associated with the network interface. PrivateIpAddresses []InstancePrivateIpAddress - // Indicates whether to validate network traffic to or from this network interface. - SourceDestCheck bool + // Indicates whether source/destination checking is enabled. + SourceDestCheck *bool // The status of the network interface. Status NetworkInterfaceStatus @@ -4291,13 +4331,13 @@ type InstanceNetworkInterfaceAttachment struct { // Indicates whether the network interface is deleted when the instance is // terminated. - DeleteOnTermination bool + DeleteOnTermination *bool // The index of the device on the instance for the network interface attachment. - DeviceIndex int32 + DeviceIndex *int32 // The index of the network card. - NetworkCardIndex int32 + NetworkCardIndex *int32 // The attachment state. Status AttachmentStatus @@ -4309,20 +4349,20 @@ type InstanceNetworkInterfaceSpecification struct { // Indicates whether to assign a carrier IP address to the network interface. You // can only assign a carrier IP address to a network interface that is in a subnet // in a Wavelength Zone. For more information about carrier IP addresses, see - // Carrier IP addresses in the AWS Wavelength Developer Guide. - AssociateCarrierIpAddress bool + // Carrier IP addresses in the Amazon Web Services Wavelength Developer Guide. + AssociateCarrierIpAddress *bool // Indicates whether to assign a public IPv4 address to an instance you launch in a // VPC. The public IP address can only be assigned to a network interface for eth0, // and can only be assigned to a new network interface, not an existing one. You // cannot specify more than one network interface in the request. If launching into // a default subnet, the default value is true. - AssociatePublicIpAddress bool + AssociatePublicIpAddress *bool // If set to true, the interface is deleted when the instance is terminated. You // can specify true only if creating a new network interface when launching an // instance. - DeleteOnTermination bool + DeleteOnTermination *bool // The description of the network interface. Applies only if creating a network // interface when launching an instance. @@ -4331,7 +4371,7 @@ type InstanceNetworkInterfaceSpecification struct { // The position of the network interface in the attachment order. A primary network // interface has a device index of 0. If you specify a network interface when // launching an instance, you must specify the device index. - DeviceIndex int32 + DeviceIndex *int32 // The IDs of the security groups for the network interface. Applies only if // creating a network interface when launching an instance. @@ -4340,8 +4380,7 @@ type InstanceNetworkInterfaceSpecification struct { // The type of network interface. To create an Elastic Fabric Adapter (EFA), // specify efa. For more information, see Elastic Fabric Adapter // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/efa.html) in the Amazon - // Elastic Compute Cloud User Guide. If you are not creating an EFA, specify - // interface or omit this parameter. Valid values: interface | efa + // Elastic Compute Cloud User Guide. Valid values: interface | efa InterfaceType *string // A number of IPv6 addresses to assign to the network interface. Amazon EC2 @@ -4349,7 +4388,7 @@ type InstanceNetworkInterfaceSpecification struct { // option and the option to assign specific IPv6 addresses in the same request. You // can specify this option if you've specified a minimum number of instances to // launch. - Ipv6AddressCount int32 + Ipv6AddressCount *int32 // One or more IPv6 addresses to assign to the network interface. You cannot // specify this option and the option to assign a number of IPv6 addresses in the @@ -4360,7 +4399,7 @@ type InstanceNetworkInterfaceSpecification struct { // The index of the network card. Some instance types support multiple network // cards. The primary network interface must be assigned to network card index 0. // The default is network card index 0. - NetworkCardIndex int32 + NetworkCardIndex *int32 // The ID of the network interface. If you are creating a Spot Fleet, omit this // parameter because you can’t specify a network interface ID in a launch @@ -4387,7 +4426,7 @@ type InstanceNetworkInterfaceSpecification struct { // instance in a RunInstances // (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_RunInstances.html) // request. - SecondaryPrivateIpAddressCount int32 + SecondaryPrivateIpAddressCount *int32 // The ID of the subnet associated with the network interface. Applies only if // creating a network interface when launching an instance. @@ -4402,7 +4441,7 @@ type InstancePrivateIpAddress struct { // Indicates whether this IPv4 address is the primary private IP address of the // network interface. - Primary bool + Primary *bool // The private IPv4 DNS name. PrivateDnsName *string @@ -4415,7 +4454,7 @@ type InstancePrivateIpAddress struct { type InstanceSpecification struct { // Excludes the root volume from being snapshotted. - ExcludeBootVolume bool + ExcludeBootVolume *bool // The instance to specify which volumes should be snapshotted. InstanceId *string @@ -4447,7 +4486,7 @@ type InstanceState struct { // // You can ignore the high byte value by zeroing out all of the bits above // 2^8 or 256 in decimal. - Code int32 + Code *int32 // The current state of the instance. Name InstanceStateName @@ -4563,7 +4602,7 @@ type InstanceTagNotificationAttribute struct { // Indicates wheter all tag keys in the current Region are registered to appear in // scheduled event notifications. true indicates that all tag keys in the current // Region are registered. - IncludeAllTagsOfInstance bool + IncludeAllTagsOfInstance *bool // The registered tag keys. InstanceTagKeys []string @@ -4614,9 +4653,9 @@ type InstanceTypeInfo struct { // Indicates whether instance storage is supported. InstanceStorageSupported *bool - // The instance type. For more information, see Instance Types + // The instance type. For more information, see Instance types // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html) in the - // Amazon Elastic Compute Cloud User Guide. + // Amazon EC2 User Guide. InstanceType InstanceType // Describes the memory for the instance type. @@ -4631,6 +4670,9 @@ type InstanceTypeInfo struct { // Describes the processor. ProcessorInfo *ProcessorInfo + // The supported boot modes. For more information, see Boot modes + // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ami-boot.html) in the + // Amazon EC2 User Guide. SupportedBootModes []BootModeType // The supported root device types. @@ -4649,9 +4691,9 @@ type InstanceTypeInfo struct { // The instance types offered. type InstanceTypeOffering struct { - // The instance type. For more information, see Instance Types + // The instance type. For more information, see Instance types // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html) in the - // Amazon Elastic Compute Cloud User Guide. + // Amazon EC2 User Guide. InstanceType InstanceType // The identifier for the location. This depends on the location type. For example, @@ -4666,12 +4708,18 @@ type InstanceTypeOffering struct { // Information about the Capacity Reservation usage. type InstanceUsage struct { - // The ID of the AWS account that is making use of the Capacity Reservation. + // The ID of the account that is making use of the Capacity Reservation. AccountId *string - // The number of instances the AWS account currently has in the Capacity - // Reservation. - UsedInstanceCount int32 + // The number of instances the account currently has in the Capacity Reservation. + UsedInstanceCount *int32 +} + +// Describes service integrations with VPC Flow logs. +type IntegrateServices struct { + + // Information about the integration with Amazon Athena. + AthenaIntegrations []AthenaIntegration } // Describes an internet gateway. @@ -4708,7 +4756,7 @@ type IpPermission struct { // The start of port range for the TCP and UDP protocols, or an ICMP/ICMPv6 type // number. A value of -1 indicates all ICMP/ICMPv6 types. If you specify all // ICMP/ICMPv6 types, you must specify all codes. - FromPort int32 + FromPort *int32 // The IP protocol name (tcp, udp, icmp, icmpv6) or number (see Protocol Numbers // (http://www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml)). [VPC @@ -4731,7 +4779,7 @@ type IpPermission struct { // The end of port range for the TCP and UDP protocols, or an ICMP/ICMPv6 code. A // value of -1 indicates all ICMP/ICMPv6 codes. If you specify all ICMP/ICMPv6 // types, you must specify all codes. - ToPort int32 + ToPort *int32 // The security group and AWS account ID pairs. UserIdGroupPairs []UserIdGroupPair @@ -4831,7 +4879,8 @@ type LaunchPermission struct { // The name of the group. Group PermissionGroup - // The AWS account ID. + // The AWS account ID. Constraints: Up to 10 000 account IDs can be specified in a + // single request. UserId *string } @@ -4859,7 +4908,7 @@ type LaunchSpecification struct { // to provide optimal EBS I/O performance. This optimization isn't available with // all instance types. Additional usage charges apply when using an EBS Optimized // instance. Default: false - EbsOptimized bool + EbsOptimized *bool // The IAM instance profile. IamInstanceProfile *IamInstanceProfileSpecification @@ -4911,10 +4960,10 @@ type LaunchTemplate struct { CreatedBy *string // The version number of the default version of the launch template. - DefaultVersionNumber int64 + DefaultVersionNumber *int64 // The version number of the latest version of the launch template. - LatestVersionNumber int64 + LatestVersionNumber *int64 // The ID of the launch template. LaunchTemplateId *string @@ -4946,7 +4995,7 @@ type LaunchTemplateBlockDeviceMapping struct { // Information about the block device for an EBS volume. Ebs *LaunchTemplateEbsBlockDevice - // Suppresses the specified device included in the block device mapping of the AMI. + // To omit the device from the block device mapping, specify an empty string. NoDevice *string // The virtual device name (ephemeralN). @@ -4963,7 +5012,7 @@ type LaunchTemplateBlockDeviceMappingRequest struct { // launched. Ebs *LaunchTemplateEbsBlockDeviceRequest - // Suppresses the specified device included in the block device mapping of the AMI. + // To omit the device from the block device mapping, specify an empty string. NoDevice *string // The virtual device name (ephemeralN). Instance store volumes are numbered @@ -5030,10 +5079,10 @@ type LaunchTemplateConfig struct { type LaunchTemplateCpuOptions struct { // The number of CPU cores for the instance. - CoreCount int32 + CoreCount *int32 // The number of threads per CPU core. - ThreadsPerCore int32 + ThreadsPerCore *int32 } // The CPU options for the instance. Both the core count and threads per core must @@ -5041,24 +5090,24 @@ type LaunchTemplateCpuOptions struct { type LaunchTemplateCpuOptionsRequest struct { // The number of CPU cores for the instance. - CoreCount int32 + CoreCount *int32 // The number of threads per CPU core. To disable multithreading for the instance, // specify a value of 1. Otherwise, specify the default value of 2. - ThreadsPerCore int32 + ThreadsPerCore *int32 } // Describes a block device for an EBS volume. type LaunchTemplateEbsBlockDevice struct { // Indicates whether the EBS volume is deleted on instance termination. - DeleteOnTermination bool + DeleteOnTermination *bool // Indicates whether the EBS volume is encrypted. - Encrypted bool + Encrypted *bool // The number of I/O operations per second (IOPS) that the volume supports. - Iops int32 + Iops *int32 // The ARN of the AWS Key Management Service (AWS KMS) CMK used for encryption. KmsKeyId *string @@ -5067,10 +5116,10 @@ type LaunchTemplateEbsBlockDevice struct { SnapshotId *string // The throughput that the volume supports, in MiB/s. - Throughput int32 + Throughput *int32 // The size of the volume, in GiB. - VolumeSize int32 + VolumeSize *int32 // The volume type. VolumeType VolumeType @@ -5080,12 +5129,12 @@ type LaunchTemplateEbsBlockDevice struct { type LaunchTemplateEbsBlockDeviceRequest struct { // Indicates whether the EBS volume is deleted on instance termination. - DeleteOnTermination bool + DeleteOnTermination *bool // Indicates whether the EBS volume is encrypted. Encrypted volumes can only be // attached to instances that support Amazon EBS encryption. If you are creating a // volume from a snapshot, you can't specify an encryption value. - Encrypted bool + Encrypted *bool // The number of I/O operations per second (IOPS). For gp3, io1, and io2 volumes, // this represents the number of IOPS that are provisioned for the volume. For gp2 @@ -5104,9 +5153,9 @@ type LaunchTemplateEbsBlockDeviceRequest struct { // 64,000 IOPS only for Instances built on the Nitro System // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html#ec2-nitro-instances). // Other instance families guarantee performance up to 32,000 IOPS. This parameter - // is required for io1 and io2 volumes. The default for gp3 volumes is 3,000 IOPS. - // This parameter is not supported for gp2, st1, sc1, or standard volumes. - Iops int32 + // is supported for io1, io2, and gp3 volumes only. This parameter is not supported + // for gp2, st1, sc1, or standard volumes. + Iops *int32 // The ARN of the symmetric AWS Key Management Service (AWS KMS) CMK used for // encryption. @@ -5117,27 +5166,25 @@ type LaunchTemplateEbsBlockDeviceRequest struct { // The throughput to provision for a gp3 volume, with a maximum of 1,000 MiB/s. // Valid Range: Minimum value of 125. Maximum value of 1000. - Throughput int32 + Throughput *int32 // The size of the volume, in GiBs. You must specify either a snapshot ID or a - // volume size. If you specify a snapshot, the default is the snapshot size. You - // can specify a volume size that is equal to or larger than the snapshot size. The - // following are the supported volumes sizes for each volume type: + // volume size. The following are the supported volumes sizes for each volume + // type: // - // * gp2 and gp3: - // 1-16,384 + // * gp2 and gp3: 1-16,384 // // * io1 and io2: 4-16,384 // - // * st1 and sc1: 125-16,384 + // * st1 and sc1: + // 125-16,384 // - // * standard: - // 1-1,024 - VolumeSize int32 + // * standard: 1-1,024 + VolumeSize *int32 - // The volume type. The default is gp2. For more information, see Amazon EBS volume - // types (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSVolumeTypes.html) - // in the Amazon Elastic Compute Cloud User Guide. + // The volume type. For more information, see Amazon EBS volume types + // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSVolumeTypes.html) in the + // Amazon Elastic Compute Cloud User Guide. VolumeType VolumeType } @@ -5152,7 +5199,7 @@ type LaunchTemplateElasticInferenceAccelerator struct { // The number of elastic inference accelerators to attach to the instance. Default: // 1 - Count int32 + Count *int32 } // Describes an elastic inference accelerator. @@ -5160,7 +5207,7 @@ type LaunchTemplateElasticInferenceAcceleratorResponse struct { // The number of elastic inference accelerators to attach to the instance. Default: // 1 - Count int32 + Count *int32 // The type of elastic inference accelerator. The possible values are eia1.medium, // eia1.large, and eia1.xlarge. @@ -5172,7 +5219,7 @@ type LaunchTemplateEnclaveOptions struct { // If this parameter is set to true, the instance is enabled for AWS Nitro // Enclaves; otherwise, it is not enabled for AWS Nitro Enclaves. - Enabled bool + Enabled *bool } // Indicates whether the instance is enabled for AWS Nitro Enclaves. For more @@ -5182,7 +5229,7 @@ type LaunchTemplateEnclaveOptions struct { type LaunchTemplateEnclaveOptionsRequest struct { // To enable the instance for AWS Nitro Enclaves, set this parameter to true. - Enabled bool + Enabled *bool } // Indicates whether an instance is configured for hibernation. @@ -5190,7 +5237,7 @@ type LaunchTemplateHibernationOptions struct { // If this parameter is set to true, the instance is enabled for hibernation; // otherwise, it is not enabled for hibernation. - Configured bool + Configured *bool } // Indicates whether the instance is configured for hibernation. This parameter is @@ -5200,7 +5247,7 @@ type LaunchTemplateHibernationOptionsRequest struct { // If you set this parameter to true, the instance is enabled for hibernation. // Default: false - Configured bool + Configured *bool } // Describes an IAM instance profile. @@ -5257,7 +5304,7 @@ type LaunchTemplateInstanceMetadataOptions struct { // The desired HTTP PUT response hop limit for instance metadata requests. The // larger the number, the further instance metadata requests can travel. Default: 1 // Possible values: Integers from 1 to 64 - HttpPutResponseHopLimit int32 + HttpPutResponseHopLimit *int32 // The state of token usage for your instance metadata requests. If the parameter // is not specified in the request, the default state is optional. If the state is @@ -5292,7 +5339,7 @@ type LaunchTemplateInstanceMetadataOptionsRequest struct { // The desired HTTP PUT response hop limit for instance metadata requests. The // larger the number, the further instance metadata requests can travel. Default: 1 // Possible values: Integers from 1 to 64 - HttpPutResponseHopLimit int32 + HttpPutResponseHopLimit *int32 // The state of token usage for your instance metadata requests. If the parameter // is not specified in the request, the default state is optional. If the state is @@ -5316,21 +5363,21 @@ type LaunchTemplateInstanceNetworkInterfaceSpecification struct { // information about Carrier IP addresses, see Carrier IP addresses // (https://docs.aws.amazon.com/wavelength/latest/developerguide/how-wavelengths-work.html#provider-owned-ip) // in the AWS Wavelength Developer Guide. - AssociateCarrierIpAddress bool + AssociateCarrierIpAddress *bool // Indicates whether to associate a public IPv4 address with eth0 for a new network // interface. - AssociatePublicIpAddress bool + AssociatePublicIpAddress *bool // Indicates whether the network interface is deleted when the instance is // terminated. - DeleteOnTermination bool + DeleteOnTermination *bool // A description for the network interface. Description *string // The device index for the network interface attachment. - DeviceIndex int32 + DeviceIndex *int32 // The IDs of one or more security groups. Groups []string @@ -5339,13 +5386,13 @@ type LaunchTemplateInstanceNetworkInterfaceSpecification struct { InterfaceType *string // The number of IPv6 addresses for the network interface. - Ipv6AddressCount int32 + Ipv6AddressCount *int32 // The IPv6 addresses for the network interface. Ipv6Addresses []InstanceIpv6Address // The index of the network card. - NetworkCardIndex int32 + NetworkCardIndex *int32 // The ID of the network interface. NetworkInterfaceId *string @@ -5357,7 +5404,7 @@ type LaunchTemplateInstanceNetworkInterfaceSpecification struct { PrivateIpAddresses []PrivateIpAddressSpecification // The number of secondary private IPv4 addresses for the network interface. - SecondaryPrivateIpAddressCount int32 + SecondaryPrivateIpAddressCount *int32 // The ID of the subnet for the network interface. SubnetId *string @@ -5372,20 +5419,20 @@ type LaunchTemplateInstanceNetworkInterfaceSpecificationRequest struct { // Carrier IP addresses, see Carrier IP addresses // (https://docs.aws.amazon.com/wavelength/latest/developerguide/how-wavelengths-work.html#provider-owned-ip) // in the AWS Wavelength Developer Guide. - AssociateCarrierIpAddress bool + AssociateCarrierIpAddress *bool // Associates a public IPv4 address with eth0 for a new network interface. - AssociatePublicIpAddress bool + AssociatePublicIpAddress *bool // Indicates whether the network interface is deleted when the instance is // terminated. - DeleteOnTermination bool + DeleteOnTermination *bool // A description for the network interface. Description *string // The device index for the network interface attachment. - DeviceIndex int32 + DeviceIndex *int32 // The IDs of one or more security groups. Groups []string @@ -5400,7 +5447,7 @@ type LaunchTemplateInstanceNetworkInterfaceSpecificationRequest struct { // The number of IPv6 addresses to assign to a network interface. Amazon EC2 // automatically selects the IPv6 addresses from the subnet range. You can't use // this option if specifying specific IPv6 addresses. - Ipv6AddressCount int32 + Ipv6AddressCount *int32 // One or more specific IPv6 addresses from the IPv6 CIDR block range of your // subnet. You can't use this option if you're specifying a number of IPv6 @@ -5410,7 +5457,7 @@ type LaunchTemplateInstanceNetworkInterfaceSpecificationRequest struct { // The index of the network card. Some instance types support multiple network // cards. The primary network interface must be assigned to network card index 0. // The default is network card index 0. - NetworkCardIndex int32 + NetworkCardIndex *int32 // The ID of the network interface. NetworkInterfaceId *string @@ -5422,7 +5469,7 @@ type LaunchTemplateInstanceNetworkInterfaceSpecificationRequest struct { PrivateIpAddresses []PrivateIpAddressSpecification // The number of secondary private IPv4 addresses to assign to a network interface. - SecondaryPrivateIpAddressCount int32 + SecondaryPrivateIpAddressCount *int32 // The ID of the subnet for the network interface. SubnetId *string @@ -5451,13 +5498,17 @@ type LaunchTemplateOverrides struct { // The instance type. InstanceType InstanceType - // The priority for the launch template override. If OnDemandAllocationStrategy is - // set to prioritized, Spot Fleet uses priority to determine which launch template - // override to use first in fulfilling On-Demand capacity. The highest priority is - // launched first. Valid values are whole numbers starting at 0. The lower the - // number, the higher the priority. If no number is set, the launch template - // override has the lowest priority. - Priority float64 + // The priority for the launch template override. The highest priority is launched + // first. If OnDemandAllocationStrategy is set to prioritized, Spot Fleet uses + // priority to determine which launch template override to use first in fulfilling + // On-Demand capacity. If the Spot AllocationStrategy is set to + // capacityOptimizedPrioritized, Spot Fleet uses priority on a best-effort basis to + // determine which launch template override to use in fulfilling Spot capacity, but + // optimizes for capacity first. Valid values are whole numbers starting at 0. The + // lower the number, the higher the priority. If no number is set, the launch + // template override has the lowest priority. You can set the same priority for + // different launch template overrides. + Priority *float64 // The maximum price per unit hour that you are willing to pay for a Spot Instance. SpotPrice *string @@ -5466,7 +5517,7 @@ type LaunchTemplateOverrides struct { SubnetId *string // The number of units provided by the specified instance type. - WeightedCapacity float64 + WeightedCapacity *float64 } // Describes the placement of an instance. @@ -5489,7 +5540,7 @@ type LaunchTemplatePlacement struct { // The number of the partition the instance should launch in. Valid only if the // placement group strategy is set to partition. - PartitionNumber int32 + PartitionNumber *int32 // Reserved for future use. SpreadDomain *string @@ -5520,7 +5571,7 @@ type LaunchTemplatePlacementRequest struct { // The number of the partition the instance should launch in. Valid only if the // placement group strategy is set to partition. - PartitionNumber int32 + PartitionNumber *int32 // Reserved for future use. SpreadDomain *string @@ -5535,7 +5586,7 @@ type LaunchTemplatesMonitoring struct { // Indicates whether detailed monitoring is enabled. Otherwise, basic monitoring is // enabled. - Enabled bool + Enabled *bool } // Describes the monitoring for the instance. @@ -5543,7 +5594,7 @@ type LaunchTemplatesMonitoringRequest struct { // Specify true to enable detailed monitoring. Otherwise, basic monitoring is // enabled. - Enabled bool + Enabled *bool } // The launch template to use. You must specify either the launch template ID or @@ -5566,7 +5617,7 @@ type LaunchTemplateSpotMarketOptions struct { // The required duration for the Spot Instances (also known as Spot blocks), in // minutes. This value must be a multiple of 60 (60, 120, 180, 240, 300, or 360). - BlockDurationMinutes int32 + BlockDurationMinutes *int32 // The behavior when a Spot Instance is interrupted. InstanceInterruptionBehavior InstanceInterruptionBehavior @@ -5589,7 +5640,7 @@ type LaunchTemplateSpotMarketOptionsRequest struct { // The required duration for the Spot Instances (also known as Spot blocks), in // minutes. This value must be a multiple of 60 (60, 120, 180, 240, 300, or 360). - BlockDurationMinutes int32 + BlockDurationMinutes *int32 // The behavior when a Spot Instance is interrupted. The default is terminate. InstanceInterruptionBehavior InstanceInterruptionBehavior @@ -5640,7 +5691,7 @@ type LaunchTemplateVersion struct { CreatedBy *string // Indicates whether the version is the default version. - DefaultVersion bool + DefaultVersion *bool // Information about the launch template. LaunchTemplateData *ResponseLaunchTemplateData @@ -5655,7 +5706,7 @@ type LaunchTemplateVersion struct { VersionDescription *string // The version number. - VersionNumber int64 + VersionNumber *int64 } // Describes a license configuration. @@ -5850,7 +5901,7 @@ type LocalGatewayVirtualInterface struct { // The Border Gateway Protocol (BGP) Autonomous System Number (ASN) of the local // gateway. - LocalBgpAsn int32 + LocalBgpAsn *int32 // The ID of the local gateway. LocalGatewayId *string @@ -5865,13 +5916,13 @@ type LocalGatewayVirtualInterface struct { PeerAddress *string // The peer BGP ASN. - PeerBgpAsn int32 + PeerBgpAsn *int32 // The tags assigned to the virtual interface. Tags []Tag // The ID of the VLAN. - Vlan int32 + Vlan *int32 } // Describes a local gateway virtual interface group. @@ -5900,7 +5951,7 @@ type ManagedPrefixList struct { AddressFamily *string // The maximum number of entries for the prefix list. - MaxEntries int32 + MaxEntries *int32 // The ID of the owner of the prefix list. OwnerId *string @@ -5924,7 +5975,7 @@ type ManagedPrefixList struct { Tags []Tag // The version of the prefix list. - Version int64 + Version *int64 } // Describes the memory for the instance type. @@ -5993,7 +6044,7 @@ type ModifyVpnTunnelOptionsSpecification struct { // The number of seconds after which a DPD timeout occurs. Constraints: A value // between 0 and 30. Default: 30 - DPDTimeoutSeconds int32 + DPDTimeoutSeconds *int32 // The IKE versions that are permitted for the VPN tunnel. Valid values: ikev1 | // ikev2 @@ -6015,7 +6066,7 @@ type ModifyVpnTunnelOptionsSpecification struct { // The lifetime for phase 1 of the IKE negotiation, in seconds. Constraints: A // value between 900 and 28,800. Default: 28800 - Phase1LifetimeSeconds int32 + Phase1LifetimeSeconds *int32 // One or more Diffie-Hellman group numbers that are permitted for the VPN tunnel // for phase 2 IKE negotiations. Valid values: 2 | 5 | 14 | 15 | 16 | 17 | 18 | 19 @@ -6034,7 +6085,7 @@ type ModifyVpnTunnelOptionsSpecification struct { // The lifetime for phase 2 of the IKE negotiation, in seconds. Constraints: A // value between 900 and 3,600. The value must be less than the value for // Phase1LifetimeSeconds. Default: 3600 - Phase2LifetimeSeconds int32 + Phase2LifetimeSeconds *int32 // The pre-shared key (PSK) to establish initial authentication between the virtual // private gateway and the customer gateway. Constraints: Allowed characters are @@ -6045,17 +6096,17 @@ type ModifyVpnTunnelOptionsSpecification struct { // The percentage of the rekey window (determined by RekeyMarginTimeSeconds) during // which the rekey time is randomly selected. Constraints: A value between 0 and // 100. Default: 100 - RekeyFuzzPercentage int32 + RekeyFuzzPercentage *int32 // The margin time, in seconds, before the phase 2 lifetime expires, during which // the AWS side of the VPN connection performs an IKE rekey. The exact time of the // rekey is randomly selected based on the value for RekeyFuzzPercentage. // Constraints: A value between 60 and half of Phase2LifetimeSeconds. Default: 540 - RekeyMarginTimeSeconds int32 + RekeyMarginTimeSeconds *int32 // The number of packets in an IKE replay window. Constraints: A value between 64 // and 2048. Default: 1024 - ReplayWindowSize int32 + ReplayWindowSize *int32 // The action to take when the establishing the tunnel for the VPN connection. By // default, your customer gateway device must initiate the IKE negotiation and @@ -6113,6 +6164,9 @@ type MovingAddressStatus struct { // Describes a NAT gateway. type NatGateway struct { + // Indicates whether the NAT gateway supports public or private connectivity. + ConnectivityType ConnectivityType + // The date and time the NAT gateway was created. CreateTime *time.Time @@ -6195,17 +6249,18 @@ type NatGateway struct { // Describes the IP addresses and network interface associated with a NAT gateway. type NatGatewayAddress struct { - // The allocation ID of the Elastic IP address that's associated with the NAT - // gateway. + // [Public NAT gateway only] The allocation ID of the Elastic IP address that's + // associated with the NAT gateway. AllocationId *string // The ID of the network interface associated with the NAT gateway. NetworkInterfaceId *string - // The private IP address associated with the Elastic IP address. + // The private IP address associated with the NAT gateway. PrivateIp *string - // The Elastic IP address associated with the NAT gateway. + // [Public NAT gateway only] The Elastic IP address associated with the NAT + // gateway. PublicIp *string } @@ -6219,7 +6274,7 @@ type NetworkAcl struct { Entries []NetworkAclEntry // Indicates whether this is the default network ACL for the VPC. - IsDefault bool + IsDefault *bool // The ID of the network ACL. NetworkAclId *string @@ -6255,7 +6310,7 @@ type NetworkAclEntry struct { // Indicates whether the rule is an egress rule (applied to traffic leaving the // subnet). - Egress bool + Egress *bool // ICMP protocol: The ICMP type and code. IcmpTypeCode *IcmpTypeCode @@ -6274,7 +6329,7 @@ type NetworkAclEntry struct { // The rule number for the entry. ACL entries are processed in ascending order by // rule number. - RuleNumber int32 + RuleNumber *int32 } // Describes the network card support of the instance type. @@ -6296,6 +6351,9 @@ type NetworkInfo struct { // The index of the default network card, starting at 0. DefaultNetworkCardIndex *int32 + // Describes the Elastic Fabric Adapters for the instance type. + EfaInfo *EfaInfo + // Indicates whether Elastic Fabric Adapter (EFA) is supported. EfaSupported *bool @@ -6353,7 +6411,7 @@ type NetworkInsightsAnalysis struct { NetworkInsightsPathId *string // Indicates whether the destination is reachable from the source. - NetworkPathFound bool + NetworkPathFound *bool // The components in the path from destination to source. ReturnPathComponents []PathComponent @@ -6384,7 +6442,7 @@ type NetworkInsightsPath struct { DestinationIp *string // The destination port. - DestinationPort int32 + DestinationPort *int32 // The Amazon Resource Name (ARN) of the path. NetworkInsightsPathArn *string @@ -6439,7 +6497,7 @@ type NetworkInterface struct { // The Amazon Resource Name (ARN) of the Outpost. OutpostArn *string - // The AWS account ID of the owner of the network interface. + // The account ID of the owner of the network interface. OwnerId *string // The private DNS name. @@ -6451,15 +6509,15 @@ type NetworkInterface struct { // The private IPv4 addresses associated with the network interface. PrivateIpAddresses []NetworkInterfacePrivateIpAddress - // The ID of the entity that launched the instance on your behalf (for example, AWS - // Management Console or Auto Scaling). + // The alias or account ID of the principal or service that created the network + // interface. RequesterId *string - // Indicates whether the network interface is being managed by AWS. - RequesterManaged bool + // Indicates whether the network interface is being managed by Amazon Web Services. + RequesterManaged *bool - // Indicates whether traffic to or from the instance is validated. - SourceDestCheck bool + // Indicates whether source/destination checking is enabled. + SourceDestCheck *bool // The status of the network interface. Status NetworkInterfaceStatus @@ -6514,19 +6572,19 @@ type NetworkInterfaceAttachment struct { // Indicates whether the network interface is deleted when the instance is // terminated. - DeleteOnTermination bool + DeleteOnTermination *bool // The device index of the network interface attachment on the instance. - DeviceIndex int32 + DeviceIndex *int32 // The ID of the instance. InstanceId *string - // The AWS account ID of the owner of the instance. + // The account ID of the owner of the instance. InstanceOwnerId *string // The index of the network card. - NetworkCardIndex int32 + NetworkCardIndex *int32 // The attachment state. Status AttachmentStatus @@ -6540,7 +6598,7 @@ type NetworkInterfaceAttachmentChanges struct { // Indicates whether the network interface is deleted when the instance is // terminated. - DeleteOnTermination bool + DeleteOnTermination *bool } // Describes an IPv6 address associated with a network interface. @@ -6553,10 +6611,10 @@ type NetworkInterfaceIpv6Address struct { // Describes a permission for a network interface. type NetworkInterfacePermission struct { - // The AWS account ID. + // The account ID. AwsAccountId *string - // The AWS service. + // The Amazon Web Service. AwsService *string // The ID of the network interface. @@ -6591,7 +6649,7 @@ type NetworkInterfacePrivateIpAddress struct { // Indicates whether this IPv4 address is the primary private IPv4 address of the // network interface. - Primary bool + Primary *bool // The private DNS name. PrivateDnsName *string @@ -6630,15 +6688,15 @@ type OnDemandOptions struct { // The minimum target capacity for On-Demand Instances in the fleet. If the minimum // target capacity is not reached, the fleet launches no instances. - MinTargetCapacity int32 + MinTargetCapacity *int32 // Indicates that the fleet launches all On-Demand Instances into a single // Availability Zone. Supported only for fleets of type instant. - SingleAvailabilityZone bool + SingleAvailabilityZone *bool // Indicates that the fleet uses a single instance type to launch all On-Demand // Instances in the fleet. Supported only for fleets of type instant. - SingleInstanceType bool + SingleInstanceType *bool } // Describes the configuration of On-Demand Instances in an EC2 Fleet. @@ -6661,15 +6719,15 @@ type OnDemandOptionsRequest struct { // The minimum target capacity for On-Demand Instances in the fleet. If the minimum // target capacity is not reached, the fleet launches no instances. - MinTargetCapacity int32 + MinTargetCapacity *int32 // Indicates that the fleet launches all On-Demand Instances into a single // Availability Zone. Supported only for fleets of type instant. - SingleAvailabilityZone bool + SingleAvailabilityZone *bool // Indicates that the fleet uses a single instance type to launch all On-Demand // Instances in the fleet. Supported only for fleets of type instant. - SingleInstanceType bool + SingleInstanceType *bool } // Describes a path component. @@ -6697,7 +6755,7 @@ type PathComponent struct { SecurityGroupRule *AnalysisSecurityGroupRule // The sequence number. - SequenceNumber int32 + SequenceNumber *int32 // The source VPC. SourceVpc *AnalysisComponent @@ -6740,15 +6798,15 @@ type PeeringConnectionOptions struct { // If true, the public DNS hostnames of instances in the specified VPC resolve to // private IP addresses when queried from instances in the peer VPC. - AllowDnsResolutionFromRemoteVpc bool + AllowDnsResolutionFromRemoteVpc *bool // If true, enables outbound communication from an EC2-Classic instance that's // linked to a local VPC using ClassicLink to instances in a peer VPC. - AllowEgressFromLocalClassicLinkToRemoteVpc bool + AllowEgressFromLocalClassicLinkToRemoteVpc *bool // If true, enables outbound communication from instances in a local VPC to an // EC2-Classic instance that's linked to a peer VPC using ClassicLink. - AllowEgressFromLocalVpcToRemoteClassicLink bool + AllowEgressFromLocalVpcToRemoteClassicLink *bool } // The VPC peering connection options. @@ -6756,15 +6814,15 @@ type PeeringConnectionOptionsRequest struct { // If true, enables a local VPC to resolve public DNS hostnames to private IP // addresses when queried from instances in the peer VPC. - AllowDnsResolutionFromRemoteVpc bool + AllowDnsResolutionFromRemoteVpc *bool // If true, enables outbound communication from an EC2-Classic instance that's // linked to a local VPC using ClassicLink to instances in a peer VPC. - AllowEgressFromLocalClassicLinkToRemoteVpc bool + AllowEgressFromLocalClassicLinkToRemoteVpc *bool // If true, enables outbound communication from instances in a local VPC to an // EC2-Classic instance that's linked to a peer VPC using ClassicLink. - AllowEgressFromLocalVpcToRemoteClassicLink bool + AllowEgressFromLocalVpcToRemoteClassicLink *bool } // Information about the transit gateway in the peering attachment. @@ -6784,7 +6842,7 @@ type PeeringTgwInfo struct { type Phase1DHGroupNumbersListValue struct { // The Diffie-Hellmann group number. - Value int32 + Value *int32 } // Specifies a Diffie-Hellman group number for the VPN tunnel for phase 1 IKE @@ -6792,7 +6850,7 @@ type Phase1DHGroupNumbersListValue struct { type Phase1DHGroupNumbersRequestListValue struct { // The Diffie-Hellmann group number. - Value int32 + Value *int32 } // The encryption algorithm for phase 1 IKE negotiations. @@ -6829,7 +6887,7 @@ type Phase1IntegrityAlgorithmsRequestListValue struct { type Phase2DHGroupNumbersListValue struct { // The Diffie-Hellmann group number. - Value int32 + Value *int32 } // Specifies a Diffie-Hellman group number for the VPN tunnel for phase 2 IKE @@ -6837,7 +6895,7 @@ type Phase2DHGroupNumbersListValue struct { type Phase2DHGroupNumbersRequestListValue struct { // The Diffie-Hellmann group number. - Value int32 + Value *int32 } // The encryption algorithm for phase 2 IKE negotiations. @@ -6906,7 +6964,7 @@ type Placement struct { // group strategy is set to partition. This parameter is not supported by // CreateFleet // (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateFleet). - PartitionNumber int32 + PartitionNumber *int32 // Reserved for future use. This parameter is not supported by CreateFleet // (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateFleet). @@ -6931,7 +6989,7 @@ type PlacementGroup struct { GroupName *string // The number of partitions. Valid only if strategy is set to partition. - PartitionCount int32 + PartitionCount *int32 // The state of the placement group. State PlacementGroupState @@ -6968,16 +7026,16 @@ type PoolCidrBlock struct { type PortRange struct { // The first port in the range. - From int32 + From *int32 // The last port in the range. - To int32 + To *int32 } -// Describes prefixes for AWS services. +// Describes prefixes for Amazon Web Services services. type PrefixList struct { - // The IP address range of the AWS service. + // The IP address range of the Amazon Web Service. Cidrs []string // The ID of the prefix. @@ -7030,18 +7088,18 @@ type PriceSchedule struct { // covering the first three months of the remaining term, will be active during // months 5, 4, and 3. Then schedule 2, covering the last two months of the term, // will be active for months 2 and 1. - Active bool + Active *bool // The currency for transacting the Reserved Instance resale. At this time, the // only supported currency is USD. CurrencyCode CurrencyCodeValues // The fixed price for the term. - Price float64 + Price *float64 // The number of months remaining in the reservation. For example, 2 is the second // to the last month before the capacity reservation expires. - Term int64 + Term *int64 } // Describes the price for a Reserved Instance. @@ -7052,21 +7110,21 @@ type PriceScheduleSpecification struct { CurrencyCode CurrencyCodeValues // The fixed price for the term. - Price float64 + Price *float64 // The number of months remaining in the reservation. For example, 2 is the second // to the last month before the capacity reservation expires. - Term int64 + Term *int64 } // Describes a Reserved Instance offering. type PricingDetail struct { // The number of reservations available for the price. - Count int32 + Count *int32 // The price per instance. - Price float64 + Price *float64 } // PrincipalIdFormat description @@ -7114,7 +7172,7 @@ type PrivateIpAddressSpecification struct { // Indicates whether the private IPv4 address is the primary private IPv4 address. // Only one IPv4 address can be designated as primary. - Primary bool + Primary *bool // The private IPv4 addresses. PrivateIpAddress *string @@ -7178,11 +7236,16 @@ type ProvisionedBandwidth struct { Status *string } +// The status of an updated pointer (PTR) record for an Elastic IP address. type PtrUpdateStatus struct { + + // The reason for the PTR record update. Reason *string + // The status of the PTR record update. Status *string + // The value for the PTR record update. Value *string } @@ -7193,8 +7256,8 @@ type PublicIpv4Pool struct { Description *string // The name of the location from which the address pool is advertised. A network - // border group is a unique set of Availability Zones or Local Zones from where AWS - // advertises public IP addresses. + // border group is a unique set of Availability Zones or Local Zones from where + // Amazon Web Services advertises public IP addresses. NetworkBorderGroup *string // The address ranges. @@ -7207,20 +7270,20 @@ type PublicIpv4Pool struct { Tags []Tag // The total number of addresses. - TotalAddressCount int32 + TotalAddressCount *int32 // The total number of available addresses. - TotalAvailableAddressCount int32 + TotalAvailableAddressCount *int32 } // Describes an address range of an IPv4 address pool. type PublicIpv4PoolRange struct { // The number of addresses in the range. - AddressCount int32 + AddressCount *int32 // The number of available addresses in the range. - AvailableAddressCount int32 + AvailableAddressCount *int32 // The first IP address in the range. FirstAddress *string @@ -7237,7 +7300,7 @@ type Purchase struct { CurrencyCode CurrencyCodeValues // The duration of the reservation's term in seconds. - Duration int32 + Duration *int32 // The IDs of the Dedicated Hosts associated with the reservation. HostIdSet []string @@ -7265,7 +7328,7 @@ type PurchaseRequest struct { // The number of instances. // // This member is required. - InstanceCount int32 + InstanceCount *int32 // The purchase token. // @@ -7277,7 +7340,7 @@ type PurchaseRequest struct { type RecurringCharge struct { // The amount of the recurring charge. - Amount float64 + Amount *float64 // The frequency of the recurring charge. Frequency RecurringChargeFrequency @@ -7305,7 +7368,7 @@ type RegisterInstanceTagAttributeRequest struct { // Indicates whether to register all tag keys in the current Region. Specify true // to register all tag keys. - IncludeAllTagsOfInstance bool + IncludeAllTagsOfInstance *bool // The tag keys to register. InstanceTagKeys []string @@ -7320,6 +7383,51 @@ type RemovePrefixListEntry struct { Cidr *string } +// Information about a root volume replacement task. +type ReplaceRootVolumeTask struct { + + // The time the task completed. + CompleteTime *string + + // The ID of the instance for which the root volume replacement task was created. + InstanceId *string + + // The ID of the root volume replacement task. + ReplaceRootVolumeTaskId *string + + // The time the task was started. + StartTime *string + + // The tags assigned to the task. + Tags []Tag + + // The state of the task. The task can be in one of the following states: + // + // * + // pending - the replacement volume is being created. + // + // * in-progress - the original + // volume is being detached and the replacement volume is being attached. + // + // * + // succeeded - the replacement volume has been successfully attached to the + // instance and the instance is available. + // + // * failing - the replacement task is in + // the process of failing. + // + // * failed - the replacement task has failed but the + // original root volume is still attached. + // + // * failing-detached - the replacement + // task is in the process of failing. The instance might have no root volume + // attached. + // + // * failed-detached - the replacement task has failed and the instance + // has no root volume attached. + TaskState ReplaceRootVolumeTaskState +} + // The information to include in the launch template. type RequestLaunchTemplateData struct { @@ -7348,14 +7456,14 @@ type RequestLaunchTemplateData struct { // (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_ModifyInstanceAttribute.html). // Alternatively, if you set InstanceInitiatedShutdownBehavior to terminate, you // can terminate the instance by running the shutdown command from the instance. - DisableApiTermination bool + DisableApiTermination *bool // Indicates whether the instance is optimized for Amazon EBS I/O. This // optimization provides dedicated throughput to Amazon EBS and an optimized // configuration stack to provide optimal Amazon EBS I/O performance. This // optimization isn't available with all instance types. Additional usage charges // apply when using an EBS-optimized instance. - EbsOptimized bool + EbsOptimized *bool // An elastic GPU to associate with the instance. ElasticGpuSpecifications []ElasticGpuSpecification @@ -7378,7 +7486,7 @@ type RequestLaunchTemplateData struct { // Amazon Elastic Compute Cloud User Guide. HibernationOptions *LaunchTemplateHibernationOptionsRequest - // The IAM instance profile. + // The name or Amazon Resource Name (ARN) of an IAM instance profile. IamInstanceProfile *LaunchTemplateIamInstanceProfileSpecificationRequest // The ID of the AMI. @@ -7481,7 +7589,7 @@ type RequestSpotLaunchSpecification struct { // to provide optimal EBS I/O performance. This optimization isn't available with // all instance types. Additional usage charges apply when using an EBS Optimized // instance. Default: false - EbsOptimized bool + EbsOptimized *bool // The IAM instance profile. IamInstanceProfile *IamInstanceProfileSpecification @@ -7520,9 +7628,7 @@ type RequestSpotLaunchSpecification struct { // EC2-Classic, you can specify the names or the IDs of the security groups. SecurityGroups []string - // The IDs of the subnets in which to launch the instance. To specify multiple - // subnets, separate them using commas; for example, "subnet-1234abcdeexample1, - // subnet-0987cdef6example2". + // The ID of the subnet in which to launch the instance. SubnetId *string // The Base64-encoded user data for the instance. User data is limited to 16 KB. @@ -7540,11 +7646,11 @@ type Reservation struct { // The instances. Instances []Instance - // The ID of the AWS account that owns the reservation. + // The ID of the account that owns the reservation. OwnerId *string // The ID of the requester that launched the instances on your behalf (for example, - // AWS Management Console or Auto Scaling). + // Management Console or Auto Scaling). RequesterId *string // The ID of the reservation. @@ -7570,7 +7676,7 @@ type ReservedInstanceLimitPrice struct { // Used for Reserved Instance Marketplace offerings. Specifies the limit price on // the total order (instanceCount * price). - Amount float64 + Amount *float64 // The currency in which the limitPrice amount is specified. At this time, the only // supported currency is USD. @@ -7598,16 +7704,16 @@ type ReservedInstances struct { CurrencyCode CurrencyCodeValues // The duration of the Reserved Instance, in seconds. - Duration int64 + Duration *int64 // The time when the Reserved Instance expires. End *time.Time // The purchase price of the Reserved Instance. - FixedPrice float32 + FixedPrice *float32 // The number of reservations purchased. - InstanceCount int32 + InstanceCount *int32 // The tenancy of the instance. InstanceTenancy Tenancy @@ -7643,7 +7749,7 @@ type ReservedInstances struct { Tags []Tag // The usage price of the Reserved Instance, per hour. - UsagePrice float32 + UsagePrice *float32 } // Describes the configuration settings for the modified Reserved Instances. @@ -7654,7 +7760,7 @@ type ReservedInstancesConfiguration struct { // The number of modified Reserved Instances. This is a required field for a // request. - InstanceCount int32 + InstanceCount *int32 // The instance type for the modified Reserved Instances. InstanceType InstanceType @@ -7770,10 +7876,10 @@ type ReservedInstancesOffering struct { CurrencyCode CurrencyCodeValues // The duration of the Reserved Instance, in seconds. - Duration int64 + Duration *int64 // The purchase price of the Reserved Instance. - FixedPrice float32 + FixedPrice *float32 // The tenancy of the instance. InstanceTenancy Tenancy @@ -7782,9 +7888,9 @@ type ReservedInstancesOffering struct { InstanceType InstanceType // Indicates whether the offering is available through the Reserved Instance - // Marketplace (resale) or AWS. If it's a Reserved Instance Marketplace offering, - // this is true. - Marketplace bool + // Marketplace (resale) or Amazon Web Services. If it's a Reserved Instance + // Marketplace offering, this is true. + Marketplace *bool // If convertible it can be exchanged for Reserved Instances of the same or higher // monetary value, with different configurations. If standard, it is not possible @@ -7812,7 +7918,7 @@ type ReservedInstancesOffering struct { Scope Scope // The usage price of the Reserved Instance, per hour. - UsagePrice float32 + UsagePrice *float32 } // Describes the error that's returned when you cannot delete a launch template @@ -7846,10 +7952,10 @@ type ResponseLaunchTemplateData struct { // If set to true, indicates that the instance cannot be terminated using the // Amazon EC2 console, command line tool, or API. - DisableApiTermination bool + DisableApiTermination *bool // Indicates whether the instance is optimized for Amazon EBS I/O. - EbsOptimized bool + EbsOptimized *bool // The elastic GPU specification. ElasticGpuSpecifications []ElasticGpuSpecificationResponse @@ -8017,7 +8123,7 @@ type RouteTableAssociation struct { GatewayId *string // Indicates whether this is the main route table. - Main bool + Main *bool // The ID of the association. RouteTableAssociationId *string @@ -8047,7 +8153,22 @@ type RunInstancesMonitoringEnabled struct { // enabled. // // This member is required. - Enabled bool + Enabled *bool +} + +// The tags to apply to the AMI object that will be stored in the S3 bucket. For +// more information, see Categorizing your storage using tags +// (https://docs.aws.amazon.com/AmazonS3/latest/userguide/object-tagging.html) in +// the Amazon Simple Storage Service User Guide. +type S3ObjectTag struct { + + // The key of the tag. Constraints: Tag keys are case-sensitive and can be up to + // 128 Unicode characters in length. May not begin with aws:. + Key *string + + // The value of the tag. Constraints: Tag values are case-sensitive and can be up + // to 256 Unicode characters in length. + Value *string } // Describes the storage parameters for S3 and S3 buckets for an instance @@ -8089,7 +8210,7 @@ type ScheduledInstance struct { HourlyPrice *string // The number of instances. - InstanceCount int32 + InstanceCount *int32 // The instance type. InstanceType *string @@ -8113,7 +8234,7 @@ type ScheduledInstance struct { ScheduledInstanceId *string // The number of hours in the schedule. - SlotDurationInHours int32 + SlotDurationInHours *int32 // The end date for the Scheduled Instance. TermEndDate *time.Time @@ -8122,7 +8243,7 @@ type ScheduledInstance struct { TermStartDate *time.Time // The total number of hours for a single instance for the entire term. - TotalScheduledInstanceHours int32 + TotalScheduledInstanceHours *int32 } // Describes a schedule that is available for your Scheduled Instances. @@ -8132,7 +8253,7 @@ type ScheduledInstanceAvailability struct { AvailabilityZone *string // The number of available instances. - AvailableInstanceCount int32 + AvailableInstanceCount *int32 // The time period for the first schedule to start. FirstSlotStartTime *time.Time @@ -8144,10 +8265,10 @@ type ScheduledInstanceAvailability struct { InstanceType *string // The maximum term. The only possible value is 365 days. - MaxTermDurationInDays int32 + MaxTermDurationInDays *int32 // The minimum term. The only possible value is 365 days. - MinTermDurationInDays int32 + MinTermDurationInDays *int32 // The network platform (EC2-Classic or EC2-VPC). NetworkPlatform *string @@ -8162,10 +8283,10 @@ type ScheduledInstanceAvailability struct { Recurrence *ScheduledInstanceRecurrence // The number of hours in the schedule. - SlotDurationInHours int32 + SlotDurationInHours *int32 // The total number of hours for a single instance for the entire term. - TotalScheduledInstanceHours int32 + TotalScheduledInstanceHours *int32 } // Describes the recurring schedule for a Scheduled Instance. @@ -8176,7 +8297,7 @@ type ScheduledInstanceRecurrence struct { // The interval quantity. The interval unit depends on the value of frequency. For // example, every 2 weeks or every 2 months. - Interval int32 + Interval *int32 // The days. For a monthly schedule, this is one or more days of the month (1-31). // For a weekly schedule, this is one or more days of the week (1-7, where 1 is @@ -8185,7 +8306,7 @@ type ScheduledInstanceRecurrence struct { // Indicates whether the occurrence is relative to the end of the specified week or // month. - OccurrenceRelativeToEnd bool + OccurrenceRelativeToEnd *bool // The unit for occurrenceDaySet (DayOfWeek or DayOfMonth). OccurrenceUnit *string @@ -8199,7 +8320,7 @@ type ScheduledInstanceRecurrenceRequest struct { // The interval quantity. The interval unit depends on the value of Frequency. For // example, every 2 weeks or every 2 months. - Interval int32 + Interval *int32 // The days. For a monthly schedule, this is one or more days of the month (1-31). // For a weekly schedule, this is one or more days of the week (1-7, where 1 is @@ -8209,7 +8330,7 @@ type ScheduledInstanceRecurrenceRequest struct { // Indicates whether the occurrence is relative to the end of the specified week or // month. You can't specify this value with a daily schedule. - OccurrenceRelativeToEnd bool + OccurrenceRelativeToEnd *bool // The unit for OccurrenceDays (DayOfWeek or DayOfMonth). This value is required // for a monthly schedule. You can't specify DayOfWeek with a weekly schedule. You @@ -8227,7 +8348,7 @@ type ScheduledInstancesBlockDeviceMapping struct { // launched. Ebs *ScheduledInstancesEbs - // Suppresses the specified device included in the block device mapping of the AMI. + // To omit the device from the block device mapping, specify an empty string. NoDevice *string // The virtual device name (ephemeralN). Instance store volumes are numbered @@ -8245,30 +8366,30 @@ type ScheduledInstancesBlockDeviceMapping struct { type ScheduledInstancesEbs struct { // Indicates whether the volume is deleted on instance termination. - DeleteOnTermination bool + DeleteOnTermination *bool // Indicates whether the volume is encrypted. You can attached encrypted volumes // only to instances that support them. - Encrypted bool + Encrypted *bool // The number of I/O operations per second (IOPS) to provision for an io1 or io2 // volume, with a maximum ratio of 50 IOPS/GiB for io1, and 500 IOPS/GiB for io2. // Range is 100 to 64,000 IOPS for volumes in most Regions. Maximum IOPS of 64,000 - // is guaranteed only on Nitro-based instances + // is guaranteed only on instances built on the Nitro System // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html#ec2-nitro-instances). // Other instance families guarantee performance up to 32,000 IOPS. For more - // information, see Amazon EBS Volume Types + // information, see Amazon EBS volume types // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSVolumeTypes.html) in the - // Amazon Elastic Compute Cloud User Guide. This parameter is valid only for - // Provisioned IOPS SSD (io1 and io2) volumes. - Iops int32 + // Amazon EC2 User Guide. This parameter is valid only for Provisioned IOPS SSD + // (io1 and io2) volumes. + Iops *int32 // The ID of the snapshot. SnapshotId *string // The size of the volume, in GiB. Default: If you're creating the volume from a // snapshot and don't specify a volume size, the default is the snapshot size. - VolumeSize int32 + VolumeSize *int32 // The volume type. gp2 for General Purpose SSD, io1 or io2 for Provisioned IOPS // SSD, Throughput Optimized HDD for st1, Cold HDD for sc1, or standard for @@ -8311,7 +8432,7 @@ type ScheduledInstancesLaunchSpecification struct { // to provide optimal EBS I/O performance. This optimization isn't available with // all instance types. Additional usage charges apply when using an EBS-optimized // instance. Default: false - EbsOptimized bool + EbsOptimized *bool // The IAM instance profile. IamInstanceProfile *ScheduledInstancesIamInstanceProfile @@ -8351,7 +8472,7 @@ type ScheduledInstancesLaunchSpecification struct { type ScheduledInstancesMonitoring struct { // Indicates whether monitoring is enabled. - Enabled bool + Enabled *bool } // Describes a network interface for a Scheduled Instance. @@ -8362,23 +8483,23 @@ type ScheduledInstancesNetworkInterface struct { // eth0, and can only be assigned to a new network interface, not an existing one. // You cannot specify more than one network interface in the request. If launching // into a default subnet, the default value is true. - AssociatePublicIpAddress bool + AssociatePublicIpAddress *bool // Indicates whether to delete the interface when the instance is terminated. - DeleteOnTermination bool + DeleteOnTermination *bool // The description. Description *string // The index of the device for the network interface attachment. - DeviceIndex int32 + DeviceIndex *int32 // The IDs of the security groups. Groups []string // The number of IPv6 addresses to assign to the network interface. The IPv6 // addresses are automatically selected from the subnet range. - Ipv6AddressCount int32 + Ipv6AddressCount *int32 // The specific IPv6 addresses from the subnet range. Ipv6Addresses []ScheduledInstancesIpv6Address @@ -8393,7 +8514,7 @@ type ScheduledInstancesNetworkInterface struct { PrivateIpAddressConfigs []ScheduledInstancesPrivateIpAddressConfig // The number of secondary private IPv4 addresses. - SecondaryPrivateIpAddressCount int32 + SecondaryPrivateIpAddressCount *int32 // The ID of the subnet. SubnetId *string @@ -8414,7 +8535,7 @@ type ScheduledInstancesPrivateIpAddressConfig struct { // Indicates whether this is a primary IPv4 address. Otherwise, this is a secondary // IPv4 address. - Primary bool + Primary *bool // The IPv4 address. PrivateIpAddress *string @@ -8476,7 +8597,7 @@ type ServiceConfiguration struct { // Indicates whether requests from other AWS accounts to create an endpoint to the // service must first be accepted. - AcceptanceRequired bool + AcceptanceRequired *bool // The Availability Zones in which the service is available. AvailabilityZones []string @@ -8489,7 +8610,7 @@ type ServiceConfiguration struct { // Indicates whether the service manages its VPC endpoints. Management of the // service VPC endpoints using the VPC endpoint API is restricted. - ManagesVpcEndpoints bool + ManagesVpcEndpoints *bool // The Amazon Resource Names (ARNs) of the Network Load Balancers for the service. NetworkLoadBalancerArns []string @@ -8521,7 +8642,7 @@ type ServiceDetail struct { // Indicates whether VPC endpoint connection requests to the service must be // accepted by the service owner. - AcceptanceRequired bool + AcceptanceRequired *bool // The Availability Zones in which the service is available. AvailabilityZones []string @@ -8531,7 +8652,7 @@ type ServiceDetail struct { // Indicates whether the service manages its VPC endpoints. Management of the // service VPC endpoints using the VPC endpoint API is restricted. - ManagesVpcEndpoints bool + ManagesVpcEndpoints *bool // The AWS account ID of the service owner. Owner *string @@ -8559,7 +8680,7 @@ type ServiceDetail struct { Tags []Tag // Indicates whether the service supports endpoint policies. - VpcEndpointPolicySupported bool + VpcEndpointPolicySupported *bool } // Describes the type of service for a VPC endpoint. @@ -8611,13 +8732,19 @@ type Snapshot struct { Description *string // Indicates whether the snapshot is encrypted. - Encrypted bool + Encrypted *bool // The Amazon Resource Name (ARN) of the AWS Key Management Service (AWS KMS) // customer master key (CMK) that was used to protect the volume encryption key for // the parent volume. KmsKeyId *string + // The ARN of the AWS Outpost on which the snapshot is stored. For more + // information, see EBS Local Snapshot on Outposts + // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/snapshots-outposts.html) in + // the Amazon Elastic Compute Cloud User Guide. + OutpostArn *string + // The AWS owner alias, from an Amazon-maintained list (amazon). This is not the // user-configured AWS account alias set using the IAM console. OwnerAlias *string @@ -8654,7 +8781,7 @@ type Snapshot struct { VolumeId *string // The size of the volume, in GiB. - VolumeSize int32 + VolumeSize *int32 } // Describes the snapshot created from the imported disk. @@ -8667,7 +8794,7 @@ type SnapshotDetail struct { DeviceName *string // The size of the disk in the snapshot, in GiB. - DiskImageSize float64 + DiskImageSize *float64 // The format of the disk image from which the snapshot is created. Format *string @@ -8697,7 +8824,7 @@ type SnapshotDiskContainer struct { // The description of the disk image being imported. Description *string - // The format of the disk image being imported. Valid values: VHD | VMDK + // The format of the disk image being imported. Valid values: VHD | VMDK | RAW Format *string // The URL to the Amazon S3-based disk image being imported. It can either be a @@ -8716,7 +8843,13 @@ type SnapshotInfo struct { Description *string // Indicates whether the snapshot is encrypted. - Encrypted bool + Encrypted *bool + + // The ARN of the AWS Outpost on which the snapshot is stored. For more + // information, see EBS Local Snapshot on Outposts + // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/snapshots-outposts.html) in + // the Amazon Elastic Compute Cloud User Guide. + OutpostArn *string // Account id used when creating this snapshot. OwnerId *string @@ -8741,7 +8874,7 @@ type SnapshotInfo struct { VolumeId *string // Size of the volume from which this snapshot was created. - VolumeSize int32 + VolumeSize *int32 } // Details about the import snapshot task. @@ -8751,10 +8884,10 @@ type SnapshotTaskDetail struct { Description *string // The size of the disk in the snapshot, in GiB. - DiskImageSize float64 + DiskImageSize *float64 // Indicates whether the snapshot is encrypted. - Encrypted bool + Encrypted *bool // The format of the disk image from which the snapshot is created. Format *string @@ -8808,7 +8941,7 @@ type SpotDatafeedSubscription struct { // The fault codes for the Spot Instance request, if any. Fault *SpotInstanceStateFault - // The AWS account ID of the account. + // The account ID of the account. OwnerId *string // The prefix for the data feed files. @@ -8840,7 +8973,7 @@ type SpotFleetLaunchSpecification struct { // to provide optimal EBS I/O performance. This optimization isn't available with // all instance types. Additional usage charges apply when using an EBS Optimized // instance. Default: false - EbsOptimized bool + EbsOptimized *bool // The IAM instance profile. IamInstanceProfile *IamInstanceProfileSpecification @@ -8872,8 +9005,8 @@ type SpotFleetLaunchSpecification struct { // The ID of the RAM disk. Some kernels require additional drivers at launch. Check // the kernel requirements for information about whether you need to specify a RAM - // disk. To find kernel requirements, refer to the AWS Resource Center and search - // for the kernel ID. + // disk. To find kernel requirements, refer to the Amazon Web Services Resource + // Center and search for the kernel ID. RamdiskId *string // One or more security groups. When requesting instances in a VPC, you must @@ -8904,14 +9037,14 @@ type SpotFleetLaunchSpecification struct { // divided by this value is not a whole number, Amazon EC2 rounds the number of // instances to the next whole number. If this value is not specified, the default // is 1. - WeightedCapacity float64 + WeightedCapacity *float64 } // Describes whether monitoring is enabled. type SpotFleetMonitoring struct { // Enables monitoring for the instance. Default: false - Enabled bool + Enabled *bool } // Describes a Spot Fleet request. @@ -8943,10 +9076,9 @@ type SpotFleetRequestConfig struct { // Describes the configuration of a Spot Fleet request. type SpotFleetRequestConfigData struct { - // The Amazon Resource Name (ARN) of an AWS Identity and Access Management (IAM) - // role that grants the Spot Fleet the permission to request, launch, terminate, - // and tag instances on your behalf. For more information, see Spot Fleet - // prerequisites + // The Amazon Resource Name (ARN) of an Identity and Access Management (IAM) role + // that grants the Spot Fleet the permission to request, launch, terminate, and tag + // instances on your behalf. For more information, see Spot Fleet prerequisites // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-fleet-requests.html#spot-fleet-prerequisites) // in the Amazon EC2 User Guide for Linux Instances. Spot Fleet can terminate Spot // Instances on your behalf when you cancel its Spot Fleet request using @@ -8965,16 +9097,24 @@ type SpotFleetRequestConfigData struct { // capacity later. // // This member is required. - TargetCapacity int32 + TargetCapacity *int32 // Indicates how to allocate the target Spot Instance capacity across the Spot // Instance pools specified by the Spot Fleet request. If the allocation strategy // is lowestPrice, Spot Fleet launches instances from the Spot Instance pools with // the lowest price. This is the default allocation strategy. If the allocation // strategy is diversified, Spot Fleet launches instances from all the Spot - // Instance pools that you specify. If the allocation strategy is - // capacityOptimized, Spot Fleet launches instances from Spot Instance pools with - // optimal capacity for the number of instances that are launching. + // Instance pools that you specify. If the allocation strategy is capacityOptimized + // (recommended), Spot Fleet launches instances from Spot Instance pools with + // optimal capacity for the number of instances that are launching. To give certain + // instance types a higher chance of launching first, use + // capacityOptimizedPrioritized. Set a priority for each instance type by using the + // Priority parameter for LaunchTemplateOverrides. You can assign the same priority + // to different LaunchTemplateOverrides. EC2 implements the priorities on a + // best-effort basis, but optimizes for capacity first. + // capacityOptimizedPrioritized is supported only if your Spot Fleet uses a launch + // template. Note that if the OnDemandAllocationStrategy is set to prioritized, the + // same priority is applied when fulfilling On-Demand capacity. AllocationStrategy AllocationStrategy // A unique, case-sensitive identifier that you provide to ensure the idempotency @@ -8983,6 +9123,9 @@ type SpotFleetRequestConfigData struct { // (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html). ClientToken *string + // Reserved. + Context *string + // Indicates whether running Spot Instances should be terminated if you decrease // the target capacity of the Spot Fleet request below the current size of the Spot // Fleet. @@ -8990,7 +9133,7 @@ type SpotFleetRequestConfigData struct { // The number of units fulfilled by this request compared to the set target // capacity. You cannot set this value. - FulfilledCapacity float64 + FulfilledCapacity *float64 // The behavior when a Spot Instance is interrupted. The default is terminate. InstanceInterruptionBehavior InstanceInterruptionBehavior @@ -8998,8 +9141,15 @@ type SpotFleetRequestConfigData struct { // The number of Spot pools across which to allocate your target Spot capacity. // Valid only when Spot AllocationStrategy is set to lowest-price. Spot Fleet // selects the cheapest Spot pools and evenly allocates your target Spot capacity - // across the number of Spot pools that you specify. - InstancePoolsToUseCount int32 + // across the number of Spot pools that you specify. Note that Spot Fleet attempts + // to draw Spot Instances from the number of pools that you specify on a best + // effort basis. If a pool runs out of Spot capacity before fulfilling your target + // capacity, Spot Fleet will continue to fulfill your request by drawing from the + // next cheapest pool. To ensure that your target capacity is met, you might + // receive Spot Instances from more than the number of pools that you specified. + // Similarly, if most of the pools have no Spot capacity, you might receive your + // full target capacity from fewer than the number of pools that you specified. + InstancePoolsToUseCount *int32 // The launch specifications for the Spot Fleet request. If you specify // LaunchSpecifications, you can't specify LaunchTemplateConfigs. If you include @@ -9028,7 +9178,7 @@ type SpotFleetRequestConfigData struct { // The number of On-Demand units fulfilled by this request compared to the set // target On-Demand capacity. - OnDemandFulfilledCapacity float64 + OnDemandFulfilledCapacity *float64 // The maximum amount per hour for On-Demand Instances that you're willing to pay. // You can use the onDemandMaxTotalPrice parameter, the spotMaxTotalPrice @@ -9044,10 +9194,10 @@ type SpotFleetRequestConfigData struct { // capacity in terms of instances or a performance characteristic that is important // to your application workload, such as vCPUs, memory, or I/O. If the request type // is maintain, you can specify a target capacity of 0 and add capacity later. - OnDemandTargetCapacity int32 + OnDemandTargetCapacity *int32 // Indicates whether Spot Fleet should replace unhealthy instances. - ReplaceUnhealthyInstances bool + ReplaceUnhealthyInstances *bool // The strategies for managing your Spot Instances that are at an elevated risk of // being interrupted. @@ -9081,7 +9231,7 @@ type SpotFleetRequestConfigData struct { // Indicates whether running Spot Instances are terminated when the Spot Fleet // request expires. - TerminateInstancesWithExpiration bool + TerminateInstancesWithExpiration *bool // The type of request. Indicates whether the Spot Fleet only requests the target // capacity or also attempts to maintain it. When this value is request, the Spot @@ -9120,8 +9270,7 @@ type SpotFleetTagSpecification struct { // Describes a Spot Instance request. type SpotInstanceRequest struct { - // If you specified a duration and your Spot Instance request was fulfilled, this - // is the fixed hourly price in effect for the Spot Instance while it runs. + // Deprecated. ActualBlockHourlyPrice *string // The Availability Zone group. If you specify the same Availability Zone group for @@ -9129,8 +9278,8 @@ type SpotInstanceRequest struct { // Availability Zone. AvailabilityZoneGroup *string - // The duration for the Spot Instance, in minutes. - BlockDurationMinutes int32 + // Deprecated. + BlockDurationMinutes *int32 // The date and time when the Spot Instance request was created, in UTC format (for // example, YYYY-MM-DDTHH:MM:SSZ). @@ -9242,9 +9391,10 @@ type SpotMarketOptions struct { // termination and provides a Spot Instance termination notice, which gives the // instance a two-minute warning before it terminates. You can't specify an // Availability Zone group or a launch group if you specify a duration. New - // accounts or accounts with no previous billing history with AWS are not eligible - // for Spot Instances with a defined duration (also known as Spot blocks). - BlockDurationMinutes int32 + // accounts or accounts with no previous billing history with Amazon Web Services + // are not eligible for Spot Instances with a defined duration (also known as Spot + // blocks). + BlockDurationMinutes *int32 // The behavior when a Spot Instance is interrupted. The default is terminate. InstanceInterruptionBehavior InstanceInterruptionBehavior @@ -9255,8 +9405,8 @@ type SpotMarketOptions struct { // The Spot Instance request type. For RunInstances // (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_RunInstances), - // persistent Spot Instance requests are only supported when - // InstanceInterruptionBehavior is set to either hibernate or stop. + // persistent Spot Instance requests are only supported when the instance + // interruption behavior is either hibernate or stop. SpotInstanceType SpotInstanceType // The end date of the request, in UTC format (YYYY-MM-DDTHH:MM:SSZ). Supported @@ -9281,8 +9431,16 @@ type SpotOptions struct { // lowest price. This is the default allocation strategy. If the allocation // strategy is diversified, EC2 Fleet launches instances from all of the Spot // Instance pools that you specify. If the allocation strategy is - // capacity-optimized, EC2 Fleet launches instances from Spot Instance pools with - // optimal capacity for the number of instances that are launching. + // capacity-optimized (recommended), EC2 Fleet launches instances from Spot + // Instance pools with optimal capacity for the number of instances that are + // launching. To give certain instance types a higher chance of launching first, + // use capacity-optimized-prioritized. Set a priority for each instance type by + // using the Priority parameter for LaunchTemplateOverrides. You can assign the + // same priority to different LaunchTemplateOverrides. EC2 implements the + // priorities on a best-effort basis, but optimizes for capacity first. + // capacity-optimized-prioritized is supported only if your fleet uses a launch + // template. Note that if the On-Demand AllocationStrategy is set to prioritized, + // the same priority is applied when fulfilling On-Demand capacity. AllocationStrategy SpotAllocationStrategy // The behavior when a Spot Instance is interrupted. The default is terminate. @@ -9291,8 +9449,15 @@ type SpotOptions struct { // The number of Spot pools across which to allocate your target Spot capacity. // Valid only when AllocationStrategy is set to lowest-price. EC2 Fleet selects the // cheapest Spot pools and evenly allocates your target Spot capacity across the - // number of Spot pools that you specify. - InstancePoolsToUseCount int32 + // number of Spot pools that you specify. Note that EC2 Fleet attempts to draw Spot + // Instances from the number of pools that you specify on a best effort basis. If a + // pool runs out of Spot capacity before fulfilling your target capacity, EC2 Fleet + // will continue to fulfill your request by drawing from the next cheapest pool. To + // ensure that your target capacity is met, you might receive Spot Instances from + // more than the number of pools that you specified. Similarly, if most of the + // pools have no Spot capacity, you might receive your full target capacity from + // fewer than the number of pools that you specified. + InstancePoolsToUseCount *int32 // The strategies for managing your workloads on your Spot Instances that will be // interrupted. Currently only the capacity rebalance strategy is available. @@ -9303,15 +9468,15 @@ type SpotOptions struct { // The minimum target capacity for Spot Instances in the fleet. If the minimum // target capacity is not reached, the fleet launches no instances. - MinTargetCapacity int32 + MinTargetCapacity *int32 // Indicates that the fleet launches all Spot Instances into a single Availability // Zone. Supported only for fleets of type instant. - SingleAvailabilityZone bool + SingleAvailabilityZone *bool // Indicates that the fleet uses a single instance type to launch all Spot // Instances in the fleet. Supported only for fleets of type instant. - SingleInstanceType bool + SingleInstanceType *bool } // Describes the configuration of Spot Instances in an EC2 Fleet request. @@ -9323,8 +9488,16 @@ type SpotOptionsRequest struct { // lowest price. This is the default allocation strategy. If the allocation // strategy is diversified, EC2 Fleet launches instances from all of the Spot // Instance pools that you specify. If the allocation strategy is - // capacity-optimized, EC2 Fleet launches instances from Spot Instance pools with - // optimal capacity for the number of instances that are launching. + // capacity-optimized (recommended), EC2 Fleet launches instances from Spot + // Instance pools with optimal capacity for the number of instances that are + // launching. To give certain instance types a higher chance of launching first, + // use capacity-optimized-prioritized. Set a priority for each instance type by + // using the Priority parameter for LaunchTemplateOverrides. You can assign the + // same priority to different LaunchTemplateOverrides. EC2 implements the + // priorities on a best-effort basis, but optimizes for capacity first. + // capacity-optimized-prioritized is supported only if your fleet uses a launch + // template. Note that if the On-Demand AllocationStrategy is set to prioritized, + // the same priority is applied when fulfilling On-Demand capacity. AllocationStrategy SpotAllocationStrategy // The behavior when a Spot Instance is interrupted. The default is terminate. @@ -9333,8 +9506,15 @@ type SpotOptionsRequest struct { // The number of Spot pools across which to allocate your target Spot capacity. // Valid only when Spot AllocationStrategy is set to lowest-price. EC2 Fleet // selects the cheapest Spot pools and evenly allocates your target Spot capacity - // across the number of Spot pools that you specify. - InstancePoolsToUseCount int32 + // across the number of Spot pools that you specify. Note that EC2 Fleet attempts + // to draw Spot Instances from the number of pools that you specify on a best + // effort basis. If a pool runs out of Spot capacity before fulfilling your target + // capacity, EC2 Fleet will continue to fulfill your request by drawing from the + // next cheapest pool. To ensure that your target capacity is met, you might + // receive Spot Instances from more than the number of pools that you specified. + // Similarly, if most of the pools have no Spot capacity, you might receive your + // full target capacity from fewer than the number of pools that you specified. + InstancePoolsToUseCount *int32 // The strategies for managing your Spot Instances that are at an elevated risk of // being interrupted. @@ -9345,15 +9525,15 @@ type SpotOptionsRequest struct { // The minimum target capacity for Spot Instances in the fleet. If the minimum // target capacity is not reached, the fleet launches no instances. - MinTargetCapacity int32 + MinTargetCapacity *int32 // Indicates that the fleet launches all Spot Instances into a single Availability // Zone. Supported only for fleets of type instant. - SingleAvailabilityZone bool + SingleAvailabilityZone *bool // Indicates that the fleet uses a single instance type to launch all Spot // Instances in the fleet. Supported only for fleets of type instant. - SingleInstanceType bool + SingleInstanceType *bool } // Describes Spot Instance placement. @@ -9398,7 +9578,7 @@ type StaleIpPermission struct { // The start of the port range for the TCP and UDP protocols, or an ICMP type // number. A value of -1 indicates all ICMP types. - FromPort int32 + FromPort *int32 // The IP protocol name (for tcp, udp, and icmp) or number (see Protocol Numbers) // (http://www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml). @@ -9412,7 +9592,7 @@ type StaleIpPermission struct { // The end of the port range for the TCP and UDP protocols, or an ICMP type number. // A value of -1 indicates all ICMP types. - ToPort int32 + ToPort *int32 // The security group pairs. Returns the ID of the referenced security group and // VPC, and the ID and status of the VPC peering connection. @@ -9511,12 +9691,38 @@ type StorageLocation struct { Key *string } +// The information about the AMI store task, including the progress of the task. +type StoreImageTaskResult struct { + + // The ID of the AMI that is being stored. + AmiId *string + + // The name of the S3 bucket that contains the stored AMI object. + Bucket *string + + // The progress of the task as a percentage. + ProgressPercentage *int32 + + // The name of the stored AMI object in the bucket. + S3objectKey *string + + // If the tasks fails, the reason for the failure is returned. If the task + // succeeds, null is returned. + StoreTaskFailureReason *string + + // The state of the store task (InProgress, Completed, or Failed). + StoreTaskState *string + + // The time the task started. + TaskStartTime *time.Time +} + // Describes a subnet. type Subnet struct { // Indicates whether a network interface created in this subnet (including a // network interface created by RunInstances) receives an IPv6 address. - AssignIpv6AddressOnCreation bool + AssignIpv6AddressOnCreation *bool // The Availability Zone of the subnet. AvailabilityZone *string @@ -9526,7 +9732,7 @@ type Subnet struct { // The number of unused private IPv4 addresses in the subnet. The IPv4 addresses // for any stopped instances are considered unavailable. - AvailableIpAddressCount int32 + AvailableIpAddressCount *int32 // The IPv4 CIDR block assigned to the subnet. CidrBlock *string @@ -9535,7 +9741,7 @@ type Subnet struct { CustomerOwnedIpv4Pool *string // Indicates whether this is the default subnet for the Availability Zone. - DefaultForAz bool + DefaultForAz *bool // Information about the IPv6 CIDR blocks associated with the subnet. Ipv6CidrBlockAssociationSet []SubnetIpv6CidrBlockAssociation @@ -9543,11 +9749,11 @@ type Subnet struct { // Indicates whether a network interface created in this subnet (including a // network interface created by RunInstances) receives a customer-owned IPv4 // address. - MapCustomerOwnedIpOnLaunch bool + MapCustomerOwnedIpOnLaunch *bool // Indicates whether instances launched in this subnet receive a public IPv4 // address. - MapPublicIpOnLaunch bool + MapPublicIpOnLaunch *bool // The Amazon Resource Name (ARN) of the Outpost. OutpostArn *string @@ -9687,7 +9893,7 @@ type TagSpecification struct { // OnDemandOptions // (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_OnDemandOptions.html) // and SpotOptions -// (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_SpotOptions) +// (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_SpotOptions). type TargetCapacitySpecification struct { // The default TotalTargetCapacity, which is either Spot or On-Demand. @@ -9695,14 +9901,14 @@ type TargetCapacitySpecification struct { // The number of On-Demand units to request. If you specify a target capacity for // Spot units, you cannot specify a target capacity for On-Demand units. - OnDemandTargetCapacity int32 + OnDemandTargetCapacity *int32 // The maximum number of Spot units to launch. If you specify a target capacity for // On-Demand units, you cannot specify a target capacity for Spot units. - SpotTargetCapacity int32 + SpotTargetCapacity *int32 // The number of units to request, filled using DefaultTargetCapacityType. - TotalTargetCapacity int32 + TotalTargetCapacity *int32 } // The number of units to request. You can choose to set the target capacity as the @@ -9725,16 +9931,16 @@ type TargetCapacitySpecificationRequest struct { // The number of units to request, filled using DefaultTargetCapacityType. // // This member is required. - TotalTargetCapacity int32 + TotalTargetCapacity *int32 // The default TotalTargetCapacity, which is either Spot or On-Demand. DefaultTargetCapacityType DefaultTargetCapacityType // The number of On-Demand units to request. - OnDemandTargetCapacity int32 + OnDemandTargetCapacity *int32 // The number of Spot units to request. - SpotTargetCapacity int32 + SpotTargetCapacity *int32 } // Information about the Convertible Reserved Instance offering. @@ -9742,7 +9948,7 @@ type TargetConfiguration struct { // The number of instances the Convertible Reserved Instance offering can be // applied to. This parameter is reserved and cannot be specified in a request - InstanceCount int32 + InstanceCount *int32 // The ID of the Convertible Reserved Instance offering. OfferingId *string @@ -9758,7 +9964,7 @@ type TargetConfigurationRequest struct { // The number of instances the Covertible Reserved Instance offering can be applied // to. This parameter is reserved and cannot be specified in a request - InstanceCount int32 + InstanceCount *int32 } // Describes a load balancer target group. @@ -9861,13 +10067,13 @@ type TrafficMirrorFilterRule struct { DestinationPortRange *TrafficMirrorPortRange // The protocol assigned to the Traffic Mirror rule. - Protocol int32 + Protocol *int32 // The action assigned to the Traffic Mirror rule. RuleAction TrafficMirrorRuleAction // The rule number of the Traffic Mirror rule. - RuleNumber int32 + RuleNumber *int32 // The source CIDR block assigned to the Traffic Mirror rule. SourceCidrBlock *string @@ -9890,11 +10096,11 @@ type TrafficMirrorPortRange struct { // The start of the Traffic Mirror port range. This applies to the TCP and UDP // protocols. - FromPort int32 + FromPort *int32 // The end of the Traffic Mirror port range. This applies to the TCP and UDP // protocols. - ToPort int32 + ToPort *int32 } // Information about the Traffic Mirror filter rule port range. @@ -9902,11 +10108,11 @@ type TrafficMirrorPortRangeRequest struct { // The first port in the Traffic Mirror port range. This applies to the TCP and UDP // protocols. - FromPort int32 + FromPort *int32 // The last port in the Traffic Mirror port range. This applies to the TCP and UDP // protocols. - ToPort int32 + ToPort *int32 } // Describes a Traffic Mirror session. @@ -9926,12 +10132,12 @@ type TrafficMirrorSession struct { // For example, if you set this value to 100, then the first 100 bytes that meet // the filter criteria are copied to the target. Do not specify this parameter when // you want to mirror the entire packet - PacketLength int32 + PacketLength *int32 // The session number determines the order in which sessions are evaluated when an // interface is used by multiple sessions. The first session with a matching filter // is the one that mirrors the packets. Valid values are 1-32766. - SessionNumber int32 + SessionNumber *int32 // The tags assigned to the Traffic Mirror session. Tags []Tag @@ -9946,7 +10152,7 @@ type TrafficMirrorSession struct { TrafficMirrorTargetId *string // The virtual network ID associated with the Traffic Mirror session. - VirtualNetworkId int32 + VirtualNetworkId *int32 } // Describes a Traffic Mirror target. @@ -10076,13 +10282,13 @@ type TransitGatewayAttachmentBgpConfiguration struct { PeerAddress *string // The peer Autonomous System Number (ASN). - PeerAsn int64 + PeerAsn *int64 // The interior BGP peer IP address for the transit gateway. TransitGatewayAddress *string // The transit gateway Autonomous System Number (ASN). - TransitGatewayAsn int64 + TransitGatewayAsn *int64 } // Describes a propagation route table. @@ -10172,7 +10378,7 @@ type TransitGatewayConnectPeerConfiguration struct { type TransitGatewayConnectRequestBgpOptions struct { // The peer Autonomous System Number (ASN). - PeerAsn int64 + PeerAsn *int64 } // Describes the deregistered transit gateway multicast group members. @@ -10294,10 +10500,10 @@ type TransitGatewayMulticastGroup struct { GroupIpAddress *string // Indicates that the resource is a transit gateway multicast group member. - GroupMember bool + GroupMember *bool // Indicates that the resource is a transit gateway multicast group member. - GroupSource bool + GroupSource *bool // The member type (for example, static). MemberType MembershipType @@ -10358,7 +10564,7 @@ type TransitGatewayOptions struct { // A private Autonomous System Number (ASN) for the Amazon side of a BGP session. // The range is 64512 to 65534 for 16-bit ASNs and 4200000000 to 4294967294 for // 32-bit ASNs. - AmazonSideAsn int64 + AmazonSideAsn *int64 // The ID of the default association route table. AssociationDefaultRouteTableId *string @@ -10433,7 +10639,7 @@ type TransitGatewayPrefixListAttachment struct { type TransitGatewayPrefixListReference struct { // Indicates whether traffic that matches this route is dropped. - Blackhole bool + Blackhole *bool // The ID of the prefix list. PrefixListId *string @@ -10476,7 +10682,7 @@ type TransitGatewayRequestOptions struct { // A private Autonomous System Number (ASN) for the Amazon side of a BGP session. // The range is 64512 to 65534 for 16-bit ASNs and 4200000000 to 4294967294 for // 32-bit ASNs. The default is 64512. - AmazonSideAsn int64 + AmazonSideAsn *int64 // Enable or disable automatic acceptance of attachment requests. Disabled by // default. @@ -10544,11 +10750,11 @@ type TransitGatewayRouteTable struct { // Indicates whether this is the default association route table for the transit // gateway. - DefaultAssociationRouteTable bool + DefaultAssociationRouteTable *bool // Indicates whether this is the default propagation route table for the transit // gateway. - DefaultPropagationRouteTable bool + DefaultPropagationRouteTable *bool // The state of the transit gateway route table. State TransitGatewayRouteTableState @@ -10641,6 +10847,32 @@ type TransitGatewayVpcAttachmentOptions struct { Ipv6Support Ipv6SupportValue } +// Information about an association between a branch network interface with a trunk +// network interface. +type TrunkInterfaceAssociation struct { + + // The ID of the association. + AssociationId *string + + // The ID of the branch network interface. + BranchInterfaceId *string + + // The application key when you use the GRE protocol. + GreKey *int32 + + // The interface protocol. Valid values are VLAN and GRE. + InterfaceProtocol InterfaceProtocolType + + // The tags. + Tags []Tag + + // The ID of the trunk network interface. + TrunkInterfaceId *string + + // The ID of the VLAN when you use the VLAN protocol. + VlanId *int32 +} + // The VPN tunnel options. type TunnelOption struct { @@ -10648,7 +10880,7 @@ type TunnelOption struct { DpdTimeoutAction *string // The number of seconds after which a DPD timeout occurs. - DpdTimeoutSeconds int32 + DpdTimeoutSeconds *int32 // The IKE versions that are permitted for the VPN tunnel. IkeVersions []IKEVersionsListValue @@ -10669,7 +10901,7 @@ type TunnelOption struct { Phase1IntegrityAlgorithms []Phase1IntegrityAlgorithmsListValue // The lifetime for phase 1 of the IKE negotiation, in seconds. - Phase1LifetimeSeconds int32 + Phase1LifetimeSeconds *int32 // The permitted Diffie-Hellman group numbers for the VPN tunnel for phase 2 IKE // negotiations. @@ -10684,7 +10916,7 @@ type TunnelOption struct { Phase2IntegrityAlgorithms []Phase2IntegrityAlgorithmsListValue // The lifetime for phase 2 of the IKE negotiation, in seconds. - Phase2LifetimeSeconds int32 + Phase2LifetimeSeconds *int32 // The pre-shared key (PSK) to establish initial authentication between the virtual // private gateway and the customer gateway. @@ -10692,14 +10924,14 @@ type TunnelOption struct { // The percentage of the rekey window determined by RekeyMarginTimeSeconds during // which the rekey time is randomly selected. - RekeyFuzzPercentage int32 + RekeyFuzzPercentage *int32 // The margin time, in seconds, before the phase 2 lifetime expires, during which // the AWS side of the VPN connection performs an IKE rekey. - RekeyMarginTimeSeconds int32 + RekeyMarginTimeSeconds *int32 // The number of packets in an IKE replay window. - ReplayWindowSize int32 + ReplayWindowSize *int32 // The action to take when the establishing the VPN tunnels for a VPN connection. StartupAction *string @@ -10868,7 +11100,7 @@ type VCpuInfo struct { type VgwTelemetry struct { // The number of accepted routes. - AcceptedRouteCount int32 + AcceptedRouteCount *int32 // The Amazon Resource Name (ARN) of the VPN tunnel endpoint certificate. CertificateArn *string @@ -10900,16 +11132,16 @@ type Volume struct { CreateTime *time.Time // Indicates whether the volume is encrypted. - Encrypted bool + Encrypted *bool // Indicates whether the volume was created using fast snapshot restore. - FastRestored bool + FastRestored *bool // The number of I/O operations per second (IOPS). For gp3, io1, and io2 volumes, // this represents the number of IOPS that are provisioned for the volume. For gp2 // volumes, this represents the baseline performance of the volume and the rate at // which the volume accumulates I/O credits for bursting. - Iops int32 + Iops *int32 // The Amazon Resource Name (ARN) of the AWS Key Management Service (AWS KMS) // customer master key (CMK) that was used to protect the volume encryption key for @@ -10917,13 +11149,13 @@ type Volume struct { KmsKeyId *string // Indicates whether Amazon EBS Multi-Attach is enabled. - MultiAttachEnabled bool + MultiAttachEnabled *bool // The Amazon Resource Name (ARN) of the Outpost. OutpostArn *string // The size of the volume, in GiBs. - Size int32 + Size *int32 // The snapshot from which the volume was created, if applicable. SnapshotId *string @@ -10935,7 +11167,7 @@ type Volume struct { Tags []Tag // The throughput that the volume supports, in MiB/s. - Throughput int32 + Throughput *int32 // The ID of the volume. VolumeId *string @@ -10951,7 +11183,7 @@ type VolumeAttachment struct { AttachTime *time.Time // Indicates whether the EBS volume is deleted on instance termination. - DeleteOnTermination bool + DeleteOnTermination *bool // The device name. Device *string @@ -10972,7 +11204,7 @@ type VolumeDetail struct { // The size of the volume, in GiB. // // This member is required. - Size int64 + Size *int64 } // Describes the modification status of an EBS volume. If the volume has never been @@ -10987,22 +11219,22 @@ type VolumeModification struct { ModificationState VolumeModificationState // The original IOPS rate of the volume. - OriginalIops int32 + OriginalIops *int32 // The original setting for Amazon EBS Multi-Attach. - OriginalMultiAttachEnabled bool + OriginalMultiAttachEnabled *bool // The original size of the volume, in GiB. - OriginalSize int32 + OriginalSize *int32 // The original throughput of the volume, in MiB/s. - OriginalThroughput int32 + OriginalThroughput *int32 // The original EBS volume type of the volume. OriginalVolumeType VolumeType // The modification progress, from 0 to 100 percent complete. - Progress int64 + Progress *int64 // The modification start time. StartTime *time.Time @@ -11011,16 +11243,16 @@ type VolumeModification struct { StatusMessage *string // The target IOPS rate of the volume. - TargetIops int32 + TargetIops *int32 // The target setting for Amazon EBS Multi-Attach. - TargetMultiAttachEnabled bool + TargetMultiAttachEnabled *bool // The target size of the volume, in GiB. - TargetSize int32 + TargetSize *int32 // The target throughput of the volume, in MiB/s. - TargetThroughput int32 + TargetThroughput *int32 // The target EBS volume type of the volume. TargetVolumeType VolumeType @@ -11141,7 +11373,7 @@ type Vpc struct { Ipv6CidrBlockAssociationSet []VpcIpv6CidrBlockAssociation // Indicates whether the VPC is the default VPC. - IsDefault bool + IsDefault *bool // The ID of the AWS account that owns the VPC. OwnerId *string @@ -11193,7 +11425,7 @@ type VpcCidrBlockState struct { type VpcClassicLink struct { // Indicates whether the VPC is enabled for ClassicLink. - ClassicLinkEnabled bool + ClassicLinkEnabled *bool // Any tags assigned to the VPC. Tags []Tag @@ -11229,10 +11461,10 @@ type VpcEndpoint struct { // (Interface endpoint) Indicates whether the VPC is associated with a private // hosted zone. - PrivateDnsEnabled bool + PrivateDnsEnabled *bool // Indicates whether the VPC endpoint is being managed by its service. - RequesterManaged bool + RequesterManaged *bool // (Gateway endpoint) One or more route tables associated with the endpoint. RouteTableIds []string @@ -11337,15 +11569,15 @@ type VpcPeeringConnectionOptionsDescription struct { // Indicates whether a local VPC can resolve public DNS hostnames to private IP // addresses when queried from instances in a peer VPC. - AllowDnsResolutionFromRemoteVpc bool + AllowDnsResolutionFromRemoteVpc *bool // Indicates whether a local ClassicLink connection can communicate with the peer // VPC over the VPC peering connection. - AllowEgressFromLocalClassicLinkToRemoteVpc bool + AllowEgressFromLocalClassicLinkToRemoteVpc *bool // Indicates whether a local VPC can communicate with a ClassicLink connection in // the peer VPC over the VPC peering connection. - AllowEgressFromLocalVpcToRemoteClassicLink bool + AllowEgressFromLocalVpcToRemoteClassicLink *bool } // Describes the status of a VPC peering connection. @@ -11432,7 +11664,7 @@ type VpnConnection struct { type VpnConnectionOptions struct { // Indicates whether acceleration is enabled for the VPN connection. - EnableAcceleration bool + EnableAcceleration *bool // The IPv4 CIDR on the customer gateway (on-premises) side of the VPN connection. LocalIpv4NetworkCidr *string @@ -11448,7 +11680,7 @@ type VpnConnectionOptions struct { // Indicates whether the VPN connection uses static routes only. Static routes must // be used for devices that don't support BGP. - StaticRoutesOnly bool + StaticRoutesOnly *bool // Indicates whether the VPN tunnels process IPv4 or IPv6 traffic. TunnelInsideIpVersion TunnelInsideIpVersion @@ -11461,7 +11693,7 @@ type VpnConnectionOptions struct { type VpnConnectionOptionsSpecification struct { // Indicate whether to enable acceleration for the VPN connection. Default: false - EnableAcceleration bool + EnableAcceleration *bool // The IPv4 CIDR on the customer gateway (on-premises) side of the VPN connection. // Default: 0.0.0.0/0 @@ -11480,7 +11712,7 @@ type VpnConnectionOptionsSpecification struct { // Indicate whether the VPN connection uses static routes only. If you are creating // a VPN connection for a device that does not support BGP, you must specify true. // Use CreateVpnConnectionRoute to create a static route. Default: false - StaticRoutesOnly bool + StaticRoutesOnly *bool // Indicate whether the VPN tunnels process IPv4 or IPv6 traffic. Default: ipv4 TunnelInsideIpVersion TunnelInsideIpVersion @@ -11493,7 +11725,7 @@ type VpnConnectionOptionsSpecification struct { type VpnGateway struct { // The private Autonomous System Number (ASN) for the Amazon side of a BGP session. - AmazonSideAsn int64 + AmazonSideAsn *int64 // The Availability Zone where the virtual private gateway was created, if // applicable. This field may be empty or not returned. @@ -11538,7 +11770,7 @@ type VpnTunnelOptionsSpecification struct { // The number of seconds after which a DPD timeout occurs. Constraints: A value // between 0 and 30. Default: 30 - DPDTimeoutSeconds int32 + DPDTimeoutSeconds *int32 // The IKE versions that are permitted for the VPN tunnel. Valid values: ikev1 | // ikev2 @@ -11560,7 +11792,7 @@ type VpnTunnelOptionsSpecification struct { // The lifetime for phase 1 of the IKE negotiation, in seconds. Constraints: A // value between 900 and 28,800. Default: 28800 - Phase1LifetimeSeconds int32 + Phase1LifetimeSeconds *int32 // One or more Diffie-Hellman group numbers that are permitted for the VPN tunnel // for phase 2 IKE negotiations. Valid values: 2 | 5 | 14 | 15 | 16 | 17 | 18 | 19 @@ -11579,7 +11811,7 @@ type VpnTunnelOptionsSpecification struct { // The lifetime for phase 2 of the IKE negotiation, in seconds. Constraints: A // value between 900 and 3,600. The value must be less than the value for // Phase1LifetimeSeconds. Default: 3600 - Phase2LifetimeSeconds int32 + Phase2LifetimeSeconds *int32 // The pre-shared key (PSK) to establish initial authentication between the virtual // private gateway and customer gateway. Constraints: Allowed characters are @@ -11590,17 +11822,17 @@ type VpnTunnelOptionsSpecification struct { // The percentage of the rekey window (determined by RekeyMarginTimeSeconds) during // which the rekey time is randomly selected. Constraints: A value between 0 and // 100. Default: 100 - RekeyFuzzPercentage int32 + RekeyFuzzPercentage *int32 // The margin time, in seconds, before the phase 2 lifetime expires, during which // the AWS side of the VPN connection performs an IKE rekey. The exact time of the // rekey is randomly selected based on the value for RekeyFuzzPercentage. // Constraints: A value between 60 and half of Phase2LifetimeSeconds. Default: 540 - RekeyMarginTimeSeconds int32 + RekeyMarginTimeSeconds *int32 // The number of packets in an IKE replay window. Constraints: A value between 64 // and 2048. Default: 1024 - ReplayWindowSize int32 + ReplayWindowSize *int32 // The action to take when the establishing the tunnel for the VPN connection. By // default, your customer gateway device must initiate the IKE negotiation and 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 16e2e3f1f..ead8aea43 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 @@ -310,6 +310,26 @@ func (m *validateOpAssociateTransitGatewayRouteTable) HandleInitialize(ctx conte return next.HandleInitialize(ctx, in) } +type validateOpAssociateTrunkInterface struct { +} + +func (*validateOpAssociateTrunkInterface) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpAssociateTrunkInterface) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*AssociateTrunkInterfaceInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpAssociateTrunkInterfaceInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + type validateOpAssociateVpcCidrBlock struct { } @@ -1210,6 +1230,26 @@ func (m *validateOpCreateNetworkInterfacePermission) HandleInitialize(ctx contex return next.HandleInitialize(ctx, in) } +type validateOpCreateReplaceRootVolumeTask struct { +} + +func (*validateOpCreateReplaceRootVolumeTask) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpCreateReplaceRootVolumeTask) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*CreateReplaceRootVolumeTaskInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpCreateReplaceRootVolumeTaskInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + type validateOpCreateReservedInstancesListing struct { } @@ -1230,6 +1270,26 @@ func (m *validateOpCreateReservedInstancesListing) HandleInitialize(ctx context. return next.HandleInitialize(ctx, in) } +type validateOpCreateRestoreImageTask struct { +} + +func (*validateOpCreateRestoreImageTask) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpCreateRestoreImageTask) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*CreateRestoreImageTaskInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpCreateRestoreImageTaskInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + type validateOpCreateRoute struct { } @@ -1350,6 +1410,26 @@ func (m *validateOpCreateSpotDatafeedSubscription) HandleInitialize(ctx context. return next.HandleInitialize(ctx, in) } +type validateOpCreateStoreImageTask struct { +} + +func (*validateOpCreateStoreImageTask) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpCreateStoreImageTask) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*CreateStoreImageTaskInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpCreateStoreImageTaskInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + type validateOpCreateSubnet struct { } @@ -3310,6 +3390,26 @@ func (m *validateOpDisableFastSnapshotRestores) HandleInitialize(ctx context.Con return next.HandleInitialize(ctx, in) } +type validateOpDisableImageDeprecation struct { +} + +func (*validateOpDisableImageDeprecation) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpDisableImageDeprecation) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*DisableImageDeprecationInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpDisableImageDeprecationInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + type validateOpDisableTransitGatewayRouteTablePropagation struct { } @@ -3470,6 +3570,26 @@ func (m *validateOpDisassociateTransitGatewayRouteTable) HandleInitialize(ctx co return next.HandleInitialize(ctx, in) } +type validateOpDisassociateTrunkInterface struct { +} + +func (*validateOpDisassociateTrunkInterface) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpDisassociateTrunkInterface) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*DisassociateTrunkInterfaceInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpDisassociateTrunkInterfaceInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + type validateOpDisassociateVpcCidrBlock struct { } @@ -3510,6 +3630,26 @@ func (m *validateOpEnableFastSnapshotRestores) HandleInitialize(ctx context.Cont return next.HandleInitialize(ctx, in) } +type validateOpEnableImageDeprecation struct { +} + +func (*validateOpEnableImageDeprecation) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpEnableImageDeprecation) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*EnableImageDeprecationInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpEnableImageDeprecationInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + type validateOpEnableTransitGatewayRouteTablePropagation struct { } @@ -3790,6 +3930,26 @@ func (m *validateOpGetDefaultCreditSpecification) HandleInitialize(ctx context.C return next.HandleInitialize(ctx, in) } +type validateOpGetFlowLogsIntegrationTemplate struct { +} + +func (*validateOpGetFlowLogsIntegrationTemplate) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpGetFlowLogsIntegrationTemplate) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*GetFlowLogsIntegrationTemplateInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpGetFlowLogsIntegrationTemplateInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + type validateOpGetGroupsForCapacityReservation struct { } @@ -5990,6 +6150,10 @@ func addOpAssociateTransitGatewayRouteTableValidationMiddleware(stack *middlewar return stack.Initialize.Add(&validateOpAssociateTransitGatewayRouteTable{}, middleware.After) } +func addOpAssociateTrunkInterfaceValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpAssociateTrunkInterface{}, middleware.After) +} + func addOpAssociateVpcCidrBlockValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpAssociateVpcCidrBlock{}, middleware.After) } @@ -6170,10 +6334,18 @@ func addOpCreateNetworkInterfacePermissionValidationMiddleware(stack *middleware return stack.Initialize.Add(&validateOpCreateNetworkInterfacePermission{}, middleware.After) } +func addOpCreateReplaceRootVolumeTaskValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpCreateReplaceRootVolumeTask{}, middleware.After) +} + func addOpCreateReservedInstancesListingValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpCreateReservedInstancesListing{}, middleware.After) } +func addOpCreateRestoreImageTaskValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpCreateRestoreImageTask{}, middleware.After) +} + func addOpCreateRouteValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpCreateRoute{}, middleware.After) } @@ -6198,6 +6370,10 @@ func addOpCreateSpotDatafeedSubscriptionValidationMiddleware(stack *middleware.S return stack.Initialize.Add(&validateOpCreateSpotDatafeedSubscription{}, middleware.After) } +func addOpCreateStoreImageTaskValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpCreateStoreImageTask{}, middleware.After) +} + func addOpCreateSubnetValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpCreateSubnet{}, middleware.After) } @@ -6590,6 +6766,10 @@ func addOpDisableFastSnapshotRestoresValidationMiddleware(stack *middleware.Stac return stack.Initialize.Add(&validateOpDisableFastSnapshotRestores{}, middleware.After) } +func addOpDisableImageDeprecationValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpDisableImageDeprecation{}, middleware.After) +} + func addOpDisableTransitGatewayRouteTablePropagationValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpDisableTransitGatewayRouteTablePropagation{}, middleware.After) } @@ -6622,6 +6802,10 @@ func addOpDisassociateTransitGatewayRouteTableValidationMiddleware(stack *middle return stack.Initialize.Add(&validateOpDisassociateTransitGatewayRouteTable{}, middleware.After) } +func addOpDisassociateTrunkInterfaceValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpDisassociateTrunkInterface{}, middleware.After) +} + func addOpDisassociateVpcCidrBlockValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpDisassociateVpcCidrBlock{}, middleware.After) } @@ -6630,6 +6814,10 @@ func addOpEnableFastSnapshotRestoresValidationMiddleware(stack *middleware.Stack return stack.Initialize.Add(&validateOpEnableFastSnapshotRestores{}, middleware.After) } +func addOpEnableImageDeprecationValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpEnableImageDeprecation{}, middleware.After) +} + func addOpEnableTransitGatewayRouteTablePropagationValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpEnableTransitGatewayRouteTablePropagation{}, middleware.After) } @@ -6686,6 +6874,10 @@ func addOpGetDefaultCreditSpecificationValidationMiddleware(stack *middleware.St return stack.Initialize.Add(&validateOpGetDefaultCreditSpecification{}, middleware.After) } +func addOpGetFlowLogsIntegrationTemplateValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpGetFlowLogsIntegrationTemplate{}, middleware.After) +} + func addOpGetGroupsForCapacityReservationValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpGetGroupsForCapacityReservation{}, middleware.After) } @@ -7146,6 +7338,41 @@ func validateAddPrefixListEntry(v *types.AddPrefixListEntry) error { } } +func validateAthenaIntegration(v *types.AthenaIntegration) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "AthenaIntegration"} + if v.IntegrationResultS3DestinationArn == nil { + invalidParams.Add(smithy.NewErrParamRequired("IntegrationResultS3DestinationArn")) + } + if len(v.PartitionLoadFrequency) == 0 { + invalidParams.Add(smithy.NewErrParamRequired("PartitionLoadFrequency")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateAthenaIntegrationsSet(v []types.AthenaIntegration) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "AthenaIntegrationsSet"} + for i := range v { + if err := validateAthenaIntegration(&v[i]); err != nil { + invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateCidrAuthorizationContext(v *types.CidrAuthorizationContext) error { if v == nil { return nil @@ -7221,6 +7448,9 @@ func validateDiskImageDetail(v *types.DiskImageDetail) error { return nil } invalidParams := smithy.InvalidParamsError{Context: "DiskImageDetail"} + if v.Bytes == nil { + invalidParams.Add(smithy.NewErrParamRequired("Bytes")) + } if len(v.Format) == 0 { invalidParams.Add(smithy.NewErrParamRequired("Format")) } @@ -7347,6 +7577,23 @@ func validateExportTaskS3LocationRequest(v *types.ExportTaskS3LocationRequest) e } } +func validateIntegrateServices(v *types.IntegrateServices) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "IntegrateServices"} + if v.AthenaIntegrations != nil { + if err := validateAthenaIntegrationsSet(v.AthenaIntegrations); err != nil { + invalidParams.AddNested("AthenaIntegrations", err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateLaunchTemplateElasticInferenceAccelerator(v *types.LaunchTemplateElasticInferenceAccelerator) error { if v == nil { return nil @@ -7384,6 +7631,9 @@ func validatePurchaseRequest(v *types.PurchaseRequest) error { return nil } invalidParams := smithy.InvalidParamsError{Context: "PurchaseRequest"} + if v.InstanceCount == nil { + invalidParams.Add(smithy.NewErrParamRequired("InstanceCount")) + } if v.PurchaseToken == nil { invalidParams.Add(smithy.NewErrParamRequired("PurchaseToken")) } @@ -7492,6 +7742,9 @@ func validateRunInstancesMonitoringEnabled(v *types.RunInstancesMonitoringEnable return nil } invalidParams := smithy.InvalidParamsError{Context: "RunInstancesMonitoringEnabled"} + if v.Enabled == nil { + invalidParams.Add(smithy.NewErrParamRequired("Enabled")) + } if invalidParams.Len() > 0 { return invalidParams } else { @@ -7540,6 +7793,9 @@ func validateSpotFleetRequestConfigData(v *types.SpotFleetRequestConfigData) err if v.IamFleetRole == nil { invalidParams.Add(smithy.NewErrParamRequired("IamFleetRole")) } + if v.TargetCapacity == nil { + invalidParams.Add(smithy.NewErrParamRequired("TargetCapacity")) + } if invalidParams.Len() > 0 { return invalidParams } else { @@ -7552,6 +7808,9 @@ func validateTargetCapacitySpecificationRequest(v *types.TargetCapacitySpecifica return nil } invalidParams := smithy.InvalidParamsError{Context: "TargetCapacitySpecificationRequest"} + if v.TotalTargetCapacity == nil { + invalidParams.Add(smithy.NewErrParamRequired("TotalTargetCapacity")) + } if invalidParams.Len() > 0 { return invalidParams } else { @@ -7596,6 +7855,9 @@ func validateVolumeDetail(v *types.VolumeDetail) error { return nil } invalidParams := smithy.InvalidParamsError{Context: "VolumeDetail"} + if v.Size == nil { + invalidParams.Add(smithy.NewErrParamRequired("Size")) + } if invalidParams.Len() > 0 { return invalidParams } else { @@ -7694,6 +7956,9 @@ func validateOpAllocateHostsInput(v *AllocateHostsInput) error { if v.AvailabilityZone == nil { invalidParams.Add(smithy.NewErrParamRequired("AvailabilityZone")) } + if v.Quantity == nil { + invalidParams.Add(smithy.NewErrParamRequired("Quantity")) + } if invalidParams.Len() > 0 { return invalidParams } else { @@ -7857,6 +8122,24 @@ func validateOpAssociateTransitGatewayRouteTableInput(v *AssociateTransitGateway } } +func validateOpAssociateTrunkInterfaceInput(v *AssociateTrunkInterfaceInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "AssociateTrunkInterfaceInput"} + if v.BranchInterfaceId == nil { + invalidParams.Add(smithy.NewErrParamRequired("BranchInterfaceId")) + } + if v.TrunkInterfaceId == nil { + invalidParams.Add(smithy.NewErrParamRequired("TrunkInterfaceId")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpAssociateVpcCidrBlockInput(v *AssociateVpcCidrBlockInput) error { if v == nil { return nil @@ -7916,6 +8199,9 @@ func validateOpAttachNetworkInterfaceInput(v *AttachNetworkInterfaceInput) error return nil } invalidParams := smithy.InvalidParamsError{Context: "AttachNetworkInterfaceInput"} + if v.DeviceIndex == nil { + invalidParams.Add(smithy.NewErrParamRequired("DeviceIndex")) + } if v.InstanceId == nil { invalidParams.Add(smithy.NewErrParamRequired("InstanceId")) } @@ -8102,6 +8388,9 @@ func validateOpCancelSpotFleetRequestsInput(v *CancelSpotFleetRequestsInput) err if v.SpotFleetRequestIds == nil { invalidParams.Add(smithy.NewErrParamRequired("SpotFleetRequestIds")) } + if v.TerminateInstances == nil { + invalidParams.Add(smithy.NewErrParamRequired("TerminateInstances")) + } if invalidParams.Len() > 0 { return invalidParams } else { @@ -8210,6 +8499,9 @@ func validateOpCreateCapacityReservationInput(v *CreateCapacityReservationInput) if len(v.InstancePlatform) == 0 { invalidParams.Add(smithy.NewErrParamRequired("InstancePlatform")) } + if v.InstanceCount == nil { + invalidParams.Add(smithy.NewErrParamRequired("InstanceCount")) + } if invalidParams.Len() > 0 { return invalidParams } else { @@ -8282,6 +8574,9 @@ func validateOpCreateCustomerGatewayInput(v *CreateCustomerGatewayInput) error { return nil } invalidParams := smithy.InvalidParamsError{Context: "CreateCustomerGatewayInput"} + if v.BgpAsn == nil { + invalidParams.Add(smithy.NewErrParamRequired("BgpAsn")) + } if len(v.Type) == 0 { invalidParams.Add(smithy.NewErrParamRequired("Type")) } @@ -8542,6 +8837,9 @@ func validateOpCreateManagedPrefixListInput(v *CreateManagedPrefixListInput) err invalidParams.AddNested("Entries", err.(smithy.InvalidParamsError)) } } + if v.MaxEntries == nil { + invalidParams.Add(smithy.NewErrParamRequired("MaxEntries")) + } if v.AddressFamily == nil { invalidParams.Add(smithy.NewErrParamRequired("AddressFamily")) } @@ -8557,9 +8855,6 @@ func validateOpCreateNatGatewayInput(v *CreateNatGatewayInput) error { return nil } invalidParams := smithy.InvalidParamsError{Context: "CreateNatGatewayInput"} - if v.AllocationId == nil { - invalidParams.Add(smithy.NewErrParamRequired("AllocationId")) - } if v.SubnetId == nil { invalidParams.Add(smithy.NewErrParamRequired("SubnetId")) } @@ -8575,6 +8870,9 @@ func validateOpCreateNetworkAclEntryInput(v *CreateNetworkAclEntryInput) error { return nil } invalidParams := smithy.InvalidParamsError{Context: "CreateNetworkAclEntryInput"} + if v.Egress == nil { + invalidParams.Add(smithy.NewErrParamRequired("Egress")) + } if v.NetworkAclId == nil { invalidParams.Add(smithy.NewErrParamRequired("NetworkAclId")) } @@ -8584,6 +8882,9 @@ func validateOpCreateNetworkAclEntryInput(v *CreateNetworkAclEntryInput) error { if len(v.RuleAction) == 0 { invalidParams.Add(smithy.NewErrParamRequired("RuleAction")) } + if v.RuleNumber == nil { + invalidParams.Add(smithy.NewErrParamRequired("RuleNumber")) + } if invalidParams.Len() > 0 { return invalidParams } else { @@ -8663,6 +8964,21 @@ func validateOpCreateNetworkInterfacePermissionInput(v *CreateNetworkInterfacePe } } +func validateOpCreateReplaceRootVolumeTaskInput(v *CreateReplaceRootVolumeTaskInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "CreateReplaceRootVolumeTaskInput"} + if v.InstanceId == nil { + invalidParams.Add(smithy.NewErrParamRequired("InstanceId")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpCreateReservedInstancesListingInput(v *CreateReservedInstancesListingInput) error { if v == nil { return nil @@ -8671,6 +8987,9 @@ func validateOpCreateReservedInstancesListingInput(v *CreateReservedInstancesLis if v.ClientToken == nil { invalidParams.Add(smithy.NewErrParamRequired("ClientToken")) } + if v.InstanceCount == nil { + invalidParams.Add(smithy.NewErrParamRequired("InstanceCount")) + } if v.PriceSchedules == nil { invalidParams.Add(smithy.NewErrParamRequired("PriceSchedules")) } @@ -8684,6 +9003,24 @@ func validateOpCreateReservedInstancesListingInput(v *CreateReservedInstancesLis } } +func validateOpCreateRestoreImageTaskInput(v *CreateRestoreImageTaskInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "CreateRestoreImageTaskInput"} + if v.Bucket == nil { + invalidParams.Add(smithy.NewErrParamRequired("Bucket")) + } + if v.ObjectKey == nil { + invalidParams.Add(smithy.NewErrParamRequired("ObjectKey")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpCreateRouteInput(v *CreateRouteInput) error { if v == nil { return nil @@ -8777,6 +9114,24 @@ func validateOpCreateSpotDatafeedSubscriptionInput(v *CreateSpotDatafeedSubscrip } } +func validateOpCreateStoreImageTaskInput(v *CreateStoreImageTaskInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "CreateStoreImageTaskInput"} + if v.ImageId == nil { + invalidParams.Add(smithy.NewErrParamRequired("ImageId")) + } + if v.Bucket == nil { + invalidParams.Add(smithy.NewErrParamRequired("Bucket")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpCreateSubnetInput(v *CreateSubnetInput) error { if v == nil { return nil @@ -8824,6 +9179,9 @@ func validateOpCreateTrafficMirrorFilterRuleInput(v *CreateTrafficMirrorFilterRu if len(v.TrafficDirection) == 0 { invalidParams.Add(smithy.NewErrParamRequired("TrafficDirection")) } + if v.RuleNumber == nil { + invalidParams.Add(smithy.NewErrParamRequired("RuleNumber")) + } if len(v.RuleAction) == 0 { invalidParams.Add(smithy.NewErrParamRequired("RuleAction")) } @@ -8854,6 +9212,9 @@ func validateOpCreateTrafficMirrorSessionInput(v *CreateTrafficMirrorSessionInpu if v.TrafficMirrorFilterId == nil { invalidParams.Add(smithy.NewErrParamRequired("TrafficMirrorFilterId")) } + if v.SessionNumber == nil { + invalidParams.Add(smithy.NewErrParamRequired("SessionNumber")) + } if invalidParams.Len() > 0 { return invalidParams } else { @@ -9233,6 +9594,9 @@ func validateOpDeleteFleetsInput(v *DeleteFleetsInput) error { if v.FleetIds == nil { invalidParams.Add(smithy.NewErrParamRequired("FleetIds")) } + if v.TerminateInstances == nil { + invalidParams.Add(smithy.NewErrParamRequired("TerminateInstances")) + } if invalidParams.Len() > 0 { return invalidParams } else { @@ -9368,9 +9732,15 @@ func validateOpDeleteNetworkAclEntryInput(v *DeleteNetworkAclEntryInput) error { return nil } invalidParams := smithy.InvalidParamsError{Context: "DeleteNetworkAclEntryInput"} + if v.Egress == nil { + invalidParams.Add(smithy.NewErrParamRequired("Egress")) + } if v.NetworkAclId == nil { invalidParams.Add(smithy.NewErrParamRequired("NetworkAclId")) } + if v.RuleNumber == nil { + invalidParams.Add(smithy.NewErrParamRequired("RuleNumber")) + } if invalidParams.Len() > 0 { return invalidParams } else { @@ -9932,6 +10302,9 @@ func validateOpDescribeByoipCidrsInput(v *DescribeByoipCidrsInput) error { return nil } invalidParams := smithy.InvalidParamsError{Context: "DescribeByoipCidrsInput"} + if v.MaxResults == nil { + invalidParams.Add(smithy.NewErrParamRequired("MaxResults")) + } if invalidParams.Len() > 0 { return invalidParams } else { @@ -10372,6 +10745,21 @@ func validateOpDisableFastSnapshotRestoresInput(v *DisableFastSnapshotRestoresIn } } +func validateOpDisableImageDeprecationInput(v *DisableImageDeprecationInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "DisableImageDeprecationInput"} + if v.ImageId == nil { + invalidParams.Add(smithy.NewErrParamRequired("ImageId")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpDisableTransitGatewayRouteTablePropagationInput(v *DisableTransitGatewayRouteTablePropagationInput) error { if v == nil { return nil @@ -10504,6 +10892,21 @@ func validateOpDisassociateTransitGatewayRouteTableInput(v *DisassociateTransitG } } +func validateOpDisassociateTrunkInterfaceInput(v *DisassociateTrunkInterfaceInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "DisassociateTrunkInterfaceInput"} + if v.AssociationId == nil { + invalidParams.Add(smithy.NewErrParamRequired("AssociationId")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpDisassociateVpcCidrBlockInput(v *DisassociateVpcCidrBlockInput) error { if v == nil { return nil @@ -10537,6 +10940,24 @@ func validateOpEnableFastSnapshotRestoresInput(v *EnableFastSnapshotRestoresInpu } } +func validateOpEnableImageDeprecationInput(v *EnableImageDeprecationInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "EnableImageDeprecationInput"} + if v.ImageId == nil { + invalidParams.Add(smithy.NewErrParamRequired("ImageId")) + } + if v.DeprecateAt == nil { + invalidParams.Add(smithy.NewErrParamRequired("DeprecateAt")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpEnableTransitGatewayRouteTablePropagationInput(v *EnableTransitGatewayRouteTablePropagationInput) error { if v == nil { return nil @@ -10766,6 +11187,31 @@ func validateOpGetDefaultCreditSpecificationInput(v *GetDefaultCreditSpecificati } } +func validateOpGetFlowLogsIntegrationTemplateInput(v *GetFlowLogsIntegrationTemplateInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "GetFlowLogsIntegrationTemplateInput"} + if v.FlowLogId == nil { + invalidParams.Add(smithy.NewErrParamRequired("FlowLogId")) + } + if v.ConfigDeliveryS3DestinationArn == nil { + invalidParams.Add(smithy.NewErrParamRequired("ConfigDeliveryS3DestinationArn")) + } + if v.IntegrateServices == nil { + invalidParams.Add(smithy.NewErrParamRequired("IntegrateServices")) + } else if v.IntegrateServices != nil { + if err := validateIntegrateServices(v.IntegrateServices); err != nil { + invalidParams.AddNested("IntegrateServices", err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpGetGroupsForCapacityReservationInput(v *GetGroupsForCapacityReservationInput) error { if v == nil { return nil @@ -11181,6 +11627,9 @@ func validateOpModifyIdentityIdFormatInput(v *ModifyIdentityIdFormatInput) error if v.Resource == nil { invalidParams.Add(smithy.NewErrParamRequired("Resource")) } + if v.UseLongIds == nil { + invalidParams.Add(smithy.NewErrParamRequired("UseLongIds")) + } if invalidParams.Len() > 0 { return invalidParams } else { @@ -11196,6 +11645,9 @@ func validateOpModifyIdFormatInput(v *ModifyIdFormatInput) error { if v.Resource == nil { invalidParams.Add(smithy.NewErrParamRequired("Resource")) } + if v.UseLongIds == nil { + invalidParams.Add(smithy.NewErrParamRequired("UseLongIds")) + } if invalidParams.Len() > 0 { return invalidParams } else { @@ -11793,6 +12245,9 @@ func validateOpPurchaseReservedInstancesOfferingInput(v *PurchaseReservedInstanc return nil } invalidParams := smithy.InvalidParamsError{Context: "PurchaseReservedInstancesOfferingInput"} + if v.InstanceCount == nil { + invalidParams.Add(smithy.NewErrParamRequired("InstanceCount")) + } if v.ReservedInstancesOfferingId == nil { invalidParams.Add(smithy.NewErrParamRequired("ReservedInstancesOfferingId")) } @@ -11971,6 +12426,9 @@ func validateOpReplaceNetworkAclEntryInput(v *ReplaceNetworkAclEntryInput) error return nil } invalidParams := smithy.InvalidParamsError{Context: "ReplaceNetworkAclEntryInput"} + if v.Egress == nil { + invalidParams.Add(smithy.NewErrParamRequired("Egress")) + } if v.NetworkAclId == nil { invalidParams.Add(smithy.NewErrParamRequired("NetworkAclId")) } @@ -11980,6 +12438,9 @@ func validateOpReplaceNetworkAclEntryInput(v *ReplaceNetworkAclEntryInput) error if len(v.RuleAction) == 0 { invalidParams.Add(smithy.NewErrParamRequired("RuleAction")) } + if v.RuleNumber == nil { + invalidParams.Add(smithy.NewErrParamRequired("RuleNumber")) + } if invalidParams.Len() > 0 { return invalidParams } else { @@ -12220,6 +12681,12 @@ func validateOpRestoreManagedPrefixListVersionInput(v *RestoreManagedPrefixListV if v.PrefixListId == nil { invalidParams.Add(smithy.NewErrParamRequired("PrefixListId")) } + if v.PreviousVersion == nil { + invalidParams.Add(smithy.NewErrParamRequired("PreviousVersion")) + } + if v.CurrentVersion == nil { + invalidParams.Add(smithy.NewErrParamRequired("CurrentVersion")) + } if invalidParams.Len() > 0 { return invalidParams } else { @@ -12265,6 +12732,12 @@ func validateOpRunInstancesInput(v *RunInstancesInput) error { return nil } invalidParams := smithy.InvalidParamsError{Context: "RunInstancesInput"} + if v.MaxCount == nil { + invalidParams.Add(smithy.NewErrParamRequired("MaxCount")) + } + if v.MinCount == nil { + invalidParams.Add(smithy.NewErrParamRequired("MinCount")) + } if v.Monitoring != nil { if err := validateRunInstancesMonitoringEnabled(v.Monitoring); err != nil { invalidParams.AddNested("Monitoring", err.(smithy.InvalidParamsError)) @@ -12463,12 +12936,12 @@ func validateOpUnassignIpv6AddressesInput(v *UnassignIpv6AddressesInput) error { return nil } invalidParams := smithy.InvalidParamsError{Context: "UnassignIpv6AddressesInput"} - if v.Ipv6Addresses == nil { - invalidParams.Add(smithy.NewErrParamRequired("Ipv6Addresses")) - } if v.NetworkInterfaceId == nil { invalidParams.Add(smithy.NewErrParamRequired("NetworkInterfaceId")) } + if v.Ipv6Addresses == nil { + invalidParams.Add(smithy.NewErrParamRequired("Ipv6Addresses")) + } if invalidParams.Len() > 0 { return invalidParams } else { diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/internal/presigned-url/CHANGELOG.md b/vendor/github.com/aws/aws-sdk-go-v2/service/internal/presigned-url/CHANGELOG.md new file mode 100644 index 000000000..e147f262d --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/internal/presigned-url/CHANGELOG.md @@ -0,0 +1,14 @@ +# v1.2.0 (2021-06-25) + +* **Feature**: Updated `github.com/aws/smithy-go` to latest version +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.1.1 (2021-05-20) + +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.1.0 (2021-05-14) + +* **Feature**: Constant has been added to modules to enable runtime version inspection for reporting. +* **Dependency Update**: Updated to the latest SDK module versions + diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/internal/presigned-url/go.mod b/vendor/github.com/aws/aws-sdk-go-v2/service/internal/presigned-url/go.mod index a6d79ec72..9cee0c42d 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/internal/presigned-url/go.mod +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/internal/presigned-url/go.mod @@ -3,8 +3,8 @@ module github.com/aws/aws-sdk-go-v2/service/internal/presigned-url go 1.15 require ( - github.com/aws/aws-sdk-go-v2 v1.0.0 - github.com/aws/smithy-go v1.0.0 + github.com/aws/aws-sdk-go-v2 v1.7.0 + github.com/aws/smithy-go v1.5.0 github.com/google/go-cmp v0.5.4 ) diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/internal/presigned-url/go.sum b/vendor/github.com/aws/aws-sdk-go-v2/service/internal/presigned-url/go.sum index b66e1d584..60dfc8fa1 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/internal/presigned-url/go.sum +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/internal/presigned-url/go.sum @@ -1,8 +1,6 @@ -github.com/aws/smithy-go v1.0.0 h1:hkhcRKG9rJ4Fn+RbfXY7Tz7b3ITLDyolBnLLBhwbg/c= -github.com/aws/smithy-go v1.0.0/go.mod h1:EzMw8dbp/YJL4A5/sbhGddag+NPT7q084agLbB9LgIw= +github.com/aws/smithy-go v1.5.0 h1:2grDq7LxZlo8BZUDeqRfQnQWLZpInmh2TLPPkJku3YM= +github.com/aws/smithy-go v1.5.0/go.mod h1:SObp3lf9smib00L/v3U2eAKG8FyQ7iLrJnQiAmR5n+E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= -github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= -github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.4 h1:L8R9j+yAqZuZjsqh/z+F1NCffTKKLShY6zXTItVIZ8M= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/jmespath/go-jmespath v0.4.0/go.mod h1:T8mJZnbsbmF+m6zOOFylbeCJqk5+pHWvzYPziyZiYoo= diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/internal/presigned-url/go_module_metadata.go b/vendor/github.com/aws/aws-sdk-go-v2/service/internal/presigned-url/go_module_metadata.go new file mode 100644 index 000000000..dee98edc8 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/internal/presigned-url/go_module_metadata.go @@ -0,0 +1,6 @@ +// Code generated by internal/repotools/cmd/updatemodulemeta DO NOT EDIT. + +package presignedurl + +// goModuleVersion is the tagged release for this module +const goModuleVersion = "1.2.0" diff --git a/vendor/github.com/aws/smithy-go/.travis.yml b/vendor/github.com/aws/smithy-go/.travis.yml index 6e75f301d..f8d1035cc 100644 --- a/vendor/github.com/aws/smithy-go/.travis.yml +++ b/vendor/github.com/aws/smithy-go/.travis.yml @@ -1,33 +1,28 @@ -language: java +language: go sudo: true dist: bionic -install: - - eval "$(curl -sL https://raw.githubusercontent.com/travis-ci/gimme/master/gimme | GIMME_GO_VERSION=1.15.x bash)" - - echo `go env` - - echo `which go` +branches: + only: + - main -script: cd codegen && ./gradlew clean build -Plog-tests +os: + - linux + - osx + # Travis doesn't work with windows and Go tip + #- windows -matrix: - include: - - language: java - go: 1.15.x - jdk: openjdk8 +go: + - tip - - language: java - go: 1.15.x - jdk: openjdk11 +matrix: + allow_failures: + - go: tip - - language: go - go: 1.15.x - script: go test -v ./... +before_install: + - if [ "$TRAVIS_OS_NAME" = "windows" ]; then choco install make; fi + - (cd /tmp/; go get golang.org/x/lint/golint) - allow_failures: - - language: go - go: tip - script: go test -v ./... +script: + - make go test -v ./...; -branches: - only: - - main diff --git a/vendor/github.com/aws/smithy-go/CHANGELOG.md b/vendor/github.com/aws/smithy-go/CHANGELOG.md new file mode 100644 index 000000000..3b51867f2 --- /dev/null +++ b/vendor/github.com/aws/smithy-go/CHANGELOG.md @@ -0,0 +1,50 @@ +# Release v1.5.0 (2021-06-25) + +### Smithy Go module +* `time`: Update time parsing to not be as strict for HTTPDate and DateTime ([#307](https://github.com/aws/smithy-go/pull/307)) + * Fixes [#302](https://github.com/aws/smithy-go/issues/302) by changing time to UTC before formatting so no local offset time is lost. + +### Codegen +* Adds support for integrating client members via plugins ([#301](https://github.com/aws/smithy-go/pull/301)) +* Fix serialization of enum types marked with payload trait ([#296](https://github.com/aws/smithy-go/pull/296)) +* Update generation of API client modules to include a manifest of files generated ([#283](https://github.com/aws/smithy-go/pull/283)) +* Update Group Java group ID for smithy-go generator ([#298](https://github.com/aws/smithy-go/pull/298)) +* Support the delegation of determining the errors that can occur for an operation ([#304](https://github.com/aws/smithy-go/pull/304)) +* Support for marking and documenting deprecated client config fields. ([#303](https://github.com/aws/smithy-go/pull/303)) + +# Release v1.4.0 (2021-05-06) + +### Smithy Go module +* `encoding/xml`: Fix escaping of Next Line and Line Start in XML Encoder ([#267](https://github.com/aws/smithy-go/pull/267)) + +### Codegen +* Add support for Smithy 1.7 ([#289](https://github.com/aws/smithy-go/pull/289)) +* Add support for httpQueryParams location +* Add support for model renaming conflict resolution with service closure + +# Release v1.3.1 (2021-04-08) + +### Smithy Go module +* `transport/http`: Loosen endpoint hostname validation to allow specifying port numbers. ([#279](https://github.com/aws/smithy-go/pull/279)) +* `io`: Fix RingBuffer panics due to out of bounds index. ([#282](https://github.com/aws/smithy-go/pull/282)) + +# Release v1.3.0 (2021-04-01) + +### Smithy Go module +* `transport/http`: Add utility to safely join string to url path, and url raw query. + +### Codegen +* Update HttpBindingProtocolGenerator to use http/transport JoinPath and JoinQuery utility. + +# Release v1.2.0 (2021-03-12) + +### Smithy Go module +* Fix support for parsing shortened year format in HTTP Date header. +* Fix GitHub APIDiff action workflow to get gorelease tool correctly. +* Fix codegen artifact unit test for Go 1.16 + +### Codegen +* Fix generating paginator nil parameter handling before usage. +* Fix Serialize unboxed members decorated as required. +* Add ability to define resolvers at both client construction and operation invocation. +* Support for extending paginators with custom runtime trait diff --git a/vendor/github.com/aws/smithy-go/README.md b/vendor/github.com/aws/smithy-go/README.md index 80c458dbd..789b37889 100644 --- a/vendor/github.com/aws/smithy-go/README.md +++ b/vendor/github.com/aws/smithy-go/README.md @@ -1,5 +1,7 @@ ## Smithy Go +[![Go Build Status](https://github.com/aws/smithy-go/actions/workflows/go.yml/badge.svg?branch=main)](https://github.com/aws/smithy-go/actions/workflows/go.yml)[![Codegen Build Status](https://github.com/aws/smithy-go/actions/workflows/codegen.yml/badge.svg?branch=main)](https://github.com/aws/smithy-go/actions/workflows/codegen.yml) + Smithy code generators for Go. **WARNING: All interfaces are subject to change.** diff --git a/vendor/github.com/aws/smithy-go/encoding/httpbinding/encode.go b/vendor/github.com/aws/smithy-go/encoding/httpbinding/encode.go index 70dc2e891..2314a6e73 100644 --- a/vendor/github.com/aws/smithy-go/encoding/httpbinding/encode.go +++ b/vendor/github.com/aws/smithy-go/encoding/httpbinding/encode.go @@ -83,7 +83,7 @@ func (e *Encoder) Headers(prefix string) Headers { } } -// HasHeader returns if a header with the key specified exists with one more +// HasHeader returns if a header with the key specified exists with one or // more value. func (e Encoder) HasHeader(key string) bool { return len(e.header[key]) != 0 @@ -103,3 +103,9 @@ func (e *Encoder) SetQuery(key string) QueryValue { func (e *Encoder) AddQuery(key string) QueryValue { return NewQueryValue(e.query, key, true) } + +// HasQuery returns if a query with the key specified exists with one or +// more value. +func(e *Encoder) HasQuery(key string) bool { + return len(e.query.Get(key)) != 0 +} diff --git a/vendor/github.com/aws/smithy-go/encoding/xml/escape.go b/vendor/github.com/aws/smithy-go/encoding/xml/escape.go index be223e09a..1c5479af6 100644 --- a/vendor/github.com/aws/smithy-go/encoding/xml/escape.go +++ b/vendor/github.com/aws/smithy-go/encoding/xml/escape.go @@ -21,6 +21,10 @@ var ( escNL = []byte(" ") escCR = []byte(" ") escFFFD = []byte("\uFFFD") // Unicode replacement character + + // Additional Escapes + escNextLine = []byte("…") + escLS = []byte("
") ) // Decide whether the given rune is in the XML Character Range, per @@ -61,6 +65,12 @@ func escapeString(e writer, s string) { esc = escNL case '\r': esc = escCR + case '\u0085': + // Not escaped by stdlib + esc = escNextLine + case '\u2028': + // Not escaped by stdlib + esc = escLS default: if !isInCharacterRange(r) || (r == 0xFFFD && width == 1) { esc = escFFFD @@ -101,11 +111,17 @@ func escapeText(e writer, s []byte) { case '\t': esc = escTab case '\n': - // TODO: This always escapes newline, which is different than stdlib's optional - // escape of new line + // This always escapes newline, which is different than stdlib's optional + // escape of new line. esc = escNL case '\r': esc = escCR + case '\u0085': + // Not escaped by stdlib + esc = escNextLine + case '\u2028': + // Not escaped by stdlib + esc = escLS default: if !isInCharacterRange(r) || (r == 0xFFFD && width == 1) { esc = escFFFD diff --git a/vendor/github.com/aws/smithy-go/go.mod b/vendor/github.com/aws/smithy-go/go.mod index e3ec6d442..02a91c4a8 100644 --- a/vendor/github.com/aws/smithy-go/go.mod +++ b/vendor/github.com/aws/smithy-go/go.mod @@ -1,5 +1,5 @@ module github.com/aws/smithy-go -go 1.14 +go 1.15 -require github.com/google/go-cmp v0.4.1 +require github.com/google/go-cmp v0.5.4 diff --git a/vendor/github.com/aws/smithy-go/go.sum b/vendor/github.com/aws/smithy-go/go.sum index 210ab773f..1ffcbdbe2 100644 --- a/vendor/github.com/aws/smithy-go/go.sum +++ b/vendor/github.com/aws/smithy-go/go.sum @@ -1,4 +1,4 @@ -github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0= -github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/go-cmp v0.5.4 h1:L8R9j+yAqZuZjsqh/z+F1NCffTKKLShY6zXTItVIZ8M= +github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543 h1:E7g+9GITq07hpfrRu66IVDexMakfv52eLZ2CXBWiKr4= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= diff --git a/vendor/github.com/aws/smithy-go/io/ringbuffer.go b/vendor/github.com/aws/smithy-go/io/ringbuffer.go index 7537eb242..1ca11019a 100644 --- a/vendor/github.com/aws/smithy-go/io/ringbuffer.go +++ b/vendor/github.com/aws/smithy-go/io/ringbuffer.go @@ -45,7 +45,7 @@ func (r *RingBuffer) Write(p []byte) (int, error) { r.end++ r.size++ } - return r.size, nil + return len(p), nil } // Read copies the data on the ring buffer into the byte slice provided to the method. @@ -60,20 +60,25 @@ func (r *RingBuffer) Read(p []byte) (int, error) { return readCount, io.EOF } + if r.start == len(r.slice) { + r.start = 0 + } + p[j] = r.slice[r.start] readCount++ // increment the start pointer for ring buffer r.start++ // decrement the size of ring buffer r.size-- - - if r.start == len(r.slice) { - r.start = 0 - } } return readCount, nil } +// Len returns the number of unread bytes in the buffer. +func (r *RingBuffer) Len() int { + return r.size +} + // Bytes returns a copy of the RingBuffer's bytes. func (r RingBuffer) Bytes() []byte { var b bytes.Buffer diff --git a/vendor/github.com/aws/smithy-go/local-mod-replace.sh b/vendor/github.com/aws/smithy-go/local-mod-replace.sh new file mode 100644 index 000000000..800bf3769 --- /dev/null +++ b/vendor/github.com/aws/smithy-go/local-mod-replace.sh @@ -0,0 +1,39 @@ +#1/usr/bin/env bash + +PROJECT_DIR="" +SMITHY_SOURCE_DIR=$(cd `dirname $0` && pwd) + +usage() { + echo "Usage: $0 [-s SMITHY_SOURCE_DIR] [-d PROJECT_DIR]" 1>&2 + exit 1 +} + +while getopts "hs:d:" options; do + case "${options}" in + s) + SMITHY_SOURCE_DIR=${OPTARG} + if [ "$SMITHY_SOURCE_DIR" == "" ]; then + echo "path to smithy-go source directory is required" || exit + usage + fi + ;; + d) + PROJECT_DIR=${OPTARG} + ;; + h) + usage + ;; + *) + usage + ;; + esac +done + +if [ "$PROJECT_DIR" != "" ]; then + cd $PROJECT_DIR || exit +fi + +go mod graph | awk '{print $1}' | cut -d '@' -f 1 | sort | uniq | grep "github.com/aws/smithy-go" | while read x; do + repPath=${x/github.com\/aws\/smithy-go/${SMITHY_SOURCE_DIR}} + echo -replace $x=$repPath +done | xargs go mod edit diff --git a/vendor/github.com/aws/smithy-go/logging/logger.go b/vendor/github.com/aws/smithy-go/logging/logger.go index 18c7fb977..70b387621 100644 --- a/vendor/github.com/aws/smithy-go/logging/logger.go +++ b/vendor/github.com/aws/smithy-go/logging/logger.go @@ -21,6 +21,14 @@ type Logger interface { Logf(classification Classification, format string, v ...interface{}) } +// LoggerFunc is a wrapper around a function to satisfy the Logger interface. +type LoggerFunc func(classification Classification, format string, v ...interface{}) + +// Logf delegates the logging request to the wrapped function. +func (f LoggerFunc) Logf(classification Classification, format string, v ...interface{}) { + f(classification, format, v...) +} + // ContextLogger is an optional interface a Logger implementation may expose that provides // the ability to create context aware log entries. type ContextLogger interface { diff --git a/vendor/github.com/aws/smithy-go/time/time.go b/vendor/github.com/aws/smithy-go/time/time.go index 35a387031..ad4087cf0 100644 --- a/vendor/github.com/aws/smithy-go/time/time.go +++ b/vendor/github.com/aws/smithy-go/time/time.go @@ -2,46 +2,63 @@ package time import ( "context" + "fmt" "math/big" + "strings" "time" ) const ( - // dateTimeFormat is a IMF-fixdate formatted time https://tools.ietf.org/html/rfc7231.html#section-7.1.1.1 - dateTimeFormat = "2006-01-02T15:04:05.99Z" + // dateTimeFormat is a IMF-fixdate formatted RFC3339 section 5.6 + dateTimeFormatInput = "2006-01-02T15:04:05.999999999Z" + dateTimeFormatOutput = "2006-01-02T15:04:05.999Z" - // httpDateFormat is a date time defined by RFC3339 section 5.6 with no UTC offset. + // httpDateFormat is a date time defined by RFC 7231#section-7.1.1.1 + // IMF-fixdate with no UTC offset. httpDateFormat = "Mon, 02 Jan 2006 15:04:05 GMT" + // Additional formats needed for compatibility. + httpDateFormatSingleDigitDay = "Mon, _2 Jan 2006 15:04:05 GMT" + httpDateFormatSingleDigitDayTwoDigitYear = "Mon, _2 Jan 06 15:04:05 GMT" ) var millisecondFloat = big.NewFloat(1e3) -// FormatDateTime format value as a date-time (RFC3339 section 5.6) +// FormatDateTime format value as a date-time, (RFC3339 section 5.6) // // Example: 1985-04-12T23:20:50.52Z func FormatDateTime(value time.Time) string { - return value.Format(dateTimeFormat) + return value.UTC().Format(dateTimeFormatOutput) } -// ParseDateTime parse a string as a date-time +// ParseDateTime parse a string as a date-time, (RFC3339 section 5.6) // // Example: 1985-04-12T23:20:50.52Z func ParseDateTime(value string) (time.Time, error) { - return time.Parse(dateTimeFormat, value) + return tryParse(value, + dateTimeFormatInput, + time.RFC3339Nano, + time.RFC3339, + ) } -// FormatHTTPDate format value as a http-date (RFC 7231#section-7.1.1.1 IMF-fixdate) +// FormatHTTPDate format value as a http-date, (RFC 7231#section-7.1.1.1 IMF-fixdate) // // Example: Tue, 29 Apr 2014 18:30:38 GMT func FormatHTTPDate(value time.Time) string { - return value.Format(httpDateFormat) + return value.UTC().Format(httpDateFormat) } -// ParseHTTPDate parse a string as a http-date +// ParseHTTPDate parse a string as a http-date, (RFC 7231#section-7.1.1.1 IMF-fixdate) // // Example: Tue, 29 Apr 2014 18:30:38 GMT func ParseHTTPDate(value string) (time.Time, error) { - return time.Parse(httpDateFormat, value) + return tryParse(value, + httpDateFormat, + httpDateFormatSingleDigitDay, + httpDateFormatSingleDigitDayTwoDigitYear, + time.RFC850, + time.ANSIC, + ) } // FormatEpochSeconds returns value as a Unix time in seconds with with decimal precision @@ -49,7 +66,7 @@ func ParseHTTPDate(value string) (time.Time, error) { // Example: 1515531081.123 func FormatEpochSeconds(value time.Time) float64 { ms := value.UnixNano() / int64(time.Millisecond) - return float64(ms)/1e3 + return float64(ms) / 1e3 } // ParseEpochSeconds returns value as a Unix time in seconds with with decimal precision @@ -59,9 +76,44 @@ func ParseEpochSeconds(value float64) time.Time { f := big.NewFloat(value) f = f.Mul(f, millisecondFloat) i, _ := f.Int64() + // Offset to `UTC` because time.Unix returns the time value based on system + // local setting. return time.Unix(0, i*1e6).UTC() } +func tryParse(v string, formats ...string) (time.Time, error) { + var errs parseErrors + for _, f := range formats { + t, err := time.Parse(f, v) + if err != nil { + errs = append(errs, parseError{ + Format: f, + Err: err, + }) + continue + } + return t, nil + } + + return time.Time{}, fmt.Errorf("unable to parse time string, %w", errs) +} + +type parseErrors []parseError + +func (es parseErrors) Error() string { + var s strings.Builder + for _, e := range es { + fmt.Fprintf(&s, "\n * %q: %v", e.Format, e.Err) + } + + return "parse errors:" + s.String() +} + +type parseError struct { + Format string + Err error +} + // SleepWithContext will wait for the timer duration to expire, or the context // is canceled. Which ever happens first. If the context is canceled the // Context's error will be returned. diff --git a/vendor/github.com/aws/smithy-go/transport/http/host.go b/vendor/github.com/aws/smithy-go/transport/http/host.go index b8c95d538..cbfbed507 100644 --- a/vendor/github.com/aws/smithy-go/transport/http/host.go +++ b/vendor/github.com/aws/smithy-go/transport/http/host.go @@ -2,6 +2,8 @@ package http import ( "fmt" + "net" + "strconv" "strings" ) @@ -9,8 +11,25 @@ import ( // 3986 host. Returns error if the host is not valid. func ValidateEndpointHost(host string) error { var errors strings.Builder - labels := strings.Split(host, ".") + var hostname string + var port string + var err error + if strings.Contains(host, ":") { + hostname, port, err = net.SplitHostPort(host) + if err != nil { + errors.WriteString(fmt.Sprintf("\n endpoint %v, failed to parse, got ", host)) + errors.WriteString(err.Error()) + } + + if !ValidPortNumber(port) { + errors.WriteString(fmt.Sprintf("port number should be in range [0-65535], got %v", port)) + } + } else { + hostname = host + } + + labels := strings.Split(hostname, ".") for i, label := range labels { if i == len(labels)-1 && len(label) == 0 { // Allow trailing dot for FQDN hosts. @@ -23,8 +42,12 @@ func ValidateEndpointHost(host string) error { } } - if len(host) > 255 { - errors.WriteString(fmt.Sprintf("\nendpoint host must be less than 255 characters, but was %d", len(host))) + if len(hostname) == 0 && len(port) != 0 { + errors.WriteString("\nendpoint host with port must not be empty") + } + + if len(hostname) > 255 { + errors.WriteString(fmt.Sprintf("\nendpoint host must be less than 255 characters, but was %d", len(hostname))) } if len(errors.String()) > 0 { @@ -33,6 +56,19 @@ func ValidateEndpointHost(host string) error { return nil } +// ValidPortNumber return if the port is valid RFC 3986 port +func ValidPortNumber(port string) bool { + i, err := strconv.Atoi(port) + if err != nil { + return false + } + + if i < 0 || i > 65535 { + return false + } + return true +} + // ValidHostLabel returns if the label is a valid RFC 3986 host label. func ValidHostLabel(label string) bool { if l := len(label); l == 0 || l > 63 { diff --git a/vendor/github.com/aws/smithy-go/transport/http/time.go b/vendor/github.com/aws/smithy-go/transport/http/time.go new file mode 100644 index 000000000..607b196a8 --- /dev/null +++ b/vendor/github.com/aws/smithy-go/transport/http/time.go @@ -0,0 +1,13 @@ +package http + +import ( + "time" + + smithytime "github.com/aws/smithy-go/time" +) + +// ParseTime parses a time string like the HTTP Date header. This uses a more +// relaxed rule set for date parsing compared to the standard library. +func ParseTime(text string) (t time.Time, err error) { + return smithytime.ParseHTTPDate(text) +} diff --git a/vendor/github.com/aws/smithy-go/transport/http/url.go b/vendor/github.com/aws/smithy-go/transport/http/url.go new file mode 100644 index 000000000..60a5fc100 --- /dev/null +++ b/vendor/github.com/aws/smithy-go/transport/http/url.go @@ -0,0 +1,44 @@ +package http + +import "strings" + +// JoinPath returns an absolute URL path composed of the two paths provided. +// Enforces that the returned path begins with '/'. If added path is empty the +// returned path suffix will match the first parameter suffix. +func JoinPath(a, b string) string { + if len(a) == 0 { + a = "/" + } else if a[0] != '/' { + a = "/" + a + } + + if len(b) != 0 && b[0] == '/' { + b = b[1:] + } + + if len(b) != 0 && len(a) > 1 && a[len(a)-1] != '/' { + a = a + "/" + } + + return a + b +} + +// JoinRawQuery returns an absolute raw query expression. Any duplicate '&' +// will be collapsed to single separator between values. +func JoinRawQuery(a, b string) string { + a = strings.TrimFunc(a, isAmpersand) + b = strings.TrimFunc(b, isAmpersand) + + if len(a) == 0 { + return b + } + if len(b) == 0 { + return a + } + + return a + "&" + b +} + +func isAmpersand(v rune) bool { + return v == '&' +} diff --git a/vendor/modules.txt b/vendor/modules.txt index 54df48b49..ebad2ce98 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -160,8 +160,9 @@ github.com/aws/aws-sdk-go/service/ssm github.com/aws/aws-sdk-go/service/ssm/ssmiface github.com/aws/aws-sdk-go/service/sts github.com/aws/aws-sdk-go/service/sts/stsiface -# github.com/aws/aws-sdk-go-v2 v1.0.0 +# github.com/aws/aws-sdk-go-v2 v1.7.0 ## explicit +github.com/aws/aws-sdk-go-v2 github.com/aws/aws-sdk-go-v2/aws github.com/aws/aws-sdk-go-v2/aws/arn github.com/aws/aws-sdk-go-v2/aws/middleware @@ -175,7 +176,6 @@ github.com/aws/aws-sdk-go-v2/aws/signer/internal/v4 github.com/aws/aws-sdk-go-v2/aws/signer/v4 github.com/aws/aws-sdk-go-v2/aws/transport/http github.com/aws/aws-sdk-go-v2/internal/endpoints -github.com/aws/aws-sdk-go-v2/internal/ini github.com/aws/aws-sdk-go-v2/internal/rand github.com/aws/aws-sdk-go-v2/internal/sdk github.com/aws/aws-sdk-go-v2/internal/sdkio @@ -194,6 +194,9 @@ github.com/aws/aws-sdk-go-v2/credentials/processcreds github.com/aws/aws-sdk-go-v2/credentials/stscreds # github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.0.0 github.com/aws/aws-sdk-go-v2/feature/ec2/imds +# github.com/aws/aws-sdk-go-v2/internal/ini v1.1.0 +## explicit +github.com/aws/aws-sdk-go-v2/internal/ini # github.com/aws/aws-sdk-go-v2/service/autoscaling v1.0.0 ## explicit github.com/aws/aws-sdk-go-v2/service/autoscaling @@ -209,7 +212,7 @@ github.com/aws/aws-sdk-go-v2/service/cloudformation/types github.com/aws/aws-sdk-go-v2/service/cloudwatch github.com/aws/aws-sdk-go-v2/service/cloudwatch/internal/endpoints github.com/aws/aws-sdk-go-v2/service/cloudwatch/types -# github.com/aws/aws-sdk-go-v2/service/ec2 v1.0.0 +# github.com/aws/aws-sdk-go-v2/service/ec2 v1.11.0 ## explicit github.com/aws/aws-sdk-go-v2/service/ec2 github.com/aws/aws-sdk-go-v2/service/ec2/internal/endpoints @@ -236,7 +239,7 @@ github.com/aws/aws-sdk-go-v2/service/iam/internal/endpoints github.com/aws/aws-sdk-go-v2/service/iam/types # github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.0.0 github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding -# github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.0.0 +# github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.2.0 github.com/aws/aws-sdk-go-v2/service/internal/presigned-url # github.com/aws/aws-sdk-go-v2/service/internal/s3shared v1.0.0 github.com/aws/aws-sdk-go-v2/service/internal/s3shared @@ -264,7 +267,7 @@ github.com/aws/aws-sdk-go-v2/service/ssm/types github.com/aws/aws-sdk-go-v2/service/sts github.com/aws/aws-sdk-go-v2/service/sts/internal/endpoints github.com/aws/aws-sdk-go-v2/service/sts/types -# github.com/aws/smithy-go v1.0.0 +# github.com/aws/smithy-go v1.5.0 ## explicit github.com/aws/smithy-go github.com/aws/smithy-go/encoding