diff --git a/codegen/smithy-aws-go-codegen/src/main/java/software/amazon/smithy/aws/go/codegen/Ec2QueryShapeSerVisitor.java b/codegen/smithy-aws-go-codegen/src/main/java/software/amazon/smithy/aws/go/codegen/Ec2QueryShapeSerVisitor.java index cd89ad034a6..3b85fd2ca5d 100644 --- a/codegen/smithy-aws-go-codegen/src/main/java/software/amazon/smithy/aws/go/codegen/Ec2QueryShapeSerVisitor.java +++ b/codegen/smithy-aws-go-codegen/src/main/java/software/amazon/smithy/aws/go/codegen/Ec2QueryShapeSerVisitor.java @@ -3,8 +3,12 @@ import java.util.Optional; import java.util.function.Predicate; import software.amazon.smithy.aws.traits.protocols.Ec2QueryNameTrait; +import software.amazon.smithy.go.codegen.GoWriter; import software.amazon.smithy.go.codegen.integration.ProtocolGenerator.GenerationContext; +import software.amazon.smithy.go.codegen.knowledge.GoPointableIndex; +import software.amazon.smithy.model.shapes.CollectionShape; import software.amazon.smithy.model.shapes.MemberShape; +import software.amazon.smithy.model.shapes.Shape; import software.amazon.smithy.model.shapes.ShapeType; import software.amazon.smithy.model.traits.TimestampFormatTrait.Format; import software.amazon.smithy.model.traits.XmlNameTrait; @@ -51,6 +55,14 @@ protected String getSerializedLocationName(MemberShape memberShape, String defau .orElse(defaultValue)); } + // EC2Query specifically does not serialize non-nil, empty lists + protected void serializeCollection(GenerationContext context, CollectionShape shape) { + context.getWriter().get() + .write("if len(v) == 0 { return nil }"); + + super.serializeCollection(context, shape); + } + @Override protected boolean isFlattened(GenerationContext context, MemberShape memberShape) { // All lists, sets, and maps are flattened in aws.ec2. diff --git a/internal/protocoltest/ec2query/serializers.go b/internal/protocoltest/ec2query/serializers.go index ff21c863bd0..ee83979a38f 100644 --- a/internal/protocoltest/ec2query/serializers.go +++ b/internal/protocoltest/ec2query/serializers.go @@ -1545,6 +1545,9 @@ func (m *awsEc2query_serializeOpXmlTimestamps) HandleSerialize(ctx context.Conte return next.HandleSerialize(ctx, in) } func awsEc2query_serializeDocumentListWithXmlName(v []string, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("Item") for i := range v { @@ -1593,6 +1596,9 @@ func awsEc2query_serializeDocumentStructArg(v *types.StructArg, value query.Valu } func awsEc2query_serializeDocumentGreetingList(v []types.GreetingStruct, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("Member") for i := range v { @@ -1617,6 +1623,9 @@ func awsEc2query_serializeDocumentGreetingStruct(v *types.GreetingStruct, value } func awsEc2query_serializeDocumentStringList(v []string, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("Member") for i := range v { diff --git a/service/ec2/serializers.go b/service/ec2/serializers.go index 923775f027f..2af0133e602 100644 --- a/service/ec2/serializers.go +++ b/service/ec2/serializers.go @@ -39795,6 +39795,9 @@ func awsEc2query_serializeDocumentAcceleratorCountRequest(v *types.AcceleratorCo } func awsEc2query_serializeDocumentAcceleratorManufacturerSet(v []types.AcceleratorManufacturer, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("Item") for i := range v { @@ -39805,6 +39808,9 @@ func awsEc2query_serializeDocumentAcceleratorManufacturerSet(v []types.Accelerat } func awsEc2query_serializeDocumentAcceleratorNameSet(v []types.AcceleratorName, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("Item") for i := range v { @@ -39849,6 +39855,9 @@ func awsEc2query_serializeDocumentAcceleratorTotalMemoryMiBRequest(v *types.Acce } func awsEc2query_serializeDocumentAcceleratorTypeSet(v []types.AcceleratorType, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("Item") for i := range v { @@ -39859,6 +39868,9 @@ func awsEc2query_serializeDocumentAcceleratorTypeSet(v []types.AcceleratorType, } func awsEc2query_serializeDocumentAccessScopePathListRequest(v []types.AccessScopePathRequest, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("Item") for i := range v { @@ -39899,6 +39911,9 @@ func awsEc2query_serializeDocumentAccessScopePathRequest(v *types.AccessScopePat } func awsEc2query_serializeDocumentAccountAttributeNameStringList(v []types.AccountAttributeName, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("AttributeName") for i := range v { @@ -39921,6 +39936,9 @@ func awsEc2query_serializeDocumentAddIpamOperatingRegion(v *types.AddIpamOperati } func awsEc2query_serializeDocumentAddIpamOperatingRegionSet(v []types.AddIpamOperatingRegion, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("Member") for i := range v { @@ -39933,6 +39951,9 @@ func awsEc2query_serializeDocumentAddIpamOperatingRegionSet(v []types.AddIpamOpe } func awsEc2query_serializeDocumentAddPrefixListEntries(v []types.AddPrefixListEntry, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("Member") for i := range v { @@ -39962,6 +39983,9 @@ func awsEc2query_serializeDocumentAddPrefixListEntry(v *types.AddPrefixListEntry } func awsEc2query_serializeDocumentAllocationIdList(v []string, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("AllocationId") for i := range v { @@ -39972,6 +39996,9 @@ func awsEc2query_serializeDocumentAllocationIdList(v []string, value query.Value } func awsEc2query_serializeDocumentAllocationIds(v []string, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("Item") for i := range v { @@ -39982,6 +40009,9 @@ func awsEc2query_serializeDocumentAllocationIds(v []string, value query.Value) e } func awsEc2query_serializeDocumentAllowedInstanceTypeSet(v []string, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("Item") for i := range v { @@ -39992,6 +40022,9 @@ func awsEc2query_serializeDocumentAllowedInstanceTypeSet(v []string, value query } func awsEc2query_serializeDocumentArchitectureTypeSet(v []types.ArchitectureType, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("Item") for i := range v { @@ -40002,6 +40035,9 @@ func awsEc2query_serializeDocumentArchitectureTypeSet(v []types.ArchitectureType } func awsEc2query_serializeDocumentArnList(v []string, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("Item") for i := range v { @@ -40029,6 +40065,9 @@ func awsEc2query_serializeDocumentAsnAuthorizationContext(v *types.AsnAuthorizat } func awsEc2query_serializeDocumentAssetIdList(v []string, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("Member") for i := range v { @@ -40039,6 +40078,9 @@ func awsEc2query_serializeDocumentAssetIdList(v []string, value query.Value) err } func awsEc2query_serializeDocumentAssociationIdList(v []string, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("AssociationId") for i := range v { @@ -40076,6 +40118,9 @@ func awsEc2query_serializeDocumentAthenaIntegration(v *types.AthenaIntegration, } func awsEc2query_serializeDocumentAthenaIntegrationsSet(v []types.AthenaIntegration, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("Item") for i := range v { @@ -40112,6 +40157,9 @@ func awsEc2query_serializeDocumentAttributeValue(v *types.AttributeValue, value } func awsEc2query_serializeDocumentAvailabilityZoneStringList(v []string, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("AvailabilityZone") for i := range v { @@ -40156,6 +40204,9 @@ func awsEc2query_serializeDocumentBaselineEbsBandwidthMbpsRequest(v *types.Basel } func awsEc2query_serializeDocumentBillingProductList(v []string, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("Item") for i := range v { @@ -40207,6 +40258,9 @@ func awsEc2query_serializeDocumentBlockDeviceMapping(v *types.BlockDeviceMapping } func awsEc2query_serializeDocumentBlockDeviceMappingList(v []types.BlockDeviceMapping, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("Item") for i := range v { @@ -40219,6 +40273,9 @@ func awsEc2query_serializeDocumentBlockDeviceMappingList(v []types.BlockDeviceMa } func awsEc2query_serializeDocumentBlockDeviceMappingRequestList(v []types.BlockDeviceMapping, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("BlockDeviceMapping") for i := range v { @@ -40231,6 +40288,9 @@ func awsEc2query_serializeDocumentBlockDeviceMappingRequestList(v []types.BlockD } func awsEc2query_serializeDocumentBundleIdStringList(v []string, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("BundleId") for i := range v { @@ -40241,6 +40301,9 @@ func awsEc2query_serializeDocumentBundleIdStringList(v []string, value query.Val } func awsEc2query_serializeDocumentCapacityReservationFleetIdSet(v []string, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("Item") for i := range v { @@ -40251,6 +40314,9 @@ func awsEc2query_serializeDocumentCapacityReservationFleetIdSet(v []string, valu } func awsEc2query_serializeDocumentCapacityReservationIdSet(v []string, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("Item") for i := range v { @@ -40309,6 +40375,9 @@ func awsEc2query_serializeDocumentCapacityReservationTarget(v *types.CapacityRes } func awsEc2query_serializeDocumentCarrierGatewayIdSet(v []string, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("Member") for i := range v { @@ -40360,6 +40429,9 @@ func awsEc2query_serializeDocumentClassicLoadBalancer(v *types.ClassicLoadBalanc } func awsEc2query_serializeDocumentClassicLoadBalancers(v []types.ClassicLoadBalancer, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("Item") for i := range v { @@ -40493,6 +40565,9 @@ func awsEc2query_serializeDocumentClientVpnAuthenticationRequest(v *types.Client } func awsEc2query_serializeDocumentClientVpnAuthenticationRequestList(v []types.ClientVpnAuthenticationRequest, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("Member") for i := range v { @@ -40505,6 +40580,9 @@ func awsEc2query_serializeDocumentClientVpnAuthenticationRequestList(v []types.C } func awsEc2query_serializeDocumentClientVpnEndpointIdList(v []string, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("Item") for i := range v { @@ -40515,6 +40593,9 @@ func awsEc2query_serializeDocumentClientVpnEndpointIdList(v []string, value quer } func awsEc2query_serializeDocumentClientVpnSecurityGroupIdSet(v []string, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("Item") for i := range v { @@ -40547,6 +40628,9 @@ func awsEc2query_serializeDocumentCloudWatchLogOptionsSpecification(v *types.Clo } func awsEc2query_serializeDocumentCoipPoolIdSet(v []string, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("Item") for i := range v { @@ -40579,6 +40663,9 @@ func awsEc2query_serializeDocumentConnectionLogOptions(v *types.ConnectionLogOpt } func awsEc2query_serializeDocumentConnectionNotificationIdsList(v []string, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("Item") for i := range v { @@ -40611,6 +40698,9 @@ func awsEc2query_serializeDocumentConnectionTrackingSpecificationRequest(v *type } func awsEc2query_serializeDocumentConversionIdStringList(v []string, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("Item") for i := range v { @@ -40621,6 +40711,9 @@ func awsEc2query_serializeDocumentConversionIdStringList(v []string, value query } func awsEc2query_serializeDocumentCpuManufacturerSet(v []types.CpuManufacturer, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("Item") for i := range v { @@ -40777,6 +40870,9 @@ func awsEc2query_serializeDocumentCreateVerifiedAccessEndpointLoadBalancerOption } func awsEc2query_serializeDocumentCreateVerifiedAccessEndpointSubnetIdList(v []string, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("Item") for i := range v { @@ -40863,6 +40959,9 @@ func awsEc2query_serializeDocumentCreateVolumePermission(v *types.CreateVolumePe } func awsEc2query_serializeDocumentCreateVolumePermissionList(v []types.CreateVolumePermission, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("Item") for i := range v { @@ -40908,6 +41007,9 @@ func awsEc2query_serializeDocumentCreditSpecificationRequest(v *types.CreditSpec } func awsEc2query_serializeDocumentCustomerGatewayIdStringList(v []string, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("CustomerGatewayId") for i := range v { @@ -40918,6 +41020,9 @@ func awsEc2query_serializeDocumentCustomerGatewayIdStringList(v []string, value } func awsEc2query_serializeDocumentDataQueries(v []types.DataQuery, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("Member") for i := range v { @@ -40967,6 +41072,9 @@ func awsEc2query_serializeDocumentDataQuery(v *types.DataQuery, value query.Valu } func awsEc2query_serializeDocumentDedicatedHostIdList(v []string, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("Item") for i := range v { @@ -40977,6 +41085,9 @@ func awsEc2query_serializeDocumentDedicatedHostIdList(v []string, value query.Va } func awsEc2query_serializeDocumentDeleteQueuedReservedInstancesIdList(v []string, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("Item") for i := range v { @@ -41006,6 +41117,9 @@ func awsEc2query_serializeDocumentDeregisterInstanceTagAttributeRequest(v *types } func awsEc2query_serializeDocumentDescribeInstanceTopologyGroupNameSet(v []string, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("Member") for i := range v { @@ -41016,6 +41130,9 @@ func awsEc2query_serializeDocumentDescribeInstanceTopologyGroupNameSet(v []strin } func awsEc2query_serializeDocumentDescribeInstanceTopologyInstanceIdSet(v []string, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("Member") for i := range v { @@ -41048,6 +41165,9 @@ func awsEc2query_serializeDocumentDestinationOptionsRequest(v *types.Destination } func awsEc2query_serializeDocumentDhcpOptionsIdStringList(v []string, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("DhcpOptionsId") for i := range v { @@ -41118,6 +41238,9 @@ func awsEc2query_serializeDocumentDiskImageDetail(v *types.DiskImageDetail, valu } func awsEc2query_serializeDocumentDiskImageList(v []types.DiskImage, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("Member") for i := range v { @@ -41235,6 +41358,9 @@ func awsEc2query_serializeDocumentEbsInstanceBlockDeviceSpecification(v *types.E } func awsEc2query_serializeDocumentEgressOnlyInternetGatewayIdList(v []string, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("Item") for i := range v { @@ -41245,6 +41371,9 @@ func awsEc2query_serializeDocumentEgressOnlyInternetGatewayIdList(v []string, va } func awsEc2query_serializeDocumentEipAssociationIdList(v []string, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("Item") for i := range v { @@ -41255,6 +41384,9 @@ func awsEc2query_serializeDocumentEipAssociationIdList(v []string, value query.V } func awsEc2query_serializeDocumentElasticGpuIdSet(v []string, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("Item") for i := range v { @@ -41277,6 +41409,9 @@ func awsEc2query_serializeDocumentElasticGpuSpecification(v *types.ElasticGpuSpe } func awsEc2query_serializeDocumentElasticGpuSpecificationList(v []types.ElasticGpuSpecification, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("ElasticGpuSpecification") for i := range v { @@ -41289,6 +41424,9 @@ func awsEc2query_serializeDocumentElasticGpuSpecificationList(v []types.ElasticG } func awsEc2query_serializeDocumentElasticGpuSpecifications(v []types.ElasticGpuSpecification, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("Item") for i := range v { @@ -41318,6 +41456,9 @@ func awsEc2query_serializeDocumentElasticInferenceAccelerator(v *types.ElasticIn } func awsEc2query_serializeDocumentElasticInferenceAccelerators(v []types.ElasticInferenceAccelerator, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("Item") for i := range v { @@ -41404,6 +41545,9 @@ func awsEc2query_serializeDocumentEnclaveOptionsRequest(v *types.EnclaveOptionsR } func awsEc2query_serializeDocumentExcludedInstanceTypeSet(v []string, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("Item") for i := range v { @@ -41414,6 +41558,9 @@ func awsEc2query_serializeDocumentExcludedInstanceTypeSet(v []string, value quer } func awsEc2query_serializeDocumentExecutableByStringList(v []string, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("ExecutableBy") for i := range v { @@ -41424,6 +41571,9 @@ func awsEc2query_serializeDocumentExecutableByStringList(v []string, value query } func awsEc2query_serializeDocumentExportImageTaskIdList(v []string, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("ExportImageTaskId") for i := range v { @@ -41434,6 +41584,9 @@ func awsEc2query_serializeDocumentExportImageTaskIdList(v []string, value query. } func awsEc2query_serializeDocumentExportTaskIdStringList(v []string, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("ExportTaskId") for i := range v { @@ -41488,6 +41641,9 @@ func awsEc2query_serializeDocumentExportToS3TaskSpecification(v *types.ExportToS } func awsEc2query_serializeDocumentFastLaunchImageIdList(v []string, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("ImageId") for i := range v { @@ -41568,6 +41724,9 @@ func awsEc2query_serializeDocumentFilter(v *types.Filter, value query.Value) err } func awsEc2query_serializeDocumentFilterList(v []types.Filter, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("Filter") for i := range v { @@ -41580,6 +41739,9 @@ func awsEc2query_serializeDocumentFilterList(v []types.Filter, value query.Value } func awsEc2query_serializeDocumentFleetIdSet(v []string, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("Member") for i := range v { @@ -41590,6 +41752,9 @@ func awsEc2query_serializeDocumentFleetIdSet(v []string, value query.Value) erro } func awsEc2query_serializeDocumentFleetLaunchTemplateConfigListRequest(v []types.FleetLaunchTemplateConfigRequest, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("Item") for i := range v { @@ -41623,6 +41788,9 @@ func awsEc2query_serializeDocumentFleetLaunchTemplateConfigRequest(v *types.Flee } func awsEc2query_serializeDocumentFleetLaunchTemplateOverridesListRequest(v []types.FleetLaunchTemplateOverridesRequest, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("Item") for i := range v { @@ -41792,6 +41960,9 @@ func awsEc2query_serializeDocumentFleetSpotMaintenanceStrategiesRequest(v *types } func awsEc2query_serializeDocumentFlowLogIdList(v []string, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("Item") for i := range v { @@ -41802,6 +41973,9 @@ func awsEc2query_serializeDocumentFlowLogIdList(v []string, value query.Value) e } func awsEc2query_serializeDocumentFlowLogResourceIds(v []string, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("Item") for i := range v { @@ -41812,6 +41986,9 @@ func awsEc2query_serializeDocumentFlowLogResourceIds(v []string, value query.Val } func awsEc2query_serializeDocumentFpgaImageIdList(v []string, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("Item") for i := range v { @@ -41839,6 +42016,9 @@ func awsEc2query_serializeDocumentGroupIdentifier(v *types.GroupIdentifier, valu } func awsEc2query_serializeDocumentGroupIdentifierList(v []types.GroupIdentifier, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("Item") for i := range v { @@ -41851,6 +42031,9 @@ func awsEc2query_serializeDocumentGroupIdentifierList(v []types.GroupIdentifier, } func awsEc2query_serializeDocumentGroupIds(v []string, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("Item") for i := range v { @@ -41861,6 +42044,9 @@ func awsEc2query_serializeDocumentGroupIds(v []string, value query.Value) error } func awsEc2query_serializeDocumentGroupIdStringList(v []string, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("GroupId") for i := range v { @@ -41871,6 +42057,9 @@ func awsEc2query_serializeDocumentGroupIdStringList(v []string, value query.Valu } func awsEc2query_serializeDocumentGroupNameStringList(v []string, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("GroupName") for i := range v { @@ -41893,6 +42082,9 @@ func awsEc2query_serializeDocumentHibernationOptionsRequest(v *types.Hibernation } func awsEc2query_serializeDocumentHostReservationIdSet(v []string, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("Item") for i := range v { @@ -41937,6 +42129,9 @@ func awsEc2query_serializeDocumentIcmpTypeCode(v *types.IcmpTypeCode, value quer } func awsEc2query_serializeDocumentIKEVersionsRequestList(v []types.IKEVersionsRequestListValue, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("Item") for i := range v { @@ -42000,6 +42195,9 @@ func awsEc2query_serializeDocumentImageDiskContainer(v *types.ImageDiskContainer } func awsEc2query_serializeDocumentImageDiskContainerList(v []types.ImageDiskContainer, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("Item") for i := range v { @@ -42012,6 +42210,9 @@ func awsEc2query_serializeDocumentImageDiskContainerList(v []types.ImageDiskCont } func awsEc2query_serializeDocumentImageIdList(v []string, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("Item") for i := range v { @@ -42022,6 +42223,9 @@ func awsEc2query_serializeDocumentImageIdList(v []string, value query.Value) err } func awsEc2query_serializeDocumentImageIdStringList(v []string, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("ImageId") for i := range v { @@ -42044,6 +42248,9 @@ func awsEc2query_serializeDocumentImportImageLicenseConfigurationRequest(v *type } func awsEc2query_serializeDocumentImportImageLicenseSpecificationListRequest(v []types.ImportImageLicenseConfigurationRequest, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("Item") for i := range v { @@ -42126,6 +42333,9 @@ func awsEc2query_serializeDocumentImportInstanceLaunchSpecification(v *types.Imp } func awsEc2query_serializeDocumentImportSnapshotTaskIdList(v []string, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("ImportTaskId") for i := range v { @@ -42136,6 +42346,9 @@ func awsEc2query_serializeDocumentImportSnapshotTaskIdList(v []string, value que } func awsEc2query_serializeDocumentImportTaskIdList(v []string, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("ImportTaskId") for i := range v { @@ -42146,6 +42359,9 @@ func awsEc2query_serializeDocumentImportTaskIdList(v []string, value query.Value } func awsEc2query_serializeDocumentInsideCidrBlocksStringList(v []string, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("Item") for i := range v { @@ -42185,6 +42401,9 @@ func awsEc2query_serializeDocumentInstanceBlockDeviceMappingSpecification(v *typ } func awsEc2query_serializeDocumentInstanceBlockDeviceMappingSpecificationList(v []types.InstanceBlockDeviceMappingSpecification, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("Item") for i := range v { @@ -42197,6 +42416,9 @@ func awsEc2query_serializeDocumentInstanceBlockDeviceMappingSpecificationList(v } func awsEc2query_serializeDocumentInstanceCreditSpecificationListRequest(v []types.InstanceCreditSpecificationRequest, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("Item") for i := range v { @@ -42282,6 +42504,9 @@ func awsEc2query_serializeDocumentInstanceEventWindowDisassociationRequest(v *ty } func awsEc2query_serializeDocumentInstanceEventWindowIdSet(v []string, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("InstanceEventWindowId") for i := range v { @@ -42319,6 +42544,9 @@ func awsEc2query_serializeDocumentInstanceEventWindowTimeRangeRequest(v *types.I } func awsEc2query_serializeDocumentInstanceEventWindowTimeRangeRequestSet(v []types.InstanceEventWindowTimeRangeRequest, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("Member") for i := range v { @@ -42331,6 +42559,9 @@ func awsEc2query_serializeDocumentInstanceEventWindowTimeRangeRequestSet(v []typ } func awsEc2query_serializeDocumentInstanceGenerationSet(v []types.InstanceGeneration, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("Item") for i := range v { @@ -42341,6 +42572,9 @@ func awsEc2query_serializeDocumentInstanceGenerationSet(v []types.InstanceGenera } func awsEc2query_serializeDocumentInstanceIdList(v []string, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("Item") for i := range v { @@ -42351,6 +42585,9 @@ func awsEc2query_serializeDocumentInstanceIdList(v []string, value query.Value) } func awsEc2query_serializeDocumentInstanceIdStringList(v []string, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("InstanceId") for i := range v { @@ -42378,6 +42615,9 @@ func awsEc2query_serializeDocumentInstanceIpv6Address(v *types.InstanceIpv6Addre } func awsEc2query_serializeDocumentInstanceIpv6AddressList(v []types.InstanceIpv6Address, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("Item") for i := range v { @@ -42390,6 +42630,9 @@ func awsEc2query_serializeDocumentInstanceIpv6AddressList(v []types.InstanceIpv6 } func awsEc2query_serializeDocumentInstanceIpv6AddressListRequest(v []types.InstanceIpv6AddressRequest, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("InstanceIpv6Address") for i := range v { @@ -42608,6 +42851,9 @@ func awsEc2query_serializeDocumentInstanceNetworkInterfaceSpecification(v *types } func awsEc2query_serializeDocumentInstanceNetworkInterfaceSpecificationList(v []types.InstanceNetworkInterfaceSpecification, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("Item") for i := range v { @@ -42994,6 +43240,9 @@ func awsEc2query_serializeDocumentInstanceSpecification(v *types.InstanceSpecifi } func awsEc2query_serializeDocumentInstanceTagKeySet(v []string, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("Item") for i := range v { @@ -43004,6 +43253,9 @@ func awsEc2query_serializeDocumentInstanceTagKeySet(v []string, value query.Valu } func awsEc2query_serializeDocumentInstanceTypeList(v []types.InstanceType, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("Member") for i := range v { @@ -43014,6 +43266,9 @@ func awsEc2query_serializeDocumentInstanceTypeList(v []types.InstanceType, value } func awsEc2query_serializeDocumentInstanceTypes(v []string, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("Member") for i := range v { @@ -43038,6 +43293,9 @@ func awsEc2query_serializeDocumentIntegrateServices(v *types.IntegrateServices, } func awsEc2query_serializeDocumentInternetGatewayIdList(v []string, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("Item") for i := range v { @@ -43065,6 +43323,9 @@ func awsEc2query_serializeDocumentIpamCidrAuthorizationContext(v *types.IpamCidr } func awsEc2query_serializeDocumentIpamPoolAllocationAllowedCidrs(v []string, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("Item") for i := range v { @@ -43075,6 +43336,9 @@ func awsEc2query_serializeDocumentIpamPoolAllocationAllowedCidrs(v []string, val } func awsEc2query_serializeDocumentIpamPoolAllocationDisallowedCidrs(v []string, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("Item") for i := range v { @@ -43112,6 +43376,9 @@ func awsEc2query_serializeDocumentIpamPoolSourceResourceRequest(v *types.IpamPoo } func awsEc2query_serializeDocumentIpList(v []string, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("Item") for i := range v { @@ -43172,6 +43439,9 @@ func awsEc2query_serializeDocumentIpPermission(v *types.IpPermission, value quer } func awsEc2query_serializeDocumentIpPermissionList(v []types.IpPermission, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("Item") for i := range v { @@ -43184,6 +43454,9 @@ func awsEc2query_serializeDocumentIpPermissionList(v []types.IpPermission, value } func awsEc2query_serializeDocumentIpPrefixList(v []string, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("Item") for i := range v { @@ -43211,6 +43484,9 @@ func awsEc2query_serializeDocumentIpRange(v *types.IpRange, value query.Value) e } func awsEc2query_serializeDocumentIpRangeList(v []types.IpRange, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("Item") for i := range v { @@ -43223,6 +43499,9 @@ func awsEc2query_serializeDocumentIpRangeList(v []types.IpRange, value query.Val } func awsEc2query_serializeDocumentIpv4PrefixList(v []types.Ipv4PrefixSpecificationRequest, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("Item") for i := range v { @@ -43247,6 +43526,9 @@ func awsEc2query_serializeDocumentIpv4PrefixSpecificationRequest(v *types.Ipv4Pr } func awsEc2query_serializeDocumentIpv6AddressList(v []string, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("Item") for i := range v { @@ -43257,6 +43539,9 @@ func awsEc2query_serializeDocumentIpv6AddressList(v []string, value query.Value) } func awsEc2query_serializeDocumentIpv6PoolIdList(v []string, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("Item") for i := range v { @@ -43267,6 +43552,9 @@ func awsEc2query_serializeDocumentIpv6PoolIdList(v []string, value query.Value) } func awsEc2query_serializeDocumentIpv6PrefixList(v []types.Ipv6PrefixSpecificationRequest, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("Item") for i := range v { @@ -43308,6 +43596,9 @@ func awsEc2query_serializeDocumentIpv6Range(v *types.Ipv6Range, value query.Valu } func awsEc2query_serializeDocumentIpv6RangeList(v []types.Ipv6Range, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("Item") for i := range v { @@ -43320,6 +43611,9 @@ func awsEc2query_serializeDocumentIpv6RangeList(v []types.Ipv6Range, value query } func awsEc2query_serializeDocumentKeyNameStringList(v []string, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("KeyName") for i := range v { @@ -43330,6 +43624,9 @@ func awsEc2query_serializeDocumentKeyNameStringList(v []string, value query.Valu } func awsEc2query_serializeDocumentKeyPairIdStringList(v []string, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("KeyPairId") for i := range v { @@ -43367,6 +43664,9 @@ func awsEc2query_serializeDocumentLaunchPermission(v *types.LaunchPermission, va } func awsEc2query_serializeDocumentLaunchPermissionList(v []types.LaunchPermission, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("Item") for i := range v { @@ -43400,6 +43700,9 @@ func awsEc2query_serializeDocumentLaunchPermissionModifications(v *types.LaunchP } func awsEc2query_serializeDocumentLaunchSpecsList(v []types.SpotFleetLaunchSpecification, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("Item") for i := range v { @@ -43441,6 +43744,9 @@ func awsEc2query_serializeDocumentLaunchTemplateBlockDeviceMappingRequest(v *typ } func awsEc2query_serializeDocumentLaunchTemplateBlockDeviceMappingRequestList(v []types.LaunchTemplateBlockDeviceMappingRequest, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("BlockDeviceMapping") for i := range v { @@ -43493,6 +43799,9 @@ func awsEc2query_serializeDocumentLaunchTemplateConfig(v *types.LaunchTemplateCo } func awsEc2query_serializeDocumentLaunchTemplateConfigList(v []types.LaunchTemplateConfig, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("Item") for i := range v { @@ -43591,6 +43900,9 @@ func awsEc2query_serializeDocumentLaunchTemplateElasticInferenceAccelerator(v *t } func awsEc2query_serializeDocumentLaunchTemplateElasticInferenceAcceleratorList(v []types.LaunchTemplateElasticInferenceAccelerator, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("Item") for i := range v { @@ -43644,6 +43956,9 @@ func awsEc2query_serializeDocumentLaunchTemplateIamInstanceProfileSpecificationR } func awsEc2query_serializeDocumentLaunchTemplateIdStringList(v []string, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("Item") for i := range v { @@ -43848,6 +44163,9 @@ func awsEc2query_serializeDocumentLaunchTemplateInstanceNetworkInterfaceSpecific } func awsEc2query_serializeDocumentLaunchTemplateInstanceNetworkInterfaceSpecificationRequestList(v []types.LaunchTemplateInstanceNetworkInterfaceSpecificationRequest, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("InstanceNetworkInterfaceSpecification") for i := range v { @@ -43872,6 +44190,9 @@ func awsEc2query_serializeDocumentLaunchTemplateLicenseConfigurationRequest(v *t } func awsEc2query_serializeDocumentLaunchTemplateLicenseSpecificationListRequest(v []types.LaunchTemplateLicenseConfigurationRequest, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("Item") for i := range v { @@ -43884,6 +44205,9 @@ func awsEc2query_serializeDocumentLaunchTemplateLicenseSpecificationListRequest( } func awsEc2query_serializeDocumentLaunchTemplateNameStringList(v []string, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("Item") for i := range v { @@ -43964,6 +44288,9 @@ func awsEc2query_serializeDocumentLaunchTemplateOverrides(v *types.LaunchTemplat } func awsEc2query_serializeDocumentLaunchTemplateOverridesList(v []types.LaunchTemplateOverrides, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("Item") for i := range v { @@ -44135,6 +44462,9 @@ func awsEc2query_serializeDocumentLaunchTemplateTagSpecificationRequest(v *types } func awsEc2query_serializeDocumentLaunchTemplateTagSpecificationRequestList(v []types.LaunchTemplateTagSpecificationRequest, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("LaunchTemplateTagSpecificationRequest") for i := range v { @@ -44159,6 +44489,9 @@ func awsEc2query_serializeDocumentLicenseConfigurationRequest(v *types.LicenseCo } func awsEc2query_serializeDocumentLicenseSpecificationListRequest(v []types.LicenseConfigurationRequest, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("Item") for i := range v { @@ -44192,6 +44525,9 @@ func awsEc2query_serializeDocumentLoadBalancersConfig(v *types.LoadBalancersConf } func awsEc2query_serializeDocumentLoadPermissionListRequest(v []types.LoadPermissionRequest, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("Item") for i := range v { @@ -44242,6 +44578,9 @@ func awsEc2query_serializeDocumentLoadPermissionRequest(v *types.LoadPermissionR } func awsEc2query_serializeDocumentLocalGatewayIdSet(v []string, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("Item") for i := range v { @@ -44252,6 +44591,9 @@ func awsEc2query_serializeDocumentLocalGatewayIdSet(v []string, value query.Valu } func awsEc2query_serializeDocumentLocalGatewayRouteTableIdSet(v []string, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("Item") for i := range v { @@ -44262,6 +44604,9 @@ func awsEc2query_serializeDocumentLocalGatewayRouteTableIdSet(v []string, value } func awsEc2query_serializeDocumentLocalGatewayRouteTableVirtualInterfaceGroupAssociationIdSet(v []string, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("Item") for i := range v { @@ -44272,6 +44617,9 @@ func awsEc2query_serializeDocumentLocalGatewayRouteTableVirtualInterfaceGroupAss } func awsEc2query_serializeDocumentLocalGatewayRouteTableVpcAssociationIdSet(v []string, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("Item") for i := range v { @@ -44282,6 +44630,9 @@ func awsEc2query_serializeDocumentLocalGatewayRouteTableVpcAssociationIdSet(v [] } func awsEc2query_serializeDocumentLocalGatewayVirtualInterfaceGroupIdSet(v []string, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("Item") for i := range v { @@ -44292,6 +44643,9 @@ func awsEc2query_serializeDocumentLocalGatewayVirtualInterfaceGroupIdSet(v []str } func awsEc2query_serializeDocumentLocalGatewayVirtualInterfaceIdSet(v []string, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("Item") for i := range v { @@ -44302,6 +44656,9 @@ func awsEc2query_serializeDocumentLocalGatewayVirtualInterfaceIdSet(v []string, } func awsEc2query_serializeDocumentLocalStorageTypeSet(v []types.LocalStorageType, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("Item") for i := range v { @@ -44566,6 +44923,9 @@ func awsEc2query_serializeDocumentModifyVerifiedAccessEndpointLoadBalancerOption } func awsEc2query_serializeDocumentModifyVerifiedAccessEndpointSubnetIdList(v []string, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("Item") for i := range v { @@ -44753,6 +45113,9 @@ func awsEc2query_serializeDocumentModifyVpnTunnelOptionsSpecification(v *types.M } func awsEc2query_serializeDocumentNatGatewayIdStringList(v []string, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("Item") for i := range v { @@ -44763,6 +45126,9 @@ func awsEc2query_serializeDocumentNatGatewayIdStringList(v []string, value query } func awsEc2query_serializeDocumentNetworkAclIdStringList(v []string, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("Item") for i := range v { @@ -44859,6 +45225,9 @@ func awsEc2query_serializeDocumentNetworkBandwidthGbpsRequest(v *types.NetworkBa } func awsEc2query_serializeDocumentNetworkInsightsAccessScopeAnalysisIdList(v []string, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("Item") for i := range v { @@ -44869,6 +45238,9 @@ func awsEc2query_serializeDocumentNetworkInsightsAccessScopeAnalysisIdList(v []s } func awsEc2query_serializeDocumentNetworkInsightsAccessScopeIdList(v []string, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("Item") for i := range v { @@ -44879,6 +45251,9 @@ func awsEc2query_serializeDocumentNetworkInsightsAccessScopeIdList(v []string, v } func awsEc2query_serializeDocumentNetworkInsightsAnalysisIdList(v []string, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("Item") for i := range v { @@ -44889,6 +45264,9 @@ func awsEc2query_serializeDocumentNetworkInsightsAnalysisIdList(v []string, valu } func awsEc2query_serializeDocumentNetworkInsightsPathIdList(v []string, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("Item") for i := range v { @@ -44950,6 +45328,9 @@ func awsEc2query_serializeDocumentNetworkInterfaceCountRequest(v *types.NetworkI } func awsEc2query_serializeDocumentNetworkInterfaceIdList(v []string, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("Item") for i := range v { @@ -44960,6 +45341,9 @@ func awsEc2query_serializeDocumentNetworkInterfaceIdList(v []string, value query } func awsEc2query_serializeDocumentNetworkInterfacePermissionIdList(v []string, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("Member") for i := range v { @@ -44989,6 +45373,9 @@ func awsEc2query_serializeDocumentNewDhcpConfiguration(v *types.NewDhcpConfigura } func awsEc2query_serializeDocumentNewDhcpConfigurationList(v []types.NewDhcpConfiguration, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("Item") for i := range v { @@ -45001,6 +45388,9 @@ func awsEc2query_serializeDocumentNewDhcpConfigurationList(v []types.NewDhcpConf } func awsEc2query_serializeDocumentOccurrenceDayRequestSet(v []int32, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("OccurenceDay") for i := range v { @@ -45050,6 +45440,9 @@ func awsEc2query_serializeDocumentOnDemandOptionsRequest(v *types.OnDemandOption } func awsEc2query_serializeDocumentOrganizationalUnitArnStringList(v []string, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("OrganizationalUnitArn") for i := range v { @@ -45060,6 +45453,9 @@ func awsEc2query_serializeDocumentOrganizationalUnitArnStringList(v []string, va } func awsEc2query_serializeDocumentOrganizationArnStringList(v []string, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("OrganizationArn") for i := range v { @@ -45070,6 +45466,9 @@ func awsEc2query_serializeDocumentOrganizationArnStringList(v []string, value qu } func awsEc2query_serializeDocumentOwnerStringList(v []string, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("Owner") for i := range v { @@ -45210,6 +45609,9 @@ func awsEc2query_serializeDocumentPeeringConnectionOptionsRequest(v *types.Peeri } func awsEc2query_serializeDocumentPhase1DHGroupNumbersRequestList(v []types.Phase1DHGroupNumbersRequestListValue, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("Item") for i := range v { @@ -45234,6 +45636,9 @@ func awsEc2query_serializeDocumentPhase1DHGroupNumbersRequestListValue(v *types. } func awsEc2query_serializeDocumentPhase1EncryptionAlgorithmsRequestList(v []types.Phase1EncryptionAlgorithmsRequestListValue, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("Item") for i := range v { @@ -45258,6 +45663,9 @@ func awsEc2query_serializeDocumentPhase1EncryptionAlgorithmsRequestListValue(v * } func awsEc2query_serializeDocumentPhase1IntegrityAlgorithmsRequestList(v []types.Phase1IntegrityAlgorithmsRequestListValue, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("Item") for i := range v { @@ -45282,6 +45690,9 @@ func awsEc2query_serializeDocumentPhase1IntegrityAlgorithmsRequestListValue(v *t } func awsEc2query_serializeDocumentPhase2DHGroupNumbersRequestList(v []types.Phase2DHGroupNumbersRequestListValue, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("Item") for i := range v { @@ -45306,6 +45717,9 @@ func awsEc2query_serializeDocumentPhase2DHGroupNumbersRequestListValue(v *types. } func awsEc2query_serializeDocumentPhase2EncryptionAlgorithmsRequestList(v []types.Phase2EncryptionAlgorithmsRequestListValue, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("Item") for i := range v { @@ -45330,6 +45744,9 @@ func awsEc2query_serializeDocumentPhase2EncryptionAlgorithmsRequestListValue(v * } func awsEc2query_serializeDocumentPhase2IntegrityAlgorithmsRequestList(v []types.Phase2IntegrityAlgorithmsRequestListValue, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("Item") for i := range v { @@ -45406,6 +45823,9 @@ func awsEc2query_serializeDocumentPlacement(v *types.Placement, value query.Valu } func awsEc2query_serializeDocumentPlacementGroupIdStringList(v []string, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("GroupId") for i := range v { @@ -45416,6 +45836,9 @@ func awsEc2query_serializeDocumentPlacementGroupIdStringList(v []string, value q } func awsEc2query_serializeDocumentPlacementGroupStringList(v []string, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("Member") for i := range v { @@ -45460,6 +45883,9 @@ func awsEc2query_serializeDocumentPrefixListId(v *types.PrefixListId, value quer } func awsEc2query_serializeDocumentPrefixListIdList(v []types.PrefixListId, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("Item") for i := range v { @@ -45472,6 +45898,9 @@ func awsEc2query_serializeDocumentPrefixListIdList(v []types.PrefixListId, value } func awsEc2query_serializeDocumentPrefixListResourceIdStringList(v []string, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("Item") for i := range v { @@ -45517,6 +45946,9 @@ func awsEc2query_serializeDocumentPriceScheduleSpecification(v *types.PriceSched } func awsEc2query_serializeDocumentPriceScheduleSpecificationList(v []types.PriceScheduleSpecification, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("Item") for i := range v { @@ -45551,6 +45983,9 @@ func awsEc2query_serializeDocumentPrivateDnsNameOptionsRequest(v *types.PrivateD } func awsEc2query_serializeDocumentPrivateIpAddressConfigSet(v []types.ScheduledInstancesPrivateIpAddressConfig, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("PrivateIpAddressConfigSet") for i := range v { @@ -45580,6 +46015,9 @@ func awsEc2query_serializeDocumentPrivateIpAddressSpecification(v *types.Private } func awsEc2query_serializeDocumentPrivateIpAddressSpecificationList(v []types.PrivateIpAddressSpecification, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("Item") for i := range v { @@ -45592,6 +46030,9 @@ func awsEc2query_serializeDocumentPrivateIpAddressSpecificationList(v []types.Pr } func awsEc2query_serializeDocumentPrivateIpAddressStringList(v []string, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("PrivateIpAddress") for i := range v { @@ -45602,6 +46043,9 @@ func awsEc2query_serializeDocumentPrivateIpAddressStringList(v []string, value q } func awsEc2query_serializeDocumentProductCodeStringList(v []string, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("ProductCode") for i := range v { @@ -45612,6 +46056,9 @@ func awsEc2query_serializeDocumentProductCodeStringList(v []string, value query. } func awsEc2query_serializeDocumentProductDescriptionList(v []string, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("Member") for i := range v { @@ -45622,6 +46069,9 @@ func awsEc2query_serializeDocumentProductDescriptionList(v []string, value query } func awsEc2query_serializeDocumentProtocolList(v []types.Protocol, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("Item") for i := range v { @@ -45632,6 +46082,9 @@ func awsEc2query_serializeDocumentProtocolList(v []types.Protocol, value query.V } func awsEc2query_serializeDocumentPublicIpStringList(v []string, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("PublicIp") for i := range v { @@ -45642,6 +46095,9 @@ func awsEc2query_serializeDocumentPublicIpStringList(v []string, value query.Val } func awsEc2query_serializeDocumentPublicIpv4PoolIdStringList(v []string, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("Item") for i := range v { @@ -45669,6 +46125,9 @@ func awsEc2query_serializeDocumentPurchaseRequest(v *types.PurchaseRequest, valu } func awsEc2query_serializeDocumentPurchaseRequestSet(v []types.PurchaseRequest, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("PurchaseRequest") for i := range v { @@ -45681,6 +46140,9 @@ func awsEc2query_serializeDocumentPurchaseRequestSet(v []types.PurchaseRequest, } func awsEc2query_serializeDocumentReasonCodesList(v []types.ReportInstanceReasonCodes, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("Item") for i := range v { @@ -45691,6 +46153,9 @@ func awsEc2query_serializeDocumentReasonCodesList(v []types.ReportInstanceReason } func awsEc2query_serializeDocumentRegionNames(v []string, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("Member") for i := range v { @@ -45701,6 +46166,9 @@ func awsEc2query_serializeDocumentRegionNames(v []string, value query.Value) err } func awsEc2query_serializeDocumentRegionNameStringList(v []string, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("RegionName") for i := range v { @@ -45742,6 +46210,9 @@ func awsEc2query_serializeDocumentRemoveIpamOperatingRegion(v *types.RemoveIpamO } func awsEc2query_serializeDocumentRemoveIpamOperatingRegionSet(v []types.RemoveIpamOperatingRegion, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("Member") for i := range v { @@ -45754,6 +46225,9 @@ func awsEc2query_serializeDocumentRemoveIpamOperatingRegionSet(v []types.RemoveI } func awsEc2query_serializeDocumentRemovePrefixListEntries(v []types.RemovePrefixListEntry, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("Member") for i := range v { @@ -45778,6 +46252,9 @@ func awsEc2query_serializeDocumentRemovePrefixListEntry(v *types.RemovePrefixLis } func awsEc2query_serializeDocumentReplaceRootVolumeTaskIds(v []string, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("ReplaceRootVolumeTaskId") for i := range v { @@ -45805,6 +46282,9 @@ func awsEc2query_serializeDocumentRequestFilterPortRange(v *types.RequestFilterP } func awsEc2query_serializeDocumentRequestHostIdList(v []string, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("Item") for i := range v { @@ -45815,6 +46295,9 @@ func awsEc2query_serializeDocumentRequestHostIdList(v []string, value query.Valu } func awsEc2query_serializeDocumentRequestHostIdSet(v []string, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("Item") for i := range v { @@ -45825,6 +46308,9 @@ func awsEc2query_serializeDocumentRequestHostIdSet(v []string, value query.Value } func awsEc2query_serializeDocumentRequestInstanceTypeList(v []types.InstanceType, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("Member") for i := range v { @@ -45852,6 +46338,9 @@ func awsEc2query_serializeDocumentRequestIpamResourceTag(v *types.RequestIpamRes } func awsEc2query_serializeDocumentRequestIpamResourceTagList(v []types.RequestIpamResourceTag, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("Item") for i := range v { @@ -46169,6 +46658,9 @@ func awsEc2query_serializeDocumentRequestSpotLaunchSpecification(v *types.Reques } func awsEc2query_serializeDocumentRequestSpotLaunchSpecificationSecurityGroupIdList(v []string, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("Item") for i := range v { @@ -46179,6 +46671,9 @@ func awsEc2query_serializeDocumentRequestSpotLaunchSpecificationSecurityGroupIdL } func awsEc2query_serializeDocumentRequestSpotLaunchSpecificationSecurityGroupList(v []string, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("Item") for i := range v { @@ -46244,6 +46739,9 @@ func awsEc2query_serializeDocumentReservationFleetInstanceSpecification(v *types } func awsEc2query_serializeDocumentReservationFleetInstanceSpecificationList(v []types.ReservationFleetInstanceSpecification, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("Member") for i := range v { @@ -46256,6 +46754,9 @@ func awsEc2query_serializeDocumentReservationFleetInstanceSpecificationList(v [] } func awsEc2query_serializeDocumentReservedInstanceIdSet(v []string, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("ReservedInstanceId") for i := range v { @@ -46328,6 +46829,9 @@ func awsEc2query_serializeDocumentReservedInstancesConfiguration(v *types.Reserv } func awsEc2query_serializeDocumentReservedInstancesConfigurationList(v []types.ReservedInstancesConfiguration, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("Item") for i := range v { @@ -46340,6 +46844,9 @@ func awsEc2query_serializeDocumentReservedInstancesConfigurationList(v []types.R } func awsEc2query_serializeDocumentReservedInstancesIdStringList(v []string, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("ReservedInstancesId") for i := range v { @@ -46350,6 +46857,9 @@ func awsEc2query_serializeDocumentReservedInstancesIdStringList(v []string, valu } func awsEc2query_serializeDocumentReservedInstancesModificationIdStringList(v []string, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("ReservedInstancesModificationId") for i := range v { @@ -46360,6 +46870,9 @@ func awsEc2query_serializeDocumentReservedInstancesModificationIdStringList(v [] } func awsEc2query_serializeDocumentReservedInstancesOfferingIdStringList(v []string, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("Member") for i := range v { @@ -46370,6 +46883,9 @@ func awsEc2query_serializeDocumentReservedInstancesOfferingIdStringList(v []stri } func awsEc2query_serializeDocumentResourceIdList(v []string, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("Member") for i := range v { @@ -46380,6 +46896,9 @@ func awsEc2query_serializeDocumentResourceIdList(v []string, value query.Value) } func awsEc2query_serializeDocumentResourceList(v []string, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("Item") for i := range v { @@ -46411,6 +46930,9 @@ func awsEc2query_serializeDocumentResourceStatementRequest(v *types.ResourceStat } func awsEc2query_serializeDocumentRestorableByStringList(v []string, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("Member") for i := range v { @@ -46421,6 +46943,9 @@ func awsEc2query_serializeDocumentRestorableByStringList(v []string, value query } func awsEc2query_serializeDocumentRouteTableIdStringList(v []string, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("Item") for i := range v { @@ -46460,6 +46985,9 @@ func awsEc2query_serializeDocumentS3ObjectTag(v *types.S3ObjectTag, value query. } func awsEc2query_serializeDocumentS3ObjectTagList(v []types.S3ObjectTag, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("Item") for i := range v { @@ -46504,6 +47032,9 @@ func awsEc2query_serializeDocumentS3Storage(v *types.S3Storage, value query.Valu } func awsEc2query_serializeDocumentScheduledInstanceIdRequestSet(v []string, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("ScheduledInstanceId") for i := range v { @@ -46577,6 +47108,9 @@ func awsEc2query_serializeDocumentScheduledInstancesBlockDeviceMapping(v *types. } func awsEc2query_serializeDocumentScheduledInstancesBlockDeviceMappingSet(v []types.ScheduledInstancesBlockDeviceMapping, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("BlockDeviceMapping") for i := range v { @@ -46655,6 +47189,9 @@ func awsEc2query_serializeDocumentScheduledInstancesIpv6Address(v *types.Schedul } func awsEc2query_serializeDocumentScheduledInstancesIpv6AddressList(v []types.ScheduledInstancesIpv6Address, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("Ipv6Address") for i := range v { @@ -46841,6 +47378,9 @@ func awsEc2query_serializeDocumentScheduledInstancesNetworkInterface(v *types.Sc } func awsEc2query_serializeDocumentScheduledInstancesNetworkInterfaceSet(v []types.ScheduledInstancesNetworkInterface, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("NetworkInterface") for i := range v { @@ -46887,6 +47427,9 @@ func awsEc2query_serializeDocumentScheduledInstancesPrivateIpAddressConfig(v *ty } func awsEc2query_serializeDocumentScheduledInstancesSecurityGroupIdSet(v []string, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("SecurityGroupId") for i := range v { @@ -46897,6 +47440,9 @@ func awsEc2query_serializeDocumentScheduledInstancesSecurityGroupIdSet(v []strin } func awsEc2query_serializeDocumentSecurityGroupIdList(v []string, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("Item") for i := range v { @@ -46907,6 +47453,9 @@ func awsEc2query_serializeDocumentSecurityGroupIdList(v []string, value query.Va } func awsEc2query_serializeDocumentSecurityGroupIdStringList(v []string, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("SecurityGroupId") for i := range v { @@ -46917,6 +47466,9 @@ func awsEc2query_serializeDocumentSecurityGroupIdStringList(v []string, value qu } func awsEc2query_serializeDocumentSecurityGroupIdStringListRequest(v []string, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("SecurityGroupId") for i := range v { @@ -46944,6 +47496,9 @@ func awsEc2query_serializeDocumentSecurityGroupRuleDescription(v *types.Security } func awsEc2query_serializeDocumentSecurityGroupRuleDescriptionList(v []types.SecurityGroupRuleDescription, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("Item") for i := range v { @@ -46956,6 +47511,9 @@ func awsEc2query_serializeDocumentSecurityGroupRuleDescriptionList(v []types.Sec } func awsEc2query_serializeDocumentSecurityGroupRuleIdList(v []string, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("Item") for i := range v { @@ -47032,6 +47590,9 @@ func awsEc2query_serializeDocumentSecurityGroupRuleUpdate(v *types.SecurityGroup } func awsEc2query_serializeDocumentSecurityGroupRuleUpdateList(v []types.SecurityGroupRuleUpdate, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("Item") for i := range v { @@ -47044,6 +47605,9 @@ func awsEc2query_serializeDocumentSecurityGroupRuleUpdateList(v []types.Security } func awsEc2query_serializeDocumentSecurityGroupStringList(v []string, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("SecurityGroup") for i := range v { @@ -47117,6 +47681,9 @@ func awsEc2query_serializeDocumentSnapshotDiskContainer(v *types.SnapshotDiskCon } func awsEc2query_serializeDocumentSnapshotIdStringList(v []string, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("SnapshotId") for i := range v { @@ -47460,6 +48027,9 @@ func awsEc2query_serializeDocumentSpotFleetRequestConfigData(v *types.SpotFleetR } func awsEc2query_serializeDocumentSpotFleetRequestIdList(v []string, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("Item") for i := range v { @@ -47489,6 +48059,9 @@ func awsEc2query_serializeDocumentSpotFleetTagSpecification(v *types.SpotFleetTa } func awsEc2query_serializeDocumentSpotFleetTagSpecificationList(v []types.SpotFleetTagSpecification, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("Item") for i := range v { @@ -47501,6 +48074,9 @@ func awsEc2query_serializeDocumentSpotFleetTagSpecificationList(v []types.SpotFl } func awsEc2query_serializeDocumentSpotInstanceRequestIdList(v []string, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("SpotInstanceRequestId") for i := range v { @@ -47681,6 +48257,9 @@ func awsEc2query_serializeDocumentSubnetConfiguration(v *types.SubnetConfigurati } func awsEc2query_serializeDocumentSubnetConfigurationsList(v []types.SubnetConfiguration, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("Item") for i := range v { @@ -47693,6 +48272,9 @@ func awsEc2query_serializeDocumentSubnetConfigurationsList(v []types.SubnetConfi } func awsEc2query_serializeDocumentSubnetIdStringList(v []string, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("SubnetId") for i := range v { @@ -47720,6 +48302,9 @@ func awsEc2query_serializeDocumentTag(v *types.Tag, value query.Value) error { } func awsEc2query_serializeDocumentTagList(v []types.Tag, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("Item") for i := range v { @@ -47751,6 +48336,9 @@ func awsEc2query_serializeDocumentTagSpecification(v *types.TagSpecification, va } func awsEc2query_serializeDocumentTagSpecificationList(v []types.TagSpecification, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("Item") for i := range v { @@ -47812,6 +48400,9 @@ func awsEc2query_serializeDocumentTargetConfigurationRequest(v *types.TargetConf } func awsEc2query_serializeDocumentTargetConfigurationRequestSet(v []types.TargetConfigurationRequest, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("TargetConfigurationRequest") for i := range v { @@ -47836,6 +48427,9 @@ func awsEc2query_serializeDocumentTargetGroup(v *types.TargetGroup, value query. } func awsEc2query_serializeDocumentTargetGroups(v []types.TargetGroup, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("Item") for i := range v { @@ -47876,6 +48470,9 @@ func awsEc2query_serializeDocumentThroughResourcesStatementRequest(v *types.Thro } func awsEc2query_serializeDocumentThroughResourcesStatementRequestList(v []types.ThroughResourcesStatementRequest, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("Item") for i := range v { @@ -47974,6 +48571,9 @@ func awsEc2query_serializeDocumentTotalLocalStorageGBRequest(v *types.TotalLocal } func awsEc2query_serializeDocumentTrafficMirrorFilterIdList(v []string, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("Item") for i := range v { @@ -47984,6 +48584,9 @@ func awsEc2query_serializeDocumentTrafficMirrorFilterIdList(v []string, value qu } func awsEc2query_serializeDocumentTrafficMirrorFilterRuleFieldList(v []types.TrafficMirrorFilterRuleField, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("Member") for i := range v { @@ -47994,6 +48597,9 @@ func awsEc2query_serializeDocumentTrafficMirrorFilterRuleFieldList(v []types.Tra } func awsEc2query_serializeDocumentTrafficMirrorNetworkServiceList(v []types.TrafficMirrorNetworkService, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("Item") for i := range v { @@ -48021,6 +48627,9 @@ func awsEc2query_serializeDocumentTrafficMirrorPortRangeRequest(v *types.Traffic } func awsEc2query_serializeDocumentTrafficMirrorSessionFieldList(v []types.TrafficMirrorSessionField, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("Member") for i := range v { @@ -48031,6 +48640,9 @@ func awsEc2query_serializeDocumentTrafficMirrorSessionFieldList(v []types.Traffi } func awsEc2query_serializeDocumentTrafficMirrorSessionIdList(v []string, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("Item") for i := range v { @@ -48041,6 +48653,9 @@ func awsEc2query_serializeDocumentTrafficMirrorSessionIdList(v []string, value q } func awsEc2query_serializeDocumentTrafficMirrorTargetIdList(v []string, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("Item") for i := range v { @@ -48051,6 +48666,9 @@ func awsEc2query_serializeDocumentTrafficMirrorTargetIdList(v []string, value qu } func awsEc2query_serializeDocumentTransitGatewayAttachmentIdStringList(v []string, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("Member") for i := range v { @@ -48061,6 +48679,9 @@ func awsEc2query_serializeDocumentTransitGatewayAttachmentIdStringList(v []strin } func awsEc2query_serializeDocumentTransitGatewayCidrBlockStringList(v []string, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("Item") for i := range v { @@ -48071,6 +48692,9 @@ func awsEc2query_serializeDocumentTransitGatewayCidrBlockStringList(v []string, } func awsEc2query_serializeDocumentTransitGatewayConnectPeerIdStringList(v []string, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("Item") for i := range v { @@ -48093,6 +48717,9 @@ func awsEc2query_serializeDocumentTransitGatewayConnectRequestBgpOptions(v *type } func awsEc2query_serializeDocumentTransitGatewayIdStringList(v []string, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("Item") for i := range v { @@ -48103,6 +48730,9 @@ func awsEc2query_serializeDocumentTransitGatewayIdStringList(v []string, value q } func awsEc2query_serializeDocumentTransitGatewayMulticastDomainIdStringList(v []string, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("Item") for i := range v { @@ -48113,6 +48743,9 @@ func awsEc2query_serializeDocumentTransitGatewayMulticastDomainIdStringList(v [] } func awsEc2query_serializeDocumentTransitGatewayNetworkInterfaceIdList(v []string, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("Item") for i := range v { @@ -48123,6 +48756,9 @@ func awsEc2query_serializeDocumentTransitGatewayNetworkInterfaceIdList(v []strin } func awsEc2query_serializeDocumentTransitGatewayPolicyTableIdStringList(v []string, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("Item") for i := range v { @@ -48187,6 +48823,9 @@ func awsEc2query_serializeDocumentTransitGatewayRequestOptions(v *types.TransitG } func awsEc2query_serializeDocumentTransitGatewayRouteTableAnnouncementIdStringList(v []string, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("Item") for i := range v { @@ -48197,6 +48836,9 @@ func awsEc2query_serializeDocumentTransitGatewayRouteTableAnnouncementIdStringLi } func awsEc2query_serializeDocumentTransitGatewayRouteTableIdStringList(v []string, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("Item") for i := range v { @@ -48207,6 +48849,9 @@ func awsEc2query_serializeDocumentTransitGatewayRouteTableIdStringList(v []strin } func awsEc2query_serializeDocumentTransitGatewaySubnetIdList(v []string, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("Item") for i := range v { @@ -48217,6 +48862,9 @@ func awsEc2query_serializeDocumentTransitGatewaySubnetIdList(v []string, value q } func awsEc2query_serializeDocumentTrunkInterfaceAssociationIdList(v []string, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("Item") for i := range v { @@ -48256,6 +48904,9 @@ func awsEc2query_serializeDocumentUserData(v *types.UserData, value query.Value) } func awsEc2query_serializeDocumentUserGroupStringList(v []string, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("UserGroup") for i := range v { @@ -48308,6 +48959,9 @@ func awsEc2query_serializeDocumentUserIdGroupPair(v *types.UserIdGroupPair, valu } func awsEc2query_serializeDocumentUserIdGroupPairList(v []types.UserIdGroupPair, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("Item") for i := range v { @@ -48320,6 +48974,9 @@ func awsEc2query_serializeDocumentUserIdGroupPairList(v []types.UserIdGroupPair, } func awsEc2query_serializeDocumentUserIdStringList(v []string, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("UserId") for i := range v { @@ -48330,6 +48987,9 @@ func awsEc2query_serializeDocumentUserIdStringList(v []string, value query.Value } func awsEc2query_serializeDocumentValueStringList(v []string, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("Item") for i := range v { @@ -48374,6 +49034,9 @@ func awsEc2query_serializeDocumentVCpuCountRangeRequest(v *types.VCpuCountRangeR } func awsEc2query_serializeDocumentVerifiedAccessEndpointIdList(v []string, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("Item") for i := range v { @@ -48384,6 +49047,9 @@ func awsEc2query_serializeDocumentVerifiedAccessEndpointIdList(v []string, value } func awsEc2query_serializeDocumentVerifiedAccessGroupIdList(v []string, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("Item") for i := range v { @@ -48394,6 +49060,9 @@ func awsEc2query_serializeDocumentVerifiedAccessGroupIdList(v []string, value qu } func awsEc2query_serializeDocumentVerifiedAccessInstanceIdList(v []string, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("Item") for i := range v { @@ -48520,6 +49189,9 @@ func awsEc2query_serializeDocumentVerifiedAccessSseSpecificationRequest(v *types } func awsEc2query_serializeDocumentVerifiedAccessTrustProviderIdList(v []string, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("Item") for i := range v { @@ -48530,6 +49202,9 @@ func awsEc2query_serializeDocumentVerifiedAccessTrustProviderIdList(v []string, } func awsEc2query_serializeDocumentVersionStringList(v []string, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("Item") for i := range v { @@ -48540,6 +49215,9 @@ func awsEc2query_serializeDocumentVersionStringList(v []string, value query.Valu } func awsEc2query_serializeDocumentVirtualizationTypeSet(v []types.VirtualizationType, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("Item") for i := range v { @@ -48562,6 +49240,9 @@ func awsEc2query_serializeDocumentVolumeDetail(v *types.VolumeDetail, value quer } func awsEc2query_serializeDocumentVolumeIdStringList(v []string, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("VolumeId") for i := range v { @@ -48572,6 +49253,9 @@ func awsEc2query_serializeDocumentVolumeIdStringList(v []string, value query.Val } func awsEc2query_serializeDocumentVpcClassicLinkIdList(v []string, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("VpcId") for i := range v { @@ -48582,6 +49266,9 @@ func awsEc2query_serializeDocumentVpcClassicLinkIdList(v []string, value query.V } func awsEc2query_serializeDocumentVpcEndpointIdList(v []string, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("Item") for i := range v { @@ -48592,6 +49279,9 @@ func awsEc2query_serializeDocumentVpcEndpointIdList(v []string, value query.Valu } func awsEc2query_serializeDocumentVpcEndpointRouteTableIdList(v []string, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("Item") for i := range v { @@ -48602,6 +49292,9 @@ func awsEc2query_serializeDocumentVpcEndpointRouteTableIdList(v []string, value } func awsEc2query_serializeDocumentVpcEndpointSecurityGroupIdList(v []string, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("Item") for i := range v { @@ -48612,6 +49305,9 @@ func awsEc2query_serializeDocumentVpcEndpointSecurityGroupIdList(v []string, val } func awsEc2query_serializeDocumentVpcEndpointServiceIdList(v []string, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("Item") for i := range v { @@ -48622,6 +49318,9 @@ func awsEc2query_serializeDocumentVpcEndpointServiceIdList(v []string, value que } func awsEc2query_serializeDocumentVpcEndpointSubnetIdList(v []string, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("Item") for i := range v { @@ -48632,6 +49331,9 @@ func awsEc2query_serializeDocumentVpcEndpointSubnetIdList(v []string, value quer } func awsEc2query_serializeDocumentVpcIdStringList(v []string, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("VpcId") for i := range v { @@ -48642,6 +49344,9 @@ func awsEc2query_serializeDocumentVpcIdStringList(v []string, value query.Value) } func awsEc2query_serializeDocumentVpcPeeringConnectionIdList(v []string, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("Item") for i := range v { @@ -48652,6 +49357,9 @@ func awsEc2query_serializeDocumentVpcPeeringConnectionIdList(v []string, value q } func awsEc2query_serializeDocumentVpnConnectionIdStringList(v []string, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("VpnConnectionId") for i := range v { @@ -48721,6 +49429,9 @@ func awsEc2query_serializeDocumentVpnConnectionOptionsSpecification(v *types.Vpn } func awsEc2query_serializeDocumentVpnGatewayIdStringList(v []string, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("VpnGatewayId") for i := range v { @@ -48868,6 +49579,9 @@ func awsEc2query_serializeDocumentVpnTunnelOptionsSpecification(v *types.VpnTunn } func awsEc2query_serializeDocumentVpnTunnelOptionsSpecificationsList(v []types.VpnTunnelOptionsSpecification, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("Member") for i := range v { @@ -48880,6 +49594,9 @@ func awsEc2query_serializeDocumentVpnTunnelOptionsSpecificationsList(v []types.V } func awsEc2query_serializeDocumentZoneIdStringList(v []string, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("ZoneId") for i := range v { @@ -48890,6 +49607,9 @@ func awsEc2query_serializeDocumentZoneIdStringList(v []string, value query.Value } func awsEc2query_serializeDocumentZoneNameStringList(v []string, value query.Value) error { + if len(v) == 0 { + return nil + } array := value.Array("ZoneName") for i := range v {