From 7c0c0f8615753ed58595df535e8a537aa6470ac5 Mon Sep 17 00:00:00 2001 From: Luc Talatinian <102624213+lucix-aws@users.noreply.github.com> Date: Mon, 23 Oct 2023 18:33:42 -0400 Subject: [PATCH] breakfix: correct nullability of apigateway services (#2329) --- .../2f21357c3f8e45c98ce2c27bf18622f6.json | 25 + ...xportsNullabilityExceptionIntegration.java | 440 ----- .../AwsSdkGoV2ChangedNullability.java | 107 -- .../software.amazon.smithy.diff.DiffEvaluator | 1 - ...mithy.go.codegen.integration.GoIntegration | 1 - ...tsNullabilityExceptionIntegrationTest.java | 548 ------ service/amplifybackend/api_op_DeleteToken.go | 2 +- .../amplifybackend/api_op_ListBackendJobs.go | 2 +- .../api_op_RemoveAllBackends.go | 2 +- service/amplifybackend/deserializers.go | 14 +- .../amplifybackend/handwritten_paginators.go | 6 +- .../handwritten_paginators_test.go | 5 +- service/amplifybackend/serializers.go | 46 +- service/amplifybackend/types/types.go | 12 +- service/amplifybackend/validators.go | 6 + service/apigatewayv2/api_op_CreateApi.go | 10 +- .../apigatewayv2/api_op_CreateAuthorizer.go | 8 +- .../apigatewayv2/api_op_CreateDeployment.go | 2 +- .../apigatewayv2/api_op_CreateIntegration.go | 6 +- service/apigatewayv2/api_op_CreateRoute.go | 6 +- service/apigatewayv2/api_op_CreateStage.go | 6 +- service/apigatewayv2/api_op_ExportApi.go | 2 +- service/apigatewayv2/api_op_GetApi.go | 6 +- service/apigatewayv2/api_op_GetAuthorizer.go | 4 +- service/apigatewayv2/api_op_GetDeployment.go | 2 +- service/apigatewayv2/api_op_GetIntegration.go | 4 +- service/apigatewayv2/api_op_GetRoute.go | 4 +- service/apigatewayv2/api_op_GetStage.go | 4 +- service/apigatewayv2/api_op_ImportApi.go | 8 +- service/apigatewayv2/api_op_ReimportApi.go | 8 +- service/apigatewayv2/api_op_UpdateApi.go | 10 +- .../apigatewayv2/api_op_UpdateAuthorizer.go | 8 +- .../apigatewayv2/api_op_UpdateDeployment.go | 2 +- .../apigatewayv2/api_op_UpdateIntegration.go | 6 +- service/apigatewayv2/api_op_UpdateRoute.go | 6 +- service/apigatewayv2/api_op_UpdateStage.go | 6 +- service/apigatewayv2/deserializers.go | 124 +- service/apigatewayv2/serializers.go | 102 +- service/apigatewayv2/types/types.go | 38 +- service/greengrass/api_op_ResetDeployments.go | 2 +- service/greengrass/deserializers.go | 28 +- service/greengrass/serializers.go | 48 +- service/greengrass/types/types.go | 28 +- .../api_op_ClaimDevicesByClaimCode.go | 2 +- .../api_op_ListDeviceEvents.go | 2 +- .../api_op_ListDevices.go | 2 +- .../api_op_UpdateDeviceState.go | 2 +- .../iot1clickdevicesservice/deserializers.go | 8 +- .../iot1clickdevicesservice/serializers.go | 12 +- .../iot1clickdevicesservice/types/types.go | 4 +- service/kafka/api_op_CreateCluster.go | 2 +- .../api_op_DescribeConfigurationRevision.go | 4 +- service/kafka/api_op_DescribeReplicator.go | 2 +- .../kafka/api_op_ListClientVpcConnections.go | 12 +- service/kafka/api_op_ListClusterOperations.go | 12 +- .../kafka/api_op_ListClusterOperationsV2.go | 12 +- service/kafka/api_op_ListClusters.go | 12 +- service/kafka/api_op_ListClustersV2.go | 12 +- .../api_op_ListConfigurationRevisions.go | 12 +- service/kafka/api_op_ListConfigurations.go | 12 +- service/kafka/api_op_ListKafkaVersions.go | 12 +- service/kafka/api_op_ListNodes.go | 12 +- service/kafka/api_op_ListReplicators.go | 12 +- service/kafka/api_op_ListScramSecrets.go | 12 +- service/kafka/api_op_ListVpcConnections.go | 12 +- service/kafka/api_op_UpdateBrokerCount.go | 2 +- service/kafka/api_op_UpdateStorage.go | 2 +- service/kafka/deserializers.go | 74 +- service/kafka/serializers.go | 183 +- service/kafka/types/types.go | 78 +- service/kafka/validators.go | 45 + .../macie2/api_op_CreateClassificationJob.go | 4 +- .../api_op_CreateCustomDataIdentifier.go | 2 +- service/macie2/api_op_CreateFindingsFilter.go | 2 +- service/macie2/api_op_CreateInvitations.go | 2 +- service/macie2/api_op_DescribeBuckets.go | 12 +- .../api_op_DescribeClassificationJob.go | 4 +- ...pi_op_DescribeOrganizationConfiguration.go | 4 +- service/macie2/api_op_GetBucketStatistics.go | 12 +- .../macie2/api_op_GetCustomDataIdentifier.go | 4 +- service/macie2/api_op_GetFindingStatistics.go | 2 +- service/macie2/api_op_GetFindingsFilter.go | 2 +- service/macie2/api_op_GetInvitationsCount.go | 2 +- service/macie2/api_op_GetResourceProfile.go | 4 +- service/macie2/api_op_GetUsageStatistics.go | 12 +- service/macie2/api_op_ListAllowLists.go | 12 +- .../macie2/api_op_ListClassificationJobs.go | 12 +- .../api_op_ListCustomDataIdentifiers.go | 12 +- service/macie2/api_op_ListFindings.go | 12 +- service/macie2/api_op_ListFindingsFilters.go | 12 +- service/macie2/api_op_ListInvitations.go | 12 +- service/macie2/api_op_ListMembers.go | 12 +- .../api_op_ListOrganizationAdminAccounts.go | 12 +- .../api_op_ListResourceProfileDetections.go | 12 +- ...i_op_ListSensitivityInspectionTemplates.go | 12 +- service/macie2/api_op_SearchResources.go | 12 +- .../macie2/api_op_TestCustomDataIdentifier.go | 4 +- service/macie2/api_op_UpdateFindingsFilter.go | 2 +- .../api_op_UpdateOrganizationConfiguration.go | 2 +- .../macie2/api_op_UpdateResourceProfile.go | 2 +- service/macie2/deserializers.go | 238 +-- service/macie2/serializers.go | 140 +- service/macie2/types/types.go | 204 +-- service/macie2/validators.go | 12 + .../api_op_DeregisterGatewayInstance.go | 2 +- service/mediaconnect/api_op_ListBridges.go | 12 +- .../mediaconnect/api_op_ListEntitlements.go | 12 +- service/mediaconnect/api_op_ListFlows.go | 12 +- .../api_op_ListGatewayInstances.go | 12 +- service/mediaconnect/api_op_ListGateways.go | 12 +- service/mediaconnect/api_op_ListOfferings.go | 12 +- .../mediaconnect/api_op_ListReservations.go | 12 +- .../api_op_UpdateFlowMediaStream.go | 2 +- .../mediaconnect/api_op_UpdateFlowOutput.go | 10 +- .../mediaconnect/api_op_UpdateFlowSource.go | 14 +- service/mediaconnect/deserializers.go | 64 +- service/mediaconnect/serializers.go | 218 +-- service/mediaconnect/types/types.go | 124 +- service/mediaconnect/validators.go | 30 + service/mediaconvert/api_op_CreateJob.go | 2 +- .../mediaconvert/api_op_CreateJobTemplate.go | 2 +- .../mediaconvert/api_op_DescribeEndpoints.go | 12 +- .../mediaconvert/api_op_ListJobTemplates.go | 12 +- service/mediaconvert/api_op_ListJobs.go | 12 +- service/mediaconvert/api_op_ListPresets.go | 12 +- service/mediaconvert/api_op_ListQueues.go | 12 +- .../mediaconvert/api_op_UpdateJobTemplate.go | 2 +- service/mediaconvert/deserializers.go | 748 ++++---- service/mediaconvert/serializers.go | 1538 ++++++++--------- service/mediaconvert/types/types.go | 692 ++++---- service/mediaconvert/validators.go | 3 + service/medialive/api_op_DeleteChannel.go | 2 +- service/medialive/api_op_DeleteMultiplex.go | 4 +- service/medialive/api_op_DeleteReservation.go | 8 +- service/medialive/api_op_DescribeChannel.go | 2 +- .../api_op_DescribeInputDeviceThumbnail.go | 2 +- service/medialive/api_op_DescribeMultiplex.go | 4 +- service/medialive/api_op_DescribeOffering.go | 6 +- .../medialive/api_op_DescribeReservation.go | 8 +- service/medialive/api_op_DescribeSchedule.go | 12 +- service/medialive/api_op_ListChannels.go | 12 +- .../api_op_ListInputDeviceTransfers.go | 12 +- service/medialive/api_op_ListInputDevices.go | 12 +- .../api_op_ListInputSecurityGroups.go | 12 +- service/medialive/api_op_ListInputs.go | 12 +- .../medialive/api_op_ListMultiplexPrograms.go | 12 +- service/medialive/api_op_ListMultiplexes.go | 12 +- service/medialive/api_op_ListOfferings.go | 12 +- service/medialive/api_op_ListReservations.go | 12 +- service/medialive/api_op_PurchaseOffering.go | 2 +- service/medialive/api_op_StartChannel.go | 2 +- service/medialive/api_op_StartMultiplex.go | 4 +- service/medialive/api_op_StopChannel.go | 2 +- service/medialive/api_op_StopMultiplex.go | 4 +- service/medialive/deserializers.go | 614 +++---- service/medialive/serializers.go | 1062 ++++++------ service/medialive/types/types.go | 488 +++--- service/medialive/validators.go | 69 + .../api_op_CreateOriginEndpoint.go | 8 +- .../api_op_DescribeOriginEndpoint.go | 4 +- service/mediapackage/api_op_ListChannels.go | 12 +- .../mediapackage/api_op_ListHarvestJobs.go | 12 +- .../api_op_ListOriginEndpoints.go | 12 +- .../api_op_UpdateOriginEndpoint.go | 8 +- service/mediapackage/deserializers.go | 64 +- service/mediapackage/serializers.go | 124 +- service/mediapackage/types/types.go | 60 +- .../api_op_DescribePackagingGroup.go | 2 +- service/mediapackagevod/api_op_ListAssets.go | 12 +- .../api_op_ListPackagingConfigurations.go | 12 +- .../api_op_ListPackagingGroups.go | 12 +- .../api_op_UpdatePackagingGroup.go | 2 +- service/mediapackagevod/deserializers.go | 36 +- service/mediapackagevod/serializers.go | 72 +- service/mediapackagevod/types/types.go | 32 +- service/mq/api_op_CreateBroker.go | 4 +- service/mq/api_op_CreateUser.go | 4 +- service/mq/api_op_DescribeBroker.go | 4 +- .../mq/api_op_DescribeBrokerEngineTypes.go | 4 +- .../api_op_DescribeBrokerInstanceOptions.go | 4 +- service/mq/api_op_DescribeUser.go | 4 +- service/mq/api_op_ListBrokers.go | 12 +- .../mq/api_op_ListConfigurationRevisions.go | 4 +- service/mq/api_op_ListConfigurations.go | 4 +- service/mq/api_op_ListUsers.go | 4 +- service/mq/api_op_UpdateBroker.go | 4 +- service/mq/api_op_UpdateUser.go | 4 +- service/mq/deserializers.go | 44 +- service/mq/serializers.go | 84 +- service/mq/types/types.go | 32 +- service/mq/validators.go | 9 + .../pinpoint/api_op_UpdateEmailTemplate.go | 2 +- .../pinpoint/api_op_UpdateInAppTemplate.go | 2 +- service/pinpoint/api_op_UpdatePushTemplate.go | 2 +- service/pinpoint/api_op_UpdateSmsTemplate.go | 2 +- .../pinpoint/api_op_UpdateVoiceTemplate.go | 2 +- service/pinpoint/deserializers.go | 248 +-- service/pinpoint/serializers.go | 316 ++-- service/pinpoint/types/types.go | 314 ++-- service/pinpoint/validators.go | 15 + service/pinpointsmsvoice/deserializers.go | 2 +- service/pinpointsmsvoice/serializers.go | 4 +- service/pinpointsmsvoice/types/types.go | 4 +- ...pi_op_ListAssociatedRoute53HealthChecks.go | 12 +- .../api_op_ListClusters.go | 12 +- .../api_op_ListControlPanels.go | 12 +- .../api_op_ListRoutingControls.go | 12 +- .../api_op_ListSafetyRules.go | 12 +- .../deserializers.go | 12 +- .../serializers.go | 44 +- .../types/types.go | 20 +- .../validators.go | 18 + .../api_op_GetArchitectureRecommendations.go | 2 +- .../api_op_GetCellReadinessSummary.go | 12 +- .../api_op_GetReadinessCheckResourceStatus.go | 12 +- .../api_op_GetReadinessCheckStatus.go | 12 +- ...api_op_GetRecoveryGroupReadinessSummary.go | 12 +- .../api_op_ListCells.go | 12 +- .../api_op_ListCrossAccountAuthorizations.go | 12 +- .../api_op_ListReadinessChecks.go | 12 +- .../api_op_ListRecoveryGroups.go | 12 +- .../api_op_ListResourceSets.go | 12 +- .../api_op_ListRules.go | 12 +- .../route53recoveryreadiness/serializers.go | 44 +- service/schemas/api_op_CreateDiscoverer.go | 4 +- service/schemas/api_op_DescribeDiscoverer.go | 2 +- service/schemas/api_op_ListDiscoverers.go | 12 +- service/schemas/api_op_ListRegistries.go | 12 +- service/schemas/api_op_ListSchemaVersions.go | 12 +- service/schemas/api_op_ListSchemas.go | 12 +- service/schemas/api_op_SearchSchemas.go | 12 +- service/schemas/api_op_UpdateDiscoverer.go | 4 +- service/schemas/deserializers.go | 10 +- service/schemas/serializers.go | 28 +- service/schemas/types/types.go | 4 +- .../api_op_CreateApplication.go | 2 +- .../api_op_CreateApplicationVersion.go | 2 +- .../api_op_GetApplication.go | 2 +- .../api_op_ListApplicationDependencies.go | 12 +- .../api_op_ListApplicationVersions.go | 12 +- .../api_op_ListApplications.go | 12 +- .../api_op_UpdateApplication.go | 2 +- .../deserializers.go | 20 +- .../serializers.go | 16 +- .../types/types.go | 14 +- 245 files changed, 5336 insertions(+), 5887 deletions(-) create mode 100644 .changelog/2f21357c3f8e45c98ce2c27bf18622f6.json delete mode 100644 codegen/smithy-aws-go-codegen/src/main/java/software/amazon/smithy/aws/go/codegen/customization/ApiGatewayExportsNullabilityExceptionIntegration.java delete mode 100644 codegen/smithy-aws-go-codegen/src/main/java/software/amazon/smithy/aws/go/codegen/customization/AwsSdkGoV2ChangedNullability.java delete mode 100644 codegen/smithy-aws-go-codegen/src/main/resources/META-INF/services/software.amazon.smithy.diff.DiffEvaluator delete mode 100644 codegen/smithy-aws-go-codegen/src/test/java/software/amazon/smithy/aws/go/codegen/customization/ApiGatewayExportsNullabilityExceptionIntegrationTest.java diff --git a/.changelog/2f21357c3f8e45c98ce2c27bf18622f6.json b/.changelog/2f21357c3f8e45c98ce2c27bf18622f6.json new file mode 100644 index 00000000000..e1805c8e374 --- /dev/null +++ b/.changelog/2f21357c3f8e45c98ce2c27bf18622f6.json @@ -0,0 +1,25 @@ +{ + "id": "2f21357c-3f8e-45c9-8ce2-c27bf18622f6", + "type": "feature", + "description": "**BREAKFIX**: Correct nullability representation of APIGateway-based services.", + "modules": [ + "service/amplifybackend", + "service/apigatewayv2", + "service/greengrass", + "service/iot1clickdevicesservice", + "service/kafka", + "service/macie2", + "service/mediaconnect", + "service/mediaconvert", + "service/medialive", + "service/mediapackage", + "service/mediapackagevod", + "service/mq", + "service/pinpoint", + "service/pinpointsmsvoice", + "service/route53recoverycontrolconfig", + "service/route53recoveryreadiness", + "service/schemas", + "service/serverlessapplicationrepository" + ] +} \ No newline at end of file diff --git a/codegen/smithy-aws-go-codegen/src/main/java/software/amazon/smithy/aws/go/codegen/customization/ApiGatewayExportsNullabilityExceptionIntegration.java b/codegen/smithy-aws-go-codegen/src/main/java/software/amazon/smithy/aws/go/codegen/customization/ApiGatewayExportsNullabilityExceptionIntegration.java deleted file mode 100644 index f3577f3cf9d..00000000000 --- a/codegen/smithy-aws-go-codegen/src/main/java/software/amazon/smithy/aws/go/codegen/customization/ApiGatewayExportsNullabilityExceptionIntegration.java +++ /dev/null @@ -1,440 +0,0 @@ -/* - * Copyright 2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"). - * You may not use this file except in compliance with the License. - * A copy of the License is located at - * - * http://aws.amazon.com/apache2.0 - * - * or in the "license" file accompanying this file. This file 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. - */ - -package software.amazon.smithy.aws.go.codegen.customization; - -import java.nio.file.Files; -import java.nio.file.Path; -import java.nio.file.Paths; -import java.util.ArrayList; -import java.util.Collections; -import java.util.HashMap; -import java.util.HashSet; -import java.util.List; -import java.util.Map; -import java.util.Set; -import java.util.logging.Logger; -import java.util.stream.Collectors; -import software.amazon.smithy.aws.traits.ServiceTrait; -import software.amazon.smithy.codegen.core.CodegenException; -import software.amazon.smithy.diff.ModelDiff; -import software.amazon.smithy.go.codegen.AddOperationShapes; -import software.amazon.smithy.go.codegen.GoSettings; -import software.amazon.smithy.go.codegen.Synthetic; -import software.amazon.smithy.go.codegen.integration.GoIntegration; -import software.amazon.smithy.model.Model; -import software.amazon.smithy.model.loader.ModelAssembler; -import software.amazon.smithy.model.node.ArrayNode; -import software.amazon.smithy.model.node.BooleanNode; -import software.amazon.smithy.model.node.Node; -import software.amazon.smithy.model.node.NumberNode; -import software.amazon.smithy.model.node.ObjectNode; -import software.amazon.smithy.model.node.StringNode; -import software.amazon.smithy.model.shapes.BooleanShape; -import software.amazon.smithy.model.shapes.MemberShape; -import software.amazon.smithy.model.shapes.NumberShape; -import software.amazon.smithy.model.shapes.Shape; -import software.amazon.smithy.model.shapes.ShapeId; -import software.amazon.smithy.model.shapes.ToShapeId; -import software.amazon.smithy.model.traits.BoxTrait; -import software.amazon.smithy.model.traits.DefaultTrait; -import software.amazon.smithy.model.transform.ModelTransformer; -import software.amazon.smithy.model.validation.ValidationEvent; -import software.amazon.smithy.utils.IoUtils; -import software.amazon.smithy.utils.ListUtils; -import software.amazon.smithy.utils.SetUtils; -import software.amazon.smithy.utils.SmithyInternalApi; - -/** - * Due to internal model fixes for API Gateway (APIGW) exports, certain shapes - * and members that target those shapes that used to have defaults became - * nullable. In order to not break the existing Go v2 client API nullability, - * this customization adds back default values for affected shapes. - * - * Nullability exceptions are root shapes captured in - * `APIGW_exports_nullability_exceptions.json`. - * - * Definitions: - * - “defaulted” shapes are shapes that have the default trait applied. - * - “non-defaulted” shapes are shapes that have the default trait applied. - * - “Existing” shapes are shapes that are present in a previous version of a - * model - * - “Added” shapes are shapes that are new in a current version of a model, not - * present in a previous version of a model - * - * Shape scenarios we need to be aware of when defining the customization: - * - * - Existing “defaulted” root boolean or number shapes MUST be backfilled with - * a default trait. - * - TODO(APIGW): remove after model fixes - * - Added root boolean or number shapes with default traits MUST be backfilled - * with a default trait. - * - This is due to not having context of the previous models: there is no way - * to tell if the added root shape will be affected by the C2J model fixes - * - TODO(APIGW): will be true after model fixes - * - Added root boolean or number shapes with default traits MUST NOT be - * backfilled with a default trait. - * - Added root boolean or number shapes without default traits MUST NOT be - * backfilled with a default trait. - * - Existing member shapes that target a “defaulted” root shape MUST be - * backfilled with a default trait. - * - Existing member shapes that target a “non-defaulted” root shape MUST NOT be - * backfilled with a default trait. - * - Existing member shapes that change targets from a “defaulted” root shape to - * a “non-defaulted” root shape will throw an error. - * - TODO(APIGW): provide a green path forward? - * - Existing member shapes that change targets from a “non-defaulted” root - * shape to a “defaulted” root shape will throw an error. - * - TODO(APIGW): provide a green path forward? - * - Added member shapes that target a “defaulted” root shape MUST be backfilled - * with a default trait. - * - Added member shapes that target a “non-defaulted” root shape MUST NOT be - * backfilled with a default trait. - */ -@SmithyInternalApi -public class ApiGatewayExportsNullabilityExceptionIntegration implements GoIntegration { - static final String NULLABILITY_EXCEPTIONS_FILE = "APIGW_exports_nullability_exceptions.json"; - private static final Logger LOGGER = Logger - .getLogger(ApiGatewayExportsNullabilityExceptionIntegration.class.getName()); - private static final Set APIGW_NULLABILITY_EXCEPTION_SERVICES = SetUtils.of( - // APIGW services - ShapeId.from("com.amazonaws.greengrass#Greengrass"), - ShapeId.from("com.amazonaws.amplifybackend#AmplifyBackend"), - ShapeId.from("com.amazonaws.mediaconnect#MediaConnect"), - ShapeId.from("com.amazonaws.route53recoverycontrolconfig#Route53RecoveryControlConfig"), - ShapeId.from("com.amazonaws.pinpoint#Pinpoint"), - ShapeId.from("com.amazonaws.apigatewayv2#ApiGatewayV2"), - ShapeId.from("com.amazonaws.mediaconvert#MediaConvert"), - ShapeId.from("com.amazonaws.medialive#MediaLive"), - ShapeId.from("com.amazonaws.macie2#Macie2"), - ShapeId.from("com.amazonaws.mediapackage#MediaPackage"), - ShapeId.from("com.amazonaws.apigatewaymanagementapi#ApiGatewayManagementApi"), - ShapeId.from("com.amazonaws.kafka#Kafka"), - ShapeId.from("com.amazonaws.mediapackagevod#MediaPackageVod"), - ShapeId.from("com.amazonaws.mq#mq"), - ShapeId.from("com.amazonaws.iot1clickdevicesservice#IoT1ClickDevicesService"), - ShapeId.from("com.amazonaws.serverlessapplicationrepository#ServerlessApplicationRepository"), - ShapeId.from("com.amazonaws.schemas#schemas"), - ShapeId.from("com.amazonaws.pinpointsmsvoice#PinpointSMSVoice"), - ShapeId.from("com.amazonaws.route53recoveryreadiness#Route53RecoveryReadiness"), - // APIGW services migrated to Smithy - ShapeId.from("com.amazonaws.dataexchange#DataExchange"), - ShapeId.from("com.amazonaws.kafkaconnect#KafkaConnect"), - ShapeId.from("com.amazonaws.mediatailor#MediaTailor")); - - @Override - public Model preprocessModel(Model model, GoSettings settings) { - ShapeId service = settings.getService(); - if (!APIGW_NULLABILITY_EXCEPTION_SERVICES.contains(service)) { - return model; - } - Set nullabilityExceptions = getNullabilityExceptions(service); - Model previousModel = handleApiGateWayExportsNullabilityExceptions( - getPreviousModel(service, model), service, nullabilityExceptions, true); - model = handleApiGateWayExportsNullabilityExceptions( - model, service, nullabilityExceptions, true); - List awsSdkGoV2ChangedNullabilityEvents = getAwsSdkGoV2ChangedNullabilityEvents( - previousModel, - model); - if (!awsSdkGoV2ChangedNullabilityEvents.isEmpty()) { - StringBuilder sb = new StringBuilder().append("AwsSdkGoV2ChangedNullability Validation events found:\n"); - for (ValidationEvent e : awsSdkGoV2ChangedNullabilityEvents) { - sb.append(" " + e.toString() + "\n"); - } - throw new CodegenException(sb.toString()); - } - validateNullabilityExceptions(nullabilityExceptions, model, service); - return model; - } - - static Set getNullabilityExceptions(ToShapeId service) { - String nullabilityExceptionsString = IoUtils.readUtf8Resource( - ApiGatewayExportsNullabilityExceptionIntegration.class, - NULLABILITY_EXCEPTIONS_FILE); - Set nullabilityExceptions = Node - .parseJsonWithComments(nullabilityExceptionsString) - .expectObjectNode() - .expectArrayMember(service.toShapeId().toString()) - .getElementsAs((StringNode s) -> s.expectShapeId()) - .stream() - .collect(Collectors.toSet()); - return nullabilityExceptions; - } - - protected Model getPreviousModel(ShapeId service, Model model) { - LOGGER.info("Getting Previous Model for: " + service.toString()); - String DIFF_WORKTREE_BRANCH = "__nullability-worktree-" + service; - Path root = getRootPath(); - - String sdkId = model.getServiceShapesWithTrait(ServiceTrait.class).iterator().next() - .expectTrait(ServiceTrait.class).getSdkId() - .replace(" ", "-") - .toLowerCase(); - - String sha = getPreviousModelSha(root, sdkId, service); - LOGGER.info("Previous model SHA for " + service.toString() + ": " + sha); - - Path worktreePath = Paths.get("/tmp").resolve(DIFF_WORKTREE_BRANCH); - LOGGER.info("Git Worktree Path for " + service.toString() + ": " + worktreePath); - - String modelPath = worktreePath + "/codegen/sdk-codegen/aws-models/" + sdkId + ".json"; - LOGGER.info("Git Worktree Model Path for " + service.toString() + ": " + modelPath); - if (!Files.isDirectory(worktreePath)) { - // First, prune old work trees - exec(ListUtils.of("git", "worktree", "prune"), root, "Error pruning worktrees"); - // Now create the worktree using a dedicated branch. The branch allows other - // worktrees to checkout the same branch or SHA without conflicting. - exec(ListUtils.of("git", "worktree", "add", "--quiet", "--force", "-B", DIFF_WORKTREE_BRANCH, - worktreePath.toString(), sha), - root, "Unable to create git worktree"); - } else { - // Checkout the right model version based on commit in the worktree. - exec(ListUtils.of("git", "checkout", "--quiet", sha, "--", modelPath), - worktreePath, "Unable to checkout " + modelPath + "at" + sha + " in git worktree"); - } - Model previousModel = new ModelAssembler() - .addImport(modelPath) - .putProperty(ModelAssembler.ALLOW_UNKNOWN_TRAITS, true) - .assemble() - .unwrap(); - return AddOperationShapes.execute(previousModel, service); - } - - /** - * TODO(APIGW): there must be a better way to resolve the correct path... - */ - private Path getRootPath() { - Path root = Paths.get(System.getProperty("user.dir")); - if (root.getFileName().endsWith("smithy-aws-go-codegen")) { - root = root.getParent(); - } - if (root.getFileName().equals("codegen")) { - throw new CodegenException("Expected codegen/ for file operations"); - } - return root; - } - - private static String getPreviousModelSha(Path root, String sdkId, ShapeId service) { - // Determine the SHA of the previous model - String modelPath = root.resolve("sdk-codegen/aws-models/" + sdkId + ".json").toString(); - LOGGER.info("Repository Model Path for " + service.toString() + ": " + modelPath); - List args = ListUtils.of("git", "log", "-1", "--skip", "1", - "--pretty=format:%h", - modelPath); - return exec(args, root, "Invalid git revision").trim(); - } - - private static String exec(List list, Path root, String errorPrefix) { - StringBuilder output = new StringBuilder(); - int code = IoUtils.runCommand(list, root, output, Collections.emptyMap()); - if (code != 0) { - throw new CodegenException(errorPrefix + ": " + output); - } - return output.toString(); - } - - private static List getAwsSdkGoV2ChangedNullabilityEvents( - Model previousModel, - Model currentModel) { - return ModelDiff.compare(previousModel, currentModel) - .stream() - .filter(e -> e.getId().equals(AwsSdkGoV2ChangedNullability.class.getSimpleName())) - .collect(Collectors.toList()); - } - - private static Model handleApiGateWayExportsNullabilityExceptions( - Model model, - ShapeId service, - Set nullabilityExceptions, - boolean relaxed) { - LOGGER.info("Handling APIGW exports nullability exceptions for service: " + service.toString()); - - // Knowledge index - Set shapesToReplace = new HashSet<>(); - Set numberShapes = model.toSet(NumberShape.class); - - // Patch default traits to nullability exceptions - for (ShapeId shapeId : nullabilityExceptions) { - if (relaxed && !model.getShape(shapeId).isPresent()) { - LOGGER.warning("Shape `" + shapeId + "` nullability exception is not present in the model"); - continue; - } - Shape shape = model.expectShape(shapeId); - if (shape.isBooleanShape()) { - DefaultTrait patchedDefaultTrait = new DefaultTrait(BooleanNode.from(false)); - shapesToReplace.add(Shape.shapeToBuilder(shape) - .removeTrait(BoxTrait.ID) - .addTrait(patchedDefaultTrait) - .build()); - } else if (numberShapes.contains(shape)) { - DefaultTrait patchedDefaultTrait = new DefaultTrait(NumberNode.from(0L)); - shapesToReplace.add(Shape.shapeToBuilder(shape) - .removeTrait(BoxTrait.ID) - .addTrait(patchedDefaultTrait) - .build()); - } else { - throw new CodegenException( - "Defaulted root shapes can only be boolean or number shapes, but `" - + shapeId + "` of type: " + shape.getType()); - } - } - - // Patch default traits to members that target nullability exceptions - for (MemberShape shape : model.toSet(MemberShape.class)) { - if (!nullabilityExceptions.contains(shape.getTarget())) { - continue; - } - Shape targetShape = model.expectShape(shape.getTarget()); - if (targetShape.isBooleanShape()) { - DefaultTrait patchedDefaultTrait = new DefaultTrait(BooleanNode.from(false)); - shapesToReplace.add(Shape.shapeToBuilder(shape) - .removeTrait(BoxTrait.ID) - .addTrait(patchedDefaultTrait) - .build()); - } else if (numberShapes.contains(targetShape)) { - DefaultTrait patchedDefaultTrait = new DefaultTrait(NumberNode.from(0L)); - shapesToReplace.add(Shape.shapeToBuilder(shape) - .removeTrait(BoxTrait.ID) - .addTrait(patchedDefaultTrait) - .build()); - } else { - throw new CodegenException( - "Member shapes can only target boolean or number shapes in nullabity exceptions, but `" - + targetShape.toShapeId() + "` is of type: " + targetShape.getType()); - } - } - - return ModelTransformer.create().replaceShapes(model, shapesToReplace); - } - - private static void validateNullabilityExceptions(Set nullabilityExceptions, Model model, ShapeId service) { - Map nullabilityExceptionMap = new HashMap<>(); - for (ShapeId shapeId : nullabilityExceptions) { - if (model.getShape(shapeId).isPresent()) { - nullabilityExceptionMap.put(shapeId, model.expectShape(shapeId)); - } else { - LOGGER.warning("Shape `" + shapeId + "` nullability exception is not present in the model"); - } - } - - for (BooleanShape shape : model.getBooleanShapesWithTrait(DefaultTrait.class)) { - ShapeId shapeId = shape.toShapeId(); - String namespace = shapeId.getNamespace(); - if (!namespace.equals(service.getNamespace()) && !namespace.equals(Synthetic.ID.getNamespace())) { - continue; - } - if (!nullabilityExceptions.contains(shapeId)) { - throw new CodegenException("Shape `" + shapeId + "` should be in nullability exceptions"); - } - } - - for (NumberShape shape : model.toSet(NumberShape.class).stream() - .filter(s -> s.hasTrait(DefaultTrait.class)) - .collect(Collectors.toList())) { - ShapeId shapeId = shape.toShapeId(); - String namespace = shapeId.getNamespace(); - if (!namespace.equals(service.getNamespace()) && !namespace.equals(Synthetic.ID.getNamespace())) { - continue; - } - if (!nullabilityExceptions.contains(shapeId)) { - throw new CodegenException("Shape `" + shapeId + "` should be in nullability exceptions"); - } - } - - // Existing “defaulted” root boolean or number shapes MUST be backfilled with a - // default trait. - for (Map.Entry entry : nullabilityExceptionMap.entrySet()) { - ShapeId shapeId = entry.getKey(); - Shape shape = entry.getValue(); - DefaultTrait trait = shape.expectTrait(DefaultTrait.class); - if (shape.isBooleanShape()) { - if (trait.toNode().expectBooleanNode().getValue() != false) { - throw new CodegenException( - "Expected nullability exception `" + shapeId + "` to have a default value of false"); - } - } else { // NumberShape - if (!trait.toNode().expectNumberNode().getValue().equals(0L)) { - throw new CodegenException( - "Expected nullability exception `" + shapeId + "` to have a default value of 0"); - } - } - } - // Existing member shapes that target a “defaulted” root shape MUST be - // backfilled with a default trait. - for (MemberShape shape : model.getMemberShapes()) { - ShapeId targetShapeId = shape.getTarget(); - if (!nullabilityExceptions.contains(targetShapeId)) { - continue; - } - if (shape.toShapeId().getName().startsWith("__listOf") - || shape.toShapeId().getName().startsWith("MapOf")) { - continue; - } - DefaultTrait trait = shape.expectTrait(DefaultTrait.class); - DefaultTrait targetTrait = nullabilityExceptionMap.get(targetShapeId).expectTrait(DefaultTrait.class); - if (!trait.equals(targetTrait)) { - throw new CodegenException( - "Expected member shape `" + shape.toShapeId() - + "` to have the same default value as the nullability exception `" + shape.getTarget() - + "`"); - } - } - } - - /** - * TODO(APIGW): remove after models are fixed - */ - private static void writeNullabilityExceptions(ToShapeId service, Model model) { - String ROOT_NULLABILITY_EXCEPTIONS_FILE = "root_" + service.toShapeId() + "_" + NULLABILITY_EXCEPTIONS_FILE; - ObjectNode nullabilityExceptions = Node.objectNode(); - List shapesToWrite = new ArrayList<>(); - Set booleanShapes = model.getBooleanShapes(); - for (BooleanShape shape : booleanShapes) { - if (!shape.toShapeId().getNamespace().equals("smithy.go.synthetic") - && !shape.toShapeId().getNamespace().equals(service.toShapeId().getNamespace())) { - continue; - } - if (shape.hasTrait(DefaultTrait.class)) { - shapesToWrite.add(shape); - } - } - Set numberShapes = model.toSet(NumberShape.class); - for (NumberShape shape : numberShapes) { - if (!shape.toShapeId().getNamespace().equals("smithy.go.synthetic") - && !shape.toShapeId().getNamespace().equals(service.toShapeId().getNamespace())) { - continue; - } - if (shape.hasTrait(DefaultTrait.class)) { - shapesToWrite.add(shape); - } - } - shapesToWrite.sort((s1, s2) -> s1.toShapeId().compareTo(s2.toShapeId())); - ArrayNode arrayNode = Node.arrayNode(); - for (Shape shape : shapesToWrite) { - arrayNode = arrayNode.withValue(StringNode.from(shape.toShapeId().toString())); - } - nullabilityExceptions = nullabilityExceptions - .withMember(service.toShapeId().toString(), arrayNode); - Path writePath = Paths.get("src/main/resources/software/amazon/smithy/aws/go/codegen/customization", - ROOT_NULLABILITY_EXCEPTIONS_FILE); - try { - LOGGER.info("Writing nullability exceptions for " + service.toShapeId().toString() + ": " - + writePath.toAbsolutePath()); - Files.writeString(writePath, Node.prettyPrintJson(nullabilityExceptions)); - } catch (Exception e) { - throw new CodegenException(e); - } - } -} diff --git a/codegen/smithy-aws-go-codegen/src/main/java/software/amazon/smithy/aws/go/codegen/customization/AwsSdkGoV2ChangedNullability.java b/codegen/smithy-aws-go-codegen/src/main/java/software/amazon/smithy/aws/go/codegen/customization/AwsSdkGoV2ChangedNullability.java deleted file mode 100644 index fd750ccdde3..00000000000 --- a/codegen/smithy-aws-go-codegen/src/main/java/software/amazon/smithy/aws/go/codegen/customization/AwsSdkGoV2ChangedNullability.java +++ /dev/null @@ -1,107 +0,0 @@ -/* - * Copyright 2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"). - * You may not use this file except in compliance with the License. - * A copy of the License is located at - * - * http://aws.amazon.com/apache2.0 - * - * or in the "license" file accompanying this file. This file 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. - */ - -package software.amazon.smithy.aws.go.codegen.customization; - -import static software.amazon.smithy.aws.go.codegen.customization.ApiGatewayExportsNullabilityExceptionIntegration.getNullabilityExceptions; - -import java.util.ArrayList; -import java.util.List; -import java.util.Set; -import software.amazon.smithy.aws.traits.ServiceTrait; -import software.amazon.smithy.diff.Differences; -import software.amazon.smithy.diff.evaluators.AbstractDiffEvaluator; -import software.amazon.smithy.go.codegen.knowledge.GoPointableIndex; -import software.amazon.smithy.model.Model; -import software.amazon.smithy.model.knowledge.NullableIndex; -import software.amazon.smithy.model.shapes.NumberShape; -import software.amazon.smithy.model.shapes.ShapeId; -import software.amazon.smithy.model.traits.DefaultTrait; -import software.amazon.smithy.model.validation.ValidationEvent; - -/** - * An aws-sdk-go-v2 specific ChangedNullability diff evaluator. - * - * The following conditions will create events: - * - Added shapes with a default trait that are not in the nullability - * exceptions. - * - TODO(APIGW): remove after model fixes - * - Any changed shape that differs in nullability in GoPointableIndex and - * NullableIndex - */ -public class AwsSdkGoV2ChangedNullability extends AbstractDiffEvaluator { - @Override - public List evaluate(Differences differences) { - Model oldModel = differences.getOldModel(); - GoPointableIndex oldGoPointableIndex = GoPointableIndex.of(oldModel); - NullableIndex oldNullableIndex = NullableIndex.of(oldModel); - - Model newModel = differences.getNewModel(); - GoPointableIndex newGoPointableIndex = GoPointableIndex.of(newModel); - NullableIndex newNullableIndex = NullableIndex.of(newModel); - Set newNumberShapes = newModel.toSet(NumberShape.class); - - List events = new ArrayList(); - - ShapeId service = newModel - .getServiceShapesWithTrait(ServiceTrait.class) - .iterator().next() - .toShapeId(); - Set nullabilityExceptions = getNullabilityExceptions(service); - - differences.addedShapes().forEach(shape -> { - // TODO(APIGW): remove after model fixes - if (shape.hasTrait(DefaultTrait.class) - && (shape.isBooleanShape() || newNumberShapes.contains(shape)) - && !nullabilityExceptions.contains(shape.toShapeId())) { - events.add(error(shape, "Shape must be added to the APIGW exports nullability exceptions")); - } - }); - - differences.changedShapes().forEach(changedShape -> { - ShapeId shape = changedShape.getShapeId(); - if (oldGoPointableIndex.isDereferencable(shape) != newGoPointableIndex.isDereferencable(shape)) { - events.add(error(changedShape.getNewShape(), "Shape changed GoPointableIndex::isDereferencable()")); - } - if (oldGoPointableIndex.isNillable(shape) != newGoPointableIndex.isNillable(shape)) { - events.add(error(changedShape.getNewShape(), "Shape changed GoPointableIndex::isNillable()")); - } - if (oldGoPointableIndex.isPointable(shape) != newGoPointableIndex.isPointable(shape)) { - events.add(error(changedShape.getNewShape(), "Shape changed GoPointableIndex::isPointable()")); - } - if (oldNullableIndex.isNullable(shape) != newNullableIndex.isNullable(shape)) { - events.add(error(changedShape.getNewShape(), "Shape changed NullableIndex::isNullable()")); - } - if (changedShape.getOldShape().isMemberShape() && changedShape.getNewShape().isMemberShape()) { - boolean isOldMemberNullable = oldNullableIndex.isMemberNullable( - changedShape.getOldShape().asMemberShape().get(), - NullableIndex.CheckMode.CLIENT_ZERO_VALUE_V1_NO_INPUT); - boolean isNewMemberNullable = newNullableIndex.isMemberNullable( - changedShape.getNewShape().asMemberShape().get(), - NullableIndex.CheckMode.CLIENT_ZERO_VALUE_V1_NO_INPUT); - if (isOldMemberNullable != isNewMemberNullable) { - events.add(error(changedShape.getNewShape(), "Shape changed NullableIndex::isMemberNullable()")); - } - } - if (changedShape.getOldShape().isMemberShape() && !changedShape.getNewShape().isMemberShape()) { - events.add(error(changedShape.getNewShape(), "Shape is not a member shape")); - } - if (!changedShape.getOldShape().isMemberShape() && changedShape.getNewShape().isMemberShape()) { - events.add(error(changedShape.getNewShape(), "Shape should not be a member shape")); - } - }); - return events; - } -} diff --git a/codegen/smithy-aws-go-codegen/src/main/resources/META-INF/services/software.amazon.smithy.diff.DiffEvaluator b/codegen/smithy-aws-go-codegen/src/main/resources/META-INF/services/software.amazon.smithy.diff.DiffEvaluator deleted file mode 100644 index ec49addb4c2..00000000000 --- a/codegen/smithy-aws-go-codegen/src/main/resources/META-INF/services/software.amazon.smithy.diff.DiffEvaluator +++ /dev/null @@ -1 +0,0 @@ -software.amazon.smithy.aws.go.codegen.customization.AwsSdkGoV2ChangedNullability diff --git a/codegen/smithy-aws-go-codegen/src/main/resources/META-INF/services/software.amazon.smithy.go.codegen.integration.GoIntegration b/codegen/smithy-aws-go-codegen/src/main/resources/META-INF/services/software.amazon.smithy.go.codegen.integration.GoIntegration index bb6a1a79637..7633740e9b2 100644 --- a/codegen/smithy-aws-go-codegen/src/main/resources/META-INF/services/software.amazon.smithy.go.codegen.integration.GoIntegration +++ b/codegen/smithy-aws-go-codegen/src/main/resources/META-INF/services/software.amazon.smithy.go.codegen.integration.GoIntegration @@ -47,7 +47,6 @@ software.amazon.smithy.aws.go.codegen.customization.AdjustAwsRestJsonContentType software.amazon.smithy.aws.go.codegen.customization.SQSValidateMessageChecksum software.amazon.smithy.aws.go.codegen.EndpointDiscoveryGenerator software.amazon.smithy.aws.go.codegen.customization.S3100Continue -software.amazon.smithy.aws.go.codegen.customization.ApiGatewayExportsNullabilityExceptionIntegration software.amazon.smithy.aws.go.codegen.customization.LambdaRecursionDetection software.amazon.smithy.aws.go.codegen.customization.SQSCustomizations software.amazon.smithy.aws.go.codegen.AwsEndpointResolverInitializerGenerator diff --git a/codegen/smithy-aws-go-codegen/src/test/java/software/amazon/smithy/aws/go/codegen/customization/ApiGatewayExportsNullabilityExceptionIntegrationTest.java b/codegen/smithy-aws-go-codegen/src/test/java/software/amazon/smithy/aws/go/codegen/customization/ApiGatewayExportsNullabilityExceptionIntegrationTest.java deleted file mode 100644 index 6c8222d1007..00000000000 --- a/codegen/smithy-aws-go-codegen/src/test/java/software/amazon/smithy/aws/go/codegen/customization/ApiGatewayExportsNullabilityExceptionIntegrationTest.java +++ /dev/null @@ -1,548 +0,0 @@ -/* - * Copyright 2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"). - * You may not use this file except in compliance with the License. - * A copy of the License is located at - * - * http://aws.amazon.com/apache2.0 - * - * or in the "license" file accompanying this file. This file 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. - */ - -package software.amazon.smithy.aws.go.codegen.customization; - -import static org.junit.jupiter.api.Assertions.assertEquals; -import static org.junit.jupiter.api.Assertions.assertFalse; -import static org.junit.jupiter.api.Assertions.assertThrows; -import static org.junit.jupiter.api.Assertions.assertTrue; -import static software.amazon.smithy.aws.go.codegen.customization.ApiGatewayExportsNullabilityExceptionIntegration.NULLABILITY_EXCEPTIONS_FILE; - -import java.net.URL; -import java.nio.file.Path; -import java.util.ArrayList; -import java.util.List; -import java.util.Optional; -import java.util.Set; -import java.util.logging.Logger; -import java.util.stream.Collectors; -import java.util.stream.Stream; -import org.junit.jupiter.api.Test; -import org.junit.jupiter.params.ParameterizedTest; -import org.junit.jupiter.params.provider.Arguments; -import org.junit.jupiter.params.provider.MethodSource; -import software.amazon.smithy.codegen.core.CodegenException; -import software.amazon.smithy.go.codegen.AddOperationShapes; -import software.amazon.smithy.go.codegen.GoSettings; -import software.amazon.smithy.go.codegen.knowledge.GoPointableIndex; -import software.amazon.smithy.model.Model; -import software.amazon.smithy.model.loader.ModelAssembler; -import software.amazon.smithy.model.node.Node; -import software.amazon.smithy.model.node.StringNode; -import software.amazon.smithy.model.shapes.MemberShape; -import software.amazon.smithy.model.shapes.Shape; -import software.amazon.smithy.model.shapes.ShapeId; -import software.amazon.smithy.model.shapes.StructureShape; -import software.amazon.smithy.model.traits.DefaultTrait; -import software.amazon.smithy.model.transform.ModelTransformer; -import software.amazon.smithy.utils.IoUtils; - -public class ApiGatewayExportsNullabilityExceptionIntegrationTest { - private static final Logger LOGGER = Logger - .getLogger(ApiGatewayExportsNullabilityExceptionIntegrationTest.class.getName()); - private static final String PATH_PREFIX = "../sdk-codegen/aws-models/"; - - @Test - public void test_default_root_shapes() { - ApiGatewayExportsNullabilityExceptionIntegration integration = new ApiGatewayExportsNullabilityExceptionIntegration(); - GoSettings settings = new GoSettings(); - URL modelUrl = getClass().getClassLoader().getResource("APIGW_exports_cases/default.smithy"); - Model model = new ModelAssembler() - .addImport(modelUrl) - .putProperty(ModelAssembler.ALLOW_UNKNOWN_TRAITS, true) - .assemble() - .unwrap(); - ShapeId service = model.getServiceShapes().stream().findFirst().get().getId(); - settings.setService(service); - model = AddOperationShapes.execute(model, settings.getService()); - model = integration.preprocessModel(model, settings); - assertEquals(false, model.expectShape(ShapeId.from("com.amazonaws.greengrass#__boolean")) - .expectTrait(DefaultTrait.class) - .toNode() - .expectBooleanNode() - .getValue()); - assertEquals(0L, model.expectShape(ShapeId.from("com.amazonaws.greengrass#__integer")) - .expectTrait(DefaultTrait.class) - .toNode() - .expectNumberNode() - .getValue()); - } - - @Test - public void test_nondefault_root_shapes() { - ApiGatewayExportsNullabilityExceptionIntegration integration = new ApiGatewayExportsNullabilityExceptionIntegration(); - GoSettings settings = new GoSettings(); - URL modelUrl = getClass().getClassLoader().getResource("APIGW_exports_cases/nondefault.smithy"); - Model model = new ModelAssembler() - .addImport(modelUrl) - .putProperty(ModelAssembler.ALLOW_UNKNOWN_TRAITS, true) - .assemble() - .unwrap(); - ShapeId service = model.getServiceShapes().stream().findFirst().get().getId(); - settings.setService(service); - model = AddOperationShapes.execute(model, settings.getService()); - model = integration.preprocessModel(model, settings); - assertTrue(model.expectShape(ShapeId.from("com.amazonaws.greengrass#NonTargetBoolean")) - .getTrait(DefaultTrait.class) - .isEmpty()); - assertTrue(model.expectShape(ShapeId.from("com.amazonaws.greengrass#NonTargetInteger")) - .getTrait(DefaultTrait.class) - .isEmpty()); - } - - @Test - public void test_existing_members_target_default_root_shapes() { - ApiGatewayExportsNullabilityExceptionIntegration integration = new ApiGatewayExportsNullabilityExceptionIntegration(); - GoSettings settings = new GoSettings(); - URL modelUrl = getClass().getClassLoader() - .getResource("APIGW_exports_cases/existing_target_default.smithy"); - Model model = new ModelAssembler() - .addImport(modelUrl) - .putProperty(ModelAssembler.ALLOW_UNKNOWN_TRAITS, true) - .assemble() - .unwrap(); - ShapeId service = model.getServiceShapes().stream().findFirst().get().getId(); - settings.setService(service); - model = AddOperationShapes.execute(model, settings.getService()); - model = integration.preprocessModel(model, settings); - assertEquals(0L, model.expectShape(ShapeId.from("com.amazonaws.greengrass#TestStructure$integerMember")) - .expectTrait(DefaultTrait.class) - .toNode() - .expectNumberNode() - .getValue()); - assertEquals(false, - model.expectShape(ShapeId.from("com.amazonaws.greengrass#TestStructure$booleanMember")) - .expectTrait(DefaultTrait.class) - .toNode() - .expectBooleanNode() - .getValue()); - } - - @Test - public void test_existing_members_target_nondefault_root_shapes() { - ApiGatewayExportsNullabilityExceptionIntegration integration = new ApiGatewayExportsNullabilityExceptionIntegration(); - GoSettings settings = new GoSettings(); - URL modelUrl = getClass().getClassLoader() - .getResource("APIGW_exports_cases/existing_target_nondefault.smithy"); - Model model = new ModelAssembler() - .addImport(modelUrl) - .putProperty(ModelAssembler.ALLOW_UNKNOWN_TRAITS, true) - .assemble() - .unwrap(); - ShapeId service = model.getServiceShapes().stream().findFirst().get().getId(); - settings.setService(service); - model = AddOperationShapes.execute(model, settings.getService()); - model = integration.preprocessModel(model, settings); - assertTrue(model.expectShape(ShapeId.from("com.amazonaws.greengrass#TestStructure$integerMember")) - .getTrait(DefaultTrait.class) - .isEmpty()); - assertTrue(model.expectShape(ShapeId.from("com.amazonaws.greengrass#TestStructure$booleanMember")) - .getTrait(DefaultTrait.class) - .isEmpty()); - } - - private static ApiGatewayExportsNullabilityExceptionIntegration overridePreviousModel(String modelPath) { - class MockPreviousModelApiGatewayExportsNullabilityExceptionIntegration - extends ApiGatewayExportsNullabilityExceptionIntegration { - @Override - protected Model getPreviousModel(ShapeId service, Model model) { - URL beforeModelUrl = ApiGatewayExportsNullabilityExceptionIntegrationTest.class - .getClassLoader() - .getResource(modelPath); - Model previousModel = new ModelAssembler() - .addImport(beforeModelUrl) - .putProperty(ModelAssembler.ALLOW_UNKNOWN_TRAITS, true) - .assemble() - .unwrap(); - return AddOperationShapes.execute(previousModel, service); - } - } - return new MockPreviousModelApiGatewayExportsNullabilityExceptionIntegration(); - } - - /** - * TODO(APIGW): change to successful processing after model fix - */ - @Test - public void test_adding_new_default_root_shapes() { - ApiGatewayExportsNullabilityExceptionIntegration integration = overridePreviousModel( - "APIGW_exports_cases/diffs/added_default.before.smithy"); - GoSettings settings = new GoSettings(); - URL modelUrl = getClass().getClassLoader() - .getResource("APIGW_exports_cases/diffs/added_default.after.smithy"); - Model model = new ModelAssembler() - .addImport(modelUrl) - .putProperty(ModelAssembler.ALLOW_UNKNOWN_TRAITS, true) - .assemble() - .unwrap(); - ShapeId service = model.getServiceShapes().stream().findFirst().get().getId(); - settings.setService(service); - final Model thrownModel = AddOperationShapes.execute(model, settings.getService()); - assertThrows(CodegenException.class, () -> { - try { - integration.preprocessModel(thrownModel, settings); - } catch (Exception e) { - assertTrue(e.getMessage().contains( - "[ERROR] com.amazonaws.greengrass#NewDefaultedInteger: Shape must be added to the APIGW exports nullability exceptions | AwsSdkGoV2ChangedNullability")); - assertTrue(e.getMessage().contains( - "[ERROR] com.amazonaws.greengrass#NewDefaultedBoolean: Shape must be added to the APIGW exports nullability exceptions | AwsSdkGoV2ChangedNullability")); - throw e; - } - }); - } - - @Test - public void test_adding_new_nondefault_root_shapes() { - ApiGatewayExportsNullabilityExceptionIntegration integration = overridePreviousModel( - "APIGW_exports_cases/diffs/added_nondefault.before.smithy"); - GoSettings settings = new GoSettings(); - URL modelUrl = getClass().getClassLoader() - .getResource("APIGW_exports_cases/diffs/added_nondefault.after.smithy"); - Model model = new ModelAssembler() - .addImport(modelUrl) - .putProperty(ModelAssembler.ALLOW_UNKNOWN_TRAITS, true) - .assemble() - .unwrap(); - ShapeId service = model.getServiceShapes().stream().findFirst().get().getId(); - settings.setService(service); - model = AddOperationShapes.execute(model, settings.getService()); - model = integration.preprocessModel(model, settings); - assertTrue(model.expectShape(ShapeId.from("com.amazonaws.greengrass#NewNonDefaultedInteger")) - .getTrait(DefaultTrait.class) - .isEmpty()); - assertTrue(model.expectShape(ShapeId.from("com.amazonaws.greengrass#NewNonDefaultedBoolean")) - .getTrait(DefaultTrait.class) - .isEmpty()); - } - - // TODO(APIGW): provide a green path forward? - @Test - public void test_changing_existing_member_target_from_default_to_nondefault() { - ApiGatewayExportsNullabilityExceptionIntegration integration = overridePreviousModel( - "APIGW_exports_cases/diffs/existing_target_default_to_nondefault.before.smithy"); - GoSettings settings = new GoSettings(); - URL modelUrl = getClass().getClassLoader() - .getResource("APIGW_exports_cases/diffs/existing_target_default_to_nondefault.after.smithy"); - Model model = new ModelAssembler() - .addImport(modelUrl) - .putProperty(ModelAssembler.ALLOW_UNKNOWN_TRAITS, true) - .assemble() - .unwrap(); - ShapeId service = model.getServiceShapes().stream().findFirst().get().getId(); - settings.setService(service); - final Model thrownModel = AddOperationShapes.execute(model, settings.getService()); - assertThrows(CodegenException.class, () -> { - try { - integration.preprocessModel(thrownModel, settings); - } catch (Exception e) { - assertTrue(e.getMessage().contains( - "[ERROR] com.amazonaws.greengrass#TestStructure$integerMember: Shape changed GoPointableIndex::isDereferencable() | AwsSdkGoV2ChangedNullability")); - assertTrue(e.getMessage().contains( - "[ERROR] com.amazonaws.greengrass#TestStructure$integerMember: Shape changed GoPointableIndex::isNillable() | AwsSdkGoV2ChangedNullability")); - assertTrue(e.getMessage().contains( - "[ERROR] com.amazonaws.greengrass#TestStructure$integerMember: Shape changed GoPointableIndex::isPointable() | AwsSdkGoV2ChangedNullability")); - assertTrue(e.getMessage().contains( - "[ERROR] com.amazonaws.greengrass#TestStructure$integerMember: Shape changed NullableIndex::isNullable() | AwsSdkGoV2ChangedNullability")); - assertTrue(e.getMessage().contains( - "[ERROR] com.amazonaws.greengrass#TestStructure$integerMember: Shape changed NullableIndex::isMemberNullable() | AwsSdkGoV2ChangedNullability")); - assertTrue(e.getMessage().contains( - "[ERROR] com.amazonaws.greengrass#TestStructure$booleanMember: Shape changed GoPointableIndex::isDereferencable() | AwsSdkGoV2ChangedNullability")); - assertTrue(e.getMessage().contains( - "[ERROR] com.amazonaws.greengrass#TestStructure$booleanMember: Shape changed GoPointableIndex::isNillable() | AwsSdkGoV2ChangedNullability")); - assertTrue(e.getMessage().contains( - "[ERROR] com.amazonaws.greengrass#TestStructure$booleanMember: Shape changed GoPointableIndex::isPointable() | AwsSdkGoV2ChangedNullability")); - assertTrue(e.getMessage().contains( - "[ERROR] com.amazonaws.greengrass#TestStructure$booleanMember: Shape changed NullableIndex::isNullable() | AwsSdkGoV2ChangedNullability")); - assertTrue(e.getMessage().contains( - "[ERROR] com.amazonaws.greengrass#TestStructure$booleanMember: Shape changed NullableIndex::isMemberNullable() | AwsSdkGoV2ChangedNullabilit")); - throw e; - } - }); - } - - // TODO(APIGW): provide a green path forward? - @Test - public void test_changing_existing_member_target_from_nondefault_to_default() { - ApiGatewayExportsNullabilityExceptionIntegration integration = overridePreviousModel( - "APIGW_exports_cases/diffs/existing_target_nondefault_to_default.before.smithy"); - GoSettings settings = new GoSettings(); - URL modelUrl = getClass().getClassLoader() - .getResource("APIGW_exports_cases/diffs/existing_target_nondefault_to_default.after.smithy"); - Model model = new ModelAssembler() - .addImport(modelUrl) - .putProperty(ModelAssembler.ALLOW_UNKNOWN_TRAITS, true) - .assemble() - .unwrap(); - ShapeId service = model.getServiceShapes().stream().findFirst().get().getId(); - settings.setService(service); - final Model thrownModel = AddOperationShapes.execute(model, settings.getService()); - assertThrows(CodegenException.class, () -> { - try { - integration.preprocessModel(thrownModel, settings); - } catch (Exception e) { - assertTrue(e.getMessage().contains( - "[ERROR] com.amazonaws.greengrass#TestStructure$integerMember: Shape changed GoPointableIndex::isDereferencable() | AwsSdkGoV2ChangedNullability")); - assertTrue(e.getMessage().contains( - "[ERROR] com.amazonaws.greengrass#TestStructure$integerMember: Shape changed GoPointableIndex::isNillable() | AwsSdkGoV2ChangedNullability")); - assertTrue(e.getMessage().contains( - "[ERROR] com.amazonaws.greengrass#TestStructure$integerMember: Shape changed GoPointableIndex::isPointable() | AwsSdkGoV2ChangedNullability")); - assertTrue(e.getMessage().contains( - "[ERROR] com.amazonaws.greengrass#TestStructure$integerMember: Shape changed NullableIndex::isNullable() | AwsSdkGoV2ChangedNullability")); - assertTrue(e.getMessage().contains( - "[ERROR] com.amazonaws.greengrass#TestStructure$integerMember: Shape changed NullableIndex::isMemberNullable() | AwsSdkGoV2ChangedNullability")); - assertTrue(e.getMessage().contains( - "[ERROR] com.amazonaws.greengrass#TestStructure$booleanMember: Shape changed GoPointableIndex::isDereferencable() | AwsSdkGoV2ChangedNullability")); - assertTrue(e.getMessage().contains( - "[ERROR] com.amazonaws.greengrass#TestStructure$booleanMember: Shape changed GoPointableIndex::isNillable() | AwsSdkGoV2ChangedNullability")); - assertTrue(e.getMessage().contains( - "[ERROR] com.amazonaws.greengrass#TestStructure$booleanMember: Shape changed GoPointableIndex::isPointable() | AwsSdkGoV2ChangedNullability")); - assertTrue(e.getMessage().contains( - "[ERROR] com.amazonaws.greengrass#TestStructure$booleanMember: Shape changed NullableIndex::isNullable() | AwsSdkGoV2ChangedNullability")); - assertTrue(e.getMessage().contains( - "[ERROR] com.amazonaws.greengrass#TestStructure$booleanMember: Shape changed NullableIndex::isMemberNullable() | AwsSdkGoV2ChangedNullabilit")); - throw e; - } - }); - } - - @Test - public void test_added_members_target_default_root_shapes() { - ApiGatewayExportsNullabilityExceptionIntegration integration = overridePreviousModel( - "APIGW_exports_cases/diffs/added_target_default.before.smithy"); - GoSettings settings = new GoSettings(); - URL modelUrl = getClass().getClassLoader() - .getResource("APIGW_exports_cases/diffs/added_target_default.after.smithy"); - Model model = new ModelAssembler() - .addImport(modelUrl) - .putProperty(ModelAssembler.ALLOW_UNKNOWN_TRAITS, true) - .assemble() - .unwrap(); - ShapeId service = model.getServiceShapes().stream().findFirst().get().getId(); - settings.setService(service); - model = AddOperationShapes.execute(model, settings.getService()); - model = integration.preprocessModel(model, settings); - assertEquals(0L, model.expectShape(ShapeId.from("com.amazonaws.greengrass#TestStructure$integerMember")) - .expectTrait(DefaultTrait.class) - .toNode() - .expectNumberNode() - .getValue()); - assertEquals(false, - model.expectShape(ShapeId.from("com.amazonaws.greengrass#TestStructure$booleanMember")) - .expectTrait(DefaultTrait.class) - .toNode() - .expectBooleanNode() - .getValue()); - } - - @Test - public void test_added_members_target_nondefault_root_shapes() { - ApiGatewayExportsNullabilityExceptionIntegration integration = overridePreviousModel( - "APIGW_exports_cases/diffs/added_target_nondefault.before.smithy"); - GoSettings settings = new GoSettings(); - URL modelUrl = getClass().getClassLoader() - .getResource("APIGW_exports_cases/diffs/added_target_nondefault.after.smithy"); - Model model = new ModelAssembler() - .addImport(modelUrl) - .putProperty(ModelAssembler.ALLOW_UNKNOWN_TRAITS, true) - .assemble() - .unwrap(); - ShapeId service = model.getServiceShapes().stream().findFirst().get().getId(); - settings.setService(service); - model = AddOperationShapes.execute(model, settings.getService()); - model = integration.preprocessModel(model, settings); - assertTrue(model.expectShape(ShapeId.from("com.amazonaws.greengrass#TestStructure$integerMember")) - .getTrait(DefaultTrait.class) - .isEmpty()); - assertTrue(model.expectShape(ShapeId.from("com.amazonaws.greengrass#TestStructure$booleanMember")) - .getTrait(DefaultTrait.class) - .isEmpty()); - } - - /** - * MediaTailor: APIGW exports -> Smithy migrated service - * - * Integration should NOT affected shapes modeled in Smithy after migration. - * - * See `mediatailor.json` change in this commit: - * - * https://github.com/aws/aws-sdk-go-v2/commit/18e7f160c88a16ad2010ac3208e2939505760e97. - */ - @Test - public void test_unaffected_MediaTailor_APIGW_to_Smithy_migrated() { - Model preprocessedModel = loadPreprocessedModel("mediatailor.json"); - StructureShape segmentationDescriptorShape = preprocessedModel - .expectShape(ShapeId.from("com.amazonaws.mediatailor#SegmentationDescriptor")) - .asStructureShape() - .get(); - assertFalse(segmentationDescriptorShape.getMember("SegmentationEventId").get().hasTrait(DefaultTrait.class)); - GoPointableIndex goPointableIndex = new GoPointableIndex(preprocessedModel); - List nullableMemberSnapshot = new ArrayList<>() { - { - add(segmentationDescriptorShape.getMember("SegmentationUpidType").get()); - add(segmentationDescriptorShape.getMember("SegmentationUpid").get()); - add(segmentationDescriptorShape.getMember("SegmentationTypeId").get()); - add(segmentationDescriptorShape.getMember("SegmentNum").get()); - add(segmentationDescriptorShape.getMember("SegmentsExpected").get()); - add(segmentationDescriptorShape.getMember("SubSegmentNum").get()); - add(segmentationDescriptorShape.getMember("SubSegmentsExpected").get()); - } - }; - for (MemberShape memberShape : nullableMemberSnapshot) { - assertFalse(memberShape.hasTrait(DefaultTrait.class)); - assertTrue(goPointableIndex.isNillable(memberShape.toShapeId())); - assertTrue(goPointableIndex.isPointable(memberShape.toShapeId())); - assertTrue(goPointableIndex.isDereferencable(memberShape.toShapeId())); - } - } - - /** - * MediaLive: APIGW exports -> Other default values (e.g. strings) should not - * be affected. - * - * Member com.amazonaws.medialive#DescribeInputDeviceThumbnailResponse$Body - * should still have a default value of "" - */ - @Test - public void test_unaffected_MediaLive_APIGW_default_strings() { - Model preprocessedModel = loadPreprocessedModel("medialive.json"); - MemberShape bodyShape = preprocessedModel - .expectShape(ShapeId.from("com.amazonaws.medialive#DescribeInputDeviceThumbnailResponse$Body")) - .asMemberShape() - .get(); - assertTrue(bodyShape.hasTrait(DefaultTrait.class)); - assertEquals("", - bodyShape.expectTrait(DefaultTrait.class).toNode().asStringNode().get().getValue()); - } - - /** - * Sanity test for service models - */ - @ParameterizedTest - @MethodSource("apigwNullabilityExceptionServices") - public void test_APIGW_exports_nullability_exception_services(String modelFile) { - try { - loadPreprocessedModel(modelFile); - } catch (Exception e) { - LOGGER.severe(e.getMessage()); - throw e; - } - } - - private static Stream apigwNullabilityExceptionServices() { - return Stream.of( - Arguments.of("greengrass.json"), - Arguments.of("amplifybackend.json"), - Arguments.of("mediaconnect.json"), - Arguments.of("route53-recovery-control-config.json"), - Arguments.of("pinpoint.json"), - Arguments.of("apigatewayv2.json"), - Arguments.of("mediaconvert.json"), - Arguments.of("medialive.json"), - Arguments.of("macie2.json"), - Arguments.of("mediapackage.json"), - Arguments.of("apigatewaymanagementapi.json"), - Arguments.of("kafka.json"), - Arguments.of("mediapackage-vod.json"), - Arguments.of("mq.json"), - Arguments.of("iot-1click-devices-service.json"), - Arguments.of("serverlessapplicationrepository.json"), - Arguments.of("schemas.json"), - Arguments.of("pinpoint-sms-voice.json"), - Arguments.of("route53-recovery-readiness.json"), - Arguments.of("dataexchange.json"), - Arguments.of("kafkaconnect.json"), - Arguments.of("mediatailor.json")); - } - - private Model loadPreprocessedModel(String modelFile) { - ApiGatewayExportsNullabilityExceptionIntegration integration = new ApiGatewayExportsNullabilityExceptionIntegration(); - GoSettings settings = new GoSettings(); - Model model = new ModelAssembler() - .addDocumentNode(getModel(modelFile)) - .putProperty(ModelAssembler.ALLOW_UNKNOWN_TRAITS, true) - .assemble() - .unwrap(); - ShapeId service = model.getServiceShapes().stream().findFirst().get().getId(); - settings.setService(service); - model = AddOperationShapes.execute(model, settings.getService()); - // TODO(APIGW): Should be deleted after APIGW exports models are fixed. - model = stripDefaultsFromModel(model, service); - return integration.preprocessModel(model, settings); - } - - private Node getModel(String modelFile) { - try { - return Node.parseJsonWithComments(IoUtils.readUtf8File(Path.of(PATH_PREFIX, modelFile))); - } catch (Exception e) { - throw new CodegenException(e); - } - } - - // TODO(APIGW): Should be deleted after APIGW exports models are fixed. - private Model stripDefaultsFromModel(Model model, ShapeId service) { - Set shapeIdsToReplace = Node - .parseJsonWithComments( - IoUtils.readUtf8Resource(getClass(), NULLABILITY_EXCEPTIONS_FILE)) - .expectObjectNode() - .expectArrayMember(service.toString()) - .getElementsAs(StringNode.class) - .stream() - .map(StringNode::getValue) - .map(ShapeId::from) - .collect(Collectors.toSet()); - List shapesToReplace = new ArrayList<>(); - // Strip root shapes - for (ShapeId shapeId : shapeIdsToReplace) { - Optional shape = model.getShape(shapeId); - if (shape.isPresent()) { - if (shape.get().hasTrait(DefaultTrait.class)) { - shapesToReplace.add(Shape.shapeToBuilder(shape.get()) - .removeTrait(DefaultTrait.ID) - .build()); - } - } else { - LOGGER.severe("ShapeId `" + shapeId.toString() + "` is not present in the model"); - } - } - // Strip member shapes that target affected root shapes - Set memberShapes = model.getMemberShapes(); - for (MemberShape shape : memberShapes) { - ShapeId targetShapeId = shape.getTarget(); - if (!shapeIdsToReplace.contains(targetShapeId)) { - continue; - } - if (shape.hasTrait(DefaultTrait.class)) { - shapesToReplace.add(Shape.shapeToBuilder(shape) - .removeTrait(DefaultTrait.ID) - .build()); - } - } - // Replace shapes - Model strippedModel = ModelTransformer.create().replaceShapes(model, shapesToReplace); - // Assert root shape defaults are removed - for (ShapeId shapeId : shapeIdsToReplace) { - if (!strippedModel.getShape(shapeId).isPresent()) { - continue; - } - assertFalse(strippedModel.expectShape(shapeId).hasTrait(DefaultTrait.class)); - } - // Assert member shape defaults are removed - for (MemberShape shape : strippedModel.getMemberShapesWithTrait(DefaultTrait.class)) { - assertFalse(shapeIdsToReplace.contains(shape.getTarget())); - } - return strippedModel; - } -} diff --git a/service/amplifybackend/api_op_DeleteToken.go b/service/amplifybackend/api_op_DeleteToken.go index ba09a1526c4..dbd8d43b360 100644 --- a/service/amplifybackend/api_op_DeleteToken.go +++ b/service/amplifybackend/api_op_DeleteToken.go @@ -49,7 +49,7 @@ type DeleteTokenInput struct { type DeleteTokenOutput struct { // Indicates whether the request succeeded or failed. - IsSuccess bool + IsSuccess *bool // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/amplifybackend/api_op_ListBackendJobs.go b/service/amplifybackend/api_op_ListBackendJobs.go index 7d67a77f975..0a07bef66cf 100644 --- a/service/amplifybackend/api_op_ListBackendJobs.go +++ b/service/amplifybackend/api_op_ListBackendJobs.go @@ -49,7 +49,7 @@ type ListBackendJobsInput struct { JobId *string // The maximum number of results that you want in the response. - MaxResults int32 + MaxResults *int32 // The token for the next set of results. NextToken *string diff --git a/service/amplifybackend/api_op_RemoveAllBackends.go b/service/amplifybackend/api_op_RemoveAllBackends.go index 7278143de89..15ee6817978 100644 --- a/service/amplifybackend/api_op_RemoveAllBackends.go +++ b/service/amplifybackend/api_op_RemoveAllBackends.go @@ -40,7 +40,7 @@ type RemoveAllBackendsInput struct { AppId *string // Cleans up the Amplify Console app if this value is set to true. - CleanAmplifyApp bool + CleanAmplifyApp *bool noSmithyDocumentSerde } diff --git a/service/amplifybackend/deserializers.go b/service/amplifybackend/deserializers.go index 640d6f1bbc0..6feda2c5b04 100644 --- a/service/amplifybackend/deserializers.go +++ b/service/amplifybackend/deserializers.go @@ -2350,7 +2350,7 @@ func awsRestjson1_deserializeOpDocumentDeleteTokenOutput(v **DeleteTokenOutput, if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.IsSuccess = jtv + sv.IsSuccess = ptr.Bool(jtv) } default: @@ -6205,7 +6205,7 @@ func awsRestjson1_deserializeDocumentBackendAPIAppSyncAuthSettings(v **types.Bac if err != nil { return err } - sv.ExpirationTime = f64 + sv.ExpirationTime = ptr.Float64(f64) case string: var f64 float64 @@ -6223,7 +6223,7 @@ func awsRestjson1_deserializeDocumentBackendAPIAppSyncAuthSettings(v **types.Bac return fmt.Errorf("unknown JSON number value: %s", jtv) } - sv.ExpirationTime = f64 + sv.ExpirationTime = ptr.Float64(f64) default: return fmt.Errorf("expected __double to be a JSON Number, got %T instead", value) @@ -6830,7 +6830,7 @@ func awsRestjson1_deserializeDocumentCreateBackendAuthIdentityPoolConfig(v **typ if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.UnauthenticatedLogin = jtv + sv.UnauthenticatedLogin = ptr.Bool(jtv) } default: @@ -6991,7 +6991,7 @@ func awsRestjson1_deserializeDocumentCreateBackendAuthPasswordPolicyConfig(v **t if err != nil { return err } - sv.MinimumLength = f64 + sv.MinimumLength = ptr.Float64(f64) case string: var f64 float64 @@ -7009,7 +7009,7 @@ func awsRestjson1_deserializeDocumentCreateBackendAuthPasswordPolicyConfig(v **t return fmt.Errorf("unknown JSON number value: %s", jtv) } - sv.MinimumLength = f64 + sv.MinimumLength = ptr.Float64(f64) default: return fmt.Errorf("expected __double to be a JSON Number, got %T instead", value) @@ -7340,7 +7340,7 @@ func awsRestjson1_deserializeDocumentGetBackendStorageResourceConfig(v **types.G if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.Imported = jtv + sv.Imported = ptr.Bool(jtv) } case "permissions": diff --git a/service/amplifybackend/handwritten_paginators.go b/service/amplifybackend/handwritten_paginators.go index d0c14a85671..bf702b7e566 100644 --- a/service/amplifybackend/handwritten_paginators.go +++ b/service/amplifybackend/handwritten_paginators.go @@ -3,6 +3,8 @@ package amplifybackend import ( "context" "fmt" + + "github.com/aws/aws-sdk-go-v2/aws" ) // ListBackendJobsPaginatorOptions is the paginator options for ListBackendJobs @@ -37,7 +39,7 @@ func NewListBackendJobsPaginator(client ListBackendJobsAPIClient, params *ListBa } options := ListBackendJobsPaginatorOptions{} - options.Limit = params.MaxResults + options.Limit = aws.ToInt32(params.MaxResults) for _, fn := range optFns { fn(&options) @@ -70,7 +72,7 @@ func (p *ListBackendJobsPaginator) NextPage(ctx context.Context, optFns ...func( if p.options.Limit > 0 { limit = p.options.Limit } - params.MaxResults = limit + params.MaxResults = aws.Int32(limit) result, err := p.client.ListBackendJobs(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/amplifybackend/handwritten_paginators_test.go b/service/amplifybackend/handwritten_paginators_test.go index 37e8e6eb884..073f8a5ea7e 100644 --- a/service/amplifybackend/handwritten_paginators_test.go +++ b/service/amplifybackend/handwritten_paginators_test.go @@ -2,9 +2,10 @@ package amplifybackend import ( "context" - "github.com/aws/aws-sdk-go-v2/service/amplifybackend/types" "testing" + "github.com/aws/aws-sdk-go-v2/service/amplifybackend/types" + "github.com/aws/aws-sdk-go-v2/aws" ) @@ -18,7 +19,7 @@ type mockListBackendJobsClient struct { func (c *mockListBackendJobsClient) ListBackendJobs(ctx context.Context, input *ListBackendJobsInput, optFns ...func(*Options)) (*ListBackendJobsOutput, error) { c.inputs = append(c.inputs, input) requestCnt := len(c.inputs) - testCurRequest(len(c.outputs), requestCnt, c.limit, input.MaxResults, c.t) + testCurRequest(len(c.outputs), requestCnt, c.limit, aws.ToInt32(input.MaxResults), c.t) return c.outputs[requestCnt-1], nil } diff --git a/service/amplifybackend/serializers.go b/service/amplifybackend/serializers.go index 4a5490ccd0d..40202710649 100644 --- a/service/amplifybackend/serializers.go +++ b/service/amplifybackend/serializers.go @@ -2158,9 +2158,9 @@ func awsRestjson1_serializeOpDocumentListBackendJobsInput(v *ListBackendJobsInpu ok.String(*v.JobId) } - if v.MaxResults != 0 { + if v.MaxResults != nil { ok := object.Key("maxResults") - ok.Integer(v.MaxResults) + ok.Integer(*v.MaxResults) } if v.NextToken != nil { @@ -2336,9 +2336,9 @@ func awsRestjson1_serializeOpDocumentRemoveAllBackendsInput(v *RemoveAllBackends object := value.Object() defer object.Close() - if v.CleanAmplifyApp { + if v.CleanAmplifyApp != nil { ok := object.Key("cleanAmplifyApp") - ok.Boolean(v.CleanAmplifyApp) + ok.Boolean(*v.CleanAmplifyApp) } return nil @@ -2936,20 +2936,20 @@ func awsRestjson1_serializeDocumentBackendAPIAppSyncAuthSettings(v *types.Backen ok.String(*v.Description) } - if v.ExpirationTime != 0 { + if v.ExpirationTime != nil { ok := object.Key("expirationTime") switch { - case math.IsNaN(v.ExpirationTime): + case math.IsNaN(*v.ExpirationTime): ok.String("NaN") - case math.IsInf(v.ExpirationTime, 1): + case math.IsInf(*v.ExpirationTime, 1): ok.String("Infinity") - case math.IsInf(v.ExpirationTime, -1): + case math.IsInf(*v.ExpirationTime, -1): ok.String("-Infinity") default: - ok.Double(v.ExpirationTime) + ok.Double(*v.ExpirationTime) } } @@ -3156,9 +3156,9 @@ func awsRestjson1_serializeDocumentCreateBackendAuthIdentityPoolConfig(v *types. ok.String(*v.IdentityPoolName) } - { + if v.UnauthenticatedLogin != nil { ok := object.Key("unauthenticatedLogin") - ok.Boolean(v.UnauthenticatedLogin) + ok.Boolean(*v.UnauthenticatedLogin) } return nil @@ -3239,20 +3239,20 @@ func awsRestjson1_serializeDocumentCreateBackendAuthPasswordPolicyConfig(v *type } } - { + if v.MinimumLength != nil { ok := object.Key("minimumLength") switch { - case math.IsNaN(v.MinimumLength): + case math.IsNaN(*v.MinimumLength): ok.String("NaN") - case math.IsInf(v.MinimumLength, 1): + case math.IsInf(*v.MinimumLength, 1): ok.String("Infinity") - case math.IsInf(v.MinimumLength, -1): + case math.IsInf(*v.MinimumLength, -1): ok.String("-Infinity") default: - ok.Double(v.MinimumLength) + ok.Double(*v.MinimumLength) } } @@ -3637,9 +3637,9 @@ func awsRestjson1_serializeDocumentUpdateBackendAuthIdentityPoolConfig(v *types. object := value.Object() defer object.Close() - if v.UnauthenticatedLogin { + if v.UnauthenticatedLogin != nil { ok := object.Key("unauthenticatedLogin") - ok.Boolean(v.UnauthenticatedLogin) + ok.Boolean(*v.UnauthenticatedLogin) } return nil @@ -3720,20 +3720,20 @@ func awsRestjson1_serializeDocumentUpdateBackendAuthPasswordPolicyConfig(v *type } } - if v.MinimumLength != 0 { + if v.MinimumLength != nil { ok := object.Key("minimumLength") switch { - case math.IsNaN(v.MinimumLength): + case math.IsNaN(*v.MinimumLength): ok.String("NaN") - case math.IsInf(v.MinimumLength, 1): + case math.IsInf(*v.MinimumLength, 1): ok.String("Infinity") - case math.IsInf(v.MinimumLength, -1): + case math.IsInf(*v.MinimumLength, -1): ok.String("-Infinity") default: - ok.Double(v.MinimumLength) + ok.Double(*v.MinimumLength) } } diff --git a/service/amplifybackend/types/types.go b/service/amplifybackend/types/types.go index 7d36b05aeba..ab26bd405b0 100644 --- a/service/amplifybackend/types/types.go +++ b/service/amplifybackend/types/types.go @@ -20,7 +20,7 @@ type BackendAPIAppSyncAuthSettings struct { // The API key expiration time for API_KEY, if it was used as an authentication // mechanism to access your data models. - ExpirationTime float64 + ExpirationTime *float64 // The expiry time for the OpenID authentication mechanism. OpenIDAuthTTL *string @@ -212,7 +212,7 @@ type CreateBackendAuthIdentityPoolConfig struct { // your Amplify app. // // This member is required. - UnauthenticatedLogin bool + UnauthenticatedLogin *bool noSmithyDocumentSerde } @@ -275,7 +275,7 @@ type CreateBackendAuthPasswordPolicyConfig struct { // project. // // This member is required. - MinimumLength float64 + MinimumLength *float64 // Additional constraints for the password used to access the backend of your // Amplify project. @@ -411,7 +411,7 @@ type GetBackendStorageResourceConfig struct { // Returns True if the storage resource has been imported. // // This member is required. - Imported bool + Imported *bool // The name of the storage service. // @@ -532,7 +532,7 @@ type UpdateBackendAuthIdentityPoolConfig struct { // A boolean value that can be set to allow or disallow guest-level authorization // into your Amplify app. - UnauthenticatedLogin bool + UnauthenticatedLogin *bool noSmithyDocumentSerde } @@ -586,7 +586,7 @@ type UpdateBackendAuthPasswordPolicyConfig struct { // Describes the minimum length of the password required to sign in to the auth // resource, configured as a part of your Amplify project. - MinimumLength float64 + MinimumLength *float64 noSmithyDocumentSerde } diff --git a/service/amplifybackend/validators.go b/service/amplifybackend/validators.go index 12cd296799b..c817dd90ed9 100644 --- a/service/amplifybackend/validators.go +++ b/service/amplifybackend/validators.go @@ -768,6 +768,9 @@ func validateCreateBackendAuthIdentityPoolConfig(v *types.CreateBackendAuthIdent if v.IdentityPoolName == nil { invalidParams.Add(smithy.NewErrParamRequired("IdentityPoolName")) } + if v.UnauthenticatedLogin == nil { + invalidParams.Add(smithy.NewErrParamRequired("UnauthenticatedLogin")) + } if invalidParams.Len() > 0 { return invalidParams } else { @@ -819,6 +822,9 @@ func validateCreateBackendAuthPasswordPolicyConfig(v *types.CreateBackendAuthPas return nil } invalidParams := smithy.InvalidParamsError{Context: "CreateBackendAuthPasswordPolicyConfig"} + if v.MinimumLength == nil { + invalidParams.Add(smithy.NewErrParamRequired("MinimumLength")) + } if invalidParams.Len() > 0 { return invalidParams } else { diff --git a/service/apigatewayv2/api_op_CreateApi.go b/service/apigatewayv2/api_op_CreateApi.go index e89ed496ac5..e5af3e94933 100644 --- a/service/apigatewayv2/api_op_CreateApi.go +++ b/service/apigatewayv2/api_op_CreateApi.go @@ -72,11 +72,11 @@ type CreateApiInput struct { // https://{api_id}.execute-api.{region}.amazonaws.com endpoint. To require that // clients use a custom domain name to invoke your API, disable the default // endpoint. - DisableExecuteApiEndpoint bool + DisableExecuteApiEndpoint *bool // Avoid validating models when creating a deployment. Supported only for // WebSocket APIs. - DisableSchemaValidation bool + DisableSchemaValidation *bool // This property is part of quick create. If you don't specify a routeKey, a // default route of $default is created. The $default route acts as a catch-all @@ -118,7 +118,7 @@ type CreateApiOutput struct { // Specifies whether an API is managed by API Gateway. You can't update or delete // a managed API by using API Gateway. A managed API can be deleted only through // the tooling or service that created it. - ApiGatewayManaged bool + ApiGatewayManaged *bool // The API ID. ApiId *string @@ -142,11 +142,11 @@ type CreateApiOutput struct { // https://{api_id}.execute-api.{region}.amazonaws.com endpoint. To require that // clients use a custom domain name to invoke your API, disable the default // endpoint. - DisableExecuteApiEndpoint bool + DisableExecuteApiEndpoint *bool // Avoid validating models when creating a deployment. Supported only for // WebSocket APIs. - DisableSchemaValidation bool + DisableSchemaValidation *bool // The validation information during API import. This may include particular // properties of your OpenAPI definition which are ignored during import. Supported diff --git a/service/apigatewayv2/api_op_CreateAuthorizer.go b/service/apigatewayv2/api_op_CreateAuthorizer.go index 3ec58f5f137..68491bf4997 100644 --- a/service/apigatewayv2/api_op_CreateAuthorizer.go +++ b/service/apigatewayv2/api_op_CreateAuthorizer.go @@ -92,7 +92,7 @@ type CreateAuthorizerInput struct { // 0, authorization caching is disabled. If it is greater than 0, API Gateway // caches authorizer responses. The maximum value is 3600, or 1 hour. Supported // only for HTTP API Lambda authorizers. - AuthorizerResultTtlInSeconds int32 + AuthorizerResultTtlInSeconds *int32 // The authorizer's Uniform Resource Identifier (URI). For REQUEST authorizers, // this must be a well-formed Lambda function URI, for example, @@ -111,7 +111,7 @@ type CreateAuthorizerInput struct { // authorizer can return a boolean value instead of an IAM policy. Supported only // for HTTP APIs. To learn more, see Working with AWS Lambda authorizers for HTTP // APIs (https://docs.aws.amazon.com/apigateway/latest/developerguide/http-api-lambda-authorizer.html) - EnableSimpleResponses bool + EnableSimpleResponses *bool // This parameter is not used. IdentityValidationExpression *string @@ -144,7 +144,7 @@ type CreateAuthorizerOutput struct { // 0, authorization caching is disabled. If it is greater than 0, API Gateway // caches authorizer responses. The maximum value is 3600, or 1 hour. Supported // only for HTTP API Lambda authorizers. - AuthorizerResultTtlInSeconds int32 + AuthorizerResultTtlInSeconds *int32 // The authorizer type. Specify REQUEST for a Lambda function using incoming // request parameters. Specify JWT to use JSON Web Tokens (supported only for HTTP @@ -167,7 +167,7 @@ type CreateAuthorizerOutput struct { // enabled, the Lambda authorizer can return a boolean value instead of an IAM // policy. Supported only for HTTP APIs. To learn more, see Working with AWS // Lambda authorizers for HTTP APIs (https://docs.aws.amazon.com/apigateway/latest/developerguide/http-api-lambda-authorizer.html) - EnableSimpleResponses bool + EnableSimpleResponses *bool // The identity source for which authorization is requested. For a REQUEST // authorizer, this is optional. The value is a set of one or more mapping diff --git a/service/apigatewayv2/api_op_CreateDeployment.go b/service/apigatewayv2/api_op_CreateDeployment.go index a08e1e82096..53b3b3cd3ec 100644 --- a/service/apigatewayv2/api_op_CreateDeployment.go +++ b/service/apigatewayv2/api_op_CreateDeployment.go @@ -53,7 +53,7 @@ type CreateDeploymentInput struct { type CreateDeploymentOutput struct { // Specifies whether a deployment was automatically released. - AutoDeployed bool + AutoDeployed *bool // The date and time when the Deployment resource was created. CreatedDate *time.Time diff --git a/service/apigatewayv2/api_op_CreateIntegration.go b/service/apigatewayv2/api_op_CreateIntegration.go index ae9946822c6..5569ef2aaa1 100644 --- a/service/apigatewayv2/api_op_CreateIntegration.go +++ b/service/apigatewayv2/api_op_CreateIntegration.go @@ -170,7 +170,7 @@ type CreateIntegrationInput struct { // Custom timeout between 50 and 29,000 milliseconds for WebSocket APIs and // between 50 and 30,000 milliseconds for HTTP APIs. The default timeout is 29 // seconds for WebSocket APIs and 30 seconds for HTTP APIs. - TimeoutInMillis int32 + TimeoutInMillis *int32 // The TLS configuration for a private integration. If you specify a TLS // configuration, private integration traffic uses the HTTPS protocol. Supported @@ -185,7 +185,7 @@ type CreateIntegrationOutput struct { // Specifies whether an integration is managed by API Gateway. If you created an // API using using quick create, the resulting integration is managed by API // Gateway. You can update a managed integration, but you can't delete it. - ApiGatewayManaged bool + ApiGatewayManaged *bool // The ID of the VPC link for a private integration. Supported only for HTTP APIs. ConnectionId *string @@ -323,7 +323,7 @@ type CreateIntegrationOutput struct { // Custom timeout between 50 and 29,000 milliseconds for WebSocket APIs and // between 50 and 30,000 milliseconds for HTTP APIs. The default timeout is 29 // seconds for WebSocket APIs and 30 seconds for HTTP APIs. - TimeoutInMillis int32 + TimeoutInMillis *int32 // The TLS configuration for a private integration. If you specify a TLS // configuration, private integration traffic uses the HTTPS protocol. Supported diff --git a/service/apigatewayv2/api_op_CreateRoute.go b/service/apigatewayv2/api_op_CreateRoute.go index ee0dc827fa5..e697deff780 100644 --- a/service/apigatewayv2/api_op_CreateRoute.go +++ b/service/apigatewayv2/api_op_CreateRoute.go @@ -47,7 +47,7 @@ type CreateRouteInput struct { // Specifies whether an API key is required for the route. Supported only for // WebSocket APIs. - ApiKeyRequired bool + ApiKeyRequired *bool // The authorization scopes supported by this route. AuthorizationScopes []string @@ -91,11 +91,11 @@ type CreateRouteOutput struct { // Specifies whether a route is managed by API Gateway. If you created an API // using quick create, the $default route is managed by API Gateway. You can't // modify the $default route key. - ApiGatewayManaged bool + ApiGatewayManaged *bool // Specifies whether an API key is required for this route. Supported only for // WebSocket APIs. - ApiKeyRequired bool + ApiKeyRequired *bool // A list of authorization scopes configured on a route. The scopes are used with // a JWT authorizer to authorize the method invocation. The authorization works by diff --git a/service/apigatewayv2/api_op_CreateStage.go b/service/apigatewayv2/api_op_CreateStage.go index c6a1a63efbe..a1050ddb662 100644 --- a/service/apigatewayv2/api_op_CreateStage.go +++ b/service/apigatewayv2/api_op_CreateStage.go @@ -51,7 +51,7 @@ type CreateStageInput struct { // Specifies whether updates to an API automatically trigger a new deployment. The // default value is false. - AutoDeploy bool + AutoDeploy *bool // The identifier of a client certificate for a Stage. Supported only for // WebSocket APIs. @@ -88,11 +88,11 @@ type CreateStageOutput struct { // Specifies whether a stage is managed by API Gateway. If you created an API // using quick create, the $default stage is managed by API Gateway. You can't // modify the $default stage. - ApiGatewayManaged bool + ApiGatewayManaged *bool // Specifies whether updates to an API automatically trigger a new deployment. The // default value is false. - AutoDeploy bool + AutoDeploy *bool // The identifier of a client certificate for a Stage. Supported only for // WebSocket APIs. diff --git a/service/apigatewayv2/api_op_ExportApi.go b/service/apigatewayv2/api_op_ExportApi.go index 0bee102aff4..89178135ca9 100644 --- a/service/apigatewayv2/api_op_ExportApi.go +++ b/service/apigatewayv2/api_op_ExportApi.go @@ -54,7 +54,7 @@ type ExportApiInput struct { // Specifies whether to include API Gateway extensions (https://docs.aws.amazon.com//apigateway/latest/developerguide/api-gateway-swagger-extensions.html) // in the exported API definition. API Gateway extensions are included by default. - IncludeExtensions bool + IncludeExtensions *bool // The name of the API stage to export. If you don't specify this property, a // representation of the latest API configuration is exported. diff --git a/service/apigatewayv2/api_op_GetApi.go b/service/apigatewayv2/api_op_GetApi.go index f88f0d6072f..cd25de75ef4 100644 --- a/service/apigatewayv2/api_op_GetApi.go +++ b/service/apigatewayv2/api_op_GetApi.go @@ -53,7 +53,7 @@ type GetApiOutput struct { // Specifies whether an API is managed by API Gateway. You can't update or delete // a managed API by using API Gateway. A managed API can be deleted only through // the tooling or service that created it. - ApiGatewayManaged bool + ApiGatewayManaged *bool // The API ID. ApiId *string @@ -77,11 +77,11 @@ type GetApiOutput struct { // https://{api_id}.execute-api.{region}.amazonaws.com endpoint. To require that // clients use a custom domain name to invoke your API, disable the default // endpoint. - DisableExecuteApiEndpoint bool + DisableExecuteApiEndpoint *bool // Avoid validating models when creating a deployment. Supported only for // WebSocket APIs. - DisableSchemaValidation bool + DisableSchemaValidation *bool // The validation information during API import. This may include particular // properties of your OpenAPI definition which are ignored during import. Supported diff --git a/service/apigatewayv2/api_op_GetAuthorizer.go b/service/apigatewayv2/api_op_GetAuthorizer.go index f689fb3f7b6..660d54e46a9 100644 --- a/service/apigatewayv2/api_op_GetAuthorizer.go +++ b/service/apigatewayv2/api_op_GetAuthorizer.go @@ -68,7 +68,7 @@ type GetAuthorizerOutput struct { // 0, authorization caching is disabled. If it is greater than 0, API Gateway // caches authorizer responses. The maximum value is 3600, or 1 hour. Supported // only for HTTP API Lambda authorizers. - AuthorizerResultTtlInSeconds int32 + AuthorizerResultTtlInSeconds *int32 // The authorizer type. Specify REQUEST for a Lambda function using incoming // request parameters. Specify JWT to use JSON Web Tokens (supported only for HTTP @@ -91,7 +91,7 @@ type GetAuthorizerOutput struct { // enabled, the Lambda authorizer can return a boolean value instead of an IAM // policy. Supported only for HTTP APIs. To learn more, see Working with AWS // Lambda authorizers for HTTP APIs (https://docs.aws.amazon.com/apigateway/latest/developerguide/http-api-lambda-authorizer.html) - EnableSimpleResponses bool + EnableSimpleResponses *bool // The identity source for which authorization is requested. For a REQUEST // authorizer, this is optional. The value is a set of one or more mapping diff --git a/service/apigatewayv2/api_op_GetDeployment.go b/service/apigatewayv2/api_op_GetDeployment.go index 7e1dcc9d8ce..54fb60ec4e0 100644 --- a/service/apigatewayv2/api_op_GetDeployment.go +++ b/service/apigatewayv2/api_op_GetDeployment.go @@ -51,7 +51,7 @@ type GetDeploymentInput struct { type GetDeploymentOutput struct { // Specifies whether a deployment was automatically released. - AutoDeployed bool + AutoDeployed *bool // The date and time when the Deployment resource was created. CreatedDate *time.Time diff --git a/service/apigatewayv2/api_op_GetIntegration.go b/service/apigatewayv2/api_op_GetIntegration.go index e984b04bfea..2a788e79698 100644 --- a/service/apigatewayv2/api_op_GetIntegration.go +++ b/service/apigatewayv2/api_op_GetIntegration.go @@ -52,7 +52,7 @@ type GetIntegrationOutput struct { // Specifies whether an integration is managed by API Gateway. If you created an // API using using quick create, the resulting integration is managed by API // Gateway. You can update a managed integration, but you can't delete it. - ApiGatewayManaged bool + ApiGatewayManaged *bool // The ID of the VPC link for a private integration. Supported only for HTTP APIs. ConnectionId *string @@ -190,7 +190,7 @@ type GetIntegrationOutput struct { // Custom timeout between 50 and 29,000 milliseconds for WebSocket APIs and // between 50 and 30,000 milliseconds for HTTP APIs. The default timeout is 29 // seconds for WebSocket APIs and 30 seconds for HTTP APIs. - TimeoutInMillis int32 + TimeoutInMillis *int32 // The TLS configuration for a private integration. If you specify a TLS // configuration, private integration traffic uses the HTTPS protocol. Supported diff --git a/service/apigatewayv2/api_op_GetRoute.go b/service/apigatewayv2/api_op_GetRoute.go index deff10c9d08..b4ff70046e1 100644 --- a/service/apigatewayv2/api_op_GetRoute.go +++ b/service/apigatewayv2/api_op_GetRoute.go @@ -52,11 +52,11 @@ type GetRouteOutput struct { // Specifies whether a route is managed by API Gateway. If you created an API // using quick create, the $default route is managed by API Gateway. You can't // modify the $default route key. - ApiGatewayManaged bool + ApiGatewayManaged *bool // Specifies whether an API key is required for this route. Supported only for // WebSocket APIs. - ApiKeyRequired bool + ApiKeyRequired *bool // A list of authorization scopes configured on a route. The scopes are used with // a JWT authorizer to authorize the method invocation. The authorization works by diff --git a/service/apigatewayv2/api_op_GetStage.go b/service/apigatewayv2/api_op_GetStage.go index dc6c8294b11..676e851f612 100644 --- a/service/apigatewayv2/api_op_GetStage.go +++ b/service/apigatewayv2/api_op_GetStage.go @@ -57,11 +57,11 @@ type GetStageOutput struct { // Specifies whether a stage is managed by API Gateway. If you created an API // using quick create, the $default stage is managed by API Gateway. You can't // modify the $default stage. - ApiGatewayManaged bool + ApiGatewayManaged *bool // Specifies whether updates to an API automatically trigger a new deployment. The // default value is false. - AutoDeploy bool + AutoDeploy *bool // The identifier of a client certificate for a Stage. Supported only for // WebSocket APIs. diff --git a/service/apigatewayv2/api_op_ImportApi.go b/service/apigatewayv2/api_op_ImportApi.go index 560733a8500..bf603a8c208 100644 --- a/service/apigatewayv2/api_op_ImportApi.go +++ b/service/apigatewayv2/api_op_ImportApi.go @@ -48,7 +48,7 @@ type ImportApiInput struct { // Specifies whether to rollback the API creation when a warning is encountered. // By default, API creation continues if a warning is encountered. - FailOnWarnings bool + FailOnWarnings *bool noSmithyDocumentSerde } @@ -63,7 +63,7 @@ type ImportApiOutput struct { // Specifies whether an API is managed by API Gateway. You can't update or delete // a managed API by using API Gateway. A managed API can be deleted only through // the tooling or service that created it. - ApiGatewayManaged bool + ApiGatewayManaged *bool // The API ID. ApiId *string @@ -87,11 +87,11 @@ type ImportApiOutput struct { // https://{api_id}.execute-api.{region}.amazonaws.com endpoint. To require that // clients use a custom domain name to invoke your API, disable the default // endpoint. - DisableExecuteApiEndpoint bool + DisableExecuteApiEndpoint *bool // Avoid validating models when creating a deployment. Supported only for // WebSocket APIs. - DisableSchemaValidation bool + DisableSchemaValidation *bool // The validation information during API import. This may include particular // properties of your OpenAPI definition which are ignored during import. Supported diff --git a/service/apigatewayv2/api_op_ReimportApi.go b/service/apigatewayv2/api_op_ReimportApi.go index 03e07c67a59..1317a305d3c 100644 --- a/service/apigatewayv2/api_op_ReimportApi.go +++ b/service/apigatewayv2/api_op_ReimportApi.go @@ -53,7 +53,7 @@ type ReimportApiInput struct { // Specifies whether to rollback the API creation when a warning is encountered. // By default, API creation continues if a warning is encountered. - FailOnWarnings bool + FailOnWarnings *bool noSmithyDocumentSerde } @@ -68,7 +68,7 @@ type ReimportApiOutput struct { // Specifies whether an API is managed by API Gateway. You can't update or delete // a managed API by using API Gateway. A managed API can be deleted only through // the tooling or service that created it. - ApiGatewayManaged bool + ApiGatewayManaged *bool // The API ID. ApiId *string @@ -92,11 +92,11 @@ type ReimportApiOutput struct { // https://{api_id}.execute-api.{region}.amazonaws.com endpoint. To require that // clients use a custom domain name to invoke your API, disable the default // endpoint. - DisableExecuteApiEndpoint bool + DisableExecuteApiEndpoint *bool // Avoid validating models when creating a deployment. Supported only for // WebSocket APIs. - DisableSchemaValidation bool + DisableSchemaValidation *bool // The validation information during API import. This may include particular // properties of your OpenAPI definition which are ignored during import. Supported diff --git a/service/apigatewayv2/api_op_UpdateApi.go b/service/apigatewayv2/api_op_UpdateApi.go index 2bc521aa81a..841700c8aed 100644 --- a/service/apigatewayv2/api_op_UpdateApi.go +++ b/service/apigatewayv2/api_op_UpdateApi.go @@ -68,11 +68,11 @@ type UpdateApiInput struct { // https://{api_id}.execute-api.{region}.amazonaws.com endpoint. To require that // clients use a custom domain name to invoke your API, disable the default // endpoint. - DisableExecuteApiEndpoint bool + DisableExecuteApiEndpoint *bool // Avoid validating models when creating a deployment. Supported only for // WebSocket APIs. - DisableSchemaValidation bool + DisableSchemaValidation *bool // The name of the API. Name *string @@ -112,7 +112,7 @@ type UpdateApiOutput struct { // Specifies whether an API is managed by API Gateway. You can't update or delete // a managed API by using API Gateway. A managed API can be deleted only through // the tooling or service that created it. - ApiGatewayManaged bool + ApiGatewayManaged *bool // The API ID. ApiId *string @@ -136,11 +136,11 @@ type UpdateApiOutput struct { // https://{api_id}.execute-api.{region}.amazonaws.com endpoint. To require that // clients use a custom domain name to invoke your API, disable the default // endpoint. - DisableExecuteApiEndpoint bool + DisableExecuteApiEndpoint *bool // Avoid validating models when creating a deployment. Supported only for // WebSocket APIs. - DisableSchemaValidation bool + DisableSchemaValidation *bool // The validation information during API import. This may include particular // properties of your OpenAPI definition which are ignored during import. Supported diff --git a/service/apigatewayv2/api_op_UpdateAuthorizer.go b/service/apigatewayv2/api_op_UpdateAuthorizer.go index bc311bf38dd..3d0a5eb05dc 100644 --- a/service/apigatewayv2/api_op_UpdateAuthorizer.go +++ b/service/apigatewayv2/api_op_UpdateAuthorizer.go @@ -61,7 +61,7 @@ type UpdateAuthorizerInput struct { // 0, authorization caching is disabled. If it is greater than 0, API Gateway // caches authorizer responses. The maximum value is 3600, or 1 hour. Supported // only for HTTP API Lambda authorizers. - AuthorizerResultTtlInSeconds int32 + AuthorizerResultTtlInSeconds *int32 // The authorizer type. Specify REQUEST for a Lambda function using incoming // request parameters. Specify JWT to use JSON Web Tokens (supported only for HTTP @@ -85,7 +85,7 @@ type UpdateAuthorizerInput struct { // authorizer can return a boolean value instead of an IAM policy. Supported only // for HTTP APIs. To learn more, see Working with AWS Lambda authorizers for HTTP // APIs (https://docs.aws.amazon.com/apigateway/latest/developerguide/http-api-lambda-authorizer.html) - EnableSimpleResponses bool + EnableSimpleResponses *bool // The identity source for which authorization is requested. For a REQUEST // authorizer, this is optional. The value is a set of one or more mapping @@ -143,7 +143,7 @@ type UpdateAuthorizerOutput struct { // 0, authorization caching is disabled. If it is greater than 0, API Gateway // caches authorizer responses. The maximum value is 3600, or 1 hour. Supported // only for HTTP API Lambda authorizers. - AuthorizerResultTtlInSeconds int32 + AuthorizerResultTtlInSeconds *int32 // The authorizer type. Specify REQUEST for a Lambda function using incoming // request parameters. Specify JWT to use JSON Web Tokens (supported only for HTTP @@ -166,7 +166,7 @@ type UpdateAuthorizerOutput struct { // enabled, the Lambda authorizer can return a boolean value instead of an IAM // policy. Supported only for HTTP APIs. To learn more, see Working with AWS // Lambda authorizers for HTTP APIs (https://docs.aws.amazon.com/apigateway/latest/developerguide/http-api-lambda-authorizer.html) - EnableSimpleResponses bool + EnableSimpleResponses *bool // The identity source for which authorization is requested. For a REQUEST // authorizer, this is optional. The value is a set of one or more mapping diff --git a/service/apigatewayv2/api_op_UpdateDeployment.go b/service/apigatewayv2/api_op_UpdateDeployment.go index f7035b33859..bc9a23b57b9 100644 --- a/service/apigatewayv2/api_op_UpdateDeployment.go +++ b/service/apigatewayv2/api_op_UpdateDeployment.go @@ -55,7 +55,7 @@ type UpdateDeploymentInput struct { type UpdateDeploymentOutput struct { // Specifies whether a deployment was automatically released. - AutoDeployed bool + AutoDeployed *bool // The date and time when the Deployment resource was created. CreatedDate *time.Time diff --git a/service/apigatewayv2/api_op_UpdateIntegration.go b/service/apigatewayv2/api_op_UpdateIntegration.go index 7ca787e9782..ce737604fc0 100644 --- a/service/apigatewayv2/api_op_UpdateIntegration.go +++ b/service/apigatewayv2/api_op_UpdateIntegration.go @@ -173,7 +173,7 @@ type UpdateIntegrationInput struct { // Custom timeout between 50 and 29,000 milliseconds for WebSocket APIs and // between 50 and 30,000 milliseconds for HTTP APIs. The default timeout is 29 // seconds for WebSocket APIs and 30 seconds for HTTP APIs. - TimeoutInMillis int32 + TimeoutInMillis *int32 // The TLS configuration for a private integration. If you specify a TLS // configuration, private integration traffic uses the HTTPS protocol. Supported @@ -188,7 +188,7 @@ type UpdateIntegrationOutput struct { // Specifies whether an integration is managed by API Gateway. If you created an // API using using quick create, the resulting integration is managed by API // Gateway. You can update a managed integration, but you can't delete it. - ApiGatewayManaged bool + ApiGatewayManaged *bool // The ID of the VPC link for a private integration. Supported only for HTTP APIs. ConnectionId *string @@ -326,7 +326,7 @@ type UpdateIntegrationOutput struct { // Custom timeout between 50 and 29,000 milliseconds for WebSocket APIs and // between 50 and 30,000 milliseconds for HTTP APIs. The default timeout is 29 // seconds for WebSocket APIs and 30 seconds for HTTP APIs. - TimeoutInMillis int32 + TimeoutInMillis *int32 // The TLS configuration for a private integration. If you specify a TLS // configuration, private integration traffic uses the HTTPS protocol. Supported diff --git a/service/apigatewayv2/api_op_UpdateRoute.go b/service/apigatewayv2/api_op_UpdateRoute.go index 72bc07700d0..e637cc02a25 100644 --- a/service/apigatewayv2/api_op_UpdateRoute.go +++ b/service/apigatewayv2/api_op_UpdateRoute.go @@ -47,7 +47,7 @@ type UpdateRouteInput struct { // Specifies whether an API key is required for the route. Supported only for // WebSocket APIs. - ApiKeyRequired bool + ApiKeyRequired *bool // The authorization scopes supported by this route. AuthorizationScopes []string @@ -94,11 +94,11 @@ type UpdateRouteOutput struct { // Specifies whether a route is managed by API Gateway. If you created an API // using quick create, the $default route is managed by API Gateway. You can't // modify the $default route key. - ApiGatewayManaged bool + ApiGatewayManaged *bool // Specifies whether an API key is required for this route. Supported only for // WebSocket APIs. - ApiKeyRequired bool + ApiKeyRequired *bool // A list of authorization scopes configured on a route. The scopes are used with // a JWT authorizer to authorize the method invocation. The authorization works by diff --git a/service/apigatewayv2/api_op_UpdateStage.go b/service/apigatewayv2/api_op_UpdateStage.go index 4637dcdab0b..262b08e18e1 100644 --- a/service/apigatewayv2/api_op_UpdateStage.go +++ b/service/apigatewayv2/api_op_UpdateStage.go @@ -52,7 +52,7 @@ type UpdateStageInput struct { // Specifies whether updates to an API automatically trigger a new deployment. The // default value is false. - AutoDeploy bool + AutoDeploy *bool // The identifier of a client certificate for a Stage. ClientCertificateId *string @@ -86,11 +86,11 @@ type UpdateStageOutput struct { // Specifies whether a stage is managed by API Gateway. If you created an API // using quick create, the $default stage is managed by API Gateway. You can't // modify the $default stage. - ApiGatewayManaged bool + ApiGatewayManaged *bool // Specifies whether updates to an API automatically trigger a new deployment. The // default value is false. - AutoDeploy bool + AutoDeploy *bool // The identifier of a client certificate for a Stage. Supported only for // WebSocket APIs. diff --git a/service/apigatewayv2/deserializers.go b/service/apigatewayv2/deserializers.go index 186662a89b9..a94fb0025e7 100644 --- a/service/apigatewayv2/deserializers.go +++ b/service/apigatewayv2/deserializers.go @@ -178,7 +178,7 @@ func awsRestjson1_deserializeOpDocumentCreateApiOutput(v **CreateApiOutput, valu if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.ApiGatewayManaged = jtv + sv.ApiGatewayManaged = ptr.Bool(jtv) } case "apiId": @@ -232,7 +232,7 @@ func awsRestjson1_deserializeOpDocumentCreateApiOutput(v **CreateApiOutput, valu if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.DisableExecuteApiEndpoint = jtv + sv.DisableExecuteApiEndpoint = ptr.Bool(jtv) } case "disableSchemaValidation": @@ -241,7 +241,7 @@ func awsRestjson1_deserializeOpDocumentCreateApiOutput(v **CreateApiOutput, valu if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.DisableSchemaValidation = jtv + sv.DisableSchemaValidation = ptr.Bool(jtv) } case "importInfo": @@ -670,7 +670,7 @@ func awsRestjson1_deserializeOpDocumentCreateAuthorizerOutput(v **CreateAuthoriz if err != nil { return err } - sv.AuthorizerResultTtlInSeconds = int32(i64) + sv.AuthorizerResultTtlInSeconds = ptr.Int32(int32(i64)) } case "authorizerType": @@ -697,7 +697,7 @@ func awsRestjson1_deserializeOpDocumentCreateAuthorizerOutput(v **CreateAuthoriz if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.EnableSimpleResponses = jtv + sv.EnableSimpleResponses = ptr.Bool(jtv) } case "identitySource": @@ -885,7 +885,7 @@ func awsRestjson1_deserializeOpDocumentCreateDeploymentOutput(v **CreateDeployme if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.AutoDeployed = jtv + sv.AutoDeployed = ptr.Bool(jtv) } case "createdDate": @@ -1281,7 +1281,7 @@ func awsRestjson1_deserializeOpDocumentCreateIntegrationOutput(v **CreateIntegra if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.ApiGatewayManaged = jtv + sv.ApiGatewayManaged = ptr.Bool(jtv) } case "connectionId": @@ -1435,7 +1435,7 @@ func awsRestjson1_deserializeOpDocumentCreateIntegrationOutput(v **CreateIntegra if err != nil { return err } - sv.TimeoutInMillis = int32(i64) + sv.TimeoutInMillis = ptr.Int32(int32(i64)) } case "tlsConfig": @@ -1993,7 +1993,7 @@ func awsRestjson1_deserializeOpDocumentCreateRouteOutput(v **CreateRouteOutput, if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.ApiGatewayManaged = jtv + sv.ApiGatewayManaged = ptr.Bool(jtv) } case "apiKeyRequired": @@ -2002,7 +2002,7 @@ func awsRestjson1_deserializeOpDocumentCreateRouteOutput(v **CreateRouteOutput, if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.ApiKeyRequired = jtv + sv.ApiKeyRequired = ptr.Bool(jtv) } case "authorizationScopes": @@ -2442,7 +2442,7 @@ func awsRestjson1_deserializeOpDocumentCreateStageOutput(v **CreateStageOutput, if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.ApiGatewayManaged = jtv + sv.ApiGatewayManaged = ptr.Bool(jtv) } case "autoDeploy": @@ -2451,7 +2451,7 @@ func awsRestjson1_deserializeOpDocumentCreateStageOutput(v **CreateStageOutput, if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.AutoDeploy = jtv + sv.AutoDeploy = ptr.Bool(jtv) } case "clientCertificateId": @@ -4508,7 +4508,7 @@ func awsRestjson1_deserializeOpDocumentGetApiOutput(v **GetApiOutput, value inte if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.ApiGatewayManaged = jtv + sv.ApiGatewayManaged = ptr.Bool(jtv) } case "apiId": @@ -4562,7 +4562,7 @@ func awsRestjson1_deserializeOpDocumentGetApiOutput(v **GetApiOutput, value inte if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.DisableExecuteApiEndpoint = jtv + sv.DisableExecuteApiEndpoint = ptr.Bool(jtv) } case "disableSchemaValidation": @@ -4571,7 +4571,7 @@ func awsRestjson1_deserializeOpDocumentGetApiOutput(v **GetApiOutput, value inte if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.DisableSchemaValidation = jtv + sv.DisableSchemaValidation = ptr.Bool(jtv) } case "importInfo": @@ -5315,7 +5315,7 @@ func awsRestjson1_deserializeOpDocumentGetAuthorizerOutput(v **GetAuthorizerOutp if err != nil { return err } - sv.AuthorizerResultTtlInSeconds = int32(i64) + sv.AuthorizerResultTtlInSeconds = ptr.Int32(int32(i64)) } case "authorizerType": @@ -5342,7 +5342,7 @@ func awsRestjson1_deserializeOpDocumentGetAuthorizerOutput(v **GetAuthorizerOutp if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.EnableSimpleResponses = jtv + sv.EnableSimpleResponses = ptr.Bool(jtv) } case "identitySource": @@ -5686,7 +5686,7 @@ func awsRestjson1_deserializeOpDocumentGetDeploymentOutput(v **GetDeploymentOutp if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.AutoDeployed = jtv + sv.AutoDeployed = ptr.Bool(jtv) } case "createdDate": @@ -6391,7 +6391,7 @@ func awsRestjson1_deserializeOpDocumentGetIntegrationOutput(v **GetIntegrationOu if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.ApiGatewayManaged = jtv + sv.ApiGatewayManaged = ptr.Bool(jtv) } case "connectionId": @@ -6545,7 +6545,7 @@ func awsRestjson1_deserializeOpDocumentGetIntegrationOutput(v **GetIntegrationOu if err != nil { return err } - sv.TimeoutInMillis = int32(i64) + sv.TimeoutInMillis = ptr.Int32(int32(i64)) } case "tlsConfig": @@ -7725,7 +7725,7 @@ func awsRestjson1_deserializeOpDocumentGetRouteOutput(v **GetRouteOutput, value if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.ApiGatewayManaged = jtv + sv.ApiGatewayManaged = ptr.Bool(jtv) } case "apiKeyRequired": @@ -7734,7 +7734,7 @@ func awsRestjson1_deserializeOpDocumentGetRouteOutput(v **GetRouteOutput, value if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.ApiKeyRequired = jtv + sv.ApiKeyRequired = ptr.Bool(jtv) } case "authorizationScopes": @@ -8486,7 +8486,7 @@ func awsRestjson1_deserializeOpDocumentGetStageOutput(v **GetStageOutput, value if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.ApiGatewayManaged = jtv + sv.ApiGatewayManaged = ptr.Bool(jtv) } case "autoDeploy": @@ -8495,7 +8495,7 @@ func awsRestjson1_deserializeOpDocumentGetStageOutput(v **GetStageOutput, value if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.AutoDeploy = jtv + sv.AutoDeploy = ptr.Bool(jtv) } case "clientCertificateId": @@ -9450,7 +9450,7 @@ func awsRestjson1_deserializeOpDocumentImportApiOutput(v **ImportApiOutput, valu if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.ApiGatewayManaged = jtv + sv.ApiGatewayManaged = ptr.Bool(jtv) } case "apiId": @@ -9504,7 +9504,7 @@ func awsRestjson1_deserializeOpDocumentImportApiOutput(v **ImportApiOutput, valu if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.DisableExecuteApiEndpoint = jtv + sv.DisableExecuteApiEndpoint = ptr.Bool(jtv) } case "disableSchemaValidation": @@ -9513,7 +9513,7 @@ func awsRestjson1_deserializeOpDocumentImportApiOutput(v **ImportApiOutput, valu if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.DisableSchemaValidation = jtv + sv.DisableSchemaValidation = ptr.Bool(jtv) } case "importInfo": @@ -9733,7 +9733,7 @@ func awsRestjson1_deserializeOpDocumentReimportApiOutput(v **ReimportApiOutput, if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.ApiGatewayManaged = jtv + sv.ApiGatewayManaged = ptr.Bool(jtv) } case "apiId": @@ -9787,7 +9787,7 @@ func awsRestjson1_deserializeOpDocumentReimportApiOutput(v **ReimportApiOutput, if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.DisableExecuteApiEndpoint = jtv + sv.DisableExecuteApiEndpoint = ptr.Bool(jtv) } case "disableSchemaValidation": @@ -9796,7 +9796,7 @@ func awsRestjson1_deserializeOpDocumentReimportApiOutput(v **ReimportApiOutput, if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.DisableSchemaValidation = jtv + sv.DisableSchemaValidation = ptr.Bool(jtv) } case "importInfo": @@ -10298,7 +10298,7 @@ func awsRestjson1_deserializeOpDocumentUpdateApiOutput(v **UpdateApiOutput, valu if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.ApiGatewayManaged = jtv + sv.ApiGatewayManaged = ptr.Bool(jtv) } case "apiId": @@ -10352,7 +10352,7 @@ func awsRestjson1_deserializeOpDocumentUpdateApiOutput(v **UpdateApiOutput, valu if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.DisableExecuteApiEndpoint = jtv + sv.DisableExecuteApiEndpoint = ptr.Bool(jtv) } case "disableSchemaValidation": @@ -10361,7 +10361,7 @@ func awsRestjson1_deserializeOpDocumentUpdateApiOutput(v **UpdateApiOutput, valu if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.DisableSchemaValidation = jtv + sv.DisableSchemaValidation = ptr.Bool(jtv) } case "importInfo": @@ -10790,7 +10790,7 @@ func awsRestjson1_deserializeOpDocumentUpdateAuthorizerOutput(v **UpdateAuthoriz if err != nil { return err } - sv.AuthorizerResultTtlInSeconds = int32(i64) + sv.AuthorizerResultTtlInSeconds = ptr.Int32(int32(i64)) } case "authorizerType": @@ -10817,7 +10817,7 @@ func awsRestjson1_deserializeOpDocumentUpdateAuthorizerOutput(v **UpdateAuthoriz if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.EnableSimpleResponses = jtv + sv.EnableSimpleResponses = ptr.Bool(jtv) } case "identitySource": @@ -11005,7 +11005,7 @@ func awsRestjson1_deserializeOpDocumentUpdateDeploymentOutput(v **UpdateDeployme if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.AutoDeployed = jtv + sv.AutoDeployed = ptr.Bool(jtv) } case "createdDate": @@ -11398,7 +11398,7 @@ func awsRestjson1_deserializeOpDocumentUpdateIntegrationOutput(v **UpdateIntegra if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.ApiGatewayManaged = jtv + sv.ApiGatewayManaged = ptr.Bool(jtv) } case "connectionId": @@ -11552,7 +11552,7 @@ func awsRestjson1_deserializeOpDocumentUpdateIntegrationOutput(v **UpdateIntegra if err != nil { return err } - sv.TimeoutInMillis = int32(i64) + sv.TimeoutInMillis = ptr.Int32(int32(i64)) } case "tlsConfig": @@ -12110,7 +12110,7 @@ func awsRestjson1_deserializeOpDocumentUpdateRouteOutput(v **UpdateRouteOutput, if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.ApiGatewayManaged = jtv + sv.ApiGatewayManaged = ptr.Bool(jtv) } case "apiKeyRequired": @@ -12119,7 +12119,7 @@ func awsRestjson1_deserializeOpDocumentUpdateRouteOutput(v **UpdateRouteOutput, if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.ApiKeyRequired = jtv + sv.ApiKeyRequired = ptr.Bool(jtv) } case "authorizationScopes": @@ -12559,7 +12559,7 @@ func awsRestjson1_deserializeOpDocumentUpdateStageOutput(v **UpdateStageOutput, if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.ApiGatewayManaged = jtv + sv.ApiGatewayManaged = ptr.Bool(jtv) } case "autoDeploy": @@ -12568,7 +12568,7 @@ func awsRestjson1_deserializeOpDocumentUpdateStageOutput(v **UpdateStageOutput, if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.AutoDeploy = jtv + sv.AutoDeploy = ptr.Bool(jtv) } case "clientCertificateId": @@ -13642,7 +13642,7 @@ func awsRestjson1_deserializeDocumentApi(v **types.Api, value interface{}) error if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.ApiGatewayManaged = jtv + sv.ApiGatewayManaged = ptr.Bool(jtv) } case "apiId": @@ -13696,7 +13696,7 @@ func awsRestjson1_deserializeDocumentApi(v **types.Api, value interface{}) error if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.DisableExecuteApiEndpoint = jtv + sv.DisableExecuteApiEndpoint = ptr.Bool(jtv) } case "disableSchemaValidation": @@ -13705,7 +13705,7 @@ func awsRestjson1_deserializeDocumentApi(v **types.Api, value interface{}) error if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.DisableSchemaValidation = jtv + sv.DisableSchemaValidation = ptr.Bool(jtv) } case "importInfo": @@ -13930,7 +13930,7 @@ func awsRestjson1_deserializeDocumentAuthorizer(v **types.Authorizer, value inte if err != nil { return err } - sv.AuthorizerResultTtlInSeconds = int32(i64) + sv.AuthorizerResultTtlInSeconds = ptr.Int32(int32(i64)) } case "authorizerType": @@ -13957,7 +13957,7 @@ func awsRestjson1_deserializeDocumentAuthorizer(v **types.Authorizer, value inte if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.EnableSimpleResponses = jtv + sv.EnableSimpleResponses = ptr.Bool(jtv) } case "identitySource": @@ -14105,7 +14105,7 @@ func awsRestjson1_deserializeDocumentCors(v **types.Cors, value interface{}) err if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.AllowCredentials = jtv + sv.AllowCredentials = ptr.Bool(jtv) } case "allowHeaders": @@ -14138,7 +14138,7 @@ func awsRestjson1_deserializeDocumentCors(v **types.Cors, value interface{}) err if err != nil { return err } - sv.MaxAge = int32(i64) + sv.MaxAge = ptr.Int32(int32(i64)) } default: @@ -14286,7 +14286,7 @@ func awsRestjson1_deserializeDocumentDeployment(v **types.Deployment, value inte if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.AutoDeployed = jtv + sv.AutoDeployed = ptr.Bool(jtv) } case "createdDate": @@ -14634,7 +14634,7 @@ func awsRestjson1_deserializeDocumentIntegration(v **types.Integration, value in if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.ApiGatewayManaged = jtv + sv.ApiGatewayManaged = ptr.Bool(jtv) } case "connectionId": @@ -14788,7 +14788,7 @@ func awsRestjson1_deserializeDocumentIntegration(v **types.Integration, value in if err != nil { return err } - sv.TimeoutInMillis = int32(i64) + sv.TimeoutInMillis = ptr.Int32(int32(i64)) } case "tlsConfig": @@ -15170,7 +15170,7 @@ func awsRestjson1_deserializeDocumentParameterConstraints(v **types.ParameterCon if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.Required = jtv + sv.Required = ptr.Bool(jtv) } default: @@ -15244,7 +15244,7 @@ func awsRestjson1_deserializeDocumentRoute(v **types.Route, value interface{}) e if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.ApiGatewayManaged = jtv + sv.ApiGatewayManaged = ptr.Bool(jtv) } case "apiKeyRequired": @@ -15253,7 +15253,7 @@ func awsRestjson1_deserializeDocumentRoute(v **types.Route, value interface{}) e if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.ApiKeyRequired = jtv + sv.ApiKeyRequired = ptr.Bool(jtv) } case "authorizationScopes": @@ -15519,7 +15519,7 @@ func awsRestjson1_deserializeDocumentRouteSettings(v **types.RouteSettings, valu if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.DataTraceEnabled = jtv + sv.DataTraceEnabled = ptr.Bool(jtv) } case "detailedMetricsEnabled": @@ -15528,7 +15528,7 @@ func awsRestjson1_deserializeDocumentRouteSettings(v **types.RouteSettings, valu if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.DetailedMetricsEnabled = jtv + sv.DetailedMetricsEnabled = ptr.Bool(jtv) } case "loggingLevel": @@ -15550,7 +15550,7 @@ func awsRestjson1_deserializeDocumentRouteSettings(v **types.RouteSettings, valu if err != nil { return err } - sv.ThrottlingBurstLimit = int32(i64) + sv.ThrottlingBurstLimit = ptr.Int32(int32(i64)) } case "throttlingRateLimit": @@ -15561,7 +15561,7 @@ func awsRestjson1_deserializeDocumentRouteSettings(v **types.RouteSettings, valu if err != nil { return err } - sv.ThrottlingRateLimit = f64 + sv.ThrottlingRateLimit = ptr.Float64(f64) case string: var f64 float64 @@ -15579,7 +15579,7 @@ func awsRestjson1_deserializeDocumentRouteSettings(v **types.RouteSettings, valu return fmt.Errorf("unknown JSON number value: %s", jtv) } - sv.ThrottlingRateLimit = f64 + sv.ThrottlingRateLimit = ptr.Float64(f64) default: return fmt.Errorf("expected __double to be a JSON Number, got %T instead", value) @@ -15700,7 +15700,7 @@ func awsRestjson1_deserializeDocumentStage(v **types.Stage, value interface{}) e if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.ApiGatewayManaged = jtv + sv.ApiGatewayManaged = ptr.Bool(jtv) } case "autoDeploy": @@ -15709,7 +15709,7 @@ func awsRestjson1_deserializeDocumentStage(v **types.Stage, value interface{}) e if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.AutoDeploy = jtv + sv.AutoDeploy = ptr.Bool(jtv) } case "clientCertificateId": diff --git a/service/apigatewayv2/serializers.go b/service/apigatewayv2/serializers.go index d383cf78d1b..5903e6b90b6 100644 --- a/service/apigatewayv2/serializers.go +++ b/service/apigatewayv2/serializers.go @@ -105,14 +105,14 @@ func awsRestjson1_serializeOpDocumentCreateApiInput(v *CreateApiInput, value smi ok.String(*v.Description) } - if v.DisableExecuteApiEndpoint { + if v.DisableExecuteApiEndpoint != nil { ok := object.Key("disableExecuteApiEndpoint") - ok.Boolean(v.DisableExecuteApiEndpoint) + ok.Boolean(*v.DisableExecuteApiEndpoint) } - if v.DisableSchemaValidation { + if v.DisableSchemaValidation != nil { ok := object.Key("disableSchemaValidation") - ok.Boolean(v.DisableSchemaValidation) + ok.Boolean(*v.DisableSchemaValidation) } if v.Name != nil { @@ -343,9 +343,9 @@ func awsRestjson1_serializeOpDocumentCreateAuthorizerInput(v *CreateAuthorizerIn ok.String(*v.AuthorizerPayloadFormatVersion) } - if v.AuthorizerResultTtlInSeconds != 0 { + if v.AuthorizerResultTtlInSeconds != nil { ok := object.Key("authorizerResultTtlInSeconds") - ok.Integer(v.AuthorizerResultTtlInSeconds) + ok.Integer(*v.AuthorizerResultTtlInSeconds) } if len(v.AuthorizerType) > 0 { @@ -358,9 +358,9 @@ func awsRestjson1_serializeOpDocumentCreateAuthorizerInput(v *CreateAuthorizerIn ok.String(*v.AuthorizerUri) } - if v.EnableSimpleResponses { + if v.EnableSimpleResponses != nil { ok := object.Key("enableSimpleResponses") - ok.Boolean(v.EnableSimpleResponses) + ok.Boolean(*v.EnableSimpleResponses) } if v.IdentitySource != nil { @@ -740,9 +740,9 @@ func awsRestjson1_serializeOpDocumentCreateIntegrationInput(v *CreateIntegration ok.String(*v.TemplateSelectionExpression) } - if v.TimeoutInMillis != 0 { + if v.TimeoutInMillis != nil { ok := object.Key("timeoutInMillis") - ok.Integer(v.TimeoutInMillis) + ok.Integer(*v.TimeoutInMillis) } if v.TlsConfig != nil { @@ -1059,9 +1059,9 @@ func awsRestjson1_serializeOpDocumentCreateRouteInput(v *CreateRouteInput, value object := value.Object() defer object.Close() - if v.ApiKeyRequired { + if v.ApiKeyRequired != nil { ok := object.Key("apiKeyRequired") - ok.Boolean(v.ApiKeyRequired) + ok.Boolean(*v.ApiKeyRequired) } if v.AuthorizationScopes != nil { @@ -1326,9 +1326,9 @@ func awsRestjson1_serializeOpDocumentCreateStageInput(v *CreateStageInput, value } } - if v.AutoDeploy { + if v.AutoDeploy != nil { ok := object.Key("autoDeploy") - ok.Boolean(v.AutoDeploy) + ok.Boolean(*v.AutoDeploy) } if v.ClientCertificateId != nil { @@ -2728,8 +2728,8 @@ func awsRestjson1_serializeOpHttpBindingsExportApiInput(v *ExportApiInput, encod encoder.SetQuery("exportVersion").String(*v.ExportVersion) } - if v.IncludeExtensions { - encoder.SetQuery("includeExtensions").Boolean(v.IncludeExtensions) + if v.IncludeExtensions != nil { + encoder.SetQuery("includeExtensions").Boolean(*v.IncludeExtensions) } if v.OutputType != nil { @@ -4705,8 +4705,8 @@ func awsRestjson1_serializeOpHttpBindingsImportApiInput(v *ImportApiInput, encod encoder.SetQuery("basepath").String(*v.Basepath) } - if v.FailOnWarnings { - encoder.SetQuery("failOnWarnings").Boolean(v.FailOnWarnings) + if v.FailOnWarnings != nil { + encoder.SetQuery("failOnWarnings").Boolean(*v.FailOnWarnings) } return nil @@ -4801,8 +4801,8 @@ func awsRestjson1_serializeOpHttpBindingsReimportApiInput(v *ReimportApiInput, e encoder.SetQuery("basepath").String(*v.Basepath) } - if v.FailOnWarnings { - encoder.SetQuery("failOnWarnings").Boolean(v.FailOnWarnings) + if v.FailOnWarnings != nil { + encoder.SetQuery("failOnWarnings").Boolean(*v.FailOnWarnings) } return nil @@ -5157,14 +5157,14 @@ func awsRestjson1_serializeOpDocumentUpdateApiInput(v *UpdateApiInput, value smi ok.String(*v.Description) } - if v.DisableExecuteApiEndpoint { + if v.DisableExecuteApiEndpoint != nil { ok := object.Key("disableExecuteApiEndpoint") - ok.Boolean(v.DisableExecuteApiEndpoint) + ok.Boolean(*v.DisableExecuteApiEndpoint) } - if v.DisableSchemaValidation { + if v.DisableSchemaValidation != nil { ok := object.Key("disableSchemaValidation") - ok.Boolean(v.DisableSchemaValidation) + ok.Boolean(*v.DisableSchemaValidation) } if v.Name != nil { @@ -5401,9 +5401,9 @@ func awsRestjson1_serializeOpDocumentUpdateAuthorizerInput(v *UpdateAuthorizerIn ok.String(*v.AuthorizerPayloadFormatVersion) } - if v.AuthorizerResultTtlInSeconds != 0 { + if v.AuthorizerResultTtlInSeconds != nil { ok := object.Key("authorizerResultTtlInSeconds") - ok.Integer(v.AuthorizerResultTtlInSeconds) + ok.Integer(*v.AuthorizerResultTtlInSeconds) } if len(v.AuthorizerType) > 0 { @@ -5416,9 +5416,9 @@ func awsRestjson1_serializeOpDocumentUpdateAuthorizerInput(v *UpdateAuthorizerIn ok.String(*v.AuthorizerUri) } - if v.EnableSimpleResponses { + if v.EnableSimpleResponses != nil { ok := object.Key("enableSimpleResponses") - ok.Boolean(v.EnableSimpleResponses) + ok.Boolean(*v.EnableSimpleResponses) } if v.IdentitySource != nil { @@ -5812,9 +5812,9 @@ func awsRestjson1_serializeOpDocumentUpdateIntegrationInput(v *UpdateIntegration ok.String(*v.TemplateSelectionExpression) } - if v.TimeoutInMillis != 0 { + if v.TimeoutInMillis != nil { ok := object.Key("timeoutInMillis") - ok.Integer(v.TimeoutInMillis) + ok.Integer(*v.TimeoutInMillis) } if v.TlsConfig != nil { @@ -6158,9 +6158,9 @@ func awsRestjson1_serializeOpDocumentUpdateRouteInput(v *UpdateRouteInput, value object := value.Object() defer object.Close() - if v.ApiKeyRequired { + if v.ApiKeyRequired != nil { ok := object.Key("apiKeyRequired") - ok.Boolean(v.ApiKeyRequired) + ok.Boolean(*v.ApiKeyRequired) } if v.AuthorizationScopes != nil { @@ -6443,9 +6443,9 @@ func awsRestjson1_serializeOpDocumentUpdateStageInput(v *UpdateStageInput, value } } - if v.AutoDeploy { + if v.AutoDeploy != nil { ok := object.Key("autoDeploy") - ok.Boolean(v.AutoDeploy) + ok.Boolean(*v.AutoDeploy) } if v.ClientCertificateId != nil { @@ -6618,9 +6618,9 @@ func awsRestjson1_serializeDocumentCors(v *types.Cors, value smithyjson.Value) e object := value.Object() defer object.Close() - if v.AllowCredentials { + if v.AllowCredentials != nil { ok := object.Key("allowCredentials") - ok.Boolean(v.AllowCredentials) + ok.Boolean(*v.AllowCredentials) } if v.AllowHeaders != nil { @@ -6651,9 +6651,9 @@ func awsRestjson1_serializeDocumentCors(v *types.Cors, value smithyjson.Value) e } } - if v.MaxAge != 0 { + if v.MaxAge != nil { ok := object.Key("maxAge") - ok.Integer(v.MaxAge) + ok.Integer(*v.MaxAge) } return nil @@ -6824,9 +6824,9 @@ func awsRestjson1_serializeDocumentParameterConstraints(v *types.ParameterConstr object := value.Object() defer object.Close() - if v.Required { + if v.Required != nil { ok := object.Key("required") - ok.Boolean(v.Required) + ok.Boolean(*v.Required) } return nil @@ -6877,14 +6877,14 @@ func awsRestjson1_serializeDocumentRouteSettings(v *types.RouteSettings, value s object := value.Object() defer object.Close() - if v.DataTraceEnabled { + if v.DataTraceEnabled != nil { ok := object.Key("dataTraceEnabled") - ok.Boolean(v.DataTraceEnabled) + ok.Boolean(*v.DataTraceEnabled) } - if v.DetailedMetricsEnabled { + if v.DetailedMetricsEnabled != nil { ok := object.Key("detailedMetricsEnabled") - ok.Boolean(v.DetailedMetricsEnabled) + ok.Boolean(*v.DetailedMetricsEnabled) } if len(v.LoggingLevel) > 0 { @@ -6892,25 +6892,25 @@ func awsRestjson1_serializeDocumentRouteSettings(v *types.RouteSettings, value s ok.String(string(v.LoggingLevel)) } - if v.ThrottlingBurstLimit != 0 { + if v.ThrottlingBurstLimit != nil { ok := object.Key("throttlingBurstLimit") - ok.Integer(v.ThrottlingBurstLimit) + ok.Integer(*v.ThrottlingBurstLimit) } - if v.ThrottlingRateLimit != 0 { + if v.ThrottlingRateLimit != nil { ok := object.Key("throttlingRateLimit") switch { - case math.IsNaN(v.ThrottlingRateLimit): + case math.IsNaN(*v.ThrottlingRateLimit): ok.String("NaN") - case math.IsInf(v.ThrottlingRateLimit, 1): + case math.IsInf(*v.ThrottlingRateLimit, 1): ok.String("Infinity") - case math.IsInf(v.ThrottlingRateLimit, -1): + case math.IsInf(*v.ThrottlingRateLimit, -1): ok.String("-Infinity") default: - ok.Double(v.ThrottlingRateLimit) + ok.Double(*v.ThrottlingRateLimit) } } diff --git a/service/apigatewayv2/types/types.go b/service/apigatewayv2/types/types.go index fdbb2b2d6c6..9ab574dea77 100644 --- a/service/apigatewayv2/types/types.go +++ b/service/apigatewayv2/types/types.go @@ -49,7 +49,7 @@ type Api struct { // Specifies whether an API is managed by API Gateway. You can't update or delete // a managed API by using API Gateway. A managed API can be deleted only through // the tooling or service that created it. - ApiGatewayManaged bool + ApiGatewayManaged *bool // The API ID. ApiId *string @@ -73,11 +73,11 @@ type Api struct { // https://{api_id}.execute-api.{region}.amazonaws.com endpoint. To require that // clients use a custom domain name to invoke your API, disable the default // endpoint. - DisableExecuteApiEndpoint bool + DisableExecuteApiEndpoint *bool // Avoid validating models when creating a deployment. Supported only for // WebSocket APIs. - DisableSchemaValidation bool + DisableSchemaValidation *bool // The validation information during API import. This may include particular // properties of your OpenAPI definition which are ignored during import. Supported @@ -146,7 +146,7 @@ type Authorizer struct { // 0, authorization caching is disabled. If it is greater than 0, API Gateway // caches authorizer responses. The maximum value is 3600, or 1 hour. Supported // only for HTTP API Lambda authorizers. - AuthorizerResultTtlInSeconds int32 + AuthorizerResultTtlInSeconds *int32 // The authorizer type. Specify REQUEST for a Lambda function using incoming // request parameters. Specify JWT to use JSON Web Tokens (supported only for HTTP @@ -169,7 +169,7 @@ type Authorizer struct { // enabled, the Lambda authorizer can return a boolean value instead of an IAM // policy. Supported only for HTTP APIs. To learn more, see Working with AWS // Lambda authorizers for HTTP APIs (https://docs.aws.amazon.com/apigateway/latest/developerguide/http-api-lambda-authorizer.html) - EnableSimpleResponses bool + EnableSimpleResponses *bool // The identity source for which authorization is requested. For a REQUEST // authorizer, this is optional. The value is a set of one or more mapping @@ -210,7 +210,7 @@ type Cors struct { // Specifies whether credentials are included in the CORS request. Supported only // for HTTP APIs. - AllowCredentials bool + AllowCredentials *bool // Represents a collection of allowed headers. Supported only for HTTP APIs. AllowHeaders []string @@ -226,7 +226,7 @@ type Cors struct { // The number of seconds that the browser should cache preflight request results. // Supported only for HTTP APIs. - MaxAge int32 + MaxAge *int32 noSmithyDocumentSerde } @@ -236,7 +236,7 @@ type Cors struct { type Deployment struct { // Specifies whether a deployment was automatically released. - AutoDeployed bool + AutoDeployed *bool // The date and time when the Deployment resource was created. CreatedDate *time.Time @@ -331,7 +331,7 @@ type Integration struct { // Specifies whether an integration is managed by API Gateway. If you created an // API using using quick create, the resulting integration is managed by API // Gateway. You can update a managed integration, but you can't delete it. - ApiGatewayManaged bool + ApiGatewayManaged *bool // The ID of the VPC link for a private integration. Supported only for HTTP APIs. ConnectionId *string @@ -469,7 +469,7 @@ type Integration struct { // Custom timeout between 50 and 29,000 milliseconds for WebSocket APIs and // between 50 and 30,000 milliseconds for HTTP APIs. The default timeout is 29 // seconds for WebSocket APIs and 30 seconds for HTTP APIs. - TimeoutInMillis int32 + TimeoutInMillis *int32 // The TLS configuration for a private integration. If you specify a TLS // configuration, private integration traffic uses the HTTPS protocol. Supported @@ -613,7 +613,7 @@ type MutualTlsAuthenticationInput struct { type ParameterConstraints struct { // Whether or not the parameter is required. - Required bool + Required *bool noSmithyDocumentSerde } @@ -629,11 +629,11 @@ type Route struct { // Specifies whether a route is managed by API Gateway. If you created an API // using quick create, the $default route is managed by API Gateway. You can't // modify the $default route key. - ApiGatewayManaged bool + ApiGatewayManaged *bool // Specifies whether an API key is required for this route. Supported only for // WebSocket APIs. - ApiKeyRequired bool + ApiKeyRequired *bool // A list of authorization scopes configured on a route. The scopes are used with // a JWT authorizer to authorize the method invocation. The authorization works by @@ -711,10 +711,10 @@ type RouteSettings struct { // Specifies whether (true) or not (false) data trace logging is enabled for this // route. This property affects the log entries pushed to Amazon CloudWatch Logs. // Supported only for WebSocket APIs. - DataTraceEnabled bool + DataTraceEnabled *bool // Specifies whether detailed metrics are enabled. - DetailedMetricsEnabled bool + DetailedMetricsEnabled *bool // Specifies the logging level for this route: INFO, ERROR, or OFF. This property // affects the log entries pushed to Amazon CloudWatch Logs. Supported only for @@ -722,10 +722,10 @@ type RouteSettings struct { LoggingLevel LoggingLevel // Specifies the throttling burst limit. - ThrottlingBurstLimit int32 + ThrottlingBurstLimit *int32 // Specifies the throttling rate limit. - ThrottlingRateLimit float64 + ThrottlingRateLimit *float64 noSmithyDocumentSerde } @@ -744,11 +744,11 @@ type Stage struct { // Specifies whether a stage is managed by API Gateway. If you created an API // using quick create, the $default stage is managed by API Gateway. You can't // modify the $default stage. - ApiGatewayManaged bool + ApiGatewayManaged *bool // Specifies whether updates to an API automatically trigger a new deployment. The // default value is false. - AutoDeploy bool + AutoDeploy *bool // The identifier of a client certificate for a Stage. Supported only for // WebSocket APIs. diff --git a/service/greengrass/api_op_ResetDeployments.go b/service/greengrass/api_op_ResetDeployments.go index 4bceb2a709a..bc9cc168541 100644 --- a/service/greengrass/api_op_ResetDeployments.go +++ b/service/greengrass/api_op_ResetDeployments.go @@ -43,7 +43,7 @@ type ResetDeploymentsInput struct { AmznClientToken *string // If true, performs a best-effort only core reset. - Force bool + Force *bool noSmithyDocumentSerde } diff --git a/service/greengrass/deserializers.go b/service/greengrass/deserializers.go index 0c7ebc9ac13..84ca815b71f 100644 --- a/service/greengrass/deserializers.go +++ b/service/greengrass/deserializers.go @@ -15002,7 +15002,7 @@ func awsRestjson1_deserializeDocumentBulkDeploymentMetrics(v **types.BulkDeploym if err != nil { return err } - sv.InvalidInputRecords = int32(i64) + sv.InvalidInputRecords = ptr.Int32(int32(i64)) } case "RecordsProcessed": @@ -15015,7 +15015,7 @@ func awsRestjson1_deserializeDocumentBulkDeploymentMetrics(v **types.BulkDeploym if err != nil { return err } - sv.RecordsProcessed = int32(i64) + sv.RecordsProcessed = ptr.Int32(int32(i64)) } case "RetryAttempts": @@ -15028,7 +15028,7 @@ func awsRestjson1_deserializeDocumentBulkDeploymentMetrics(v **types.BulkDeploym if err != nil { return err } - sv.RetryAttempts = int32(i64) + sv.RetryAttempts = ptr.Int32(int32(i64)) } default: @@ -15266,7 +15266,7 @@ func awsRestjson1_deserializeDocumentConnectivityInfo(v **types.ConnectivityInfo if err != nil { return err } - sv.PortNumber = int32(i64) + sv.PortNumber = ptr.Int32(int32(i64)) } default: @@ -15414,7 +15414,7 @@ func awsRestjson1_deserializeDocumentCore(v **types.Core, value interface{}) err if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.SyncShadow = jtv + sv.SyncShadow = ptr.Bool(jtv) } case "ThingArn": @@ -15726,7 +15726,7 @@ func awsRestjson1_deserializeDocumentDevice(v **types.Device, value interface{}) if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.SyncShadow = jtv + sv.SyncShadow = ptr.Bool(jtv) } case "ThingArn": @@ -15993,7 +15993,7 @@ func awsRestjson1_deserializeDocumentFunctionConfiguration(v **types.FunctionCon if err != nil { return err } - sv.MemorySize = int32(i64) + sv.MemorySize = ptr.Int32(int32(i64)) } case "Pinned": @@ -16002,7 +16002,7 @@ func awsRestjson1_deserializeDocumentFunctionConfiguration(v **types.FunctionCon if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.Pinned = jtv + sv.Pinned = ptr.Bool(jtv) } case "Timeout": @@ -16015,7 +16015,7 @@ func awsRestjson1_deserializeDocumentFunctionConfiguration(v **types.FunctionCon if err != nil { return err } - sv.Timeout = int32(i64) + sv.Timeout = ptr.Int32(int32(i64)) } default: @@ -16055,7 +16055,7 @@ func awsRestjson1_deserializeDocumentFunctionConfigurationEnvironment(v **types. if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.AccessSysfs = jtv + sv.AccessSysfs = ptr.Bool(jtv) } case "Execution": @@ -16281,7 +16281,7 @@ func awsRestjson1_deserializeDocumentFunctionRunAsConfig(v **types.FunctionRunAs if err != nil { return err } - sv.Gid = int32(i64) + sv.Gid = ptr.Int32(int32(i64)) } case "Uid": @@ -16294,7 +16294,7 @@ func awsRestjson1_deserializeDocumentFunctionRunAsConfig(v **types.FunctionRunAs if err != nil { return err } - sv.Uid = int32(i64) + sv.Uid = ptr.Int32(int32(i64)) } default: @@ -16477,7 +16477,7 @@ func awsRestjson1_deserializeDocumentGroupOwnerSetting(v **types.GroupOwnerSetti if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.AutoAddGroupOwner = jtv + sv.AutoAddGroupOwner = ptr.Bool(jtv) } case "GroupOwner": @@ -16795,7 +16795,7 @@ func awsRestjson1_deserializeDocumentLogger(v **types.Logger, value interface{}) if err != nil { return err } - sv.Space = int32(i64) + sv.Space = ptr.Int32(int32(i64)) } case "Type": diff --git a/service/greengrass/serializers.go b/service/greengrass/serializers.go index 8912582d507..9c8be72b343 100644 --- a/service/greengrass/serializers.go +++ b/service/greengrass/serializers.go @@ -5855,9 +5855,9 @@ func awsRestjson1_serializeOpDocumentResetDeploymentsInput(v *ResetDeploymentsIn object := value.Object() defer object.Close() - if v.Force { + if v.Force != nil { ok := object.Key("Force") - ok.Boolean(v.Force) + ok.Boolean(*v.Force) } return nil @@ -7315,9 +7315,9 @@ func awsRestjson1_serializeDocumentConnectivityInfo(v *types.ConnectivityInfo, v ok.String(*v.Metadata) } - if v.PortNumber != 0 { + if v.PortNumber != nil { ok := object.Key("PortNumber") - ok.Integer(v.PortNumber) + ok.Integer(*v.PortNumber) } return nil @@ -7375,9 +7375,9 @@ func awsRestjson1_serializeDocumentCore(v *types.Core, value smithyjson.Value) e ok.String(*v.Id) } - if v.SyncShadow { + if v.SyncShadow != nil { ok := object.Key("SyncShadow") - ok.Boolean(v.SyncShadow) + ok.Boolean(*v.SyncShadow) } if v.ThingArn != nil { @@ -7416,9 +7416,9 @@ func awsRestjson1_serializeDocumentDevice(v *types.Device, value smithyjson.Valu ok.String(*v.Id) } - if v.SyncShadow { + if v.SyncShadow != nil { ok := object.Key("SyncShadow") - ok.Boolean(v.SyncShadow) + ok.Boolean(*v.SyncShadow) } if v.ThingArn != nil { @@ -7498,19 +7498,19 @@ func awsRestjson1_serializeDocumentFunctionConfiguration(v *types.FunctionConfig ok.String(*v.FunctionRuntimeOverride) } - if v.MemorySize != 0 { + if v.MemorySize != nil { ok := object.Key("MemorySize") - ok.Integer(v.MemorySize) + ok.Integer(*v.MemorySize) } - if v.Pinned { + if v.Pinned != nil { ok := object.Key("Pinned") - ok.Boolean(v.Pinned) + ok.Boolean(*v.Pinned) } - if v.Timeout != 0 { + if v.Timeout != nil { ok := object.Key("Timeout") - ok.Integer(v.Timeout) + ok.Integer(*v.Timeout) } return nil @@ -7520,9 +7520,9 @@ func awsRestjson1_serializeDocumentFunctionConfigurationEnvironment(v *types.Fun object := value.Object() defer object.Close() - if v.AccessSysfs { + if v.AccessSysfs != nil { ok := object.Key("AccessSysfs") - ok.Boolean(v.AccessSysfs) + ok.Boolean(*v.AccessSysfs) } if v.Execution != nil { @@ -7626,14 +7626,14 @@ func awsRestjson1_serializeDocumentFunctionRunAsConfig(v *types.FunctionRunAsCon object := value.Object() defer object.Close() - if v.Gid != 0 { + if v.Gid != nil { ok := object.Key("Gid") - ok.Integer(v.Gid) + ok.Integer(*v.Gid) } - if v.Uid != 0 { + if v.Uid != nil { ok := object.Key("Uid") - ok.Integer(v.Uid) + ok.Integer(*v.Uid) } return nil @@ -7643,9 +7643,9 @@ func awsRestjson1_serializeDocumentGroupOwnerSetting(v *types.GroupOwnerSetting, object := value.Object() defer object.Close() - if v.AutoAddGroupOwner { + if v.AutoAddGroupOwner != nil { ok := object.Key("AutoAddGroupOwner") - ok.Boolean(v.AutoAddGroupOwner) + ok.Boolean(*v.AutoAddGroupOwner) } if v.GroupOwner != nil { @@ -7760,9 +7760,9 @@ func awsRestjson1_serializeDocumentLogger(v *types.Logger, value smithyjson.Valu ok.String(string(v.Level)) } - if v.Space != 0 { + if v.Space != nil { ok := object.Key("Space") - ok.Integer(v.Space) + ok.Integer(*v.Space) } if len(v.Type) > 0 { diff --git a/service/greengrass/types/types.go b/service/greengrass/types/types.go index 5a1fa9470a5..94df3852089 100644 --- a/service/greengrass/types/types.go +++ b/service/greengrass/types/types.go @@ -29,17 +29,17 @@ type BulkDeploymentMetrics struct { // this can occur if a group record from the input file uses an invalid format or // specifies a nonexistent group version, or if the execution role doesn't grant // permission to deploy a group or group version. - InvalidInputRecords int32 + InvalidInputRecords *int32 // The total number of group records from the input file that have been processed // so far, or attempted. - RecordsProcessed int32 + RecordsProcessed *int32 // The total number of deployment attempts that returned a retryable error. For // example, a retry is triggered if the attempt to deploy a group returns a // throttling error. ''StartBulkDeployment'' retries a group deployment up to five // times. - RetryAttempts int32 + RetryAttempts *int32 noSmithyDocumentSerde } @@ -88,7 +88,7 @@ type ConnectivityInfo struct { Metadata *string // The port of the Greengrass core. Usually 8883. - PortNumber int32 + PortNumber *int32 noSmithyDocumentSerde } @@ -148,7 +148,7 @@ type Core struct { ThingArn *string // If true, the core's local shadow is automatically synced with the cloud. - SyncShadow bool + SyncShadow *bool noSmithyDocumentSerde } @@ -234,7 +234,7 @@ type Device struct { ThingArn *string // If true, the device's local shadow will be automatically synced with the cloud. - SyncShadow bool + SyncShadow *bool noSmithyDocumentSerde } @@ -302,16 +302,16 @@ type FunctionConfiguration struct { // The memory size, in KB, which the function requires. This setting is not // applicable and should be cleared when you run the Lambda function without // containerization. - MemorySize int32 + MemorySize *int32 // True if the function is pinned. Pinned means the function is long-lived and // starts when the core starts. - Pinned bool + Pinned *bool // The allowed function execution time, after which Lambda should terminate the // function. This timeout still applies to pinned Lambda functions for each // request. - Timeout int32 + Timeout *int32 noSmithyDocumentSerde } @@ -322,7 +322,7 @@ type FunctionConfigurationEnvironment struct { // If true, the Lambda function is allowed to access the host's /sys folder. Use // this when the Lambda function needs to read device information from /sys. This // setting applies only when you run the Lambda function in a Greengrass container. - AccessSysfs bool + AccessSysfs *bool // Configuration related to executing the Lambda function Execution *FunctionExecutionConfig @@ -413,10 +413,10 @@ type FunctionExecutionConfig struct { type FunctionRunAsConfig struct { // The group ID whose permissions are used to run a Lambda function. - Gid int32 + Gid *int32 // The user ID whose permissions are used to run a Lambda function. - Uid int32 + Uid *int32 noSmithyDocumentSerde } @@ -466,7 +466,7 @@ type GroupOwnerSetting struct { // If true, AWS IoT Greengrass automatically adds the specified Linux OS group // owner of the resource to the Lambda process privileges. Thus the Lambda process // will have the file access permissions of the added Linux group. - AutoAddGroupOwner bool + AutoAddGroupOwner *bool // The name of the Linux OS group whose privileges will be added to the Lambda // process. This field is optional. @@ -559,7 +559,7 @@ type Logger struct { // The amount of file space, in KB, to use if the local file system is used for // logging purposes. - Space int32 + Space *int32 noSmithyDocumentSerde } diff --git a/service/iot1clickdevicesservice/api_op_ClaimDevicesByClaimCode.go b/service/iot1clickdevicesservice/api_op_ClaimDevicesByClaimCode.go index 28bc0b9273a..189008234ae 100644 --- a/service/iot1clickdevicesservice/api_op_ClaimDevicesByClaimCode.go +++ b/service/iot1clickdevicesservice/api_op_ClaimDevicesByClaimCode.go @@ -49,7 +49,7 @@ type ClaimDevicesByClaimCodeOutput struct { // The total number of devices associated with the claim code that has been // processed in the claim request. - Total int32 + Total *int32 // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/iot1clickdevicesservice/api_op_ListDeviceEvents.go b/service/iot1clickdevicesservice/api_op_ListDeviceEvents.go index b10a589b59e..5f5b5ebf1f6 100644 --- a/service/iot1clickdevicesservice/api_op_ListDeviceEvents.go +++ b/service/iot1clickdevicesservice/api_op_ListDeviceEvents.go @@ -55,7 +55,7 @@ type ListDeviceEventsInput struct { // The maximum number of results to return per request. If not set, a default // value of 100 is used. - MaxResults int32 + MaxResults *int32 // The token to retrieve the next set of results. NextToken *string diff --git a/service/iot1clickdevicesservice/api_op_ListDevices.go b/service/iot1clickdevicesservice/api_op_ListDevices.go index de6a261da69..53c418fd527 100644 --- a/service/iot1clickdevicesservice/api_op_ListDevices.go +++ b/service/iot1clickdevicesservice/api_op_ListDevices.go @@ -39,7 +39,7 @@ type ListDevicesInput struct { // The maximum number of results to return per request. If not set, a default // value of 100 is used. - MaxResults int32 + MaxResults *int32 // The token to retrieve the next set of results. NextToken *string diff --git a/service/iot1clickdevicesservice/api_op_UpdateDeviceState.go b/service/iot1clickdevicesservice/api_op_UpdateDeviceState.go index bd3a374077f..35efc23d884 100644 --- a/service/iot1clickdevicesservice/api_op_UpdateDeviceState.go +++ b/service/iot1clickdevicesservice/api_op_UpdateDeviceState.go @@ -40,7 +40,7 @@ type UpdateDeviceStateInput struct { DeviceId *string // If true, the device is enabled. If false, the device is disabled. - Enabled bool + Enabled *bool noSmithyDocumentSerde } diff --git a/service/iot1clickdevicesservice/deserializers.go b/service/iot1clickdevicesservice/deserializers.go index fd6784da093..22720740ec5 100644 --- a/service/iot1clickdevicesservice/deserializers.go +++ b/service/iot1clickdevicesservice/deserializers.go @@ -178,7 +178,7 @@ func awsRestjson1_deserializeOpDocumentClaimDevicesByClaimCodeOutput(v **ClaimDe if err != nil { return err } - sv.Total = int32(i64) + sv.Total = ptr.Int32(int32(i64)) } default: @@ -2460,7 +2460,7 @@ func awsRestjson1_deserializeDocumentDeviceDescription(v **types.DeviceDescripti if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.Enabled = jtv + sv.Enabled = ptr.Bool(jtv) } case "remainingLife": @@ -2471,7 +2471,7 @@ func awsRestjson1_deserializeDocumentDeviceDescription(v **types.DeviceDescripti if err != nil { return err } - sv.RemainingLife = f64 + sv.RemainingLife = ptr.Float64(f64) case string: var f64 float64 @@ -2489,7 +2489,7 @@ func awsRestjson1_deserializeDocumentDeviceDescription(v **types.DeviceDescripti return fmt.Errorf("unknown JSON number value: %s", jtv) } - sv.RemainingLife = f64 + sv.RemainingLife = ptr.Float64(f64) default: return fmt.Errorf("expected __doubleMin0Max100 to be a JSON Number, got %T instead", value) diff --git a/service/iot1clickdevicesservice/serializers.go b/service/iot1clickdevicesservice/serializers.go index c0fb289571d..edcc6d08609 100644 --- a/service/iot1clickdevicesservice/serializers.go +++ b/service/iot1clickdevicesservice/serializers.go @@ -526,8 +526,8 @@ func awsRestjson1_serializeOpHttpBindingsListDeviceEventsInput(v *ListDeviceEven encoder.SetQuery("fromTimeStamp").String(smithytime.FormatDateTime(*v.FromTimeStamp)) } - if v.MaxResults != 0 { - encoder.SetQuery("maxResults").Integer(v.MaxResults) + if v.MaxResults != nil { + encoder.SetQuery("maxResults").Integer(*v.MaxResults) } if v.NextToken != nil { @@ -598,8 +598,8 @@ func awsRestjson1_serializeOpHttpBindingsListDevicesInput(v *ListDevicesInput, e encoder.SetQuery("deviceType").String(*v.DeviceType) } - if v.MaxResults != 0 { - encoder.SetQuery("maxResults").Integer(v.MaxResults) + if v.MaxResults != nil { + encoder.SetQuery("maxResults").Integer(*v.MaxResults) } if v.NextToken != nil { @@ -980,9 +980,9 @@ func awsRestjson1_serializeOpDocumentUpdateDeviceStateInput(v *UpdateDeviceState object := value.Object() defer object.Close() - if v.Enabled { + if v.Enabled != nil { ok := object.Key("enabled") - ok.Boolean(v.Enabled) + ok.Boolean(*v.Enabled) } return nil diff --git a/service/iot1clickdevicesservice/types/types.go b/service/iot1clickdevicesservice/types/types.go index f0efe7de5b3..9a1fb8eee4b 100644 --- a/service/iot1clickdevicesservice/types/types.go +++ b/service/iot1clickdevicesservice/types/types.go @@ -37,11 +37,11 @@ type DeviceDescription struct { DeviceId *string // A Boolean value indicating whether or not the device is enabled. - Enabled bool + Enabled *bool // A value between 0 and 1 inclusive, representing the fraction of life remaining // for the device. - RemainingLife float64 + RemainingLife *float64 // The tags currently associated with the AWS IoT 1-Click device. Tags map[string]string diff --git a/service/kafka/api_op_CreateCluster.go b/service/kafka/api_op_CreateCluster.go index 3e39d1a3862..c5b59db6445 100644 --- a/service/kafka/api_op_CreateCluster.go +++ b/service/kafka/api_op_CreateCluster.go @@ -52,7 +52,7 @@ type CreateClusterInput struct { // The number of broker nodes in the cluster. // // This member is required. - NumberOfBrokerNodes int32 + NumberOfBrokerNodes *int32 // Includes all client authentication related information. ClientAuthentication *types.ClientAuthentication diff --git a/service/kafka/api_op_DescribeConfigurationRevision.go b/service/kafka/api_op_DescribeConfigurationRevision.go index 24098b916fa..d03b8c89955 100644 --- a/service/kafka/api_op_DescribeConfigurationRevision.go +++ b/service/kafka/api_op_DescribeConfigurationRevision.go @@ -43,7 +43,7 @@ type DescribeConfigurationRevisionInput struct { // A string that uniquely identifies a revision of an MSK configuration. // // This member is required. - Revision int64 + Revision *int64 noSmithyDocumentSerde } @@ -60,7 +60,7 @@ type DescribeConfigurationRevisionOutput struct { Description *string // The revision number. - Revision int64 + Revision *int64 // Contents of the server.properties file. When using the API, you must ensure // that the contents of the file are base64 encoded. When using the AWS Management diff --git a/service/kafka/api_op_DescribeReplicator.go b/service/kafka/api_op_DescribeReplicator.go index f48e4ef7601..4164b89b19f 100644 --- a/service/kafka/api_op_DescribeReplicator.go +++ b/service/kafka/api_op_DescribeReplicator.go @@ -52,7 +52,7 @@ type DescribeReplicatorOutput struct { CurrentVersion *string // Whether this resource is a replicator reference. - IsReplicatorReference bool + IsReplicatorReference *bool // Kafka Clusters used in setting up sources / targets for replication. KafkaClusters []types.KafkaClusterDescription diff --git a/service/kafka/api_op_ListClientVpcConnections.go b/service/kafka/api_op_ListClientVpcConnections.go index 6efe5babbc3..e3600659fb6 100644 --- a/service/kafka/api_op_ListClientVpcConnections.go +++ b/service/kafka/api_op_ListClientVpcConnections.go @@ -41,7 +41,7 @@ type ListClientVpcConnectionsInput struct { // The maximum number of results to return in the response. If there are more // results, the response includes a NextToken parameter. - MaxResults int32 + MaxResults *int32 // The paginated results marker. When the result of the operation is truncated, // the call returns NextToken in the response. To get the next batch, provide this @@ -179,8 +179,8 @@ func NewListClientVpcConnectionsPaginator(client ListClientVpcConnectionsAPIClie } options := ListClientVpcConnectionsPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults + if params.MaxResults != nil { + options.Limit = *params.MaxResults } for _, fn := range optFns { @@ -210,7 +210,11 @@ func (p *ListClientVpcConnectionsPaginator) 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.ListClientVpcConnections(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/kafka/api_op_ListClusterOperations.go b/service/kafka/api_op_ListClusterOperations.go index 216eef94a8b..62911456fe2 100644 --- a/service/kafka/api_op_ListClusterOperations.go +++ b/service/kafka/api_op_ListClusterOperations.go @@ -42,7 +42,7 @@ type ListClusterOperationsInput struct { // The maximum number of results to return in the response. If there are more // results, the response includes a NextToken parameter. - MaxResults int32 + MaxResults *int32 // The paginated results marker. When the result of the operation is truncated, // the call returns NextToken in the response. To get the next batch, provide this @@ -179,8 +179,8 @@ func NewListClusterOperationsPaginator(client ListClusterOperationsAPIClient, pa } options := ListClusterOperationsPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults + if params.MaxResults != nil { + options.Limit = *params.MaxResults } for _, fn := range optFns { @@ -210,7 +210,11 @@ func (p *ListClusterOperationsPaginator) 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.ListClusterOperations(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/kafka/api_op_ListClusterOperationsV2.go b/service/kafka/api_op_ListClusterOperationsV2.go index 1bd91cd3a4d..9d727c22537 100644 --- a/service/kafka/api_op_ListClusterOperationsV2.go +++ b/service/kafka/api_op_ListClusterOperationsV2.go @@ -41,7 +41,7 @@ type ListClusterOperationsV2Input struct { ClusterArn *string // The maxResults of the query. - MaxResults int32 + MaxResults *int32 // The nextToken of the query. NextToken *string @@ -176,8 +176,8 @@ func NewListClusterOperationsV2Paginator(client ListClusterOperationsV2APIClient } options := ListClusterOperationsV2PaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults + if params.MaxResults != nil { + options.Limit = *params.MaxResults } for _, fn := range optFns { @@ -207,7 +207,11 @@ func (p *ListClusterOperationsV2Paginator) 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.ListClusterOperationsV2(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/kafka/api_op_ListClusters.go b/service/kafka/api_op_ListClusters.go index b4c51f1be65..57b098f8e34 100644 --- a/service/kafka/api_op_ListClusters.go +++ b/service/kafka/api_op_ListClusters.go @@ -40,7 +40,7 @@ type ListClustersInput struct { // The maximum number of results to return in the response. If there are more // results, the response includes a NextToken parameter. - MaxResults int32 + MaxResults *int32 // The paginated results marker. When the result of the operation is truncated, // the call returns NextToken in the response. To get the next batch, provide this @@ -172,8 +172,8 @@ func NewListClustersPaginator(client ListClustersAPIClient, params *ListClusters } options := ListClustersPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults + if params.MaxResults != nil { + options.Limit = *params.MaxResults } for _, fn := range optFns { @@ -203,7 +203,11 @@ func (p *ListClustersPaginator) 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.ListClusters(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/kafka/api_op_ListClustersV2.go b/service/kafka/api_op_ListClustersV2.go index b12d18d1dd1..71ebf4152af 100644 --- a/service/kafka/api_op_ListClustersV2.go +++ b/service/kafka/api_op_ListClustersV2.go @@ -43,7 +43,7 @@ type ListClustersV2Input struct { // The maximum number of results to return in the response. If there are more // results, the response includes a NextToken parameter. - MaxResults int32 + MaxResults *int32 // The paginated results marker. When the result of the operation is truncated, // the call returns NextToken in the response. To get the next batch, provide this @@ -176,8 +176,8 @@ func NewListClustersV2Paginator(client ListClustersV2APIClient, params *ListClus } options := ListClustersV2PaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults + if params.MaxResults != nil { + options.Limit = *params.MaxResults } for _, fn := range optFns { @@ -207,7 +207,11 @@ func (p *ListClustersV2Paginator) 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.ListClustersV2(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/kafka/api_op_ListConfigurationRevisions.go b/service/kafka/api_op_ListConfigurationRevisions.go index 687193733ff..1305fc77928 100644 --- a/service/kafka/api_op_ListConfigurationRevisions.go +++ b/service/kafka/api_op_ListConfigurationRevisions.go @@ -42,7 +42,7 @@ type ListConfigurationRevisionsInput struct { // The maximum number of results to return in the response. If there are more // results, the response includes a NextToken parameter. - MaxResults int32 + MaxResults *int32 // The paginated results marker. When the result of the operation is truncated, // the call returns NextToken in the response. To get the next batch, provide this @@ -179,8 +179,8 @@ func NewListConfigurationRevisionsPaginator(client ListConfigurationRevisionsAPI } options := ListConfigurationRevisionsPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults + if params.MaxResults != nil { + options.Limit = *params.MaxResults } for _, fn := range optFns { @@ -210,7 +210,11 @@ func (p *ListConfigurationRevisionsPaginator) 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.ListConfigurationRevisions(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/kafka/api_op_ListConfigurations.go b/service/kafka/api_op_ListConfigurations.go index 2b07f3ffc96..ef1906c7a2a 100644 --- a/service/kafka/api_op_ListConfigurations.go +++ b/service/kafka/api_op_ListConfigurations.go @@ -36,7 +36,7 @@ type ListConfigurationsInput struct { // The maximum number of results to return in the response. If there are more // results, the response includes a NextToken parameter. - MaxResults int32 + MaxResults *int32 // The paginated results marker. When the result of the operation is truncated, // the call returns NextToken in the response. To get the next batch, provide this @@ -170,8 +170,8 @@ func NewListConfigurationsPaginator(client ListConfigurationsAPIClient, params * } options := ListConfigurationsPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults + if params.MaxResults != nil { + options.Limit = *params.MaxResults } for _, fn := range optFns { @@ -201,7 +201,11 @@ func (p *ListConfigurationsPaginator) 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.ListConfigurations(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/kafka/api_op_ListKafkaVersions.go b/service/kafka/api_op_ListKafkaVersions.go index 1bfa921bc74..f4d0d57dbcb 100644 --- a/service/kafka/api_op_ListKafkaVersions.go +++ b/service/kafka/api_op_ListKafkaVersions.go @@ -36,7 +36,7 @@ type ListKafkaVersionsInput struct { // The maximum number of results to return in the response. If there are more // results, the response includes a NextToken parameter. - MaxResults int32 + MaxResults *int32 // The paginated results marker. When the result of the operation is truncated, // the call returns NextToken in the response. To get the next batch, provide this @@ -164,8 +164,8 @@ func NewListKafkaVersionsPaginator(client ListKafkaVersionsAPIClient, params *Li } options := ListKafkaVersionsPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults + if params.MaxResults != nil { + options.Limit = *params.MaxResults } for _, fn := range optFns { @@ -195,7 +195,11 @@ func (p *ListKafkaVersionsPaginator) 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.ListKafkaVersions(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/kafka/api_op_ListNodes.go b/service/kafka/api_op_ListNodes.go index f01fd702676..990294102d4 100644 --- a/service/kafka/api_op_ListNodes.go +++ b/service/kafka/api_op_ListNodes.go @@ -41,7 +41,7 @@ type ListNodesInput struct { // The maximum number of results to return in the response. If there are more // results, the response includes a NextToken parameter. - MaxResults int32 + MaxResults *int32 // The paginated results marker. When the result of the operation is truncated, // the call returns NextToken in the response. To get the next batch, provide this @@ -176,8 +176,8 @@ func NewListNodesPaginator(client ListNodesAPIClient, params *ListNodesInput, op } options := ListNodesPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults + if params.MaxResults != nil { + options.Limit = *params.MaxResults } for _, fn := range optFns { @@ -207,7 +207,11 @@ func (p *ListNodesPaginator) NextPage(ctx context.Context, optFns ...func(*Optio 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.ListNodes(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/kafka/api_op_ListReplicators.go b/service/kafka/api_op_ListReplicators.go index 5623ecc1b2b..2b6c367a4bc 100644 --- a/service/kafka/api_op_ListReplicators.go +++ b/service/kafka/api_op_ListReplicators.go @@ -36,7 +36,7 @@ type ListReplicatorsInput struct { // The maximum number of results to return in the response. If there are more // results, the response includes a NextToken parameter. - MaxResults int32 + MaxResults *int32 // If the response of ListReplicators is truncated, it returns a NextToken in the // response. This NextToken should be sent in the subsequent request to @@ -172,8 +172,8 @@ func NewListReplicatorsPaginator(client ListReplicatorsAPIClient, params *ListRe } options := ListReplicatorsPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults + if params.MaxResults != nil { + options.Limit = *params.MaxResults } for _, fn := range optFns { @@ -203,7 +203,11 @@ func (p *ListReplicatorsPaginator) 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.ListReplicators(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/kafka/api_op_ListScramSecrets.go b/service/kafka/api_op_ListScramSecrets.go index 1d6c0ef793e..4d5545b3bb7 100644 --- a/service/kafka/api_op_ListScramSecrets.go +++ b/service/kafka/api_op_ListScramSecrets.go @@ -39,7 +39,7 @@ type ListScramSecretsInput struct { ClusterArn *string // The maxResults of the query. - MaxResults int32 + MaxResults *int32 // The nextToken of the query. NextToken *string @@ -170,8 +170,8 @@ func NewListScramSecretsPaginator(client ListScramSecretsAPIClient, params *List } options := ListScramSecretsPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults + if params.MaxResults != nil { + options.Limit = *params.MaxResults } for _, fn := range optFns { @@ -201,7 +201,11 @@ func (p *ListScramSecretsPaginator) 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.ListScramSecrets(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/kafka/api_op_ListVpcConnections.go b/service/kafka/api_op_ListVpcConnections.go index d8b36daf8d3..eee84f5ef7d 100644 --- a/service/kafka/api_op_ListVpcConnections.go +++ b/service/kafka/api_op_ListVpcConnections.go @@ -36,7 +36,7 @@ type ListVpcConnectionsInput struct { // The maximum number of results to return in the response. If there are more // results, the response includes a NextToken parameter. - MaxResults int32 + MaxResults *int32 // The paginated results marker. When the result of the operation is truncated, // the call returns NextToken in the response. To get the next batch, provide this @@ -170,8 +170,8 @@ func NewListVpcConnectionsPaginator(client ListVpcConnectionsAPIClient, params * } options := ListVpcConnectionsPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults + if params.MaxResults != nil { + options.Limit = *params.MaxResults } for _, fn := range optFns { @@ -201,7 +201,11 @@ func (p *ListVpcConnectionsPaginator) 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.ListVpcConnections(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/kafka/api_op_UpdateBrokerCount.go b/service/kafka/api_op_UpdateBrokerCount.go index 148e3bc872e..1769ed93d67 100644 --- a/service/kafka/api_op_UpdateBrokerCount.go +++ b/service/kafka/api_op_UpdateBrokerCount.go @@ -48,7 +48,7 @@ type UpdateBrokerCountInput struct { // operation completes successfully. // // This member is required. - TargetNumberOfBrokerNodes int32 + TargetNumberOfBrokerNodes *int32 noSmithyDocumentSerde } diff --git a/service/kafka/api_op_UpdateStorage.go b/service/kafka/api_op_UpdateStorage.go index e5128200f0b..fb525a0b4be 100644 --- a/service/kafka/api_op_UpdateStorage.go +++ b/service/kafka/api_op_UpdateStorage.go @@ -54,7 +54,7 @@ type UpdateStorageInput struct { StorageMode types.StorageMode // size of the EBS volume to update. - VolumeSizeGB int32 + VolumeSizeGB *int32 noSmithyDocumentSerde } diff --git a/service/kafka/deserializers.go b/service/kafka/deserializers.go index b058f87201b..a9370300963 100644 --- a/service/kafka/deserializers.go +++ b/service/kafka/deserializers.go @@ -3193,7 +3193,7 @@ func awsRestjson1_deserializeOpDocumentDescribeConfigurationRevisionOutput(v **D if err != nil { return err } - sv.Revision = i64 + sv.Revision = ptr.Int64(i64) } case "serverProperties": @@ -3397,7 +3397,7 @@ func awsRestjson1_deserializeOpDocumentDescribeReplicatorOutput(v **DescribeRepl if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.IsReplicatorReference = jtv + sv.IsReplicatorReference = ptr.Bool(jtv) } case "kafkaClusters": @@ -10260,7 +10260,7 @@ func awsRestjson1_deserializeDocumentBrokerEBSVolumeInfo(v **types.BrokerEBSVolu if err != nil { return err } - sv.VolumeSizeGB = int32(i64) + sv.VolumeSizeGB = ptr.Int32(int32(i64)) } default: @@ -10431,7 +10431,7 @@ func awsRestjson1_deserializeDocumentBrokerNodeInfo(v **types.BrokerNodeInfo, va if err != nil { return err } - sv.BrokerId = f64 + sv.BrokerId = ptr.Float64(f64) case string: var f64 float64 @@ -10449,7 +10449,7 @@ func awsRestjson1_deserializeDocumentBrokerNodeInfo(v **types.BrokerNodeInfo, va return fmt.Errorf("unknown JSON number value: %s", jtv) } - sv.BrokerId = f64 + sv.BrokerId = ptr.Float64(f64) default: return fmt.Errorf("expected __double to be a JSON Number, got %T instead", value) @@ -10535,7 +10535,7 @@ func awsRestjson1_deserializeDocumentBrokerSoftwareInfo(v **types.BrokerSoftware if err != nil { return err } - sv.ConfigurationRevision = i64 + sv.ConfigurationRevision = ptr.Int64(i64) } case "kafkaVersion": @@ -10710,7 +10710,7 @@ func awsRestjson1_deserializeDocumentCloudWatchLogs(v **types.CloudWatchLogs, va if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.Enabled = jtv + sv.Enabled = ptr.Bool(jtv) } case "logGroup": @@ -10964,7 +10964,7 @@ func awsRestjson1_deserializeDocumentClusterInfo(v **types.ClusterInfo, value in if err != nil { return err } - sv.NumberOfBrokerNodes = int32(i64) + sv.NumberOfBrokerNodes = ptr.Int32(int32(i64)) } case "openMonitoring": @@ -11721,7 +11721,7 @@ func awsRestjson1_deserializeDocumentConfigurationInfo(v **types.ConfigurationIn if err != nil { return err } - sv.Revision = i64 + sv.Revision = ptr.Int64(i64) } default: @@ -11787,7 +11787,7 @@ func awsRestjson1_deserializeDocumentConfigurationRevision(v **types.Configurati if err != nil { return err } - sv.Revision = i64 + sv.Revision = ptr.Int64(i64) } default: @@ -11927,7 +11927,7 @@ func awsRestjson1_deserializeDocumentConsumerGroupReplication(v **types.Consumer if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.DetectAndCopyNewConsumerGroups = jtv + sv.DetectAndCopyNewConsumerGroups = ptr.Bool(jtv) } case "synchroniseConsumerGroupOffsets": @@ -11936,7 +11936,7 @@ func awsRestjson1_deserializeDocumentConsumerGroupReplication(v **types.Consumer if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.SynchroniseConsumerGroupOffsets = jtv + sv.SynchroniseConsumerGroupOffsets = ptr.Bool(jtv) } default: @@ -11985,7 +11985,7 @@ func awsRestjson1_deserializeDocumentEBSStorageInfo(v **types.EBSStorageInfo, va if err != nil { return err } - sv.VolumeSize = int32(i64) + sv.VolumeSize = ptr.Int32(int32(i64)) } default: @@ -12115,7 +12115,7 @@ func awsRestjson1_deserializeDocumentEncryptionInTransit(v **types.EncryptionInT if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.InCluster = jtv + sv.InCluster = ptr.Bool(jtv) } default: @@ -12213,7 +12213,7 @@ func awsRestjson1_deserializeDocumentFirehose(v **types.Firehose, value interfac if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.Enabled = jtv + sv.Enabled = ptr.Bool(jtv) } default: @@ -12302,7 +12302,7 @@ func awsRestjson1_deserializeDocumentIam(v **types.Iam, value interface{}) error if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.Enabled = jtv + sv.Enabled = ptr.Bool(jtv) } default: @@ -12391,7 +12391,7 @@ func awsRestjson1_deserializeDocumentJmxExporter(v **types.JmxExporter, value in if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.EnabledInBroker = jtv + sv.EnabledInBroker = ptr.Bool(jtv) } default: @@ -12431,7 +12431,7 @@ func awsRestjson1_deserializeDocumentJmxExporterInfo(v **types.JmxExporterInfo, if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.EnabledInBroker = jtv + sv.EnabledInBroker = ptr.Bool(jtv) } default: @@ -12753,7 +12753,7 @@ func awsRestjson1_deserializeDocumentMutableClusterInfo(v **types.MutableCluster if err != nil { return err } - sv.NumberOfBrokerNodes = int32(i64) + sv.NumberOfBrokerNodes = ptr.Int32(int32(i64)) } case "openMonitoring": @@ -12807,7 +12807,7 @@ func awsRestjson1_deserializeDocumentNodeExporter(v **types.NodeExporter, value if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.EnabledInBroker = jtv + sv.EnabledInBroker = ptr.Bool(jtv) } default: @@ -12847,7 +12847,7 @@ func awsRestjson1_deserializeDocumentNodeExporterInfo(v **types.NodeExporterInfo if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.EnabledInBroker = jtv + sv.EnabledInBroker = ptr.Bool(jtv) } default: @@ -13205,7 +13205,7 @@ func awsRestjson1_deserializeDocumentProvisioned(v **types.Provisioned, value in if err != nil { return err } - sv.NumberOfBrokerNodes = int32(i64) + sv.NumberOfBrokerNodes = ptr.Int32(int32(i64)) } case "openMonitoring": @@ -13277,7 +13277,7 @@ func awsRestjson1_deserializeDocumentProvisionedThroughput(v **types.Provisioned if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.Enabled = jtv + sv.Enabled = ptr.Bool(jtv) } case "volumeThroughput": @@ -13290,7 +13290,7 @@ func awsRestjson1_deserializeDocumentProvisionedThroughput(v **types.Provisioned if err != nil { return err } - sv.VolumeThroughput = int32(i64) + sv.VolumeThroughput = ptr.Int32(int32(i64)) } default: @@ -13558,7 +13558,7 @@ func awsRestjson1_deserializeDocumentReplicatorSummary(v **types.ReplicatorSumma if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.IsReplicatorReference = jtv + sv.IsReplicatorReference = ptr.Bool(jtv) } case "kafkaClustersSummary": @@ -13653,7 +13653,7 @@ func awsRestjson1_deserializeDocumentS3(v **types.S3, value interface{}) error { if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.Enabled = jtv + sv.Enabled = ptr.Bool(jtv) } case "prefix": @@ -13743,7 +13743,7 @@ func awsRestjson1_deserializeDocumentScram(v **types.Scram, value interface{}) e if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.Enabled = jtv + sv.Enabled = ptr.Bool(jtv) } default: @@ -14035,7 +14035,7 @@ func awsRestjson1_deserializeDocumentTls(v **types.Tls, value interface{}) error if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.Enabled = jtv + sv.Enabled = ptr.Bool(jtv) } default: @@ -14124,7 +14124,7 @@ func awsRestjson1_deserializeDocumentTopicReplication(v **types.TopicReplication if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.CopyAccessControlListsForTopics = jtv + sv.CopyAccessControlListsForTopics = ptr.Bool(jtv) } case "copyTopicConfigurations": @@ -14133,7 +14133,7 @@ func awsRestjson1_deserializeDocumentTopicReplication(v **types.TopicReplication if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.CopyTopicConfigurations = jtv + sv.CopyTopicConfigurations = ptr.Bool(jtv) } case "detectAndCopyNewTopics": @@ -14142,7 +14142,7 @@ func awsRestjson1_deserializeDocumentTopicReplication(v **types.TopicReplication if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.DetectAndCopyNewTopics = jtv + sv.DetectAndCopyNewTopics = ptr.Bool(jtv) } case "topicsToExclude": @@ -14192,7 +14192,7 @@ func awsRestjson1_deserializeDocumentUnauthenticated(v **types.Unauthenticated, if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.Enabled = jtv + sv.Enabled = ptr.Bool(jtv) } default: @@ -14729,7 +14729,7 @@ func awsRestjson1_deserializeDocumentVpcConnectivityIam(v **types.VpcConnectivit if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.Enabled = jtv + sv.Enabled = ptr.Bool(jtv) } default: @@ -14810,7 +14810,7 @@ func awsRestjson1_deserializeDocumentVpcConnectivityScram(v **types.VpcConnectiv if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.Enabled = jtv + sv.Enabled = ptr.Bool(jtv) } default: @@ -14850,7 +14850,7 @@ func awsRestjson1_deserializeDocumentVpcConnectivityTls(v **types.VpcConnectivit if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.Enabled = jtv + sv.Enabled = ptr.Bool(jtv) } default: @@ -14915,7 +14915,7 @@ func awsRestjson1_deserializeDocumentZookeeperNodeInfo(v **types.ZookeeperNodeIn if err != nil { return err } - sv.ZookeeperId = f64 + sv.ZookeeperId = ptr.Float64(f64) case string: var f64 float64 @@ -14933,7 +14933,7 @@ func awsRestjson1_deserializeDocumentZookeeperNodeInfo(v **types.ZookeeperNodeIn return fmt.Errorf("unknown JSON number value: %s", jtv) } - sv.ZookeeperId = f64 + sv.ZookeeperId = ptr.Float64(f64) default: return fmt.Errorf("expected __double to be a JSON Number, got %T instead", value) diff --git a/service/kafka/serializers.go b/service/kafka/serializers.go index 1f1a10f6659..2e912696ddb 100644 --- a/service/kafka/serializers.go +++ b/service/kafka/serializers.go @@ -311,9 +311,9 @@ func awsRestjson1_serializeOpDocumentCreateClusterInput(v *CreateClusterInput, v } } - { + if v.NumberOfBrokerNodes != nil { ok := object.Key("numberOfBrokerNodes") - ok.Integer(v.NumberOfBrokerNodes) + ok.Integer(*v.NumberOfBrokerNodes) } if v.OpenMonitoring != nil { @@ -1458,8 +1458,11 @@ func awsRestjson1_serializeOpHttpBindingsDescribeConfigurationRevisionInput(v *D } } - { - if err := encoder.SetURI("Revision").Long(v.Revision); err != nil { + if v.Revision == nil { + return &smithy.SerializationError{Err: fmt.Errorf("input member Revision must not be empty")} + } + if v.Revision != nil { + if err := encoder.SetURI("Revision").Long(*v.Revision); err != nil { return err } } @@ -1849,8 +1852,8 @@ func awsRestjson1_serializeOpHttpBindingsListClientVpcConnectionsInput(v *ListCl } } - if v.MaxResults != 0 { - encoder.SetQuery("maxResults").Integer(v.MaxResults) + if v.MaxResults != nil { + encoder.SetQuery("maxResults").Integer(*v.MaxResults) } if v.NextToken != nil { @@ -1922,8 +1925,8 @@ func awsRestjson1_serializeOpHttpBindingsListClusterOperationsInput(v *ListClust } } - if v.MaxResults != 0 { - encoder.SetQuery("maxResults").Integer(v.MaxResults) + if v.MaxResults != nil { + encoder.SetQuery("maxResults").Integer(*v.MaxResults) } if v.NextToken != nil { @@ -1995,8 +1998,8 @@ func awsRestjson1_serializeOpHttpBindingsListClusterOperationsV2Input(v *ListClu } } - if v.MaxResults != 0 { - encoder.SetQuery("maxResults").Integer(v.MaxResults) + if v.MaxResults != nil { + encoder.SetQuery("maxResults").Integer(*v.MaxResults) } if v.NextToken != nil { @@ -2063,8 +2066,8 @@ func awsRestjson1_serializeOpHttpBindingsListClustersInput(v *ListClustersInput, encoder.SetQuery("clusterNameFilter").String(*v.ClusterNameFilter) } - if v.MaxResults != 0 { - encoder.SetQuery("maxResults").Integer(v.MaxResults) + if v.MaxResults != nil { + encoder.SetQuery("maxResults").Integer(*v.MaxResults) } if v.NextToken != nil { @@ -2135,8 +2138,8 @@ func awsRestjson1_serializeOpHttpBindingsListClustersV2Input(v *ListClustersV2In encoder.SetQuery("clusterTypeFilter").String(*v.ClusterTypeFilter) } - if v.MaxResults != 0 { - encoder.SetQuery("maxResults").Integer(v.MaxResults) + if v.MaxResults != nil { + encoder.SetQuery("maxResults").Integer(*v.MaxResults) } if v.NextToken != nil { @@ -2208,8 +2211,8 @@ func awsRestjson1_serializeOpHttpBindingsListConfigurationRevisionsInput(v *List } } - if v.MaxResults != 0 { - encoder.SetQuery("maxResults").Integer(v.MaxResults) + if v.MaxResults != nil { + encoder.SetQuery("maxResults").Integer(*v.MaxResults) } if v.NextToken != nil { @@ -2272,8 +2275,8 @@ func awsRestjson1_serializeOpHttpBindingsListConfigurationsInput(v *ListConfigur return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.MaxResults != 0 { - encoder.SetQuery("maxResults").Integer(v.MaxResults) + if v.MaxResults != nil { + encoder.SetQuery("maxResults").Integer(*v.MaxResults) } if v.NextToken != nil { @@ -2336,8 +2339,8 @@ func awsRestjson1_serializeOpHttpBindingsListKafkaVersionsInput(v *ListKafkaVers return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.MaxResults != 0 { - encoder.SetQuery("maxResults").Integer(v.MaxResults) + if v.MaxResults != nil { + encoder.SetQuery("maxResults").Integer(*v.MaxResults) } if v.NextToken != nil { @@ -2409,8 +2412,8 @@ func awsRestjson1_serializeOpHttpBindingsListNodesInput(v *ListNodesInput, encod } } - if v.MaxResults != 0 { - encoder.SetQuery("maxResults").Integer(v.MaxResults) + if v.MaxResults != nil { + encoder.SetQuery("maxResults").Integer(*v.MaxResults) } if v.NextToken != nil { @@ -2473,8 +2476,8 @@ func awsRestjson1_serializeOpHttpBindingsListReplicatorsInput(v *ListReplicators return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.MaxResults != 0 { - encoder.SetQuery("maxResults").Integer(v.MaxResults) + if v.MaxResults != nil { + encoder.SetQuery("maxResults").Integer(*v.MaxResults) } if v.NextToken != nil { @@ -2550,8 +2553,8 @@ func awsRestjson1_serializeOpHttpBindingsListScramSecretsInput(v *ListScramSecre } } - if v.MaxResults != 0 { - encoder.SetQuery("maxResults").Integer(v.MaxResults) + if v.MaxResults != nil { + encoder.SetQuery("maxResults").Integer(*v.MaxResults) } if v.NextToken != nil { @@ -2679,8 +2682,8 @@ func awsRestjson1_serializeOpHttpBindingsListVpcConnectionsInput(v *ListVpcConne return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.MaxResults != 0 { - encoder.SetQuery("maxResults").Integer(v.MaxResults) + if v.MaxResults != nil { + encoder.SetQuery("maxResults").Integer(*v.MaxResults) } if v.NextToken != nil { @@ -3207,9 +3210,9 @@ func awsRestjson1_serializeOpDocumentUpdateBrokerCountInput(v *UpdateBrokerCount ok.String(*v.CurrentVersion) } - { + if v.TargetNumberOfBrokerNodes != nil { ok := object.Key("targetNumberOfBrokerNodes") - ok.Integer(v.TargetNumberOfBrokerNodes) + ok.Integer(*v.TargetNumberOfBrokerNodes) } return nil @@ -4204,9 +4207,9 @@ func awsRestjson1_serializeOpDocumentUpdateStorageInput(v *UpdateStorageInput, v ok.String(string(v.StorageMode)) } - if v.VolumeSizeGB != 0 { + if v.VolumeSizeGB != nil { ok := object.Key("volumeSizeGB") - ok.Integer(v.VolumeSizeGB) + ok.Integer(*v.VolumeSizeGB) } return nil @@ -4336,9 +4339,9 @@ func awsRestjson1_serializeDocumentBrokerEBSVolumeInfo(v *types.BrokerEBSVolumeI } } - if v.VolumeSizeGB != 0 { + if v.VolumeSizeGB != nil { ok := object.Key("volumeSizeGB") - ok.Integer(v.VolumeSizeGB) + ok.Integer(*v.VolumeSizeGB) } return nil @@ -4456,9 +4459,9 @@ func awsRestjson1_serializeDocumentCloudWatchLogs(v *types.CloudWatchLogs, value object := value.Object() defer object.Close() - { + if v.Enabled != nil { ok := object.Key("enabled") - ok.Boolean(v.Enabled) + ok.Boolean(*v.Enabled) } if v.LogGroup != nil { @@ -4478,9 +4481,9 @@ func awsRestjson1_serializeDocumentConfigurationInfo(v *types.ConfigurationInfo, ok.String(*v.Arn) } - { + if v.Revision != nil { ok := object.Key("revision") - ok.Long(v.Revision) + ok.Long(*v.Revision) } return nil @@ -4525,14 +4528,14 @@ func awsRestjson1_serializeDocumentConsumerGroupReplication(v *types.ConsumerGro } } - if v.DetectAndCopyNewConsumerGroups { + if v.DetectAndCopyNewConsumerGroups != nil { ok := object.Key("detectAndCopyNewConsumerGroups") - ok.Boolean(v.DetectAndCopyNewConsumerGroups) + ok.Boolean(*v.DetectAndCopyNewConsumerGroups) } - if v.SynchroniseConsumerGroupOffsets { + if v.SynchroniseConsumerGroupOffsets != nil { ok := object.Key("synchroniseConsumerGroupOffsets") - ok.Boolean(v.SynchroniseConsumerGroupOffsets) + ok.Boolean(*v.SynchroniseConsumerGroupOffsets) } return nil @@ -4556,14 +4559,14 @@ func awsRestjson1_serializeDocumentConsumerGroupReplicationUpdate(v *types.Consu } } - { + if v.DetectAndCopyNewConsumerGroups != nil { ok := object.Key("detectAndCopyNewConsumerGroups") - ok.Boolean(v.DetectAndCopyNewConsumerGroups) + ok.Boolean(*v.DetectAndCopyNewConsumerGroups) } - { + if v.SynchroniseConsumerGroupOffsets != nil { ok := object.Key("synchroniseConsumerGroupOffsets") - ok.Boolean(v.SynchroniseConsumerGroupOffsets) + ok.Boolean(*v.SynchroniseConsumerGroupOffsets) } return nil @@ -4580,9 +4583,9 @@ func awsRestjson1_serializeDocumentEBSStorageInfo(v *types.EBSStorageInfo, value } } - if v.VolumeSize != 0 { + if v.VolumeSize != nil { ok := object.Key("volumeSize") - ok.Integer(v.VolumeSize) + ok.Integer(*v.VolumeSize) } return nil @@ -4630,9 +4633,9 @@ func awsRestjson1_serializeDocumentEncryptionInTransit(v *types.EncryptionInTran ok.String(string(v.ClientBroker)) } - if v.InCluster { + if v.InCluster != nil { ok := object.Key("inCluster") - ok.Boolean(v.InCluster) + ok.Boolean(*v.InCluster) } return nil @@ -4647,9 +4650,9 @@ func awsRestjson1_serializeDocumentFirehose(v *types.Firehose, value smithyjson. ok.String(*v.DeliveryStream) } - { + if v.Enabled != nil { ok := object.Key("enabled") - ok.Boolean(v.Enabled) + ok.Boolean(*v.Enabled) } return nil @@ -4659,9 +4662,9 @@ func awsRestjson1_serializeDocumentIam(v *types.Iam, value smithyjson.Value) err object := value.Object() defer object.Close() - if v.Enabled { + if v.Enabled != nil { ok := object.Key("enabled") - ok.Boolean(v.Enabled) + ok.Boolean(*v.Enabled) } return nil @@ -4671,9 +4674,9 @@ func awsRestjson1_serializeDocumentJmxExporterInfo(v *types.JmxExporterInfo, val object := value.Object() defer object.Close() - { + if v.EnabledInBroker != nil { ok := object.Key("enabledInBroker") - ok.Boolean(v.EnabledInBroker) + ok.Boolean(*v.EnabledInBroker) } return nil @@ -4739,9 +4742,9 @@ func awsRestjson1_serializeDocumentNodeExporterInfo(v *types.NodeExporterInfo, v object := value.Object() defer object.Close() - { + if v.EnabledInBroker != nil { ok := object.Key("enabledInBroker") - ok.Boolean(v.EnabledInBroker) + ok.Boolean(*v.EnabledInBroker) } return nil @@ -4831,9 +4834,9 @@ func awsRestjson1_serializeDocumentProvisionedRequest(v *types.ProvisionedReques } } - { + if v.NumberOfBrokerNodes != nil { ok := object.Key("numberOfBrokerNodes") - ok.Integer(v.NumberOfBrokerNodes) + ok.Integer(*v.NumberOfBrokerNodes) } if v.OpenMonitoring != nil { @@ -4855,14 +4858,14 @@ func awsRestjson1_serializeDocumentProvisionedThroughput(v *types.ProvisionedThr object := value.Object() defer object.Close() - if v.Enabled { + if v.Enabled != nil { ok := object.Key("enabled") - ok.Boolean(v.Enabled) + ok.Boolean(*v.Enabled) } - if v.VolumeThroughput != 0 { + if v.VolumeThroughput != nil { ok := object.Key("volumeThroughput") - ok.Integer(v.VolumeThroughput) + ok.Integer(*v.VolumeThroughput) } return nil @@ -4925,9 +4928,9 @@ func awsRestjson1_serializeDocumentS3(v *types.S3, value smithyjson.Value) error ok.String(*v.Bucket) } - { + if v.Enabled != nil { ok := object.Key("enabled") - ok.Boolean(v.Enabled) + ok.Boolean(*v.Enabled) } if v.Prefix != nil { @@ -4963,9 +4966,9 @@ func awsRestjson1_serializeDocumentScram(v *types.Scram, value smithyjson.Value) object := value.Object() defer object.Close() - if v.Enabled { + if v.Enabled != nil { ok := object.Key("enabled") - ok.Boolean(v.Enabled) + ok.Boolean(*v.Enabled) } return nil @@ -5045,9 +5048,9 @@ func awsRestjson1_serializeDocumentTls(v *types.Tls, value smithyjson.Value) err } } - if v.Enabled { + if v.Enabled != nil { ok := object.Key("enabled") - ok.Boolean(v.Enabled) + ok.Boolean(*v.Enabled) } return nil @@ -5057,19 +5060,19 @@ func awsRestjson1_serializeDocumentTopicReplication(v *types.TopicReplication, v object := value.Object() defer object.Close() - if v.CopyAccessControlListsForTopics { + if v.CopyAccessControlListsForTopics != nil { ok := object.Key("copyAccessControlListsForTopics") - ok.Boolean(v.CopyAccessControlListsForTopics) + ok.Boolean(*v.CopyAccessControlListsForTopics) } - if v.CopyTopicConfigurations { + if v.CopyTopicConfigurations != nil { ok := object.Key("copyTopicConfigurations") - ok.Boolean(v.CopyTopicConfigurations) + ok.Boolean(*v.CopyTopicConfigurations) } - if v.DetectAndCopyNewTopics { + if v.DetectAndCopyNewTopics != nil { ok := object.Key("detectAndCopyNewTopics") - ok.Boolean(v.DetectAndCopyNewTopics) + ok.Boolean(*v.DetectAndCopyNewTopics) } if v.TopicsToExclude != nil { @@ -5093,19 +5096,19 @@ func awsRestjson1_serializeDocumentTopicReplicationUpdate(v *types.TopicReplicat object := value.Object() defer object.Close() - { + if v.CopyAccessControlListsForTopics != nil { ok := object.Key("copyAccessControlListsForTopics") - ok.Boolean(v.CopyAccessControlListsForTopics) + ok.Boolean(*v.CopyAccessControlListsForTopics) } - { + if v.CopyTopicConfigurations != nil { ok := object.Key("copyTopicConfigurations") - ok.Boolean(v.CopyTopicConfigurations) + ok.Boolean(*v.CopyTopicConfigurations) } - { + if v.DetectAndCopyNewTopics != nil { ok := object.Key("detectAndCopyNewTopics") - ok.Boolean(v.DetectAndCopyNewTopics) + ok.Boolean(*v.DetectAndCopyNewTopics) } if v.TopicsToExclude != nil { @@ -5129,9 +5132,9 @@ func awsRestjson1_serializeDocumentUnauthenticated(v *types.Unauthenticated, val object := value.Object() defer object.Close() - if v.Enabled { + if v.Enabled != nil { ok := object.Key("enabled") - ok.Boolean(v.Enabled) + ok.Boolean(*v.Enabled) } return nil @@ -5197,9 +5200,9 @@ func awsRestjson1_serializeDocumentVpcConnectivityIam(v *types.VpcConnectivityIa object := value.Object() defer object.Close() - if v.Enabled { + if v.Enabled != nil { ok := object.Key("enabled") - ok.Boolean(v.Enabled) + ok.Boolean(*v.Enabled) } return nil @@ -5230,9 +5233,9 @@ func awsRestjson1_serializeDocumentVpcConnectivityScram(v *types.VpcConnectivity object := value.Object() defer object.Close() - if v.Enabled { + if v.Enabled != nil { ok := object.Key("enabled") - ok.Boolean(v.Enabled) + ok.Boolean(*v.Enabled) } return nil @@ -5242,9 +5245,9 @@ func awsRestjson1_serializeDocumentVpcConnectivityTls(v *types.VpcConnectivityTl object := value.Object() defer object.Close() - if v.Enabled { + if v.Enabled != nil { ok := object.Key("enabled") - ok.Boolean(v.Enabled) + ok.Boolean(*v.Enabled) } return nil diff --git a/service/kafka/types/types.go b/service/kafka/types/types.go index fcddad4d939..55d68ebcd4a 100644 --- a/service/kafka/types/types.go +++ b/service/kafka/types/types.go @@ -32,7 +32,7 @@ type BrokerEBSVolumeInfo struct { ProvisionedThroughput *ProvisionedThroughput // Size of the EBS volume to update. - VolumeSizeGB int32 + VolumeSizeGB *int32 noSmithyDocumentSerde } @@ -98,7 +98,7 @@ type BrokerNodeInfo struct { AttachedENIId *string // The ID of the broker. - BrokerId float64 + BrokerId *float64 // The client subnet to which this broker node belongs. ClientSubnet *string @@ -125,7 +125,7 @@ type BrokerSoftwareInfo struct { // The revision of the configuration to use. This field isn't visible in this // preview release. - ConfigurationRevision int64 + ConfigurationRevision *int64 // The version of Apache Kafka. KafkaVersion *string @@ -174,7 +174,7 @@ type ClientVpcConnection struct { type CloudWatchLogs struct { // This member is required. - Enabled bool + Enabled *bool LogGroup *string @@ -262,7 +262,7 @@ type ClusterInfo struct { LoggingInfo *LoggingInfo // The number of broker nodes in the cluster. - NumberOfBrokerNodes int32 + NumberOfBrokerNodes *int32 // Settings for open monitoring using Prometheus. OpenMonitoring *OpenMonitoring @@ -512,7 +512,7 @@ type ConfigurationInfo struct { // The revision of the configuration to use. // // This member is required. - Revision int64 + Revision *int64 noSmithyDocumentSerde } @@ -528,7 +528,7 @@ type ConfigurationRevision struct { // The revision number. // // This member is required. - Revision int64 + Revision *int64 // The description of the configuration revision. Description *string @@ -561,11 +561,11 @@ type ConsumerGroupReplication struct { ConsumerGroupsToExclude []string // Enables synchronization of consumer groups to target cluster. - DetectAndCopyNewConsumerGroups bool + DetectAndCopyNewConsumerGroups *bool // Enables synchronization of consumer group offsets to target cluster. The // translated offsets will be written to topic __consumer_offsets. - SynchroniseConsumerGroupOffsets bool + SynchroniseConsumerGroupOffsets *bool noSmithyDocumentSerde } @@ -587,13 +587,13 @@ type ConsumerGroupReplicationUpdate struct { // Enables synchronization of consumer groups to target cluster. // // This member is required. - DetectAndCopyNewConsumerGroups bool + DetectAndCopyNewConsumerGroups *bool // Enables synchronization of consumer group offsets to target cluster. The // translated offsets will be written to topic __consumer_offsets. // // This member is required. - SynchroniseConsumerGroupOffsets bool + SynchroniseConsumerGroupOffsets *bool noSmithyDocumentSerde } @@ -606,7 +606,7 @@ type EBSStorageInfo struct { ProvisionedThroughput *ProvisionedThroughput // The size in GiB of the EBS volume for the data drive on each broker node. - VolumeSize int32 + VolumeSize *int32 noSmithyDocumentSerde } @@ -651,7 +651,7 @@ type EncryptionInTransit struct { // When set to true, it indicates that data communication among the broker nodes // of the cluster is encrypted. When set to false, the communication happens in // plaintext. The default value is true. - InCluster bool + InCluster *bool noSmithyDocumentSerde } @@ -671,7 +671,7 @@ type ErrorInfo struct { type Firehose struct { // This member is required. - Enabled bool + Enabled *bool DeliveryStream *string @@ -682,7 +682,7 @@ type Firehose struct { type Iam struct { // Indicates whether IAM access control is enabled. - Enabled bool + Enabled *bool noSmithyDocumentSerde } @@ -693,7 +693,7 @@ type JmxExporter struct { // Indicates whether you want to turn on or turn off the JMX Exporter. // // This member is required. - EnabledInBroker bool + EnabledInBroker *bool noSmithyDocumentSerde } @@ -704,7 +704,7 @@ type JmxExporterInfo struct { // Indicates whether you want to turn on or turn off the JMX Exporter. // // This member is required. - EnabledInBroker bool + EnabledInBroker *bool noSmithyDocumentSerde } @@ -819,7 +819,7 @@ type MutableClusterInfo struct { LoggingInfo *LoggingInfo // The number of broker nodes in the cluster. - NumberOfBrokerNodes int32 + NumberOfBrokerNodes *int32 // The settings for open monitoring. OpenMonitoring *OpenMonitoring @@ -836,7 +836,7 @@ type NodeExporter struct { // Indicates whether you want to turn on or turn off the Node Exporter. // // This member is required. - EnabledInBroker bool + EnabledInBroker *bool noSmithyDocumentSerde } @@ -847,7 +847,7 @@ type NodeExporterInfo struct { // Indicates whether you want to turn on or turn off the Node Exporter. // // This member is required. - EnabledInBroker bool + EnabledInBroker *bool noSmithyDocumentSerde } @@ -933,7 +933,7 @@ type Provisioned struct { // The number of broker nodes in the cluster. // // This member is required. - NumberOfBrokerNodes int32 + NumberOfBrokerNodes *int32 // Includes all client authentication information. ClientAuthentication *ClientAuthentication @@ -983,7 +983,7 @@ type ProvisionedRequest struct { // The number of broker nodes in the cluster. // // This member is required. - NumberOfBrokerNodes int32 + NumberOfBrokerNodes *int32 // Includes all client authentication information. ClientAuthentication *ClientAuthentication @@ -1016,11 +1016,11 @@ type ProvisionedRequest struct { type ProvisionedThroughput struct { // Provisioned throughput is enabled or not. - Enabled bool + Enabled *bool // Throughput value of the EBS volumes for the data drive on each kafka broker // node in MiB per second. - VolumeThroughput int32 + VolumeThroughput *int32 noSmithyDocumentSerde } @@ -1123,7 +1123,7 @@ type ReplicatorSummary struct { CurrentVersion *string // Whether this resource is a replicator reference. - IsReplicatorReference bool + IsReplicatorReference *bool // Kafka Clusters used in setting up sources / targets for replication. KafkaClustersSummary []KafkaClusterSummary @@ -1150,7 +1150,7 @@ type ReplicatorSummary struct { type S3 struct { // This member is required. - Enabled bool + Enabled *bool Bucket *string @@ -1175,7 +1175,7 @@ type Sasl struct { type Scram struct { // SASL/SCRAM authentication is enabled or not. - Enabled bool + Enabled *bool noSmithyDocumentSerde } @@ -1250,7 +1250,7 @@ type Tls struct { CertificateAuthorityArnList []string // Specifies whether you want to turn on or turn off TLS authentication. - Enabled bool + Enabled *bool noSmithyDocumentSerde } @@ -1265,14 +1265,14 @@ type TopicReplication struct { // Whether to periodically configure remote topic ACLs to match their // corresponding upstream topics. - CopyAccessControlListsForTopics bool + CopyAccessControlListsForTopics *bool // Whether to periodically configure remote topics to match their corresponding // upstream topics. - CopyTopicConfigurations bool + CopyTopicConfigurations *bool // Whether to periodically check for new topics and partitions. - DetectAndCopyNewTopics bool + DetectAndCopyNewTopics *bool // List of regular expression patterns indicating the topics that should not be // replicated. @@ -1288,18 +1288,18 @@ type TopicReplicationUpdate struct { // corresponding upstream topics. // // This member is required. - CopyAccessControlListsForTopics bool + CopyAccessControlListsForTopics *bool // Whether to periodically configure remote topics to match their corresponding // upstream topics. // // This member is required. - CopyTopicConfigurations bool + CopyTopicConfigurations *bool // Whether to periodically check for new topics and partitions. // // This member is required. - DetectAndCopyNewTopics bool + DetectAndCopyNewTopics *bool // List of regular expression patterns indicating the topics that should not be // replicated. @@ -1319,7 +1319,7 @@ type Unauthenticated struct { // Specifies whether you want to turn on or turn off unauthenticated traffic to // your cluster. - Enabled bool + Enabled *bool noSmithyDocumentSerde } @@ -1454,7 +1454,7 @@ type VpcConnectivityClientAuthentication struct { type VpcConnectivityIam struct { // SASL/IAM authentication is on or off for VPC connectivity. - Enabled bool + Enabled *bool noSmithyDocumentSerde } @@ -1475,7 +1475,7 @@ type VpcConnectivitySasl struct { type VpcConnectivityScram struct { // SASL/SCRAM authentication is on or off for VPC connectivity. - Enabled bool + Enabled *bool noSmithyDocumentSerde } @@ -1484,7 +1484,7 @@ type VpcConnectivityScram struct { type VpcConnectivityTls struct { // TLS authentication is on or off for VPC connectivity. - Enabled bool + Enabled *bool noSmithyDocumentSerde } @@ -1502,7 +1502,7 @@ type ZookeeperNodeInfo struct { Endpoints []string // The role-specific ID for Zookeeper. - ZookeeperId float64 + ZookeeperId *float64 // The version of Zookeeper. ZookeeperVersion *string diff --git a/service/kafka/validators.go b/service/kafka/validators.go index 97d6c94e19d..41421d3f725 100644 --- a/service/kafka/validators.go +++ b/service/kafka/validators.go @@ -1238,6 +1238,9 @@ func validateCloudWatchLogs(v *types.CloudWatchLogs) error { return nil } invalidParams := smithy.InvalidParamsError{Context: "CloudWatchLogs"} + if v.Enabled == nil { + invalidParams.Add(smithy.NewErrParamRequired("Enabled")) + } if invalidParams.Len() > 0 { return invalidParams } else { @@ -1253,6 +1256,9 @@ func validateConfigurationInfo(v *types.ConfigurationInfo) error { if v.Arn == nil { invalidParams.Add(smithy.NewErrParamRequired("Arn")) } + if v.Revision == nil { + invalidParams.Add(smithy.NewErrParamRequired("Revision")) + } if invalidParams.Len() > 0 { return invalidParams } else { @@ -1286,6 +1292,12 @@ func validateConsumerGroupReplicationUpdate(v *types.ConsumerGroupReplicationUpd if v.ConsumerGroupsToReplicate == nil { invalidParams.Add(smithy.NewErrParamRequired("ConsumerGroupsToReplicate")) } + if v.DetectAndCopyNewConsumerGroups == nil { + invalidParams.Add(smithy.NewErrParamRequired("DetectAndCopyNewConsumerGroups")) + } + if v.SynchroniseConsumerGroupOffsets == nil { + invalidParams.Add(smithy.NewErrParamRequired("SynchroniseConsumerGroupOffsets")) + } if invalidParams.Len() > 0 { return invalidParams } else { @@ -1330,6 +1342,9 @@ func validateFirehose(v *types.Firehose) error { return nil } invalidParams := smithy.InvalidParamsError{Context: "Firehose"} + if v.Enabled == nil { + invalidParams.Add(smithy.NewErrParamRequired("Enabled")) + } if invalidParams.Len() > 0 { return invalidParams } else { @@ -1342,6 +1357,9 @@ func validateJmxExporterInfo(v *types.JmxExporterInfo) error { return nil } invalidParams := smithy.InvalidParamsError{Context: "JmxExporterInfo"} + if v.EnabledInBroker == nil { + invalidParams.Add(smithy.NewErrParamRequired("EnabledInBroker")) + } if invalidParams.Len() > 0 { return invalidParams } else { @@ -1414,6 +1432,9 @@ func validateNodeExporterInfo(v *types.NodeExporterInfo) error { return nil } invalidParams := smithy.InvalidParamsError{Context: "NodeExporterInfo"} + if v.EnabledInBroker == nil { + invalidParams.Add(smithy.NewErrParamRequired("EnabledInBroker")) + } if invalidParams.Len() > 0 { return invalidParams } else { @@ -1497,6 +1518,9 @@ func validateProvisionedRequest(v *types.ProvisionedRequest) error { invalidParams.AddNested("LoggingInfo", err.(smithy.InvalidParamsError)) } } + if v.NumberOfBrokerNodes == nil { + invalidParams.Add(smithy.NewErrParamRequired("NumberOfBrokerNodes")) + } if invalidParams.Len() > 0 { return invalidParams } else { @@ -1544,6 +1568,9 @@ func validateS3(v *types.S3) error { return nil } invalidParams := smithy.InvalidParamsError{Context: "S3"} + if v.Enabled == nil { + invalidParams.Add(smithy.NewErrParamRequired("Enabled")) + } if invalidParams.Len() > 0 { return invalidParams } else { @@ -1590,6 +1617,15 @@ func validateTopicReplicationUpdate(v *types.TopicReplicationUpdate) error { return nil } invalidParams := smithy.InvalidParamsError{Context: "TopicReplicationUpdate"} + if v.CopyAccessControlListsForTopics == nil { + invalidParams.Add(smithy.NewErrParamRequired("CopyAccessControlListsForTopics")) + } + if v.CopyTopicConfigurations == nil { + invalidParams.Add(smithy.NewErrParamRequired("CopyTopicConfigurations")) + } + if v.DetectAndCopyNewTopics == nil { + invalidParams.Add(smithy.NewErrParamRequired("DetectAndCopyNewTopics")) + } if v.TopicsToExclude == nil { invalidParams.Add(smithy.NewErrParamRequired("TopicsToExclude")) } @@ -1692,6 +1728,9 @@ func validateOpCreateClusterInput(v *CreateClusterInput) error { invalidParams.AddNested("LoggingInfo", err.(smithy.InvalidParamsError)) } } + if v.NumberOfBrokerNodes == nil { + invalidParams.Add(smithy.NewErrParamRequired("NumberOfBrokerNodes")) + } if invalidParams.Len() > 0 { return invalidParams } else { @@ -1959,6 +1998,9 @@ func validateOpDescribeConfigurationRevisionInput(v *DescribeConfigurationRevisi if v.Arn == nil { invalidParams.Add(smithy.NewErrParamRequired("Arn")) } + if v.Revision == nil { + invalidParams.Add(smithy.NewErrParamRequired("Revision")) + } if invalidParams.Len() > 0 { return invalidParams } else { @@ -2232,6 +2274,9 @@ func validateOpUpdateBrokerCountInput(v *UpdateBrokerCountInput) error { if v.CurrentVersion == nil { invalidParams.Add(smithy.NewErrParamRequired("CurrentVersion")) } + if v.TargetNumberOfBrokerNodes == nil { + invalidParams.Add(smithy.NewErrParamRequired("TargetNumberOfBrokerNodes")) + } if invalidParams.Len() > 0 { return invalidParams } else { diff --git a/service/macie2/api_op_CreateClassificationJob.go b/service/macie2/api_op_CreateClassificationJob.go index c01b2685320..8a740a07959 100644 --- a/service/macie2/api_op_CreateClassificationJob.go +++ b/service/macie2/api_op_CreateClassificationJob.go @@ -80,7 +80,7 @@ type CreateClassificationJobInput struct { // objects that are created or changed after you create the job and before the // job's first scheduled run, set this value to false. If you configure the job to // run only once, don't specify a value for this property. - InitialRun bool + InitialRun *bool // An array of unique identifiers, one for each managed data identifier for the // job to include (use) or exclude (not use) when it analyzes data. Inclusion or @@ -120,7 +120,7 @@ type CreateClassificationJobInput struct { // analyzes. If this value is less than 100, Amazon Macie selects the objects to // analyze at random, up to the specified percentage, and analyzes all the data in // those objects. - SamplingPercentage int32 + SamplingPercentage *int32 // The recurrence pattern for running the job. To run the job only once, don't // specify a value for this property and set the value for the jobType property to diff --git a/service/macie2/api_op_CreateCustomDataIdentifier.go b/service/macie2/api_op_CreateCustomDataIdentifier.go index 5604d43ff95..86d1b2b5d0e 100644 --- a/service/macie2/api_op_CreateCustomDataIdentifier.go +++ b/service/macie2/api_op_CreateCustomDataIdentifier.go @@ -80,7 +80,7 @@ type CreateCustomDataIdentifierInput struct { // that matches the pattern and the keyword is within the specified distance, // Amazon Macie includes the result. The distance can be 1-300 characters. The // default value is 50. - MaximumMatchDistance int32 + MaximumMatchDistance *int32 // The severity to assign to findings that the custom data identifier produces, // based on the number of occurrences of text that match the custom data diff --git a/service/macie2/api_op_CreateFindingsFilter.go b/service/macie2/api_op_CreateFindingsFilter.go index 5657700910b..cb307d99852 100644 --- a/service/macie2/api_op_CreateFindingsFilter.go +++ b/service/macie2/api_op_CreateFindingsFilter.go @@ -69,7 +69,7 @@ type CreateFindingsFilterInput struct { // The position of the filter in the list of saved filters on the Amazon Macie // console. This value also determines the order in which the filter is applied to // findings, relative to other filters that are also applied to the findings. - Position int32 + Position *int32 // A map of key-value pairs that specifies the tags to associate with the filter. // A findings filter can have a maximum of 50 tags. Each tag consists of a tag key diff --git a/service/macie2/api_op_CreateInvitations.go b/service/macie2/api_op_CreateInvitations.go index 6a3304ee4f3..19d34be5f62 100644 --- a/service/macie2/api_op_CreateInvitations.go +++ b/service/macie2/api_op_CreateInvitations.go @@ -44,7 +44,7 @@ type CreateInvitationsInput struct { // false, Amazon Macie sends the invitation (as an email message) to the email // address that you specified for the recipient's account when you associated the // account with your account. The default value is false. - DisableEmailNotification bool + DisableEmailNotification *bool // Custom text to include in the email message that contains the invitation. The // text can contain as many as 80 alphanumeric characters. diff --git a/service/macie2/api_op_DescribeBuckets.go b/service/macie2/api_op_DescribeBuckets.go index 0f9e6f46ef8..0d3f83cfec8 100644 --- a/service/macie2/api_op_DescribeBuckets.go +++ b/service/macie2/api_op_DescribeBuckets.go @@ -40,7 +40,7 @@ type DescribeBucketsInput struct { // The maximum number of items to include in each page of the response. The // default value is 50. - MaxResults int32 + MaxResults *int32 // The nextToken string that specifies which page of results to return in a // paginated response. @@ -175,8 +175,8 @@ func NewDescribeBucketsPaginator(client DescribeBucketsAPIClient, params *Descri } options := DescribeBucketsPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults + if params.MaxResults != nil { + options.Limit = *params.MaxResults } for _, fn := range optFns { @@ -206,7 +206,11 @@ func (p *DescribeBucketsPaginator) 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.DescribeBuckets(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/macie2/api_op_DescribeClassificationJob.go b/service/macie2/api_op_DescribeClassificationJob.go index ccc16b03bc0..306fa3adb95 100644 --- a/service/macie2/api_op_DescribeClassificationJob.go +++ b/service/macie2/api_op_DescribeClassificationJob.go @@ -70,7 +70,7 @@ type DescribeClassificationJobOutput struct { // configured the job to analyze only those objects that were created or changed // after the job was created and before the job's first scheduled run, this value // is false. This value is also false for a one-time job. - InitialRun bool + InitialRun *bool // The Amazon Resource Name (ARN) of the job. JobArn *string @@ -151,7 +151,7 @@ type DescribeClassificationJobOutput struct { // The sampling depth, as a percentage, that determines the percentage of eligible // objects that the job analyzes. - SamplingPercentage int32 + SamplingPercentage *int32 // The recurrence pattern for running the job. This value is null if the job is // configured to run only once. diff --git a/service/macie2/api_op_DescribeOrganizationConfiguration.go b/service/macie2/api_op_DescribeOrganizationConfiguration.go index 221ac6be497..6f1f7408bd9 100644 --- a/service/macie2/api_op_DescribeOrganizationConfiguration.go +++ b/service/macie2/api_op_DescribeOrganizationConfiguration.go @@ -40,11 +40,11 @@ type DescribeOrganizationConfigurationOutput struct { // Specifies whether Amazon Macie is enabled automatically for accounts that are // added to the organization. - AutoEnable bool + AutoEnable *bool // Specifies whether the maximum number of Amazon Macie member accounts are part // of the organization. - MaxAccountLimitReached bool + MaxAccountLimitReached *bool // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/macie2/api_op_GetBucketStatistics.go b/service/macie2/api_op_GetBucketStatistics.go index b5ea1cb649a..983c4e1113d 100644 --- a/service/macie2/api_op_GetBucketStatistics.go +++ b/service/macie2/api_op_GetBucketStatistics.go @@ -45,7 +45,7 @@ type GetBucketStatisticsInput struct { type GetBucketStatisticsOutput struct { // The total number of buckets. - BucketCount int64 + BucketCount *int64 // The total number of buckets that are publicly accessible due to a combination // of permissions settings for each bucket. @@ -72,7 +72,7 @@ type GetBucketStatisticsOutput struct { // The total number of objects that Amazon Macie can analyze in the buckets. These // objects use a supported storage class and have a file name extension for a // supported file or storage format. - ClassifiableObjectCount int64 + ClassifiableObjectCount *int64 // The total storage size, in bytes, of all the objects that Amazon Macie can // analyze in the buckets. These objects use a supported storage class and have a @@ -80,27 +80,27 @@ type GetBucketStatisticsOutput struct { // enabled for any of the buckets, this value is based on the size of the latest // version of each applicable object in the buckets. This value doesn't reflect the // storage size of all versions of all applicable objects in the buckets. - ClassifiableSizeInBytes int64 + ClassifiableSizeInBytes *int64 // The date and time, in UTC and extended ISO 8601 format, when Amazon Macie most // recently retrieved bucket or object metadata from Amazon S3 for the buckets. LastUpdated *time.Time // The total number of objects in the buckets. - ObjectCount int64 + ObjectCount *int64 // The total storage size, in bytes, of the buckets. If versioning is enabled for // any of the buckets, this value is based on the size of the latest version of // each object in the buckets. This value doesn't reflect the storage size of all // versions of the objects in the buckets. - SizeInBytes int64 + SizeInBytes *int64 // The total storage size, in bytes, of the objects that are compressed (.gz, // .gzip, .zip) files in the buckets. If versioning is enabled for any of the // buckets, this value is based on the size of the latest version of each // applicable object in the buckets. This value doesn't reflect the storage size of // all versions of the applicable objects in the buckets. - SizeInBytesCompressed int64 + SizeInBytesCompressed *int64 // The total number of objects that Amazon Macie can't analyze in the buckets. // These objects don't use a supported storage class or don't have a file name diff --git a/service/macie2/api_op_GetCustomDataIdentifier.go b/service/macie2/api_op_GetCustomDataIdentifier.go index 35aac9b9901..05e0d558216 100644 --- a/service/macie2/api_op_GetCustomDataIdentifier.go +++ b/service/macie2/api_op_GetCustomDataIdentifier.go @@ -55,7 +55,7 @@ type GetCustomDataIdentifierOutput struct { // Specifies whether the custom data identifier was deleted. If you delete a // custom data identifier, Amazon Macie doesn't delete it permanently. Instead, it // soft deletes the identifier. - Deleted bool + Deleted *bool // The custom description of the custom data identifier. Description *string @@ -78,7 +78,7 @@ type GetCustomDataIdentifierOutput struct { // text that matches the regex pattern. If a complete keyword precedes all the text // that matches the pattern and the keyword is within the specified distance, // Amazon Macie includes the result. Otherwise, Macie excludes the result. - MaximumMatchDistance int32 + MaximumMatchDistance *int32 // The custom name of the custom data identifier. Name *string diff --git a/service/macie2/api_op_GetFindingStatistics.go b/service/macie2/api_op_GetFindingStatistics.go index 4cbb99a7b47..4795898dc8e 100644 --- a/service/macie2/api_op_GetFindingStatistics.go +++ b/service/macie2/api_op_GetFindingStatistics.go @@ -51,7 +51,7 @@ type GetFindingStatisticsInput struct { FindingCriteria *types.FindingCriteria // The maximum number of items to include in each page of the response. - Size int32 + Size *int32 // The criteria to use to sort the query results. SortCriteria *types.FindingStatisticsSortCriteria diff --git a/service/macie2/api_op_GetFindingsFilter.go b/service/macie2/api_op_GetFindingsFilter.go index e2930192db6..e50f9772815 100644 --- a/service/macie2/api_op_GetFindingsFilter.go +++ b/service/macie2/api_op_GetFindingsFilter.go @@ -67,7 +67,7 @@ type GetFindingsFilterOutput struct { // The position of the filter in the list of saved filters on the Amazon Macie // console. This value also determines the order in which the filter is applied to // findings, relative to other filters that are also applied to the findings. - Position int32 + Position *int32 // A map of key-value pairs that specifies which tags (keys and values) are // associated with the filter. diff --git a/service/macie2/api_op_GetInvitationsCount.go b/service/macie2/api_op_GetInvitationsCount.go index 54421e2dd50..09478e69ab9 100644 --- a/service/macie2/api_op_GetInvitationsCount.go +++ b/service/macie2/api_op_GetInvitationsCount.go @@ -40,7 +40,7 @@ type GetInvitationsCountOutput struct { // The total number of invitations that were received by the account, not // including the currently accepted invitation. - InvitationsCount int64 + InvitationsCount *int64 // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/macie2/api_op_GetResourceProfile.go b/service/macie2/api_op_GetResourceProfile.go index afc0ecfd393..d9ceb17f2a9 100644 --- a/service/macie2/api_op_GetResourceProfile.go +++ b/service/macie2/api_op_GetResourceProfile.go @@ -56,12 +56,12 @@ type GetResourceProfileOutput struct { // error) to 100 (sensitive). By default, this score is calculated automatically // based on the amount of data that Amazon Macie has analyzed in the bucket and the // amount of sensitive data that Macie has found in the bucket. - SensitivityScore int32 + SensitivityScore *int32 // Specifies whether the bucket's current sensitivity score was set manually. If // this value is true, the score was manually changed to 100. If this value is // false, the score was calculated automatically by Amazon Macie. - SensitivityScoreOverridden bool + SensitivityScoreOverridden *bool // The sensitive data discovery statistics for the bucket. The statistics capture // the results of automated sensitive data discovery activities that Amazon Macie diff --git a/service/macie2/api_op_GetUsageStatistics.go b/service/macie2/api_op_GetUsageStatistics.go index 7e64947ff38..afd5040caf3 100644 --- a/service/macie2/api_op_GetUsageStatistics.go +++ b/service/macie2/api_op_GetUsageStatistics.go @@ -40,7 +40,7 @@ type GetUsageStatisticsInput struct { FilterBy []types.UsageStatisticsFilter // The maximum number of items to include in each page of the response. - MaxResults int32 + MaxResults *int32 // The nextToken string that specifies which page of results to return in a // paginated response. @@ -187,8 +187,8 @@ func NewGetUsageStatisticsPaginator(client GetUsageStatisticsAPIClient, params * } options := GetUsageStatisticsPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults + if params.MaxResults != nil { + options.Limit = *params.MaxResults } for _, fn := range optFns { @@ -218,7 +218,11 @@ func (p *GetUsageStatisticsPaginator) 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.GetUsageStatistics(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/macie2/api_op_ListAllowLists.go b/service/macie2/api_op_ListAllowLists.go index ccc19a5be1f..a40882c7cf0 100644 --- a/service/macie2/api_op_ListAllowLists.go +++ b/service/macie2/api_op_ListAllowLists.go @@ -35,7 +35,7 @@ func (c *Client) ListAllowLists(ctx context.Context, params *ListAllowListsInput type ListAllowListsInput struct { // The maximum number of items to include in each page of a paginated response. - MaxResults int32 + MaxResults *int32 // The nextToken string that specifies which page of results to return in a // paginated response. @@ -165,8 +165,8 @@ func NewListAllowListsPaginator(client ListAllowListsAPIClient, params *ListAllo } options := ListAllowListsPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults + if params.MaxResults != nil { + options.Limit = *params.MaxResults } for _, fn := range optFns { @@ -196,7 +196,11 @@ func (p *ListAllowListsPaginator) 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.ListAllowLists(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/macie2/api_op_ListClassificationJobs.go b/service/macie2/api_op_ListClassificationJobs.go index 6e566c3dc16..afed1d613a2 100644 --- a/service/macie2/api_op_ListClassificationJobs.go +++ b/service/macie2/api_op_ListClassificationJobs.go @@ -38,7 +38,7 @@ type ListClassificationJobsInput struct { FilterCriteria *types.ListJobsFilterCriteria // The maximum number of items to include in each page of the response. - MaxResults int32 + MaxResults *int32 // The nextToken string that specifies which page of results to return in a // paginated response. @@ -173,8 +173,8 @@ func NewListClassificationJobsPaginator(client ListClassificationJobsAPIClient, } options := ListClassificationJobsPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults + if params.MaxResults != nil { + options.Limit = *params.MaxResults } for _, fn := range optFns { @@ -204,7 +204,11 @@ func (p *ListClassificationJobsPaginator) 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.ListClassificationJobs(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/macie2/api_op_ListCustomDataIdentifiers.go b/service/macie2/api_op_ListCustomDataIdentifiers.go index 8ad7a835c39..e34330d4237 100644 --- a/service/macie2/api_op_ListCustomDataIdentifiers.go +++ b/service/macie2/api_op_ListCustomDataIdentifiers.go @@ -36,7 +36,7 @@ func (c *Client) ListCustomDataIdentifiers(ctx context.Context, params *ListCust type ListCustomDataIdentifiersInput struct { // The maximum number of items to include in each page of the response. - MaxResults int32 + MaxResults *int32 // The nextToken string that specifies which page of results to return in a // paginated response. @@ -168,8 +168,8 @@ func NewListCustomDataIdentifiersPaginator(client ListCustomDataIdentifiersAPICl } options := ListCustomDataIdentifiersPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults + if params.MaxResults != nil { + options.Limit = *params.MaxResults } for _, fn := range optFns { @@ -199,7 +199,11 @@ func (p *ListCustomDataIdentifiersPaginator) 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.ListCustomDataIdentifiers(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/macie2/api_op_ListFindings.go b/service/macie2/api_op_ListFindings.go index 0205e008880..67e70ed1eae 100644 --- a/service/macie2/api_op_ListFindings.go +++ b/service/macie2/api_op_ListFindings.go @@ -38,7 +38,7 @@ type ListFindingsInput struct { FindingCriteria *types.FindingCriteria // The maximum number of items to include in each page of the response. - MaxResults int32 + MaxResults *int32 // The nextToken string that specifies which page of results to return in a // paginated response. @@ -171,8 +171,8 @@ func NewListFindingsPaginator(client ListFindingsAPIClient, params *ListFindings } options := ListFindingsPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults + if params.MaxResults != nil { + options.Limit = *params.MaxResults } for _, fn := range optFns { @@ -202,7 +202,11 @@ func (p *ListFindingsPaginator) 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.ListFindings(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/macie2/api_op_ListFindingsFilters.go b/service/macie2/api_op_ListFindingsFilters.go index 88b4703d619..7076d3d4e4e 100644 --- a/service/macie2/api_op_ListFindingsFilters.go +++ b/service/macie2/api_op_ListFindingsFilters.go @@ -35,7 +35,7 @@ func (c *Client) ListFindingsFilters(ctx context.Context, params *ListFindingsFi type ListFindingsFiltersInput struct { // The maximum number of items to include in each page of a paginated response. - MaxResults int32 + MaxResults *int32 // The nextToken string that specifies which page of results to return in a // paginated response. @@ -166,8 +166,8 @@ func NewListFindingsFiltersPaginator(client ListFindingsFiltersAPIClient, params } options := ListFindingsFiltersPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults + if params.MaxResults != nil { + options.Limit = *params.MaxResults } for _, fn := range optFns { @@ -197,7 +197,11 @@ func (p *ListFindingsFiltersPaginator) 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.ListFindingsFilters(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/macie2/api_op_ListInvitations.go b/service/macie2/api_op_ListInvitations.go index 4af0fd650f8..7fd3b360f1a 100644 --- a/service/macie2/api_op_ListInvitations.go +++ b/service/macie2/api_op_ListInvitations.go @@ -36,7 +36,7 @@ func (c *Client) ListInvitations(ctx context.Context, params *ListInvitationsInp type ListInvitationsInput struct { // The maximum number of items to include in each page of a paginated response. - MaxResults int32 + MaxResults *int32 // The nextToken string that specifies which page of results to return in a // paginated response. @@ -166,8 +166,8 @@ func NewListInvitationsPaginator(client ListInvitationsAPIClient, params *ListIn } options := ListInvitationsPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults + if params.MaxResults != nil { + options.Limit = *params.MaxResults } for _, fn := range optFns { @@ -197,7 +197,11 @@ func (p *ListInvitationsPaginator) 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.ListInvitations(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/macie2/api_op_ListMembers.go b/service/macie2/api_op_ListMembers.go index ea27ddccc9d..dc9b2adeb52 100644 --- a/service/macie2/api_op_ListMembers.go +++ b/service/macie2/api_op_ListMembers.go @@ -36,7 +36,7 @@ func (c *Client) ListMembers(ctx context.Context, params *ListMembersInput, optF type ListMembersInput struct { // The maximum number of items to include in each page of a paginated response. - MaxResults int32 + MaxResults *int32 // The nextToken string that specifies which page of results to return in a // paginated response. @@ -172,8 +172,8 @@ func NewListMembersPaginator(client ListMembersAPIClient, params *ListMembersInp } options := ListMembersPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults + if params.MaxResults != nil { + options.Limit = *params.MaxResults } for _, fn := range optFns { @@ -203,7 +203,11 @@ func (p *ListMembersPaginator) NextPage(ctx context.Context, optFns ...func(*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.ListMembers(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/macie2/api_op_ListOrganizationAdminAccounts.go b/service/macie2/api_op_ListOrganizationAdminAccounts.go index 6800688f850..3601c93c074 100644 --- a/service/macie2/api_op_ListOrganizationAdminAccounts.go +++ b/service/macie2/api_op_ListOrganizationAdminAccounts.go @@ -36,7 +36,7 @@ func (c *Client) ListOrganizationAdminAccounts(ctx context.Context, params *List type ListOrganizationAdminAccountsInput struct { // The maximum number of items to include in each page of a paginated response. - MaxResults int32 + MaxResults *int32 // The nextToken string that specifies which page of results to return in a // paginated response. @@ -170,8 +170,8 @@ func NewListOrganizationAdminAccountsPaginator(client ListOrganizationAdminAccou } options := ListOrganizationAdminAccountsPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults + if params.MaxResults != nil { + options.Limit = *params.MaxResults } for _, fn := range optFns { @@ -201,7 +201,11 @@ func (p *ListOrganizationAdminAccountsPaginator) 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.ListOrganizationAdminAccounts(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/macie2/api_op_ListResourceProfileDetections.go b/service/macie2/api_op_ListResourceProfileDetections.go index fd1255543de..4483b14c468 100644 --- a/service/macie2/api_op_ListResourceProfileDetections.go +++ b/service/macie2/api_op_ListResourceProfileDetections.go @@ -41,7 +41,7 @@ type ListResourceProfileDetectionsInput struct { ResourceArn *string // The maximum number of items to include in each page of a paginated response. - MaxResults int32 + MaxResults *int32 // The nextToken string that specifies which page of results to return in a // paginated response. @@ -180,8 +180,8 @@ func NewListResourceProfileDetectionsPaginator(client ListResourceProfileDetecti } options := ListResourceProfileDetectionsPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults + if params.MaxResults != nil { + options.Limit = *params.MaxResults } for _, fn := range optFns { @@ -211,7 +211,11 @@ func (p *ListResourceProfileDetectionsPaginator) 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.ListResourceProfileDetections(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/macie2/api_op_ListSensitivityInspectionTemplates.go b/service/macie2/api_op_ListSensitivityInspectionTemplates.go index 78b46a2fd5e..4ce3b2b58d7 100644 --- a/service/macie2/api_op_ListSensitivityInspectionTemplates.go +++ b/service/macie2/api_op_ListSensitivityInspectionTemplates.go @@ -36,7 +36,7 @@ func (c *Client) ListSensitivityInspectionTemplates(ctx context.Context, params type ListSensitivityInspectionTemplatesInput struct { // The maximum number of items to include in each page of a paginated response. - MaxResults int32 + MaxResults *int32 // The nextToken string that specifies which page of results to return in a // paginated response. @@ -170,8 +170,8 @@ func NewListSensitivityInspectionTemplatesPaginator(client ListSensitivityInspec } options := ListSensitivityInspectionTemplatesPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults + if params.MaxResults != nil { + options.Limit = *params.MaxResults } for _, fn := range optFns { @@ -201,7 +201,11 @@ func (p *ListSensitivityInspectionTemplatesPaginator) 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.ListSensitivityInspectionTemplates(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/macie2/api_op_SearchResources.go b/service/macie2/api_op_SearchResources.go index acb91903338..ccea01aa09c 100644 --- a/service/macie2/api_op_SearchResources.go +++ b/service/macie2/api_op_SearchResources.go @@ -41,7 +41,7 @@ type SearchResourcesInput struct { // The maximum number of items to include in each page of the response. The // default value is 50. - MaxResults int32 + MaxResults *int32 // The nextToken string that specifies which page of results to return in a // paginated response. @@ -176,8 +176,8 @@ func NewSearchResourcesPaginator(client SearchResourcesAPIClient, params *Search } options := SearchResourcesPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults + if params.MaxResults != nil { + options.Limit = *params.MaxResults } for _, fn := range optFns { @@ -207,7 +207,11 @@ func (p *SearchResourcesPaginator) 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.SearchResources(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/macie2/api_op_TestCustomDataIdentifier.go b/service/macie2/api_op_TestCustomDataIdentifier.go index d037552fb09..9851fb0e329 100644 --- a/service/macie2/api_op_TestCustomDataIdentifier.go +++ b/service/macie2/api_op_TestCustomDataIdentifier.go @@ -64,7 +64,7 @@ type TestCustomDataIdentifierInput struct { // that matches the pattern and the keyword is within the specified distance, // Amazon Macie includes the result. The distance can be 1-300 characters. The // default value is 50. - MaximumMatchDistance int32 + MaximumMatchDistance *int32 noSmithyDocumentSerde } @@ -73,7 +73,7 @@ type TestCustomDataIdentifierOutput struct { // The number of occurrences of sample text that matched the criteria specified by // the custom data identifier. - MatchCount int32 + MatchCount *int32 // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/macie2/api_op_UpdateFindingsFilter.go b/service/macie2/api_op_UpdateFindingsFilter.go index e9adccc380c..e4ec434216b 100644 --- a/service/macie2/api_op_UpdateFindingsFilter.go +++ b/service/macie2/api_op_UpdateFindingsFilter.go @@ -68,7 +68,7 @@ type UpdateFindingsFilterInput struct { // The position of the filter in the list of saved filters on the Amazon Macie // console. This value also determines the order in which the filter is applied to // findings, relative to other filters that are also applied to the findings. - Position int32 + Position *int32 noSmithyDocumentSerde } diff --git a/service/macie2/api_op_UpdateOrganizationConfiguration.go b/service/macie2/api_op_UpdateOrganizationConfiguration.go index 7d33fdda387..ea686a4b743 100644 --- a/service/macie2/api_op_UpdateOrganizationConfiguration.go +++ b/service/macie2/api_op_UpdateOrganizationConfiguration.go @@ -38,7 +38,7 @@ type UpdateOrganizationConfigurationInput struct { // account is added to the organization in Organizations. // // This member is required. - AutoEnable bool + AutoEnable *bool noSmithyDocumentSerde } diff --git a/service/macie2/api_op_UpdateResourceProfile.go b/service/macie2/api_op_UpdateResourceProfile.go index aae7b2787a7..1f040e79439 100644 --- a/service/macie2/api_op_UpdateResourceProfile.go +++ b/service/macie2/api_op_UpdateResourceProfile.go @@ -42,7 +42,7 @@ type UpdateResourceProfileInput struct { // maximum score and apply the Sensitive label to the bucket; and, null (empty), // assign a score that Amazon Macie calculates automatically after you submit the // request. - SensitivityScoreOverride int32 + SensitivityScoreOverride *int32 noSmithyDocumentSerde } diff --git a/service/macie2/deserializers.go b/service/macie2/deserializers.go index c67f0c85a3d..78151a175ec 100644 --- a/service/macie2/deserializers.go +++ b/service/macie2/deserializers.go @@ -2529,7 +2529,7 @@ func awsRestjson1_deserializeOpDocumentDescribeClassificationJobOutput(v **Descr if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.InitialRun = jtv + sv.InitialRun = ptr.Bool(jtv) } case "jobArn": @@ -2624,7 +2624,7 @@ func awsRestjson1_deserializeOpDocumentDescribeClassificationJobOutput(v **Descr if err != nil { return err } - sv.SamplingPercentage = int32(i64) + sv.SamplingPercentage = ptr.Int32(int32(i64)) } case "scheduleFrequency": @@ -2813,7 +2813,7 @@ func awsRestjson1_deserializeOpDocumentDescribeOrganizationConfigurationOutput(v if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.AutoEnable = jtv + sv.AutoEnable = ptr.Bool(jtv) } case "maxAccountLimitReached": @@ -2822,7 +2822,7 @@ func awsRestjson1_deserializeOpDocumentDescribeOrganizationConfigurationOutput(v if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.MaxAccountLimitReached = jtv + sv.MaxAccountLimitReached = ptr.Bool(jtv) } default: @@ -4315,7 +4315,7 @@ func awsRestjson1_deserializeOpDocumentGetBucketStatisticsOutput(v **GetBucketSt if err != nil { return err } - sv.BucketCount = i64 + sv.BucketCount = ptr.Int64(i64) } case "bucketCountByEffectivePermission": @@ -4353,7 +4353,7 @@ func awsRestjson1_deserializeOpDocumentGetBucketStatisticsOutput(v **GetBucketSt if err != nil { return err } - sv.ClassifiableObjectCount = i64 + sv.ClassifiableObjectCount = ptr.Int64(i64) } case "classifiableSizeInBytes": @@ -4366,7 +4366,7 @@ func awsRestjson1_deserializeOpDocumentGetBucketStatisticsOutput(v **GetBucketSt if err != nil { return err } - sv.ClassifiableSizeInBytes = i64 + sv.ClassifiableSizeInBytes = ptr.Int64(i64) } case "lastUpdated": @@ -4392,7 +4392,7 @@ func awsRestjson1_deserializeOpDocumentGetBucketStatisticsOutput(v **GetBucketSt if err != nil { return err } - sv.ObjectCount = i64 + sv.ObjectCount = ptr.Int64(i64) } case "sizeInBytes": @@ -4405,7 +4405,7 @@ func awsRestjson1_deserializeOpDocumentGetBucketStatisticsOutput(v **GetBucketSt if err != nil { return err } - sv.SizeInBytes = i64 + sv.SizeInBytes = ptr.Int64(i64) } case "sizeInBytesCompressed": @@ -4418,7 +4418,7 @@ func awsRestjson1_deserializeOpDocumentGetBucketStatisticsOutput(v **GetBucketSt if err != nil { return err } - sv.SizeInBytesCompressed = i64 + sv.SizeInBytesCompressed = ptr.Int64(i64) } case "unclassifiableObjectCount": @@ -4961,7 +4961,7 @@ func awsRestjson1_deserializeOpDocumentGetCustomDataIdentifierOutput(v **GetCust if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.Deleted = jtv + sv.Deleted = ptr.Bool(jtv) } case "description": @@ -5002,7 +5002,7 @@ func awsRestjson1_deserializeOpDocumentGetCustomDataIdentifierOutput(v **GetCust if err != nil { return err } - sv.MaximumMatchDistance = int32(i64) + sv.MaximumMatchDistance = ptr.Int32(int32(i64)) } case "name": @@ -5418,7 +5418,7 @@ func awsRestjson1_deserializeOpDocumentGetFindingsFilterOutput(v **GetFindingsFi if err != nil { return err } - sv.Position = int32(i64) + sv.Position = ptr.Int32(int32(i64)) } case "tags": @@ -5926,7 +5926,7 @@ func awsRestjson1_deserializeOpDocumentGetInvitationsCountOutput(v **GetInvitati if err != nil { return err } - sv.InvitationsCount = i64 + sv.InvitationsCount = ptr.Int64(i64) } default: @@ -6732,7 +6732,7 @@ func awsRestjson1_deserializeOpDocumentGetResourceProfileOutput(v **GetResourceP if err != nil { return err } - sv.SensitivityScore = int32(i64) + sv.SensitivityScore = ptr.Int32(int32(i64)) } case "sensitivityScoreOverridden": @@ -6741,7 +6741,7 @@ func awsRestjson1_deserializeOpDocumentGetResourceProfileOutput(v **GetResourceP if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.SensitivityScoreOverridden = jtv + sv.SensitivityScoreOverridden = ptr.Bool(jtv) } case "statistics": @@ -10840,7 +10840,7 @@ func awsRestjson1_deserializeOpDocumentTestCustomDataIdentifierOutput(v **TestCu if err != nil { return err } - sv.MatchCount = int32(i64) + sv.MatchCount = ptr.Int32(int32(i64)) } default: @@ -13696,7 +13696,7 @@ func awsRestjson1_deserializeDocumentAccessControlList(v **types.AccessControlLi if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.AllowsPublicReadAccess = jtv + sv.AllowsPublicReadAccess = ptr.Bool(jtv) } case "allowsPublicWriteAccess": @@ -13705,7 +13705,7 @@ func awsRestjson1_deserializeDocumentAccessControlList(v **types.AccessControlLi if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.AllowsPublicWriteAccess = jtv + sv.AllowsPublicWriteAccess = ptr.Bool(jtv) } default: @@ -14315,7 +14315,7 @@ func awsRestjson1_deserializeDocumentBatchGetCustomDataIdentifierSummary(v **typ if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.Deleted = jtv + sv.Deleted = ptr.Bool(jtv) } case "description": @@ -14382,7 +14382,7 @@ func awsRestjson1_deserializeDocumentBlockPublicAccess(v **types.BlockPublicAcce if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.BlockPublicAcls = jtv + sv.BlockPublicAcls = ptr.Bool(jtv) } case "blockPublicPolicy": @@ -14391,7 +14391,7 @@ func awsRestjson1_deserializeDocumentBlockPublicAccess(v **types.BlockPublicAcce if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.BlockPublicPolicy = jtv + sv.BlockPublicPolicy = ptr.Bool(jtv) } case "ignorePublicAcls": @@ -14400,7 +14400,7 @@ func awsRestjson1_deserializeDocumentBlockPublicAccess(v **types.BlockPublicAcce if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.IgnorePublicAcls = jtv + sv.IgnorePublicAcls = ptr.Bool(jtv) } case "restrictPublicBuckets": @@ -14409,7 +14409,7 @@ func awsRestjson1_deserializeDocumentBlockPublicAccess(v **types.BlockPublicAcce if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.RestrictPublicBuckets = jtv + sv.RestrictPublicBuckets = ptr.Bool(jtv) } default: @@ -14453,7 +14453,7 @@ func awsRestjson1_deserializeDocumentBucketCountByEffectivePermission(v **types. if err != nil { return err } - sv.PubliclyAccessible = i64 + sv.PubliclyAccessible = ptr.Int64(i64) } case "publiclyReadable": @@ -14466,7 +14466,7 @@ func awsRestjson1_deserializeDocumentBucketCountByEffectivePermission(v **types. if err != nil { return err } - sv.PubliclyReadable = i64 + sv.PubliclyReadable = ptr.Int64(i64) } case "publiclyWritable": @@ -14479,7 +14479,7 @@ func awsRestjson1_deserializeDocumentBucketCountByEffectivePermission(v **types. if err != nil { return err } - sv.PubliclyWritable = i64 + sv.PubliclyWritable = ptr.Int64(i64) } case "unknown": @@ -14492,7 +14492,7 @@ func awsRestjson1_deserializeDocumentBucketCountByEffectivePermission(v **types. if err != nil { return err } - sv.Unknown = i64 + sv.Unknown = ptr.Int64(i64) } default: @@ -14536,7 +14536,7 @@ func awsRestjson1_deserializeDocumentBucketCountByEncryptionType(v **types.Bucke if err != nil { return err } - sv.KmsManaged = i64 + sv.KmsManaged = ptr.Int64(i64) } case "s3Managed": @@ -14549,7 +14549,7 @@ func awsRestjson1_deserializeDocumentBucketCountByEncryptionType(v **types.Bucke if err != nil { return err } - sv.S3Managed = i64 + sv.S3Managed = ptr.Int64(i64) } case "unencrypted": @@ -14562,7 +14562,7 @@ func awsRestjson1_deserializeDocumentBucketCountByEncryptionType(v **types.Bucke if err != nil { return err } - sv.Unencrypted = i64 + sv.Unencrypted = ptr.Int64(i64) } case "unknown": @@ -14575,7 +14575,7 @@ func awsRestjson1_deserializeDocumentBucketCountByEncryptionType(v **types.Bucke if err != nil { return err } - sv.Unknown = i64 + sv.Unknown = ptr.Int64(i64) } default: @@ -14619,7 +14619,7 @@ func awsRestjson1_deserializeDocumentBucketCountBySharedAccessType(v **types.Buc if err != nil { return err } - sv.External = i64 + sv.External = ptr.Int64(i64) } case "internal": @@ -14632,7 +14632,7 @@ func awsRestjson1_deserializeDocumentBucketCountBySharedAccessType(v **types.Buc if err != nil { return err } - sv.Internal = i64 + sv.Internal = ptr.Int64(i64) } case "notShared": @@ -14645,7 +14645,7 @@ func awsRestjson1_deserializeDocumentBucketCountBySharedAccessType(v **types.Buc if err != nil { return err } - sv.NotShared = i64 + sv.NotShared = ptr.Int64(i64) } case "unknown": @@ -14658,7 +14658,7 @@ func awsRestjson1_deserializeDocumentBucketCountBySharedAccessType(v **types.Buc if err != nil { return err } - sv.Unknown = i64 + sv.Unknown = ptr.Int64(i64) } default: @@ -14702,7 +14702,7 @@ func awsRestjson1_deserializeDocumentBucketCountPolicyAllowsUnencryptedObjectUpl if err != nil { return err } - sv.AllowsUnencryptedObjectUploads = i64 + sv.AllowsUnencryptedObjectUploads = ptr.Int64(i64) } case "deniesUnencryptedObjectUploads": @@ -14715,7 +14715,7 @@ func awsRestjson1_deserializeDocumentBucketCountPolicyAllowsUnencryptedObjectUpl if err != nil { return err } - sv.DeniesUnencryptedObjectUploads = i64 + sv.DeniesUnencryptedObjectUploads = ptr.Int64(i64) } case "unknown": @@ -14728,7 +14728,7 @@ func awsRestjson1_deserializeDocumentBucketCountPolicyAllowsUnencryptedObjectUpl if err != nil { return err } - sv.Unknown = i64 + sv.Unknown = ptr.Int64(i64) } default: @@ -14867,7 +14867,7 @@ func awsRestjson1_deserializeDocumentBucketMetadata(v **types.BucketMetadata, va if err != nil { return err } - sv.ClassifiableObjectCount = i64 + sv.ClassifiableObjectCount = ptr.Int64(i64) } case "classifiableSizeInBytes": @@ -14880,7 +14880,7 @@ func awsRestjson1_deserializeDocumentBucketMetadata(v **types.BucketMetadata, va if err != nil { return err } - sv.ClassifiableSizeInBytes = i64 + sv.ClassifiableSizeInBytes = ptr.Int64(i64) } case "errorCode": @@ -14942,7 +14942,7 @@ func awsRestjson1_deserializeDocumentBucketMetadata(v **types.BucketMetadata, va if err != nil { return err } - sv.ObjectCount = i64 + sv.ObjectCount = ptr.Int64(i64) } case "objectCountByEncryptionType": @@ -14979,7 +14979,7 @@ func awsRestjson1_deserializeDocumentBucketMetadata(v **types.BucketMetadata, va if err != nil { return err } - sv.SensitivityScore = int32(i64) + sv.SensitivityScore = ptr.Int32(int32(i64)) } case "serverSideEncryption": @@ -15006,7 +15006,7 @@ func awsRestjson1_deserializeDocumentBucketMetadata(v **types.BucketMetadata, va if err != nil { return err } - sv.SizeInBytes = i64 + sv.SizeInBytes = ptr.Int64(i64) } case "sizeInBytesCompressed": @@ -15019,7 +15019,7 @@ func awsRestjson1_deserializeDocumentBucketMetadata(v **types.BucketMetadata, va if err != nil { return err } - sv.SizeInBytesCompressed = i64 + sv.SizeInBytesCompressed = ptr.Int64(i64) } case "tags": @@ -15043,7 +15043,7 @@ func awsRestjson1_deserializeDocumentBucketMetadata(v **types.BucketMetadata, va if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.Versioning = jtv + sv.Versioning = ptr.Bool(jtv) } default: @@ -15124,7 +15124,7 @@ func awsRestjson1_deserializeDocumentBucketPolicy(v **types.BucketPolicy, value if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.AllowsPublicReadAccess = jtv + sv.AllowsPublicReadAccess = ptr.Bool(jtv) } case "allowsPublicWriteAccess": @@ -15133,7 +15133,7 @@ func awsRestjson1_deserializeDocumentBucketPolicy(v **types.BucketPolicy, value if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.AllowsPublicWriteAccess = jtv + sv.AllowsPublicWriteAccess = ptr.Bool(jtv) } default: @@ -15331,7 +15331,7 @@ func awsRestjson1_deserializeDocumentCell(v **types.Cell, value interface{}) err if err != nil { return err } - sv.Column = i64 + sv.Column = ptr.Int64(i64) } case "columnName": @@ -15353,7 +15353,7 @@ func awsRestjson1_deserializeDocumentCell(v **types.Cell, value interface{}) err if err != nil { return err } - sv.Row = i64 + sv.Row = ptr.Int64(i64) } default: @@ -15535,7 +15535,7 @@ func awsRestjson1_deserializeDocumentClassificationResult(v **types.Classificati if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.AdditionalOccurrences = jtv + sv.AdditionalOccurrences = ptr.Bool(jtv) } case "customDataIdentifiers": @@ -15567,7 +15567,7 @@ func awsRestjson1_deserializeDocumentClassificationResult(v **types.Classificati if err != nil { return err } - sv.SizeClassified = i64 + sv.SizeClassified = ptr.Int64(i64) } case "status": @@ -15876,7 +15876,7 @@ func awsRestjson1_deserializeDocumentCriterionAdditionalProperties(v **types.Cri if err != nil { return err } - sv.Gt = i64 + sv.Gt = ptr.Int64(i64) } case "gte": @@ -15889,7 +15889,7 @@ func awsRestjson1_deserializeDocumentCriterionAdditionalProperties(v **types.Cri if err != nil { return err } - sv.Gte = i64 + sv.Gte = ptr.Int64(i64) } case "lt": @@ -15902,7 +15902,7 @@ func awsRestjson1_deserializeDocumentCriterionAdditionalProperties(v **types.Cri if err != nil { return err } - sv.Lt = i64 + sv.Lt = ptr.Int64(i64) } case "lte": @@ -15915,7 +15915,7 @@ func awsRestjson1_deserializeDocumentCriterionAdditionalProperties(v **types.Cri if err != nil { return err } - sv.Lte = i64 + sv.Lte = ptr.Int64(i64) } case "neq": @@ -15969,7 +15969,7 @@ func awsRestjson1_deserializeDocumentCustomDataIdentifiers(v **types.CustomDataI if err != nil { return err } - sv.TotalCount = i64 + sv.TotalCount = ptr.Int64(i64) } default: @@ -16102,7 +16102,7 @@ func awsRestjson1_deserializeDocumentCustomDetection(v **types.CustomDetection, if err != nil { return err } - sv.Count = i64 + sv.Count = ptr.Int64(i64) } case "name": @@ -16225,7 +16225,7 @@ func awsRestjson1_deserializeDocumentDefaultDetection(v **types.DefaultDetection if err != nil { return err } - sv.Count = i64 + sv.Count = ptr.Int64(i64) } case "occurrences": @@ -16366,7 +16366,7 @@ func awsRestjson1_deserializeDocumentDetection(v **types.Detection, value interf if err != nil { return err } - sv.Count = i64 + sv.Count = ptr.Int64(i64) } case "id": @@ -16393,7 +16393,7 @@ func awsRestjson1_deserializeDocumentDetection(v **types.Detection, value interf if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.Suppressed = jtv + sv.Suppressed = ptr.Bool(jtv) } case "type": @@ -16563,7 +16563,7 @@ func awsRestjson1_deserializeDocumentFinding(v **types.Finding, value interface{ if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.Archived = jtv + sv.Archived = ptr.Bool(jtv) } case "category": @@ -16590,7 +16590,7 @@ func awsRestjson1_deserializeDocumentFinding(v **types.Finding, value interface{ if err != nil { return err } - sv.Count = i64 + sv.Count = ptr.Int64(i64) } case "createdAt": @@ -16658,7 +16658,7 @@ func awsRestjson1_deserializeDocumentFinding(v **types.Finding, value interface{ if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.Sample = jtv + sv.Sample = ptr.Bool(jtv) } case "schemaVersion": @@ -16946,7 +16946,7 @@ func awsRestjson1_deserializeDocumentGroupCount(v **types.GroupCount, value inte if err != nil { return err } - sv.Count = i64 + sv.Count = ptr.Int64(i64) } case "groupKey": @@ -17324,7 +17324,7 @@ func awsRestjson1_deserializeDocumentIpGeoLocation(v **types.IpGeoLocation, valu if err != nil { return err } - sv.Lat = f64 + sv.Lat = ptr.Float64(f64) case string: var f64 float64 @@ -17342,7 +17342,7 @@ func awsRestjson1_deserializeDocumentIpGeoLocation(v **types.IpGeoLocation, valu return fmt.Errorf("unknown JSON number value: %s", jtv) } - sv.Lat = f64 + sv.Lat = ptr.Float64(f64) default: return fmt.Errorf("expected __double to be a JSON Number, got %T instead", value) @@ -17358,7 +17358,7 @@ func awsRestjson1_deserializeDocumentIpGeoLocation(v **types.IpGeoLocation, valu if err != nil { return err } - sv.Lon = f64 + sv.Lon = ptr.Float64(f64) case string: var f64 float64 @@ -17376,7 +17376,7 @@ func awsRestjson1_deserializeDocumentIpGeoLocation(v **types.IpGeoLocation, valu return fmt.Errorf("unknown JSON number value: %s", jtv) } - sv.Lon = f64 + sv.Lon = ptr.Float64(f64) default: return fmt.Errorf("expected __double to be a JSON Number, got %T instead", value) @@ -17976,7 +17976,7 @@ func awsRestjson1_deserializeDocumentMatchingBucket(v **types.MatchingBucket, va if err != nil { return err } - sv.ClassifiableObjectCount = i64 + sv.ClassifiableObjectCount = ptr.Int64(i64) } case "classifiableSizeInBytes": @@ -17989,7 +17989,7 @@ func awsRestjson1_deserializeDocumentMatchingBucket(v **types.MatchingBucket, va if err != nil { return err } - sv.ClassifiableSizeInBytes = i64 + sv.ClassifiableSizeInBytes = ptr.Int64(i64) } case "errorCode": @@ -18038,7 +18038,7 @@ func awsRestjson1_deserializeDocumentMatchingBucket(v **types.MatchingBucket, va if err != nil { return err } - sv.ObjectCount = i64 + sv.ObjectCount = ptr.Int64(i64) } case "objectCountByEncryptionType": @@ -18056,7 +18056,7 @@ func awsRestjson1_deserializeDocumentMatchingBucket(v **types.MatchingBucket, va if err != nil { return err } - sv.SensitivityScore = int32(i64) + sv.SensitivityScore = ptr.Int32(int32(i64)) } case "sizeInBytes": @@ -18069,7 +18069,7 @@ func awsRestjson1_deserializeDocumentMatchingBucket(v **types.MatchingBucket, va if err != nil { return err } - sv.SizeInBytes = i64 + sv.SizeInBytes = ptr.Int64(i64) } case "sizeInBytesCompressed": @@ -18082,7 +18082,7 @@ func awsRestjson1_deserializeDocumentMatchingBucket(v **types.MatchingBucket, va if err != nil { return err } - sv.SizeInBytesCompressed = i64 + sv.SizeInBytesCompressed = ptr.Int64(i64) } case "unclassifiableObjectCount": @@ -18288,7 +18288,7 @@ func awsRestjson1_deserializeDocumentMonthlySchedule(v **types.MonthlySchedule, if err != nil { return err } - sv.DayOfMonth = int32(i64) + sv.DayOfMonth = ptr.Int32(int32(i64)) } default: @@ -18332,7 +18332,7 @@ func awsRestjson1_deserializeDocumentObjectCountByEncryptionType(v **types.Objec if err != nil { return err } - sv.CustomerManaged = i64 + sv.CustomerManaged = ptr.Int64(i64) } case "kmsManaged": @@ -18345,7 +18345,7 @@ func awsRestjson1_deserializeDocumentObjectCountByEncryptionType(v **types.Objec if err != nil { return err } - sv.KmsManaged = i64 + sv.KmsManaged = ptr.Int64(i64) } case "s3Managed": @@ -18358,7 +18358,7 @@ func awsRestjson1_deserializeDocumentObjectCountByEncryptionType(v **types.Objec if err != nil { return err } - sv.S3Managed = i64 + sv.S3Managed = ptr.Int64(i64) } case "unencrypted": @@ -18371,7 +18371,7 @@ func awsRestjson1_deserializeDocumentObjectCountByEncryptionType(v **types.Objec if err != nil { return err } - sv.Unencrypted = i64 + sv.Unencrypted = ptr.Int64(i64) } case "unknown": @@ -18384,7 +18384,7 @@ func awsRestjson1_deserializeDocumentObjectCountByEncryptionType(v **types.Objec if err != nil { return err } - sv.Unknown = i64 + sv.Unknown = ptr.Int64(i64) } default: @@ -18428,7 +18428,7 @@ func awsRestjson1_deserializeDocumentObjectLevelStatistics(v **types.ObjectLevel if err != nil { return err } - sv.FileType = i64 + sv.FileType = ptr.Int64(i64) } case "storageClass": @@ -18441,7 +18441,7 @@ func awsRestjson1_deserializeDocumentObjectLevelStatistics(v **types.ObjectLevel if err != nil { return err } - sv.StorageClass = i64 + sv.StorageClass = ptr.Int64(i64) } case "total": @@ -18454,7 +18454,7 @@ func awsRestjson1_deserializeDocumentObjectLevelStatistics(v **types.ObjectLevel if err != nil { return err } - sv.Total = i64 + sv.Total = ptr.Int64(i64) } default: @@ -18564,7 +18564,7 @@ func awsRestjson1_deserializeDocumentPage(v **types.Page, value interface{}) err if err != nil { return err } - sv.PageNumber = i64 + sv.PageNumber = ptr.Int64(i64) } default: @@ -18683,7 +18683,7 @@ func awsRestjson1_deserializeDocumentRange(v **types.Range, value interface{}) e if err != nil { return err } - sv.End = i64 + sv.End = ptr.Int64(i64) } case "start": @@ -18696,7 +18696,7 @@ func awsRestjson1_deserializeDocumentRange(v **types.Range, value interface{}) e if err != nil { return err } - sv.Start = i64 + sv.Start = ptr.Int64(i64) } case "startColumn": @@ -18709,7 +18709,7 @@ func awsRestjson1_deserializeDocumentRange(v **types.Range, value interface{}) e if err != nil { return err } - sv.StartColumn = i64 + sv.StartColumn = ptr.Int64(i64) } default: @@ -18796,7 +18796,7 @@ func awsRestjson1_deserializeDocumentRecord(v **types.Record, value interface{}) if err != nil { return err } - sv.RecordIndex = i64 + sv.RecordIndex = ptr.Int64(i64) } default: @@ -18870,7 +18870,7 @@ func awsRestjson1_deserializeDocumentReplicationDetails(v **types.ReplicationDet if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.Replicated = jtv + sv.Replicated = ptr.Bool(jtv) } case "replicatedExternally": @@ -18879,7 +18879,7 @@ func awsRestjson1_deserializeDocumentReplicationDetails(v **types.ReplicationDet if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.ReplicatedExternally = jtv + sv.ReplicatedExternally = ptr.Bool(jtv) } case "replicationAccounts": @@ -18982,7 +18982,7 @@ func awsRestjson1_deserializeDocumentResourceProfileArtifact(v **types.ResourceP if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.Sensitive = jtv + sv.Sensitive = ptr.Bool(jtv) } default: @@ -19067,7 +19067,7 @@ func awsRestjson1_deserializeDocumentResourceStatistics(v **types.ResourceStatis if err != nil { return err } - sv.TotalBytesClassified = i64 + sv.TotalBytesClassified = ptr.Int64(i64) } case "totalDetections": @@ -19080,7 +19080,7 @@ func awsRestjson1_deserializeDocumentResourceStatistics(v **types.ResourceStatis if err != nil { return err } - sv.TotalDetections = i64 + sv.TotalDetections = ptr.Int64(i64) } case "totalDetectionsSuppressed": @@ -19093,7 +19093,7 @@ func awsRestjson1_deserializeDocumentResourceStatistics(v **types.ResourceStatis if err != nil { return err } - sv.TotalDetectionsSuppressed = i64 + sv.TotalDetectionsSuppressed = ptr.Int64(i64) } case "totalItemsClassified": @@ -19106,7 +19106,7 @@ func awsRestjson1_deserializeDocumentResourceStatistics(v **types.ResourceStatis if err != nil { return err } - sv.TotalItemsClassified = i64 + sv.TotalItemsClassified = ptr.Int64(i64) } case "totalItemsSensitive": @@ -19119,7 +19119,7 @@ func awsRestjson1_deserializeDocumentResourceStatistics(v **types.ResourceStatis if err != nil { return err } - sv.TotalItemsSensitive = i64 + sv.TotalItemsSensitive = ptr.Int64(i64) } case "totalItemsSkipped": @@ -19132,7 +19132,7 @@ func awsRestjson1_deserializeDocumentResourceStatistics(v **types.ResourceStatis if err != nil { return err } - sv.TotalItemsSkipped = i64 + sv.TotalItemsSkipped = ptr.Int64(i64) } case "totalItemsSkippedInvalidEncryption": @@ -19145,7 +19145,7 @@ func awsRestjson1_deserializeDocumentResourceStatistics(v **types.ResourceStatis if err != nil { return err } - sv.TotalItemsSkippedInvalidEncryption = i64 + sv.TotalItemsSkippedInvalidEncryption = ptr.Int64(i64) } case "totalItemsSkippedInvalidKms": @@ -19158,7 +19158,7 @@ func awsRestjson1_deserializeDocumentResourceStatistics(v **types.ResourceStatis if err != nil { return err } - sv.TotalItemsSkippedInvalidKms = i64 + sv.TotalItemsSkippedInvalidKms = ptr.Int64(i64) } case "totalItemsSkippedPermissionDenied": @@ -19171,7 +19171,7 @@ func awsRestjson1_deserializeDocumentResourceStatistics(v **types.ResourceStatis if err != nil { return err } - sv.TotalItemsSkippedPermissionDenied = i64 + sv.TotalItemsSkippedPermissionDenied = ptr.Int64(i64) } default: @@ -19720,7 +19720,7 @@ func awsRestjson1_deserializeDocumentS3Object(v **types.S3Object, value interfac if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.PublicAccess = jtv + sv.PublicAccess = ptr.Bool(jtv) } case "serverSideEncryption": @@ -19738,7 +19738,7 @@ func awsRestjson1_deserializeDocumentS3Object(v **types.S3Object, value interfac if err != nil { return err } - sv.Size = i64 + sv.Size = ptr.Int64(i64) } case "storageClass": @@ -19891,7 +19891,7 @@ func awsRestjson1_deserializeDocumentSecurityHubConfiguration(v **types.Security if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.PublishClassificationFindings = jtv + sv.PublishClassificationFindings = ptr.Bool(jtv) } case "publishPolicyFindings": @@ -19900,7 +19900,7 @@ func awsRestjson1_deserializeDocumentSecurityHubConfiguration(v **types.Security if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.PublishPolicyFindings = jtv + sv.PublishPolicyFindings = ptr.Bool(jtv) } default: @@ -19992,7 +19992,7 @@ func awsRestjson1_deserializeDocumentSensitiveDataItem(v **types.SensitiveDataIt if err != nil { return err } - sv.TotalCount = i64 + sv.TotalCount = ptr.Int64(i64) } default: @@ -20070,7 +20070,7 @@ func awsRestjson1_deserializeDocumentSensitivityAggregations(v **types.Sensitivi if err != nil { return err } - sv.ClassifiableSizeInBytes = i64 + sv.ClassifiableSizeInBytes = ptr.Int64(i64) } case "publiclyAccessibleCount": @@ -20083,7 +20083,7 @@ func awsRestjson1_deserializeDocumentSensitivityAggregations(v **types.Sensitivi if err != nil { return err } - sv.PubliclyAccessibleCount = i64 + sv.PubliclyAccessibleCount = ptr.Int64(i64) } case "totalCount": @@ -20096,7 +20096,7 @@ func awsRestjson1_deserializeDocumentSensitivityAggregations(v **types.Sensitivi if err != nil { return err } - sv.TotalCount = i64 + sv.TotalCount = ptr.Int64(i64) } case "totalSizeInBytes": @@ -20109,7 +20109,7 @@ func awsRestjson1_deserializeDocumentSensitivityAggregations(v **types.Sensitivi if err != nil { return err } - sv.TotalSizeInBytes = i64 + sv.TotalSizeInBytes = ptr.Int64(i64) } default: @@ -20329,7 +20329,7 @@ func awsRestjson1_deserializeDocumentServiceLimit(v **types.ServiceLimit, value if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.IsServiceLimited = jtv + sv.IsServiceLimited = ptr.Bool(jtv) } case "unit": @@ -20351,7 +20351,7 @@ func awsRestjson1_deserializeDocumentServiceLimit(v **types.ServiceLimit, value if err != nil { return err } - sv.Value = i64 + sv.Value = ptr.Int64(i64) } default: @@ -20485,7 +20485,7 @@ func awsRestjson1_deserializeDocumentSessionContextAttributes(v **types.SessionC if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.MfaAuthenticated = jtv + sv.MfaAuthenticated = ptr.Bool(jtv) } default: @@ -20614,7 +20614,7 @@ func awsRestjson1_deserializeDocumentSeverity(v **types.Severity, value interfac if err != nil { return err } - sv.Score = i64 + sv.Score = ptr.Int64(i64) } default: @@ -20658,7 +20658,7 @@ func awsRestjson1_deserializeDocumentSeverityLevel(v **types.SeverityLevel, valu if err != nil { return err } - sv.OccurrencesThreshold = i64 + sv.OccurrencesThreshold = ptr.Int64(i64) } case "severity": @@ -20851,7 +20851,7 @@ func awsRestjson1_deserializeDocumentStatistics(v **types.Statistics, value inte if err != nil { return err } - sv.ApproximateNumberOfObjectsToProcess = f64 + sv.ApproximateNumberOfObjectsToProcess = ptr.Float64(f64) case string: var f64 float64 @@ -20869,7 +20869,7 @@ func awsRestjson1_deserializeDocumentStatistics(v **types.Statistics, value inte return fmt.Errorf("unknown JSON number value: %s", jtv) } - sv.ApproximateNumberOfObjectsToProcess = f64 + sv.ApproximateNumberOfObjectsToProcess = ptr.Float64(f64) default: return fmt.Errorf("expected __double to be a JSON Number, got %T instead", value) @@ -20885,7 +20885,7 @@ func awsRestjson1_deserializeDocumentStatistics(v **types.Statistics, value inte if err != nil { return err } - sv.NumberOfRuns = f64 + sv.NumberOfRuns = ptr.Float64(f64) case string: var f64 float64 @@ -20903,7 +20903,7 @@ func awsRestjson1_deserializeDocumentStatistics(v **types.Statistics, value inte return fmt.Errorf("unknown JSON number value: %s", jtv) } - sv.NumberOfRuns = f64 + sv.NumberOfRuns = ptr.Float64(f64) default: return fmt.Errorf("expected __double to be a JSON Number, got %T instead", value) diff --git a/service/macie2/serializers.go b/service/macie2/serializers.go index f5188cb0566..1f2d9e28763 100644 --- a/service/macie2/serializers.go +++ b/service/macie2/serializers.go @@ -366,9 +366,9 @@ func awsRestjson1_serializeOpDocumentCreateClassificationJobInput(v *CreateClass ok.String(*v.Description) } - if v.InitialRun { + if v.InitialRun != nil { ok := object.Key("initialRun") - ok.Boolean(v.InitialRun) + ok.Boolean(*v.InitialRun) } if len(v.JobType) > 0 { @@ -400,9 +400,9 @@ func awsRestjson1_serializeOpDocumentCreateClassificationJobInput(v *CreateClass } } - if v.SamplingPercentage != 0 { + if v.SamplingPercentage != nil { ok := object.Key("samplingPercentage") - ok.Integer(v.SamplingPercentage) + ok.Integer(*v.SamplingPercentage) } if v.ScheduleFrequency != nil { @@ -513,9 +513,9 @@ func awsRestjson1_serializeOpDocumentCreateCustomDataIdentifierInput(v *CreateCu } } - if v.MaximumMatchDistance != 0 { + if v.MaximumMatchDistance != nil { ok := object.Key("maximumMatchDistance") - ok.Integer(v.MaximumMatchDistance) + ok.Integer(*v.MaximumMatchDistance) } if v.Name != nil { @@ -639,9 +639,9 @@ func awsRestjson1_serializeOpDocumentCreateFindingsFilterInput(v *CreateFindings ok.String(*v.Name) } - if v.Position != 0 { + if v.Position != nil { ok := object.Key("position") - ok.Integer(v.Position) + ok.Integer(*v.Position) } if v.Tags != nil { @@ -728,9 +728,9 @@ func awsRestjson1_serializeOpDocumentCreateInvitationsInput(v *CreateInvitations } } - if v.DisableEmailNotification { + if v.DisableEmailNotification != nil { ok := object.Key("disableEmailNotification") - ok.Boolean(v.DisableEmailNotification) + ok.Boolean(*v.DisableEmailNotification) } if v.Message != nil { @@ -1394,9 +1394,9 @@ func awsRestjson1_serializeOpDocumentDescribeBucketsInput(v *DescribeBucketsInpu } } - if v.MaxResults != 0 { + if v.MaxResults != nil { ok := object.Key("maxResults") - ok.Integer(v.MaxResults) + ok.Integer(*v.MaxResults) } if v.NextToken != nil { @@ -2683,9 +2683,9 @@ func awsRestjson1_serializeOpDocumentGetFindingStatisticsInput(v *GetFindingStat ok.String(string(v.GroupBy)) } - if v.Size != 0 { + if v.Size != nil { ok := object.Key("size") - ok.Integer(v.Size) + ok.Integer(*v.Size) } if v.SortCriteria != nil { @@ -3300,9 +3300,9 @@ func awsRestjson1_serializeOpDocumentGetUsageStatisticsInput(v *GetUsageStatisti } } - if v.MaxResults != 0 { + if v.MaxResults != nil { ok := object.Key("maxResults") - ok.Integer(v.MaxResults) + ok.Integer(*v.MaxResults) } if v.NextToken != nil { @@ -3438,8 +3438,8 @@ func awsRestjson1_serializeOpHttpBindingsListAllowListsInput(v *ListAllowListsIn return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.MaxResults != 0 { - encoder.SetQuery("maxResults").Integer(v.MaxResults) + if v.MaxResults != nil { + encoder.SetQuery("maxResults").Integer(*v.MaxResults) } if v.NextToken != nil { @@ -3523,9 +3523,9 @@ func awsRestjson1_serializeOpDocumentListClassificationJobsInput(v *ListClassifi } } - if v.MaxResults != 0 { + if v.MaxResults != nil { ok := object.Key("maxResults") - ok.Integer(v.MaxResults) + ok.Integer(*v.MaxResults) } if v.NextToken != nil { @@ -3674,9 +3674,9 @@ func awsRestjson1_serializeOpDocumentListCustomDataIdentifiersInput(v *ListCusto object := value.Object() defer object.Close() - if v.MaxResults != 0 { + if v.MaxResults != nil { ok := object.Key("maxResults") - ok.Integer(v.MaxResults) + ok.Integer(*v.MaxResults) } if v.NextToken != nil { @@ -3761,9 +3761,9 @@ func awsRestjson1_serializeOpDocumentListFindingsInput(v *ListFindingsInput, val } } - if v.MaxResults != 0 { + if v.MaxResults != nil { ok := object.Key("maxResults") - ok.Integer(v.MaxResults) + ok.Integer(*v.MaxResults) } if v.NextToken != nil { @@ -3834,8 +3834,8 @@ func awsRestjson1_serializeOpHttpBindingsListFindingsFiltersInput(v *ListFinding return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.MaxResults != 0 { - encoder.SetQuery("maxResults").Integer(v.MaxResults) + if v.MaxResults != nil { + encoder.SetQuery("maxResults").Integer(*v.MaxResults) } if v.NextToken != nil { @@ -3898,8 +3898,8 @@ func awsRestjson1_serializeOpHttpBindingsListInvitationsInput(v *ListInvitations return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.MaxResults != 0 { - encoder.SetQuery("maxResults").Integer(v.MaxResults) + if v.MaxResults != nil { + encoder.SetQuery("maxResults").Integer(*v.MaxResults) } if v.NextToken != nil { @@ -4037,8 +4037,8 @@ func awsRestjson1_serializeOpHttpBindingsListMembersInput(v *ListMembersInput, e return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.MaxResults != 0 { - encoder.SetQuery("maxResults").Integer(v.MaxResults) + if v.MaxResults != nil { + encoder.SetQuery("maxResults").Integer(*v.MaxResults) } if v.NextToken != nil { @@ -4105,8 +4105,8 @@ func awsRestjson1_serializeOpHttpBindingsListOrganizationAdminAccountsInput(v *L return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.MaxResults != 0 { - encoder.SetQuery("maxResults").Integer(v.MaxResults) + if v.MaxResults != nil { + encoder.SetQuery("maxResults").Integer(*v.MaxResults) } if v.NextToken != nil { @@ -4233,8 +4233,8 @@ func awsRestjson1_serializeOpHttpBindingsListResourceProfileDetectionsInput(v *L return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.MaxResults != 0 { - encoder.SetQuery("maxResults").Integer(v.MaxResults) + if v.MaxResults != nil { + encoder.SetQuery("maxResults").Integer(*v.MaxResults) } if v.NextToken != nil { @@ -4301,8 +4301,8 @@ func awsRestjson1_serializeOpHttpBindingsListSensitivityInspectionTemplatesInput return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.MaxResults != 0 { - encoder.SetQuery("maxResults").Integer(v.MaxResults) + if v.MaxResults != nil { + encoder.SetQuery("maxResults").Integer(*v.MaxResults) } if v.NextToken != nil { @@ -4610,9 +4610,9 @@ func awsRestjson1_serializeOpDocumentSearchResourcesInput(v *SearchResourcesInpu } } - if v.MaxResults != 0 { + if v.MaxResults != nil { ok := object.Key("maxResults") - ok.Integer(v.MaxResults) + ok.Integer(*v.MaxResults) } if v.NextToken != nil { @@ -4801,9 +4801,9 @@ func awsRestjson1_serializeOpDocumentTestCustomDataIdentifierInput(v *TestCustom } } - if v.MaximumMatchDistance != 0 { + if v.MaximumMatchDistance != nil { ok := object.Key("maximumMatchDistance") - ok.Integer(v.MaximumMatchDistance) + ok.Integer(*v.MaximumMatchDistance) } if v.Regex != nil { @@ -5350,9 +5350,9 @@ func awsRestjson1_serializeOpDocumentUpdateFindingsFilterInput(v *UpdateFindings ok.String(*v.Name) } - if v.Position != 0 { + if v.Position != nil { ok := object.Key("position") - ok.Integer(v.Position) + ok.Integer(*v.Position) } return nil @@ -5593,9 +5593,9 @@ func awsRestjson1_serializeOpDocumentUpdateOrganizationConfigurationInput(v *Upd object := value.Object() defer object.Close() - { + if v.AutoEnable != nil { ok := object.Key("autoEnable") - ok.Boolean(v.AutoEnable) + ok.Boolean(*v.AutoEnable) } return nil @@ -5676,9 +5676,9 @@ func awsRestjson1_serializeOpDocumentUpdateResourceProfileInput(v *UpdateResourc object := value.Object() defer object.Close() - if v.SensitivityScoreOverride != 0 { + if v.SensitivityScoreOverride != nil { ok := object.Key("sensitivityScoreOverride") - ok.Integer(v.SensitivityScoreOverride) + ok.Integer(*v.SensitivityScoreOverride) } return nil @@ -6172,24 +6172,24 @@ func awsRestjson1_serializeDocumentBucketCriteriaAdditionalProperties(v *types.B } } - if v.Gt != 0 { + if v.Gt != nil { ok := object.Key("gt") - ok.Long(v.Gt) + ok.Long(*v.Gt) } - if v.Gte != 0 { + if v.Gte != nil { ok := object.Key("gte") - ok.Long(v.Gte) + ok.Long(*v.Gte) } - if v.Lt != 0 { + if v.Lt != nil { ok := object.Key("lt") - ok.Long(v.Lt) + ok.Long(*v.Lt) } - if v.Lte != 0 { + if v.Lte != nil { ok := object.Key("lte") - ok.Long(v.Lte) + ok.Long(*v.Lte) } if v.Neq != nil { @@ -6305,24 +6305,24 @@ func awsRestjson1_serializeDocumentCriterionAdditionalProperties(v *types.Criter } } - if v.Gt != 0 { + if v.Gt != nil { ok := object.Key("gt") - ok.Long(v.Gt) + ok.Long(*v.Gt) } - if v.Gte != 0 { + if v.Gte != nil { ok := object.Key("gte") - ok.Long(v.Gte) + ok.Long(*v.Gte) } - if v.Lt != 0 { + if v.Lt != nil { ok := object.Key("lt") - ok.Long(v.Lt) + ok.Long(*v.Lt) } - if v.Lte != 0 { + if v.Lte != nil { ok := object.Key("lte") - ok.Long(v.Lte) + ok.Long(*v.Lte) } if v.Neq != nil { @@ -6502,9 +6502,9 @@ func awsRestjson1_serializeDocumentMonthlySchedule(v *types.MonthlySchedule, val object := value.Object() defer object.Close() - if v.DayOfMonth != 0 { + if v.DayOfMonth != nil { ok := object.Key("dayOfMonth") - ok.Integer(v.DayOfMonth) + ok.Integer(*v.DayOfMonth) } return nil @@ -6825,14 +6825,14 @@ func awsRestjson1_serializeDocumentSecurityHubConfiguration(v *types.SecurityHub object := value.Object() defer object.Close() - { + if v.PublishClassificationFindings != nil { ok := object.Key("publishClassificationFindings") - ok.Boolean(v.PublishClassificationFindings) + ok.Boolean(*v.PublishClassificationFindings) } - { + if v.PublishPolicyFindings != nil { ok := object.Key("publishPolicyFindings") - ok.Boolean(v.PublishPolicyFindings) + ok.Boolean(*v.PublishPolicyFindings) } return nil @@ -6884,9 +6884,9 @@ func awsRestjson1_serializeDocumentSeverityLevel(v *types.SeverityLevel, value s object := value.Object() defer object.Close() - { + if v.OccurrencesThreshold != nil { ok := object.Key("occurrencesThreshold") - ok.Long(v.OccurrencesThreshold) + ok.Long(*v.OccurrencesThreshold) } if len(v.Severity) > 0 { diff --git a/service/macie2/types/types.go b/service/macie2/types/types.go index 4593e229566..1faeefa7e95 100644 --- a/service/macie2/types/types.go +++ b/service/macie2/types/types.go @@ -13,11 +13,11 @@ type AccessControlList struct { // Specifies whether the ACL grants the general public with read access // permissions for the bucket. - AllowsPublicReadAccess bool + AllowsPublicReadAccess *bool // Specifies whether the ACL grants the general public with write access // permissions for the bucket. - AllowsPublicWriteAccess bool + AllowsPublicWriteAccess *bool noSmithyDocumentSerde } @@ -237,7 +237,7 @@ type BatchGetCustomDataIdentifierSummary struct { // Specifies whether the custom data identifier was deleted. If you delete a // custom data identifier, Amazon Macie doesn't delete it permanently. Instead, it // soft deletes the identifier. - Deleted bool + Deleted *bool // The custom description of the custom data identifier. Description *string @@ -260,17 +260,17 @@ type BlockPublicAccess struct { // Specifies whether Amazon S3 blocks public access control lists (ACLs) for the // bucket and objects in the bucket. - BlockPublicAcls bool + BlockPublicAcls *bool // Specifies whether Amazon S3 blocks public bucket policies for the bucket. - BlockPublicPolicy bool + BlockPublicPolicy *bool // Specifies whether Amazon S3 ignores public ACLs for the bucket and objects in // the bucket. - IgnorePublicAcls bool + IgnorePublicAcls *bool // Specifies whether Amazon S3 restricts public bucket policies for the bucket. - RestrictPublicBuckets bool + RestrictPublicBuckets *bool noSmithyDocumentSerde } @@ -281,20 +281,20 @@ type BucketCountByEffectivePermission struct { // The total number of buckets that allow the general public to have read or write // access to the bucket. - PubliclyAccessible int64 + PubliclyAccessible *int64 // The total number of buckets that allow the general public to have read access // to the bucket. - PubliclyReadable int64 + PubliclyReadable *int64 // The total number of buckets that allow the general public to have write access // to the bucket. - PubliclyWritable int64 + PubliclyWritable *int64 // The total number of buckets that Amazon Macie wasn't able to evaluate // permissions settings for. Macie can't determine whether these buckets are // publicly accessible. - Unknown int64 + Unknown *int64 noSmithyDocumentSerde } @@ -310,22 +310,22 @@ type BucketCountByEncryptionType struct { // encrypt new objects with an Amazon Web Services managed KMS key or a customer // managed KMS key. By default, these buckets encrypt new objects automatically // using SSE-KMS encryption. - KmsManaged int64 + KmsManaged *int64 // The total number of buckets whose default encryption settings are configured to // encrypt new objects with an Amazon S3 managed key. By default, these buckets // encrypt new objects automatically using SSE-S3 encryption. - S3Managed int64 + S3Managed *int64 // The total number of buckets that don't specify default server-side encryption // behavior for new objects. Default encryption settings aren't configured for // these buckets. - Unencrypted int64 + Unencrypted *int64 // The total number of buckets that Amazon Macie doesn't have current encryption // metadata for. Macie can't provide current data about the default encryption // settings for these buckets. - Unknown int64 + Unknown *int64 noSmithyDocumentSerde } @@ -342,21 +342,21 @@ type BucketCountBySharedAccessType struct { // or any combination of the following: an Amazon CloudFront OAI, a CloudFront OAC, // or an Amazon Web Services account that isn't in the same Amazon Macie // organization. - External int64 + External *int64 // The total number of buckets that are shared with one or more Amazon Web // Services accounts in the same Amazon Macie organization. These buckets aren't // shared with Amazon CloudFront OAIs or OACs. - Internal int64 + Internal *int64 // The total number of buckets that aren't shared with other Amazon Web Services // accounts, Amazon CloudFront OAIs, or CloudFront OACs. - NotShared int64 + NotShared *int64 // The total number of buckets that Amazon Macie wasn't able to evaluate shared // access settings for. Macie can't determine whether these buckets are shared with // other Amazon Web Services accounts, Amazon CloudFront OAIs, or CloudFront OACs. - Unknown int64 + Unknown *int64 noSmithyDocumentSerde } @@ -372,19 +372,19 @@ type BucketCountPolicyAllowsUnencryptedObjectUploads struct { // server-side encryption header: the x-amz-server-side-encryption header with a // value of AES256 or aws:kms, or the // x-amz-server-side-encryption-customer-algorithm header with a value of AES256. - AllowsUnencryptedObjectUploads int64 + AllowsUnencryptedObjectUploads *int64 // The total number of buckets whose bucket policies require server-side // encryption of new objects. PutObject requests for these buckets must include a // valid server-side encryption header: the x-amz-server-side-encryption header // with a value of AES256 or aws:kms, or the // x-amz-server-side-encryption-customer-algorithm header with a value of AES256. - DeniesUnencryptedObjectUploads int64 + DeniesUnencryptedObjectUploads *int64 // The total number of buckets that Amazon Macie wasn't able to evaluate // server-side encryption requirements for. Macie can't determine whether the // bucket policies for these buckets require server-side encryption of new objects. - Unknown int64 + Unknown *int64 noSmithyDocumentSerde } @@ -398,16 +398,16 @@ type BucketCriteriaAdditionalProperties struct { Eq []string // The value for the property is greater than the specified value. - Gt int64 + Gt *int64 // The value for the property is greater than or equal to the specified value. - Gte int64 + Gte *int64 // The value for the property is less than the specified value. - Lt int64 + Lt *int64 // The value for the property is less than or equal to the specified value. - Lte int64 + Lte *int64 // The value for the property doesn't match (doesn't equal) the specified value. // If you specify multiple values, Amazon Macie uses OR logic to join the values. @@ -483,7 +483,7 @@ type BucketMetadata struct { // The total number of objects that Amazon Macie can analyze in the bucket. These // objects use a supported storage class and have a file name extension for a // supported file or storage format. - ClassifiableObjectCount int64 + ClassifiableObjectCount *int64 // The total storage size, in bytes, of the objects that Amazon Macie can analyze // in the bucket. These objects use a supported storage class and have a file name @@ -491,7 +491,7 @@ type BucketMetadata struct { // the bucket, Macie calculates this value based on the size of the latest version // of each applicable object in the bucket. This value doesn't reflect the storage // size of all versions of each applicable object in the bucket. - ClassifiableSizeInBytes int64 + ClassifiableSizeInBytes *int64 // The error code for an error that prevented Amazon Macie from retrieving and // processing information about the bucket and the bucket's objects. If this value @@ -522,7 +522,7 @@ type BucketMetadata struct { LastUpdated *time.Time // The total number of objects in the bucket. - ObjectCount int64 + ObjectCount *int64 // The total number of objects in the bucket, grouped by server-side encryption // type. This includes a grouping that reports the total number of objects that @@ -544,7 +544,7 @@ type BucketMetadata struct { // The sensitivity score for the bucket, ranging from -1 (classification error) to // 100 (sensitive). This value is null if automated sensitive data discovery is // currently disabled for your account. - SensitivityScore int32 + SensitivityScore *int32 // The default server-side encryption settings for the bucket. ServerSideEncryption *BucketServerSideEncryption @@ -571,14 +571,14 @@ type BucketMetadata struct { // the bucket, Amazon Macie calculates this value based on the size of the latest // version of each object in the bucket. This value doesn't reflect the storage // size of all versions of each object in the bucket. - SizeInBytes int64 + SizeInBytes *int64 // The total storage size, in bytes, of the objects that are compressed (.gz, // .gzip, .zip) files in the bucket. If versioning is enabled for the bucket, // Amazon Macie calculates this value based on the size of the latest version of // each applicable object in the bucket. This value doesn't reflect the storage // size of all versions of each applicable object in the bucket. - SizeInBytesCompressed int64 + SizeInBytesCompressed *int64 // An array that specifies the tags (keys and values) that are associated with the // bucket. @@ -595,7 +595,7 @@ type BucketMetadata struct { UnclassifiableObjectSizeInBytes *ObjectLevelStatistics // Specifies whether versioning is enabled for the bucket. - Versioning bool + Versioning *bool noSmithyDocumentSerde } @@ -619,11 +619,11 @@ type BucketPolicy struct { // Specifies whether the bucket policy allows the general public to have read // access to the bucket. - AllowsPublicReadAccess bool + AllowsPublicReadAccess *bool // Specifies whether the bucket policy allows the general public to have write // access to the bucket. - AllowsPublicWriteAccess bool + AllowsPublicWriteAccess *bool noSmithyDocumentSerde } @@ -727,13 +727,13 @@ type Cell struct { // The column number of the column that contains the sensitive data. For a // Microsoft Excel workbook, this value correlates to the alphabetical character(s) // for a column identifier, for example: 1 for column A, 2 for column B, and so on. - Column int64 + Column *int64 // The name of the column that contains the sensitive data, if available. ColumnName *string // The row number of the row that contains the sensitive data. - Row int64 + Row *int64 noSmithyDocumentSerde } @@ -791,7 +791,7 @@ type ClassificationResult struct { // investigate additional occurrences of sensitive data in an object. You can do // this by referring to the corresponding sensitive data discovery result for the // finding (classificationDetails.detailedResultsLocation). - AdditionalOccurrences bool + AdditionalOccurrences *bool // The custom data identifiers that detected the sensitive data and the number of // occurrences of the data that they detected. @@ -807,7 +807,7 @@ type ClassificationResult struct { SensitiveData []SensitiveDataItem // The total size, in bytes, of the data that the finding applies to. - SizeClassified int64 + SizeClassified *int64 // The status of the finding. Status *ClassificationResultStatus @@ -957,16 +957,16 @@ type CriterionAdditionalProperties struct { EqExactMatch []string // The value for the property is greater than the specified value. - Gt int64 + Gt *int64 // The value for the property is greater than or equal to the specified value. - Gte int64 + Gte *int64 // The value for the property is less than the specified value. - Lt int64 + Lt *int64 // The value for the property is less than or equal to the specified value. - Lte int64 + Lte *int64 // The value for the property doesn't match (doesn't equal) the specified value. // If you specify multiple values, Macie uses OR logic to join the values. @@ -986,7 +986,7 @@ type CustomDataIdentifiers struct { // The total number of occurrences of the data that was detected by the custom // data identifiers and produced the finding. - TotalCount int64 + TotalCount *int64 noSmithyDocumentSerde } @@ -1022,7 +1022,7 @@ type CustomDetection struct { // The total number of occurrences of the sensitive data that the custom data // identifier detected. - Count int64 + Count *int64 // The name of the custom data identifier. Name *string @@ -1046,7 +1046,7 @@ type DailySchedule struct { type DefaultDetection struct { // The total number of occurrences of the type of sensitive data that was detected. - Count int64 + Count *int64 // The location of 1-15 occurrences of the sensitive data that was detected. A // finding includes location data for a maximum of 15 occurrences of sensitive @@ -1086,7 +1086,7 @@ type Detection struct { Arn *string // The total number of occurrences of the sensitive data. - Count int64 + Count *int64 // The unique identifier for the custom data identifier or managed data identifier // that detected the sensitive data. For additional details about a specified @@ -1101,7 +1101,7 @@ type Detection struct { // Specifies whether occurrences of this type of sensitive data are excluded // (true) or included (false) in the bucket's sensitivity score. - Suppressed bool + Suppressed *bool // The type of data identifier that detected the sensitive data. Possible values // are: CUSTOM, for a custom data identifier; and, MANAGED, for a managed data @@ -1155,7 +1155,7 @@ type Finding struct { AccountId *string // Specifies whether the finding is archived (suppressed). - Archived bool + Archived *bool // The category of the finding. Possible values are: CLASSIFICATION, for a // sensitive data finding; and, POLICY, for a policy finding. @@ -1167,7 +1167,7 @@ type Finding struct { // The total number of occurrences of the finding. For sensitive data findings, // this value is always 1. All sensitive data findings are considered unique. - Count int64 + Count *int64 // The date and time, in UTC and extended ISO 8601 format, when Amazon Macie // created the finding. @@ -1195,7 +1195,7 @@ type Finding struct { // Specifies whether the finding is a sample finding. A sample finding is a // finding that uses example data to demonstrate what a finding might contain. - Sample bool + Sample *bool // The version of the schema that was used to define the data structures in the // finding. @@ -1312,7 +1312,7 @@ type FindingStatisticsSortCriteria struct { type GroupCount struct { // The total number of findings in the group of query results. - Count int64 + Count *int64 // The name of the property that defines the group in the query results, as // specified by the groupBy property in the query request. @@ -1411,10 +1411,10 @@ type IpCountry struct { type IpGeoLocation struct { // The latitude coordinate of the location, rounded to four decimal places. - Lat float64 + Lat *float64 // The longitude coordinate of the location, rounded to four decimal places. - Lon float64 + Lon *float64 noSmithyDocumentSerde } @@ -1718,7 +1718,7 @@ type MatchingBucket struct { // The total number of objects that Amazon Macie can analyze in the bucket. These // objects use a supported storage class and have a file name extension for a // supported file or storage format. - ClassifiableObjectCount int64 + ClassifiableObjectCount *int64 // The total storage size, in bytes, of the objects that Amazon Macie can analyze // in the bucket. These objects use a supported storage class and have a file name @@ -1726,7 +1726,7 @@ type MatchingBucket struct { // the bucket, Macie calculates this value based on the size of the latest version // of each applicable object in the bucket. This value doesn't reflect the storage // size of all versions of each applicable object in the bucket. - ClassifiableSizeInBytes int64 + ClassifiableSizeInBytes *int64 // The error code for an error that prevented Amazon Macie from retrieving and // processing information about the bucket and the bucket's objects. If this value @@ -1753,7 +1753,7 @@ type MatchingBucket struct { LastAutomatedDiscoveryTime *time.Time // The total number of objects in the bucket. - ObjectCount int64 + ObjectCount *int64 // The total number of objects in the bucket, grouped by server-side encryption // type. This includes a grouping that reports the total number of objects that @@ -1763,20 +1763,20 @@ type MatchingBucket struct { // The current sensitivity score for the bucket, ranging from -1 (classification // error) to 100 (sensitive). This value is null if automated sensitive data // discovery is currently disabled for your account. - SensitivityScore int32 + SensitivityScore *int32 // The total storage size, in bytes, of the bucket. If versioning is enabled for // the bucket, Amazon Macie calculates this value based on the size of the latest // version of each object in the bucket. This value doesn't reflect the storage // size of all versions of each object in the bucket. - SizeInBytes int64 + SizeInBytes *int64 // The total storage size, in bytes, of the objects that are compressed (.gz, // .gzip, .zip) files in the bucket. If versioning is enabled for the bucket, // Amazon Macie calculates this value based on the size of the latest version of // each applicable object in the bucket. This value doesn't reflect the storage // size of all versions of each applicable object in the bucket. - SizeInBytesCompressed int64 + SizeInBytesCompressed *int64 // The total number of objects that Amazon Macie can't analyze in the bucket. // These objects don't use a supported storage class or don't have a file name @@ -1853,7 +1853,7 @@ type MonthlySchedule struct { // during months that have the specified day. For example, if this value is 31 and // a month has only 30 days, Macie doesn't run the job that month. To run the job // every month, specify a value that's less than 29. - DayOfMonth int32 + DayOfMonth *int32 noSmithyDocumentSerde } @@ -1865,24 +1865,24 @@ type ObjectCountByEncryptionType struct { // The total number of objects that are encrypted with a customer-provided key. // The objects use customer-provided server-side encryption (SSE-C). - CustomerManaged int64 + CustomerManaged *int64 // The total number of objects that are encrypted with an KMS key, either an // Amazon Web Services managed key or a customer managed key. The objects use KMS // encryption (SSE-KMS). - KmsManaged int64 + KmsManaged *int64 // The total number of objects that are encrypted with an Amazon S3 managed key. // The objects use Amazon S3 managed encryption (SSE-S3). - S3Managed int64 + S3Managed *int64 // The total number of objects that use client-side encryption or aren't encrypted. - Unencrypted int64 + Unencrypted *int64 // The total number of objects that Amazon Macie doesn't have current encryption // metadata for. Macie can't provide current data about the encryption settings for // these objects. - Unknown int64 + Unknown *int64 noSmithyDocumentSerde } @@ -1899,16 +1899,16 @@ type ObjectLevelStatistics struct { // The total storage size (in bytes) or number of objects that Amazon Macie can't // analyze because the objects don't have a file name extension for a supported // file or storage format. - FileType int64 + FileType *int64 // The total storage size (in bytes) or number of objects that Amazon Macie can't // analyze because the objects use an unsupported storage class. - StorageClass int64 + StorageClass *int64 // The total storage size (in bytes) or number of objects that Amazon Macie can't // analyze because the objects use an unsupported storage class or don't have a // file name extension for a supported file or storage format. - Total int64 + Total *int64 noSmithyDocumentSerde } @@ -1967,7 +1967,7 @@ type Page struct { OffsetRange *Range // The page number of the page that contains the sensitive data. - PageNumber int64 + PageNumber *int64 noSmithyDocumentSerde } @@ -1990,16 +1990,16 @@ type Range struct { // The number of lines from the beginning of the file to the end of the sensitive // data. - End int64 + End *int64 // The number of lines from the beginning of the file to the beginning of the // sensitive data. - Start int64 + Start *int64 // The number of characters, with spaces and starting from 1, from the beginning // of the first line that contains the sensitive data (start) to the beginning of // the sensitive data. - StartColumn int64 + StartColumn *int64 noSmithyDocumentSerde } @@ -2024,7 +2024,7 @@ type Record struct { // 0, for the record that contains the sensitive data. For a JSON Lines file, the // line index, starting from 0, for the line that contains the sensitive data. This // value is always 0 for JSON files. - RecordIndex int64 + RecordIndex *int64 noSmithyDocumentSerde } @@ -2036,14 +2036,14 @@ type ReplicationDetails struct { // Specifies whether the bucket is configured to replicate one or more objects to // any destination. - Replicated bool + Replicated *bool // Specifies whether the bucket is configured to replicate one or more objects to // a bucket for an Amazon Web Services account that isn't part of your Amazon Macie // organization. An Amazon Macie organization is a set of Macie accounts that are // centrally managed as a group of related accounts through Organizations or by // Macie invitation. - ReplicatedExternally bool + ReplicatedExternally *bool // An array of Amazon Web Services account IDs, one for each Amazon Web Services // account that owns a bucket that the bucket is configured to replicate one or @@ -2075,7 +2075,7 @@ type ResourceProfileArtifact struct { ClassificationResultStatus *string // Specifies whether Amazon Macie found sensitive data in the object. - Sensitive bool + Sensitive *bool noSmithyDocumentSerde } @@ -2101,47 +2101,47 @@ type ResourceStatistics struct { // The total amount of data, in bytes, that Amazon Macie has analyzed in the // bucket. - TotalBytesClassified int64 + TotalBytesClassified *int64 // The total number of occurrences of sensitive data that Amazon Macie has found // in the bucket's objects. This includes occurrences that are currently suppressed // by the sensitivity scoring settings for the bucket (totalDetectionsSuppressed). - TotalDetections int64 + TotalDetections *int64 // The total number of occurrences of sensitive data that are currently suppressed // by the sensitivity scoring settings for the bucket. These represent occurrences // of sensitive data that Amazon Macie found in the bucket's objects, but the // occurrences were manually suppressed. By default, suppressed occurrences are // excluded from the bucket's sensitivity score. - TotalDetectionsSuppressed int64 + TotalDetectionsSuppressed *int64 // The total number of objects that Amazon Macie has analyzed in the bucket. - TotalItemsClassified int64 + TotalItemsClassified *int64 // The total number of the bucket's objects that Amazon Macie has found sensitive // data in. - TotalItemsSensitive int64 + TotalItemsSensitive *int64 // The total number of objects that Amazon Macie wasn't able to analyze in the // bucket due to an object-level issue or error. For example, the object is a // malformed file. This value includes objects that Macie wasn't able to analyze // for reasons reported by other statistics in the ResourceStatistics object. - TotalItemsSkipped int64 + TotalItemsSkipped *int64 // The total number of objects that Amazon Macie wasn't able to analyze in the // bucket because the objects are encrypted with a key that Macie can't access. The // objects use server-side encryption with customer-provided keys (SSE-C). - TotalItemsSkippedInvalidEncryption int64 + TotalItemsSkippedInvalidEncryption *int64 // The total number of objects that Amazon Macie wasn't able to analyze in the // bucket because the objects are encrypted with KMS keys that were disabled, are // scheduled for deletion, or were deleted. - TotalItemsSkippedInvalidKms int64 + TotalItemsSkippedInvalidKms *int64 // The total number of objects that Amazon Macie wasn't able to analyze in the // bucket due to the permissions settings for the objects or the permissions // settings for the keys that were used to encrypt the objects. - TotalItemsSkippedPermissionDenied int64 + TotalItemsSkippedPermissionDenied *int64 noSmithyDocumentSerde } @@ -2413,13 +2413,13 @@ type S3Object struct { // Specifies whether the object is publicly accessible due to the combination of // permissions settings that apply to the object. - PublicAccess bool + PublicAccess *bool // The type of server-side encryption that was used to encrypt the object. ServerSideEncryption *ServerSideEncryption // The total storage size, in bytes, of the object. - Size int64 + Size *int64 // The storage class of the object. StorageClass StorageClass @@ -2594,7 +2594,7 @@ type SecurityHubConfiguration struct { // false. // // This member is required. - PublishClassificationFindings bool + PublishClassificationFindings *bool // Specifies whether to publish policy findings to Security Hub. If you set this // value to true, Amazon Macie automatically publishes all new and updated policy @@ -2602,7 +2602,7 @@ type SecurityHubConfiguration struct { // true. // // This member is required. - PublishPolicyFindings bool + PublishPolicyFindings *bool noSmithyDocumentSerde } @@ -2625,7 +2625,7 @@ type SensitiveDataItem struct { Detections []DefaultDetection // The total number of occurrences of the sensitive data that was detected. - TotalCount int64 + TotalCount *int64 noSmithyDocumentSerde } @@ -2643,20 +2643,20 @@ type SensitivityAggregations struct { // enabled for any of the buckets, this value is based on the size of the latest // version of each applicable object in the buckets. This value doesn't reflect the // storage size of all versions of all applicable objects in the buckets. - ClassifiableSizeInBytes int64 + ClassifiableSizeInBytes *int64 // The total number of buckets that are publicly accessible due to a combination // of permissions settings for each bucket. - PubliclyAccessibleCount int64 + PubliclyAccessibleCount *int64 // The total number of buckets. - TotalCount int64 + TotalCount *int64 // The total storage size, in bytes, of the buckets. If versioning is enabled for // any of the buckets, this value is based on the size of the latest version of // each object in the buckets. This value doesn't reflect the storage size of all // versions of the objects in the buckets. - TotalSizeInBytes int64 + TotalSizeInBytes *int64 noSmithyDocumentSerde } @@ -2740,14 +2740,14 @@ type ServiceLimit struct { // Specifies whether the account has met the quota that corresponds to the metric // specified by the UsageByAccount.type field in the response. - IsServiceLimited bool + IsServiceLimited *bool // The unit of measurement for the value specified by the value field. Unit Unit // The value for the metric specified by the UsageByAccount.type field in the // response. - Value int64 + Value *int64 noSmithyDocumentSerde } @@ -2775,7 +2775,7 @@ type SessionContextAttributes struct { // Specifies whether the credentials were authenticated with a multi-factor // authentication (MFA) device. - MfaAuthenticated bool + MfaAuthenticated *bool noSmithyDocumentSerde } @@ -2816,7 +2816,7 @@ type Severity struct { // The numerical representation of the finding's severity, ranging from 1 (least // severe) to 3 (most severe). - Score int64 + Score *int64 noSmithyDocumentSerde } @@ -2832,7 +2832,7 @@ type SeverityLevel struct { // severity (severity). // // This member is required. - OccurrencesThreshold int64 + OccurrencesThreshold *int64 // The severity to assign to a finding: if the number of occurrences is greater // than or equal to the specified threshold (occurrencesThreshold); and, if @@ -2934,10 +2934,10 @@ type Statistics struct { // The approximate number of objects that the job has yet to process during its // current run. - ApproximateNumberOfObjectsToProcess float64 + ApproximateNumberOfObjectsToProcess *float64 // The number of times that the job has run. - NumberOfRuns float64 + NumberOfRuns *float64 noSmithyDocumentSerde } diff --git a/service/macie2/validators.go b/service/macie2/validators.go index 7832a15b0fd..0ce986d003b 100644 --- a/service/macie2/validators.go +++ b/service/macie2/validators.go @@ -1335,6 +1335,12 @@ func validateSecurityHubConfiguration(v *types.SecurityHubConfiguration) error { return nil } invalidParams := smithy.InvalidParamsError{Context: "SecurityHubConfiguration"} + if v.PublishClassificationFindings == nil { + invalidParams.Add(smithy.NewErrParamRequired("PublishClassificationFindings")) + } + if v.PublishPolicyFindings == nil { + invalidParams.Add(smithy.NewErrParamRequired("PublishPolicyFindings")) + } if invalidParams.Len() > 0 { return invalidParams } else { @@ -1347,6 +1353,9 @@ func validateSeverityLevel(v *types.SeverityLevel) error { return nil } invalidParams := smithy.InvalidParamsError{Context: "SeverityLevel"} + if v.OccurrencesThreshold == nil { + invalidParams.Add(smithy.NewErrParamRequired("OccurrencesThreshold")) + } if len(v.Severity) == 0 { invalidParams.Add(smithy.NewErrParamRequired("Severity")) } @@ -2086,6 +2095,9 @@ func validateOpUpdateOrganizationConfigurationInput(v *UpdateOrganizationConfigu return nil } invalidParams := smithy.InvalidParamsError{Context: "UpdateOrganizationConfigurationInput"} + if v.AutoEnable == nil { + invalidParams.Add(smithy.NewErrParamRequired("AutoEnable")) + } if invalidParams.Len() > 0 { return invalidParams } else { diff --git a/service/mediaconnect/api_op_DeregisterGatewayInstance.go b/service/mediaconnect/api_op_DeregisterGatewayInstance.go index c1f513084ab..a54b919aad5 100644 --- a/service/mediaconnect/api_op_DeregisterGatewayInstance.go +++ b/service/mediaconnect/api_op_DeregisterGatewayInstance.go @@ -44,7 +44,7 @@ type DeregisterGatewayInstanceInput struct { // Force the deregistration of an instance. Force will deregister an instance, // even if there are bridges running on it. - Force bool + Force *bool noSmithyDocumentSerde } diff --git a/service/mediaconnect/api_op_ListBridges.go b/service/mediaconnect/api_op_ListBridges.go index 7a07fd4b6a6..0fa1d54061d 100644 --- a/service/mediaconnect/api_op_ListBridges.go +++ b/service/mediaconnect/api_op_ListBridges.go @@ -46,7 +46,7 @@ type ListBridgesInput struct { // results.) The service might return fewer results than the MaxResults value. If // MaxResults is not included in the request, the service defaults to pagination // with a maximum of 10 results per page. - MaxResults int32 + MaxResults *int32 // The token that identifies which batch of results that you want to see. For // example, you submit a ListBridges request with MaxResults set at 5. The service @@ -187,8 +187,8 @@ func NewListBridgesPaginator(client ListBridgesAPIClient, params *ListBridgesInp } options := ListBridgesPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults + if params.MaxResults != nil { + options.Limit = *params.MaxResults } for _, fn := range optFns { @@ -218,7 +218,11 @@ func (p *ListBridgesPaginator) NextPage(ctx context.Context, optFns ...func(*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.ListBridges(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/mediaconnect/api_op_ListEntitlements.go b/service/mediaconnect/api_op_ListEntitlements.go index 81d1cfe6ae1..b1918b89cd8 100644 --- a/service/mediaconnect/api_op_ListEntitlements.go +++ b/service/mediaconnect/api_op_ListEntitlements.go @@ -42,7 +42,7 @@ type ListEntitlementsInput struct { // of results.) The service might return fewer results than the MaxResults value. // If MaxResults is not included in the request, the service defaults to pagination // with a maximum of 20 results per page. - MaxResults int32 + MaxResults *int32 // The token that identifies which batch of results that you want to see. For // example, you submit a ListEntitlements request with MaxResults set at 5. The @@ -184,8 +184,8 @@ func NewListEntitlementsPaginator(client ListEntitlementsAPIClient, params *List } options := ListEntitlementsPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults + if params.MaxResults != nil { + options.Limit = *params.MaxResults } for _, fn := range optFns { @@ -215,7 +215,11 @@ func (p *ListEntitlementsPaginator) 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.ListEntitlements(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/mediaconnect/api_op_ListFlows.go b/service/mediaconnect/api_op_ListFlows.go index 41dd8d6c431..d4ca06f1f79 100644 --- a/service/mediaconnect/api_op_ListFlows.go +++ b/service/mediaconnect/api_op_ListFlows.go @@ -42,7 +42,7 @@ type ListFlowsInput struct { // results.) The service might return fewer results than the MaxResults value. If // MaxResults is not included in the request, the service defaults to pagination // with a maximum of 10 results per page. - MaxResults int32 + MaxResults *int32 // The token that identifies which batch of results that you want to see. For // example, you submit a ListFlows request with MaxResults set at 5. The service @@ -183,8 +183,8 @@ func NewListFlowsPaginator(client ListFlowsAPIClient, params *ListFlowsInput, op } options := ListFlowsPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults + if params.MaxResults != nil { + options.Limit = *params.MaxResults } for _, fn := range optFns { @@ -214,7 +214,11 @@ func (p *ListFlowsPaginator) NextPage(ctx context.Context, optFns ...func(*Optio 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.ListFlows(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/mediaconnect/api_op_ListGatewayInstances.go b/service/mediaconnect/api_op_ListGatewayInstances.go index ddfb4f40862..460bd99279a 100644 --- a/service/mediaconnect/api_op_ListGatewayInstances.go +++ b/service/mediaconnect/api_op_ListGatewayInstances.go @@ -47,7 +47,7 @@ type ListGatewayInstancesInput struct { // results.) The service might return fewer results than the MaxResults value. If // MaxResults is not included in the request, the service defaults to pagination // with a maximum of 10 results per page. - MaxResults int32 + MaxResults *int32 // The token that identifies which batch of results that you want to see. For // example, you submit a ListInstances request with MaxResults set at 5. The @@ -190,8 +190,8 @@ func NewListGatewayInstancesPaginator(client ListGatewayInstancesAPIClient, para } options := ListGatewayInstancesPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults + if params.MaxResults != nil { + options.Limit = *params.MaxResults } for _, fn := range optFns { @@ -221,7 +221,11 @@ func (p *ListGatewayInstancesPaginator) 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.ListGatewayInstances(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/mediaconnect/api_op_ListGateways.go b/service/mediaconnect/api_op_ListGateways.go index badd96b7a5c..aa2142a4ba6 100644 --- a/service/mediaconnect/api_op_ListGateways.go +++ b/service/mediaconnect/api_op_ListGateways.go @@ -42,7 +42,7 @@ type ListGatewaysInput struct { // results.) The service might return fewer results than the MaxResults value. If // MaxResults is not included in the request, the service defaults to pagination // with a maximum of 10 results per page. - MaxResults int32 + MaxResults *int32 // The token that identifies which batch of results that you want to see. For // example, you submit a ListGateways request with MaxResults set at 5. The service @@ -183,8 +183,8 @@ func NewListGatewaysPaginator(client ListGatewaysAPIClient, params *ListGateways } options := ListGatewaysPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults + if params.MaxResults != nil { + options.Limit = *params.MaxResults } for _, fn := range optFns { @@ -214,7 +214,11 @@ func (p *ListGatewaysPaginator) 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.ListGateways(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/mediaconnect/api_op_ListOfferings.go b/service/mediaconnect/api_op_ListOfferings.go index 9ba5d6ac748..389cce0521c 100644 --- a/service/mediaconnect/api_op_ListOfferings.go +++ b/service/mediaconnect/api_op_ListOfferings.go @@ -44,7 +44,7 @@ type ListOfferingsInput struct { // results.) The service might return fewer results than the MaxResults value. If // MaxResults is not included in the request, the service defaults to pagination // with a maximum of 10 results per page. - MaxResults int32 + MaxResults *int32 // The token that identifies which batch of results that you want to see. For // example, you submit a ListOfferings request with MaxResults set at 5. The @@ -186,8 +186,8 @@ func NewListOfferingsPaginator(client ListOfferingsAPIClient, params *ListOfferi } options := ListOfferingsPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults + if params.MaxResults != nil { + options.Limit = *params.MaxResults } for _, fn := range optFns { @@ -217,7 +217,11 @@ func (p *ListOfferingsPaginator) 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.ListOfferings(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/mediaconnect/api_op_ListReservations.go b/service/mediaconnect/api_op_ListReservations.go index d3516f0bc92..6f483d0015e 100644 --- a/service/mediaconnect/api_op_ListReservations.go +++ b/service/mediaconnect/api_op_ListReservations.go @@ -43,7 +43,7 @@ type ListReservationsInput struct { // of results.) The service might return fewer results than the MaxResults value. // If MaxResults is not included in the request, the service defaults to pagination // with a maximum of 10 results per page. - MaxResults int32 + MaxResults *int32 // The token that identifies which batch of results that you want to see. For // example, you submit a ListReservations request with MaxResults set at 5. The @@ -186,8 +186,8 @@ func NewListReservationsPaginator(client ListReservationsAPIClient, params *List } options := ListReservationsPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults + if params.MaxResults != nil { + options.Limit = *params.MaxResults } for _, fn := range optFns { @@ -217,7 +217,11 @@ func (p *ListReservationsPaginator) 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.ListReservations(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/mediaconnect/api_op_UpdateFlowMediaStream.go b/service/mediaconnect/api_op_UpdateFlowMediaStream.go index 71d687f32b7..34b86816b80 100644 --- a/service/mediaconnect/api_op_UpdateFlowMediaStream.go +++ b/service/mediaconnect/api_op_UpdateFlowMediaStream.go @@ -51,7 +51,7 @@ type UpdateFlowMediaStreamInput struct { // The sample rate (in Hz) for the stream. If the media stream type is video or // ancillary data, set this value to 90000. If the media stream type is audio, set // this value to either 48000 or 96000. - ClockRate int32 + ClockRate *int32 // Description Description *string diff --git a/service/mediaconnect/api_op_UpdateFlowOutput.go b/service/mediaconnect/api_op_UpdateFlowOutput.go index 24f1c1df5fd..e0e72885eaf 100644 --- a/service/mediaconnect/api_op_UpdateFlowOutput.go +++ b/service/mediaconnect/api_op_UpdateFlowOutput.go @@ -64,7 +64,7 @@ type UpdateFlowOutputInput struct { // The maximum latency in milliseconds. This parameter applies only to RIST-based, // Zixi-based, and Fujitsu-based streams. - MaxLatency int32 + MaxLatency *int32 // The media streams that are associated with the output, and the parameters for // those associations. @@ -75,10 +75,10 @@ type UpdateFlowOutputInput struct { // represents the minimal potential latency of that connection. The latency of the // stream is set to the highest number between the sender’s minimum latency and the // receiver’s minimum latency. - MinLatency int32 + MinLatency *int32 // The port to use when content is distributed to this output. - Port int32 + Port *int32 // The protocol to use for the output. Protocol types.Protocol @@ -88,14 +88,14 @@ type UpdateFlowOutputInput struct { // The port that the flow uses to send outbound requests to initiate connection // with the sender. - SenderControlPort int32 + SenderControlPort *int32 // The IP address that the flow communicates with to initiate connection with the // sender. SenderIpAddress *string // The smoothing latency in milliseconds for RIST, RTP, and RTP-FEC streams. - SmoothingLatency int32 + SmoothingLatency *int32 // The stream ID that you want to use for this transport. This parameter applies // only to Zixi and SRT caller-based streams. diff --git a/service/mediaconnect/api_op_UpdateFlowSource.go b/service/mediaconnect/api_op_UpdateFlowSource.go index b3f1bd36606..bab736b30c3 100644 --- a/service/mediaconnect/api_op_UpdateFlowSource.go +++ b/service/mediaconnect/api_op_UpdateFlowSource.go @@ -62,17 +62,17 @@ type UpdateFlowSourceInput struct { GatewayBridgeSource *types.UpdateGatewayBridgeSourceRequest // The port that the flow will be listening on for incoming content. - IngestPort int32 + IngestPort *int32 // The smoothing max bitrate (in bps) for RIST, RTP, and RTP-FEC streams. - MaxBitrate int32 + MaxBitrate *int32 // The maximum latency in milliseconds. This parameter applies only to RIST-based, // Zixi-based, and Fujitsu-based streams. - MaxLatency int32 + MaxLatency *int32 // The size of the buffer (in milliseconds) to use to sync incoming source data. - MaxSyncBuffer int32 + MaxSyncBuffer *int32 // The media streams that are associated with the source, and the parameters for // those associations. @@ -83,14 +83,14 @@ type UpdateFlowSourceInput struct { // represents the minimal potential latency of that connection. The latency of the // stream is set to the highest number between the sender’s minimum latency and the // receiver’s minimum latency. - MinLatency int32 + MinLatency *int32 // The protocol that is used by the source. Protocol types.Protocol // The port that the flow uses to send outbound requests to initiate connection // with the sender. - SenderControlPort int32 + SenderControlPort *int32 // The IP address that the flow communicates with to initiate connection with the // sender. @@ -100,7 +100,7 @@ type UpdateFlowSourceInput struct { SourceListenerAddress *string // Source port for SRT-caller protocol. - SourceListenerPort int32 + SourceListenerPort *int32 // The stream ID that you want to use for this transport. This parameter applies // only to Zixi and SRT caller-based streams. diff --git a/service/mediaconnect/deserializers.go b/service/mediaconnect/deserializers.go index 9b553199688..b018cc44d18 100644 --- a/service/mediaconnect/deserializers.go +++ b/service/mediaconnect/deserializers.go @@ -9943,7 +9943,7 @@ func awsRestjson1_deserializeDocumentBridgeNetworkOutput(v **types.BridgeNetwork if err != nil { return err } - sv.Port = int32(i64) + sv.Port = ptr.Int32(int32(i64)) } case "protocol": @@ -9965,7 +9965,7 @@ func awsRestjson1_deserializeDocumentBridgeNetworkOutput(v **types.BridgeNetwork if err != nil { return err } - sv.Ttl = int32(i64) + sv.Ttl = ptr.Int32(int32(i64)) } default: @@ -10036,7 +10036,7 @@ func awsRestjson1_deserializeDocumentBridgeNetworkSource(v **types.BridgeNetwork if err != nil { return err } - sv.Port = int32(i64) + sv.Port = ptr.Int32(int32(i64)) } case "protocol": @@ -10340,7 +10340,7 @@ func awsRestjson1_deserializeDocumentDestinationConfiguration(v **types.Destinat if err != nil { return err } - sv.DestinationPort = int32(i64) + sv.DestinationPort = ptr.Int32(int32(i64)) } case "interface": @@ -10407,7 +10407,7 @@ func awsRestjson1_deserializeDocumentEgressGatewayBridge(v **types.EgressGateway if err != nil { return err } - sv.MaxBitrate = int32(i64) + sv.MaxBitrate = ptr.Int32(int32(i64)) } default: @@ -10449,7 +10449,7 @@ func awsRestjson1_deserializeDocumentEncodingParameters(v **types.EncodingParame if err != nil { return err } - sv.CompressionFactor = f64 + sv.CompressionFactor = ptr.Float64(f64) case string: var f64 float64 @@ -10467,7 +10467,7 @@ func awsRestjson1_deserializeDocumentEncodingParameters(v **types.EncodingParame return fmt.Errorf("unknown JSON number value: %s", jtv) } - sv.CompressionFactor = f64 + sv.CompressionFactor = ptr.Float64(f64) default: return fmt.Errorf("expected __double to be a JSON Number, got %T instead", value) @@ -10637,7 +10637,7 @@ func awsRestjson1_deserializeDocumentEntitlement(v **types.Entitlement, value in if err != nil { return err } - sv.DataTransferSubscriberFeePercent = int32(i64) + sv.DataTransferSubscriberFeePercent = ptr.Int32(int32(i64)) } case "description": @@ -10736,7 +10736,7 @@ func awsRestjson1_deserializeDocumentFailoverConfig(v **types.FailoverConfig, va if err != nil { return err } - sv.RecoveryWindow = int32(i64) + sv.RecoveryWindow = ptr.Int32(int32(i64)) } case "sourcePriority": @@ -11230,7 +11230,7 @@ func awsRestjson1_deserializeDocumentGatewayInstance(v **types.GatewayInstance, if err != nil { return err } - sv.RunningBridgeCount = int32(i64) + sv.RunningBridgeCount = ptr.Int32(int32(i64)) } default: @@ -11372,7 +11372,7 @@ func awsRestjson1_deserializeDocumentIngressGatewayBridge(v **types.IngressGatew if err != nil { return err } - sv.MaxBitrate = int32(i64) + sv.MaxBitrate = ptr.Int32(int32(i64)) } case "maxOutputs": @@ -11385,7 +11385,7 @@ func awsRestjson1_deserializeDocumentIngressGatewayBridge(v **types.IngressGatew if err != nil { return err } - sv.MaxOutputs = int32(i64) + sv.MaxOutputs = ptr.Int32(int32(i64)) } default: @@ -11438,7 +11438,7 @@ func awsRestjson1_deserializeDocumentInputConfiguration(v **types.InputConfigura if err != nil { return err } - sv.InputPort = int32(i64) + sv.InputPort = ptr.Int32(int32(i64)) } case "interface": @@ -11643,7 +11643,7 @@ func awsRestjson1_deserializeDocumentListedEntitlement(v **types.ListedEntitleme if err != nil { return err } - sv.DataTransferSubscriberFeePercent = int32(i64) + sv.DataTransferSubscriberFeePercent = ptr.Int32(int32(i64)) } case "entitlementArn": @@ -11992,7 +11992,7 @@ func awsRestjson1_deserializeDocumentMediaStream(v **types.MediaStream, value in if err != nil { return err } - sv.ClockRate = int32(i64) + sv.ClockRate = ptr.Int32(int32(i64)) } case "description": @@ -12014,7 +12014,7 @@ func awsRestjson1_deserializeDocumentMediaStream(v **types.MediaStream, value in if err != nil { return err } - sv.Fmt = int32(i64) + sv.Fmt = ptr.Int32(int32(i64)) } case "mediaStreamId": @@ -12027,7 +12027,7 @@ func awsRestjson1_deserializeDocumentMediaStream(v **types.MediaStream, value in if err != nil { return err } - sv.MediaStreamId = int32(i64) + sv.MediaStreamId = ptr.Int32(int32(i64)) } case "mediaStreamName": @@ -12399,7 +12399,7 @@ func awsRestjson1_deserializeDocumentOffering(v **types.Offering, value interfac if err != nil { return err } - sv.Duration = int32(i64) + sv.Duration = ptr.Int32(int32(i64)) } case "durationUnits": @@ -12507,7 +12507,7 @@ func awsRestjson1_deserializeDocumentOutput(v **types.Output, value interface{}) if err != nil { return err } - sv.DataTransferSubscriberFeePercent = int32(i64) + sv.DataTransferSubscriberFeePercent = ptr.Int32(int32(i64)) } case "description": @@ -12593,7 +12593,7 @@ func awsRestjson1_deserializeDocumentOutput(v **types.Output, value interface{}) if err != nil { return err } - sv.Port = int32(i64) + sv.Port = ptr.Int32(int32(i64)) } case "transport": @@ -12656,7 +12656,7 @@ func awsRestjson1_deserializeDocumentReservation(v **types.Reservation, value in if err != nil { return err } - sv.Duration = int32(i64) + sv.Duration = ptr.Int32(int32(i64)) } case "durationUnits": @@ -12795,7 +12795,7 @@ func awsRestjson1_deserializeDocumentResourceSpecification(v **types.ResourceSpe if err != nil { return err } - sv.ReservedBitrate = int32(i64) + sv.ReservedBitrate = ptr.Int32(int32(i64)) } case "resourceType": @@ -12888,7 +12888,7 @@ func awsRestjson1_deserializeDocumentSource(v **types.Source, value interface{}) if err != nil { return err } - sv.DataTransferSubscriberFeePercent = int32(i64) + sv.DataTransferSubscriberFeePercent = ptr.Int32(int32(i64)) } case "decryption": @@ -12938,7 +12938,7 @@ func awsRestjson1_deserializeDocumentSource(v **types.Source, value interface{}) if err != nil { return err } - sv.IngestPort = int32(i64) + sv.IngestPort = ptr.Int32(int32(i64)) } case "mediaStreamSourceConfigurations": @@ -12965,7 +12965,7 @@ func awsRestjson1_deserializeDocumentSource(v **types.Source, value interface{}) if err != nil { return err } - sv.SenderControlPort = int32(i64) + sv.SenderControlPort = ptr.Int32(int32(i64)) } case "senderIpAddress": @@ -13135,7 +13135,7 @@ func awsRestjson1_deserializeDocumentTransport(v **types.Transport, value interf if err != nil { return err } - sv.MaxBitrate = int32(i64) + sv.MaxBitrate = ptr.Int32(int32(i64)) } case "maxLatency": @@ -13148,7 +13148,7 @@ func awsRestjson1_deserializeDocumentTransport(v **types.Transport, value interf if err != nil { return err } - sv.MaxLatency = int32(i64) + sv.MaxLatency = ptr.Int32(int32(i64)) } case "maxSyncBuffer": @@ -13161,7 +13161,7 @@ func awsRestjson1_deserializeDocumentTransport(v **types.Transport, value interf if err != nil { return err } - sv.MaxSyncBuffer = int32(i64) + sv.MaxSyncBuffer = ptr.Int32(int32(i64)) } case "minLatency": @@ -13174,7 +13174,7 @@ func awsRestjson1_deserializeDocumentTransport(v **types.Transport, value interf if err != nil { return err } - sv.MinLatency = int32(i64) + sv.MinLatency = ptr.Int32(int32(i64)) } case "protocol": @@ -13205,7 +13205,7 @@ func awsRestjson1_deserializeDocumentTransport(v **types.Transport, value interf if err != nil { return err } - sv.SenderControlPort = int32(i64) + sv.SenderControlPort = ptr.Int32(int32(i64)) } case "senderIpAddress": @@ -13227,7 +13227,7 @@ func awsRestjson1_deserializeDocumentTransport(v **types.Transport, value interf if err != nil { return err } - sv.SmoothingLatency = int32(i64) + sv.SmoothingLatency = ptr.Int32(int32(i64)) } case "sourceListenerAddress": @@ -13249,7 +13249,7 @@ func awsRestjson1_deserializeDocumentTransport(v **types.Transport, value interf if err != nil { return err } - sv.SourceListenerPort = int32(i64) + sv.SourceListenerPort = ptr.Int32(int32(i64)) } case "streamId": diff --git a/service/mediaconnect/serializers.go b/service/mediaconnect/serializers.go index 24594ca5bd4..eb6e7d1c044 100644 --- a/service/mediaconnect/serializers.go +++ b/service/mediaconnect/serializers.go @@ -1143,8 +1143,8 @@ func awsRestjson1_serializeOpHttpBindingsDeregisterGatewayInstanceInput(v *Dereg return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Force { - encoder.SetQuery("force").Boolean(v.Force) + if v.Force != nil { + encoder.SetQuery("force").Boolean(*v.Force) } if v.GatewayInstanceArn == nil || len(*v.GatewayInstanceArn) == 0 { @@ -1696,8 +1696,8 @@ func awsRestjson1_serializeOpHttpBindingsListBridgesInput(v *ListBridgesInput, e encoder.SetQuery("filterArn").String(*v.FilterArn) } - if v.MaxResults != 0 { - encoder.SetQuery("maxResults").Integer(v.MaxResults) + if v.MaxResults != nil { + encoder.SetQuery("maxResults").Integer(*v.MaxResults) } if v.NextToken != nil { @@ -1760,8 +1760,8 @@ func awsRestjson1_serializeOpHttpBindingsListEntitlementsInput(v *ListEntitlemen return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.MaxResults != 0 { - encoder.SetQuery("maxResults").Integer(v.MaxResults) + if v.MaxResults != nil { + encoder.SetQuery("maxResults").Integer(*v.MaxResults) } if v.NextToken != nil { @@ -1824,8 +1824,8 @@ func awsRestjson1_serializeOpHttpBindingsListFlowsInput(v *ListFlowsInput, encod return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.MaxResults != 0 { - encoder.SetQuery("maxResults").Integer(v.MaxResults) + if v.MaxResults != nil { + encoder.SetQuery("maxResults").Integer(*v.MaxResults) } if v.NextToken != nil { @@ -1892,8 +1892,8 @@ func awsRestjson1_serializeOpHttpBindingsListGatewayInstancesInput(v *ListGatewa encoder.SetQuery("filterArn").String(*v.FilterArn) } - if v.MaxResults != 0 { - encoder.SetQuery("maxResults").Integer(v.MaxResults) + if v.MaxResults != nil { + encoder.SetQuery("maxResults").Integer(*v.MaxResults) } if v.NextToken != nil { @@ -1956,8 +1956,8 @@ func awsRestjson1_serializeOpHttpBindingsListGatewaysInput(v *ListGatewaysInput, return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.MaxResults != 0 { - encoder.SetQuery("maxResults").Integer(v.MaxResults) + if v.MaxResults != nil { + encoder.SetQuery("maxResults").Integer(*v.MaxResults) } if v.NextToken != nil { @@ -2020,8 +2020,8 @@ func awsRestjson1_serializeOpHttpBindingsListOfferingsInput(v *ListOfferingsInpu return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.MaxResults != 0 { - encoder.SetQuery("maxResults").Integer(v.MaxResults) + if v.MaxResults != nil { + encoder.SetQuery("maxResults").Integer(*v.MaxResults) } if v.NextToken != nil { @@ -2084,8 +2084,8 @@ func awsRestjson1_serializeOpHttpBindingsListReservationsInput(v *ListReservatio return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.MaxResults != 0 { - encoder.SetQuery("maxResults").Integer(v.MaxResults) + if v.MaxResults != nil { + encoder.SetQuery("maxResults").Integer(*v.MaxResults) } if v.NextToken != nil { @@ -3768,9 +3768,9 @@ func awsRestjson1_serializeOpDocumentUpdateFlowMediaStreamInput(v *UpdateFlowMed } } - if v.ClockRate != 0 { + if v.ClockRate != nil { ok := object.Key("clockRate") - ok.Integer(v.ClockRate) + ok.Integer(*v.ClockRate) } if v.Description != nil { @@ -3904,9 +3904,9 @@ func awsRestjson1_serializeOpDocumentUpdateFlowOutputInput(v *UpdateFlowOutputIn } } - if v.MaxLatency != 0 { + if v.MaxLatency != nil { ok := object.Key("maxLatency") - ok.Integer(v.MaxLatency) + ok.Integer(*v.MaxLatency) } if v.MediaStreamOutputConfigurations != nil { @@ -3916,14 +3916,14 @@ func awsRestjson1_serializeOpDocumentUpdateFlowOutputInput(v *UpdateFlowOutputIn } } - if v.MinLatency != 0 { + if v.MinLatency != nil { ok := object.Key("minLatency") - ok.Integer(v.MinLatency) + ok.Integer(*v.MinLatency) } - if v.Port != 0 { + if v.Port != nil { ok := object.Key("port") - ok.Integer(v.Port) + ok.Integer(*v.Port) } if len(v.Protocol) > 0 { @@ -3936,9 +3936,9 @@ func awsRestjson1_serializeOpDocumentUpdateFlowOutputInput(v *UpdateFlowOutputIn ok.String(*v.RemoteId) } - if v.SenderControlPort != 0 { + if v.SenderControlPort != nil { ok := object.Key("senderControlPort") - ok.Integer(v.SenderControlPort) + ok.Integer(*v.SenderControlPort) } if v.SenderIpAddress != nil { @@ -3946,9 +3946,9 @@ func awsRestjson1_serializeOpDocumentUpdateFlowOutputInput(v *UpdateFlowOutputIn ok.String(*v.SenderIpAddress) } - if v.SmoothingLatency != 0 { + if v.SmoothingLatency != nil { ok := object.Key("smoothingLatency") - ok.Integer(v.SmoothingLatency) + ok.Integer(*v.SmoothingLatency) } if v.StreamId != nil { @@ -4079,24 +4079,24 @@ func awsRestjson1_serializeOpDocumentUpdateFlowSourceInput(v *UpdateFlowSourceIn } } - if v.IngestPort != 0 { + if v.IngestPort != nil { ok := object.Key("ingestPort") - ok.Integer(v.IngestPort) + ok.Integer(*v.IngestPort) } - if v.MaxBitrate != 0 { + if v.MaxBitrate != nil { ok := object.Key("maxBitrate") - ok.Integer(v.MaxBitrate) + ok.Integer(*v.MaxBitrate) } - if v.MaxLatency != 0 { + if v.MaxLatency != nil { ok := object.Key("maxLatency") - ok.Integer(v.MaxLatency) + ok.Integer(*v.MaxLatency) } - if v.MaxSyncBuffer != 0 { + if v.MaxSyncBuffer != nil { ok := object.Key("maxSyncBuffer") - ok.Integer(v.MaxSyncBuffer) + ok.Integer(*v.MaxSyncBuffer) } if v.MediaStreamSourceConfigurations != nil { @@ -4106,9 +4106,9 @@ func awsRestjson1_serializeOpDocumentUpdateFlowSourceInput(v *UpdateFlowSourceIn } } - if v.MinLatency != 0 { + if v.MinLatency != nil { ok := object.Key("minLatency") - ok.Integer(v.MinLatency) + ok.Integer(*v.MinLatency) } if len(v.Protocol) > 0 { @@ -4116,9 +4116,9 @@ func awsRestjson1_serializeOpDocumentUpdateFlowSourceInput(v *UpdateFlowSourceIn ok.String(string(v.Protocol)) } - if v.SenderControlPort != 0 { + if v.SenderControlPort != nil { ok := object.Key("senderControlPort") - ok.Integer(v.SenderControlPort) + ok.Integer(*v.SenderControlPort) } if v.SenderIpAddress != nil { @@ -4131,9 +4131,9 @@ func awsRestjson1_serializeOpDocumentUpdateFlowSourceInput(v *UpdateFlowSourceIn ok.String(*v.SourceListenerAddress) } - if v.SourceListenerPort != 0 { + if v.SourceListenerPort != nil { ok := object.Key("sourceListenerPort") - ok.Integer(v.SourceListenerPort) + ok.Integer(*v.SourceListenerPort) } if v.StreamId != nil { @@ -4463,9 +4463,9 @@ func awsRestjson1_serializeDocumentAddBridgeNetworkOutputRequest(v *types.AddBri ok.String(*v.NetworkName) } - { + if v.Port != nil { ok := object.Key("port") - ok.Integer(v.Port) + ok.Integer(*v.Port) } if len(v.Protocol) > 0 { @@ -4473,9 +4473,9 @@ func awsRestjson1_serializeDocumentAddBridgeNetworkOutputRequest(v *types.AddBri ok.String(string(v.Protocol)) } - { + if v.Ttl != nil { ok := object.Key("ttl") - ok.Integer(v.Ttl) + ok.Integer(*v.Ttl) } return nil @@ -4500,9 +4500,9 @@ func awsRestjson1_serializeDocumentAddBridgeNetworkSourceRequest(v *types.AddBri ok.String(*v.NetworkName) } - { + if v.Port != nil { ok := object.Key("port") - ok.Integer(v.Port) + ok.Integer(*v.Port) } if len(v.Protocol) > 0 { @@ -4552,9 +4552,9 @@ func awsRestjson1_serializeDocumentAddEgressGatewayBridgeRequest(v *types.AddEgr object := value.Object() defer object.Close() - { + if v.MaxBitrate != nil { ok := object.Key("maxBitrate") - ok.Integer(v.MaxBitrate) + ok.Integer(*v.MaxBitrate) } return nil @@ -4564,14 +4564,14 @@ func awsRestjson1_serializeDocumentAddIngressGatewayBridgeRequest(v *types.AddIn object := value.Object() defer object.Close() - { + if v.MaxBitrate != nil { ok := object.Key("maxBitrate") - ok.Integer(v.MaxBitrate) + ok.Integer(*v.MaxBitrate) } - { + if v.MaxOutputs != nil { ok := object.Key("maxOutputs") - ok.Integer(v.MaxOutputs) + ok.Integer(*v.MaxOutputs) } return nil @@ -4605,9 +4605,9 @@ func awsRestjson1_serializeDocumentAddMediaStreamRequest(v *types.AddMediaStream } } - if v.ClockRate != 0 { + if v.ClockRate != nil { ok := object.Key("clockRate") - ok.Integer(v.ClockRate) + ok.Integer(*v.ClockRate) } if v.Description != nil { @@ -4615,9 +4615,9 @@ func awsRestjson1_serializeDocumentAddMediaStreamRequest(v *types.AddMediaStream ok.String(*v.Description) } - { + if v.MediaStreamId != nil { ok := object.Key("mediaStreamId") - ok.Integer(v.MediaStreamId) + ok.Integer(*v.MediaStreamId) } if v.MediaStreamName != nil { @@ -4666,9 +4666,9 @@ func awsRestjson1_serializeDocumentAddOutputRequest(v *types.AddOutputRequest, v } } - if v.MaxLatency != 0 { + if v.MaxLatency != nil { ok := object.Key("maxLatency") - ok.Integer(v.MaxLatency) + ok.Integer(*v.MaxLatency) } if v.MediaStreamOutputConfigurations != nil { @@ -4678,9 +4678,9 @@ func awsRestjson1_serializeDocumentAddOutputRequest(v *types.AddOutputRequest, v } } - if v.MinLatency != 0 { + if v.MinLatency != nil { ok := object.Key("minLatency") - ok.Integer(v.MinLatency) + ok.Integer(*v.MinLatency) } if v.Name != nil { @@ -4688,9 +4688,9 @@ func awsRestjson1_serializeDocumentAddOutputRequest(v *types.AddOutputRequest, v ok.String(*v.Name) } - if v.Port != 0 { + if v.Port != nil { ok := object.Key("port") - ok.Integer(v.Port) + ok.Integer(*v.Port) } if len(v.Protocol) > 0 { @@ -4703,14 +4703,14 @@ func awsRestjson1_serializeDocumentAddOutputRequest(v *types.AddOutputRequest, v ok.String(*v.RemoteId) } - if v.SenderControlPort != 0 { + if v.SenderControlPort != nil { ok := object.Key("senderControlPort") - ok.Integer(v.SenderControlPort) + ok.Integer(*v.SenderControlPort) } - if v.SmoothingLatency != 0 { + if v.SmoothingLatency != nil { ok := object.Key("smoothingLatency") - ok.Integer(v.SmoothingLatency) + ok.Integer(*v.SmoothingLatency) } if v.StreamId != nil { @@ -4737,9 +4737,9 @@ func awsRestjson1_serializeDocumentDestinationConfigurationRequest(v *types.Dest ok.String(*v.DestinationIp) } - { + if v.DestinationPort != nil { ok := object.Key("destinationPort") - ok.Integer(v.DestinationPort) + ok.Integer(*v.DestinationPort) } if v.Interface != nil { @@ -4756,20 +4756,20 @@ func awsRestjson1_serializeDocumentEncodingParametersRequest(v *types.EncodingPa object := value.Object() defer object.Close() - { + if v.CompressionFactor != nil { ok := object.Key("compressionFactor") switch { - case math.IsNaN(v.CompressionFactor): + case math.IsNaN(*v.CompressionFactor): ok.String("NaN") - case math.IsInf(v.CompressionFactor, 1): + case math.IsInf(*v.CompressionFactor, 1): ok.String("Infinity") - case math.IsInf(v.CompressionFactor, -1): + case math.IsInf(*v.CompressionFactor, -1): ok.String("-Infinity") default: - ok.Double(v.CompressionFactor) + ok.Double(*v.CompressionFactor) } } @@ -4843,9 +4843,9 @@ func awsRestjson1_serializeDocumentFailoverConfig(v *types.FailoverConfig, value ok.String(string(v.FailoverMode)) } - if v.RecoveryWindow != 0 { + if v.RecoveryWindow != nil { ok := object.Key("recoveryWindow") - ok.Integer(v.RecoveryWindow) + ok.Integer(*v.RecoveryWindow) } if v.SourcePriority != nil { @@ -4926,9 +4926,9 @@ func awsRestjson1_serializeDocumentGrantEntitlementRequest(v *types.GrantEntitle object := value.Object() defer object.Close() - if v.DataTransferSubscriberFeePercent != 0 { + if v.DataTransferSubscriberFeePercent != nil { ok := object.Key("dataTransferSubscriberFeePercent") - ok.Integer(v.DataTransferSubscriberFeePercent) + ok.Integer(*v.DataTransferSubscriberFeePercent) } if v.Description != nil { @@ -4967,9 +4967,9 @@ func awsRestjson1_serializeDocumentInputConfigurationRequest(v *types.InputConfi object := value.Object() defer object.Close() - { + if v.InputPort != nil { ok := object.Key("inputPort") - ok.Integer(v.InputPort) + ok.Integer(*v.InputPort) } if v.Interface != nil { @@ -5115,24 +5115,24 @@ func awsRestjson1_serializeDocumentSetSourceRequest(v *types.SetSourceRequest, v } } - if v.IngestPort != 0 { + if v.IngestPort != nil { ok := object.Key("ingestPort") - ok.Integer(v.IngestPort) + ok.Integer(*v.IngestPort) } - if v.MaxBitrate != 0 { + if v.MaxBitrate != nil { ok := object.Key("maxBitrate") - ok.Integer(v.MaxBitrate) + ok.Integer(*v.MaxBitrate) } - if v.MaxLatency != 0 { + if v.MaxLatency != nil { ok := object.Key("maxLatency") - ok.Integer(v.MaxLatency) + ok.Integer(*v.MaxLatency) } - if v.MaxSyncBuffer != 0 { + if v.MaxSyncBuffer != nil { ok := object.Key("maxSyncBuffer") - ok.Integer(v.MaxSyncBuffer) + ok.Integer(*v.MaxSyncBuffer) } if v.MediaStreamSourceConfigurations != nil { @@ -5142,9 +5142,9 @@ func awsRestjson1_serializeDocumentSetSourceRequest(v *types.SetSourceRequest, v } } - if v.MinLatency != 0 { + if v.MinLatency != nil { ok := object.Key("minLatency") - ok.Integer(v.MinLatency) + ok.Integer(*v.MinLatency) } if v.Name != nil { @@ -5157,9 +5157,9 @@ func awsRestjson1_serializeDocumentSetSourceRequest(v *types.SetSourceRequest, v ok.String(string(v.Protocol)) } - if v.SenderControlPort != 0 { + if v.SenderControlPort != nil { ok := object.Key("senderControlPort") - ok.Integer(v.SenderControlPort) + ok.Integer(*v.SenderControlPort) } if v.SenderIpAddress != nil { @@ -5172,9 +5172,9 @@ func awsRestjson1_serializeDocumentSetSourceRequest(v *types.SetSourceRequest, v ok.String(*v.SourceListenerAddress) } - if v.SourceListenerPort != 0 { + if v.SourceListenerPort != nil { ok := object.Key("sourceListenerPort") - ok.Integer(v.SourceListenerPort) + ok.Integer(*v.SourceListenerPort) } if v.StreamId != nil { @@ -5240,9 +5240,9 @@ func awsRestjson1_serializeDocumentUpdateBridgeNetworkOutputRequest(v *types.Upd ok.String(*v.NetworkName) } - if v.Port != 0 { + if v.Port != nil { ok := object.Key("port") - ok.Integer(v.Port) + ok.Integer(*v.Port) } if len(v.Protocol) > 0 { @@ -5250,9 +5250,9 @@ func awsRestjson1_serializeDocumentUpdateBridgeNetworkOutputRequest(v *types.Upd ok.String(string(v.Protocol)) } - if v.Ttl != 0 { + if v.Ttl != nil { ok := object.Key("ttl") - ok.Integer(v.Ttl) + ok.Integer(*v.Ttl) } return nil @@ -5272,9 +5272,9 @@ func awsRestjson1_serializeDocumentUpdateBridgeNetworkSourceRequest(v *types.Upd ok.String(*v.NetworkName) } - if v.Port != 0 { + if v.Port != nil { ok := object.Key("port") - ok.Integer(v.Port) + ok.Integer(*v.Port) } if len(v.Protocol) > 0 { @@ -5289,9 +5289,9 @@ func awsRestjson1_serializeDocumentUpdateEgressGatewayBridgeRequest(v *types.Upd object := value.Object() defer object.Close() - if v.MaxBitrate != 0 { + if v.MaxBitrate != nil { ok := object.Key("maxBitrate") - ok.Integer(v.MaxBitrate) + ok.Integer(*v.MaxBitrate) } return nil @@ -5358,9 +5358,9 @@ func awsRestjson1_serializeDocumentUpdateFailoverConfig(v *types.UpdateFailoverC ok.String(string(v.FailoverMode)) } - if v.RecoveryWindow != 0 { + if v.RecoveryWindow != nil { ok := object.Key("recoveryWindow") - ok.Integer(v.RecoveryWindow) + ok.Integer(*v.RecoveryWindow) } if v.SourcePriority != nil { @@ -5401,14 +5401,14 @@ func awsRestjson1_serializeDocumentUpdateIngressGatewayBridgeRequest(v *types.Up object := value.Object() defer object.Close() - if v.MaxBitrate != 0 { + if v.MaxBitrate != nil { ok := object.Key("maxBitrate") - ok.Integer(v.MaxBitrate) + ok.Integer(*v.MaxBitrate) } - if v.MaxOutputs != 0 { + if v.MaxOutputs != nil { ok := object.Key("maxOutputs") - ok.Integer(v.MaxOutputs) + ok.Integer(*v.MaxOutputs) } return nil diff --git a/service/mediaconnect/types/types.go b/service/mediaconnect/types/types.go index 33a67eda438..fb7001b94ac 100644 --- a/service/mediaconnect/types/types.go +++ b/service/mediaconnect/types/types.go @@ -49,7 +49,7 @@ type AddBridgeNetworkOutputRequest struct { // The network output port. // // This member is required. - Port int32 + Port *int32 // The network output protocol. // @@ -59,7 +59,7 @@ type AddBridgeNetworkOutputRequest struct { // The network output TTL. // // This member is required. - Ttl int32 + Ttl *int32 noSmithyDocumentSerde } @@ -86,7 +86,7 @@ type AddBridgeNetworkSourceRequest struct { // The network source port. // // This member is required. - Port int32 + Port *int32 // The network source protocol. // @@ -122,7 +122,7 @@ type AddEgressGatewayBridgeRequest struct { // The maximum expected bitrate (in bps). // // This member is required. - MaxBitrate int32 + MaxBitrate *int32 noSmithyDocumentSerde } @@ -132,12 +132,12 @@ type AddIngressGatewayBridgeRequest struct { // The maximum expected bitrate (in bps). // // This member is required. - MaxBitrate int32 + MaxBitrate *int32 // The maximum number of expected outputs. // // This member is required. - MaxOutputs int32 + MaxOutputs *int32 noSmithyDocumentSerde } @@ -166,7 +166,7 @@ type AddMediaStreamRequest struct { // A unique identifier for the media stream. // // This member is required. - MediaStreamId int32 + MediaStreamId *int32 // A name that helps you distinguish one media stream from another. // @@ -184,7 +184,7 @@ type AddMediaStreamRequest struct { // The sample rate (in Hz) for the stream. If the media stream type is video or // ancillary data, set this value to 90000. If the media stream type is audio, set // this value to either 48000 or 96000. - ClockRate int32 + ClockRate *int32 // A description that can help you quickly identify what your media stream is used // for. @@ -223,7 +223,7 @@ type AddOutputRequest struct { // The maximum latency in milliseconds. This parameter applies only to RIST-based, // Zixi-based, and Fujitsu-based streams. - MaxLatency int32 + MaxLatency *int32 // The media streams that are associated with the output, and the parameters for // those associations. @@ -234,23 +234,23 @@ type AddOutputRequest struct { // represents the minimal potential latency of that connection. The latency of the // stream is set to the highest number between the sender’s minimum latency and the // receiver’s minimum latency. - MinLatency int32 + MinLatency *int32 // The name of the output. This value must be unique within the current flow. Name *string // The port to use when content is distributed to this output. - Port int32 + Port *int32 // The remote ID for the Zixi-pull output stream. RemoteId *string // The port that the flow uses to send outbound requests to initiate connection // with the sender. - SenderControlPort int32 + SenderControlPort *int32 // The smoothing latency in milliseconds for RIST, RTP, and RTP-FEC streams. - SmoothingLatency int32 + SmoothingLatency *int32 // The stream ID that you want to use for this transport. This parameter applies // only to Zixi and SRT caller-based streams. @@ -368,7 +368,7 @@ type BridgeNetworkOutput struct { // The network output port. // // This member is required. - Port int32 + Port *int32 // The network output protocol. // @@ -378,7 +378,7 @@ type BridgeNetworkOutput struct { // The network output TTL. // // This member is required. - Ttl int32 + Ttl *int32 noSmithyDocumentSerde } @@ -404,7 +404,7 @@ type BridgeNetworkSource struct { // The network source port. // // This member is required. - Port int32 + Port *int32 // The network source protocol. // @@ -451,7 +451,7 @@ type DestinationConfiguration struct { // output. // // This member is required. - DestinationPort int32 + DestinationPort *int32 // The VPC interface that is used for the media stream associated with the output. // @@ -482,7 +482,7 @@ type DestinationConfigurationRequest struct { // to the output. // // This member is required. - DestinationPort int32 + DestinationPort *int32 // The VPC interface that you want to use for the media stream associated with the // output. @@ -498,7 +498,7 @@ type EgressGatewayBridge struct { // The maximum expected bitrate (in bps) of the egress bridge. // // This member is required. - MaxBitrate int32 + MaxBitrate *int32 // The ID of the instance running this bridge. InstanceId *string @@ -517,7 +517,7 @@ type EncodingParameters struct { // floating point numbers in the range of 3.0 to 10.0, inclusive. // // This member is required. - CompressionFactor float64 + CompressionFactor *float64 // A setting on the encoder that drives compression settings. This property only // applies to video media streams associated with outputs that use the ST 2110 JPEG @@ -540,7 +540,7 @@ type EncodingParametersRequest struct { // floating point numbers in the range of 3.0 to 10.0, inclusive. // // This member is required. - CompressionFactor float64 + CompressionFactor *float64 // A setting on the encoder that drives compression settings. This property only // applies to video media streams associated with outputs that use the ST 2110 JPEG @@ -624,7 +624,7 @@ type Entitlement struct { Subscribers []string // Percentage from 0-100 of the data transfer cost to be billed to the subscriber. - DataTransferSubscriberFeePercent int32 + DataTransferSubscriberFeePercent *int32 // A description of the entitlement. Description *string @@ -648,7 +648,7 @@ type FailoverConfig struct { FailoverMode FailoverMode // Search window time to look for dash-7 packets - RecoveryWindow int32 + RecoveryWindow *int32 // The priority you want to assign to a source. You can have a primary stream and // a backup stream or two equally prioritized streams. @@ -869,7 +869,7 @@ type GatewayInstance struct { // The running bridge count. // // This member is required. - RunningBridgeCount int32 + RunningBridgeCount *int32 InstanceMessages []MessageDetail @@ -906,7 +906,7 @@ type GrantEntitlementRequest struct { Subscribers []string // Percentage from 0-100 of the data transfer cost to be billed to the subscriber. - DataTransferSubscriberFeePercent int32 + DataTransferSubscriberFeePercent *int32 // A description of the entitlement. This description appears only on the AWS // Elemental MediaConnect console and will not be seen by the subscriber or end @@ -933,12 +933,12 @@ type IngressGatewayBridge struct { // The maximum expected bitrate (in bps) of the ingress bridge. // // This member is required. - MaxBitrate int32 + MaxBitrate *int32 // The maximum number of outputs on the ingress bridge. // // This member is required. - MaxOutputs int32 + MaxOutputs *int32 // The ID of the instance running this bridge. InstanceId *string @@ -957,7 +957,7 @@ type InputConfiguration struct { // The port that the flow listens on for an incoming media stream. // // This member is required. - InputPort int32 + InputPort *int32 // The VPC interface where the media stream comes in from. // @@ -974,7 +974,7 @@ type InputConfigurationRequest struct { // The port that you want the flow to listen on for an incoming media stream. // // This member is required. - InputPort int32 + InputPort *int32 // The VPC interface that you want to use for the incoming media stream. // @@ -1051,7 +1051,7 @@ type ListedEntitlement struct { EntitlementName *string // Percentage from 0-100 of the data transfer cost to be billed to the subscriber. - DataTransferSubscriberFeePercent int32 + DataTransferSubscriberFeePercent *int32 noSmithyDocumentSerde } @@ -1176,12 +1176,12 @@ type MediaStream struct { // outputs, you need to provide this value to the receiver. // // This member is required. - Fmt int32 + Fmt *int32 // A unique identifier for the media stream. // // This member is required. - MediaStreamId int32 + MediaStreamId *int32 // A name that helps you distinguish one media stream from another. // @@ -1197,7 +1197,7 @@ type MediaStream struct { Attributes *MediaStreamAttributes // The sample rate for the stream. This value is measured in Hz. - ClockRate int32 + ClockRate *int32 // A description that can help you quickly identify what your media stream is used // for. @@ -1376,7 +1376,7 @@ type Offering struct { // The length of time that your reservation would be active. // // This member is required. - Duration int32 + Duration *int32 // The unit of measurement for the duration of the offering. // @@ -1434,7 +1434,7 @@ type Output struct { BridgePorts []int32 // Percentage from 0-100 of the data transfer cost to be billed to the subscriber. - DataTransferSubscriberFeePercent int32 + DataTransferSubscriberFeePercent *int32 // A description of the output. Description *string @@ -1465,7 +1465,7 @@ type Output struct { MediaStreamOutputConfigurations []MediaStreamOutputConfiguration // The port to use when content is distributed to this output. - Port int32 + Port *int32 // Attributes related to the transport stream that are used in the output. Transport *Transport @@ -1494,7 +1494,7 @@ type Reservation struct { // value in the offering. // // This member is required. - Duration int32 + Duration *int32 // The unit of measurement for the duration of the reservation. MediaConnect // defines this value in the offering. @@ -1572,7 +1572,7 @@ type ResourceSpecification struct { ResourceType ResourceType // The amount of outbound bandwidth that is discounted in the offering. - ReservedBitrate int32 + ReservedBitrate *int32 noSmithyDocumentSerde } @@ -1611,17 +1611,17 @@ type SetSourceRequest struct { GatewayBridgeSource *SetGatewayBridgeSourceRequest // The port that the flow will be listening on for incoming content. - IngestPort int32 + IngestPort *int32 // The smoothing max bitrate (in bps) for RIST, RTP, and RTP-FEC streams. - MaxBitrate int32 + MaxBitrate *int32 // The maximum latency in milliseconds. This parameter applies only to RIST-based, // Zixi-based, and Fujitsu-based streams. - MaxLatency int32 + MaxLatency *int32 // The size of the buffer (in milliseconds) to use to sync incoming source data. - MaxSyncBuffer int32 + MaxSyncBuffer *int32 // The media streams that are associated with the source, and the parameters for // those associations. @@ -1632,7 +1632,7 @@ type SetSourceRequest struct { // represents the minimal potential latency of that connection. The latency of the // stream is set to the highest number between the sender’s minimum latency and the // receiver’s minimum latency. - MinLatency int32 + MinLatency *int32 // The name of the source. Name *string @@ -1642,7 +1642,7 @@ type SetSourceRequest struct { // The port that the flow uses to send outbound requests to initiate connection // with the sender. - SenderControlPort int32 + SenderControlPort *int32 // The IP address that the flow communicates with to initiate connection with the // sender. @@ -1652,7 +1652,7 @@ type SetSourceRequest struct { SourceListenerAddress *string // Source port for SRT-caller protocol. - SourceListenerPort int32 + SourceListenerPort *int32 // The stream ID that you want to use for this transport. This parameter applies // only to Zixi and SRT caller-based streams. @@ -1683,7 +1683,7 @@ type Source struct { SourceArn *string // Percentage from 0-100 of the data transfer cost to be billed to the subscriber. - DataTransferSubscriberFeePercent int32 + DataTransferSubscriberFeePercent *int32 // The type of encryption that is used on the content ingested from this source. Decryption *Encryption @@ -1704,7 +1704,7 @@ type Source struct { IngestIp *string // The port that the flow will be listening on for incoming content. - IngestPort int32 + IngestPort *int32 // The media streams that are associated with the source, and the parameters for // those associations. @@ -1712,7 +1712,7 @@ type Source struct { // The port that the flow uses to send outbound requests to initiate connection // with the sender. - SenderControlPort int32 + SenderControlPort *int32 // The IP address that the flow communicates with to initiate connection with the // sender. @@ -1756,41 +1756,41 @@ type Transport struct { CidrAllowList []string // The smoothing max bitrate (in bps) for RIST, RTP, and RTP-FEC streams. - MaxBitrate int32 + MaxBitrate *int32 // The maximum latency in milliseconds. This parameter applies only to RIST-based, // Zixi-based, and Fujitsu-based streams. - MaxLatency int32 + MaxLatency *int32 // The size of the buffer (in milliseconds) to use to sync incoming source data. - MaxSyncBuffer int32 + MaxSyncBuffer *int32 // The minimum latency in milliseconds for SRT-based streams. In streams that use // the SRT protocol, this value that you set on your MediaConnect source or output // represents the minimal potential latency of that connection. The latency of the // stream is set to the highest number between the sender’s minimum latency and the // receiver’s minimum latency. - MinLatency int32 + MinLatency *int32 // The remote ID for the Zixi-pull stream. RemoteId *string // The port that the flow uses to send outbound requests to initiate connection // with the sender. - SenderControlPort int32 + SenderControlPort *int32 // The IP address that the flow communicates with to initiate connection with the // sender. SenderIpAddress *string // The smoothing latency in milliseconds for RIST, RTP, and RTP-FEC streams. - SmoothingLatency int32 + SmoothingLatency *int32 // Source IP or domain name for SRT-caller protocol. SourceListenerAddress *string // Source port for SRT-caller protocol. - SourceListenerPort int32 + SourceListenerPort *int32 // The stream ID that you want to use for this transport. This parameter applies // only to Zixi and SRT caller-based streams. @@ -1821,13 +1821,13 @@ type UpdateBridgeNetworkOutputRequest struct { NetworkName *string // The network output port. - Port int32 + Port *int32 // The network output protocol. Protocol Protocol // The network output TTL. - Ttl int32 + Ttl *int32 noSmithyDocumentSerde } @@ -1842,7 +1842,7 @@ type UpdateBridgeNetworkSourceRequest struct { NetworkName *string // The network source port. - Port int32 + Port *int32 // The network source protocol. Protocol Protocol @@ -1853,7 +1853,7 @@ type UpdateBridgeNetworkSourceRequest struct { type UpdateEgressGatewayBridgeRequest struct { // Update an existing egress-type bridge. - MaxBitrate int32 + MaxBitrate *int32 noSmithyDocumentSerde } @@ -1916,7 +1916,7 @@ type UpdateFailoverConfig struct { FailoverMode FailoverMode // Recovery window time to look for dash-7 packets - RecoveryWindow int32 + RecoveryWindow *int32 // The priority you want to assign to a source. You can have a primary stream and // a backup stream or two equally prioritized streams. @@ -1942,10 +1942,10 @@ type UpdateGatewayBridgeSourceRequest struct { type UpdateIngressGatewayBridgeRequest struct { // The maximum expected bitrate (in bps). - MaxBitrate int32 + MaxBitrate *int32 // The maximum number of expected outputs. - MaxOutputs int32 + MaxOutputs *int32 noSmithyDocumentSerde } diff --git a/service/mediaconnect/validators.go b/service/mediaconnect/validators.go index de61001e114..8de1af19bbd 100644 --- a/service/mediaconnect/validators.go +++ b/service/mediaconnect/validators.go @@ -1278,9 +1278,15 @@ func validateAddBridgeNetworkOutputRequest(v *types.AddBridgeNetworkOutputReques if v.NetworkName == nil { invalidParams.Add(smithy.NewErrParamRequired("NetworkName")) } + if v.Port == nil { + invalidParams.Add(smithy.NewErrParamRequired("Port")) + } if len(v.Protocol) == 0 { invalidParams.Add(smithy.NewErrParamRequired("Protocol")) } + if v.Ttl == nil { + invalidParams.Add(smithy.NewErrParamRequired("Ttl")) + } if invalidParams.Len() > 0 { return invalidParams } else { @@ -1302,6 +1308,9 @@ func validateAddBridgeNetworkSourceRequest(v *types.AddBridgeNetworkSourceReques if v.NetworkName == nil { invalidParams.Add(smithy.NewErrParamRequired("NetworkName")) } + if v.Port == nil { + invalidParams.Add(smithy.NewErrParamRequired("Port")) + } if len(v.Protocol) == 0 { invalidParams.Add(smithy.NewErrParamRequired("Protocol")) } @@ -1356,6 +1365,9 @@ func validateAddEgressGatewayBridgeRequest(v *types.AddEgressGatewayBridgeReques return nil } invalidParams := smithy.InvalidParamsError{Context: "AddEgressGatewayBridgeRequest"} + if v.MaxBitrate == nil { + invalidParams.Add(smithy.NewErrParamRequired("MaxBitrate")) + } if invalidParams.Len() > 0 { return invalidParams } else { @@ -1368,6 +1380,12 @@ func validateAddIngressGatewayBridgeRequest(v *types.AddIngressGatewayBridgeRequ return nil } invalidParams := smithy.InvalidParamsError{Context: "AddIngressGatewayBridgeRequest"} + if v.MaxBitrate == nil { + invalidParams.Add(smithy.NewErrParamRequired("MaxBitrate")) + } + if v.MaxOutputs == nil { + invalidParams.Add(smithy.NewErrParamRequired("MaxOutputs")) + } if invalidParams.Len() > 0 { return invalidParams } else { @@ -1398,6 +1416,9 @@ func validateAddMediaStreamRequest(v *types.AddMediaStreamRequest) error { return nil } invalidParams := smithy.InvalidParamsError{Context: "AddMediaStreamRequest"} + if v.MediaStreamId == nil { + invalidParams.Add(smithy.NewErrParamRequired("MediaStreamId")) + } if v.MediaStreamName == nil { invalidParams.Add(smithy.NewErrParamRequired("MediaStreamName")) } @@ -1444,6 +1465,9 @@ func validateDestinationConfigurationRequest(v *types.DestinationConfigurationRe if v.DestinationIp == nil { invalidParams.Add(smithy.NewErrParamRequired("DestinationIp")) } + if v.DestinationPort == nil { + invalidParams.Add(smithy.NewErrParamRequired("DestinationPort")) + } if v.Interface == nil { invalidParams.Add(smithy.NewErrParamRequired("Interface")) } else if v.Interface != nil { @@ -1463,6 +1487,9 @@ func validateEncodingParametersRequest(v *types.EncodingParametersRequest) error return nil } invalidParams := smithy.InvalidParamsError{Context: "EncodingParametersRequest"} + if v.CompressionFactor == nil { + invalidParams.Add(smithy.NewErrParamRequired("CompressionFactor")) + } if len(v.EncoderProfile) == 0 { invalidParams.Add(smithy.NewErrParamRequired("EncoderProfile")) } @@ -1531,6 +1558,9 @@ func validateInputConfigurationRequest(v *types.InputConfigurationRequest) error return nil } invalidParams := smithy.InvalidParamsError{Context: "InputConfigurationRequest"} + if v.InputPort == nil { + invalidParams.Add(smithy.NewErrParamRequired("InputPort")) + } if v.Interface == nil { invalidParams.Add(smithy.NewErrParamRequired("Interface")) } else if v.Interface != nil { diff --git a/service/mediaconvert/api_op_CreateJob.go b/service/mediaconvert/api_op_CreateJob.go index 2246e6e921b..73315a84d91 100644 --- a/service/mediaconvert/api_op_CreateJob.go +++ b/service/mediaconvert/api_op_CreateJob.go @@ -83,7 +83,7 @@ type CreateJobInput struct { // one job has the same priority, the service begins processing the job that you // submitted first. If you don't specify a priority, the service uses the default // value 0. - Priority int32 + Priority *int32 // Optional. When you create a job, you can specify a queue to send it to. If you // don't specify, the job will go to the default queue. For more about queues, see diff --git a/service/mediaconvert/api_op_CreateJobTemplate.go b/service/mediaconvert/api_op_CreateJobTemplate.go index 7b2ff9b01e8..25e20d270db 100644 --- a/service/mediaconvert/api_op_CreateJobTemplate.go +++ b/service/mediaconvert/api_op_CreateJobTemplate.go @@ -68,7 +68,7 @@ type CreateJobTemplateInput struct { // begins processing the job with the highest value first. When more than one job // has the same priority, the service begins processing the job that you submitted // first. If you don't specify a priority, the service uses the default value 0. - Priority int32 + Priority *int32 // Optional. The queue that jobs created from this template are assigned to. If // you don't specify this, jobs will go to the default queue. diff --git a/service/mediaconvert/api_op_DescribeEndpoints.go b/service/mediaconvert/api_op_DescribeEndpoints.go index bde031c407f..63a8d53d03c 100644 --- a/service/mediaconvert/api_op_DescribeEndpoints.go +++ b/service/mediaconvert/api_op_DescribeEndpoints.go @@ -38,7 +38,7 @@ type DescribeEndpointsInput struct { // Optional. Max number of endpoints, up to twenty, that will be returned at one // time. - MaxResults int32 + MaxResults *int32 // Optional field, defaults to DEFAULT. Specify DEFAULT for this operation to // return your endpoints if any exist, or to create an endpoint for you and return @@ -174,8 +174,8 @@ func NewDescribeEndpointsPaginator(client DescribeEndpointsAPIClient, params *De } options := DescribeEndpointsPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults + if params.MaxResults != nil { + options.Limit = *params.MaxResults } for _, fn := range optFns { @@ -205,7 +205,11 @@ func (p *DescribeEndpointsPaginator) 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.DescribeEndpoints(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/mediaconvert/api_op_ListJobTemplates.go b/service/mediaconvert/api_op_ListJobTemplates.go index 47a1d13cd29..fbd7147d784 100644 --- a/service/mediaconvert/api_op_ListJobTemplates.go +++ b/service/mediaconvert/api_op_ListJobTemplates.go @@ -47,7 +47,7 @@ type ListJobTemplatesInput struct { // Optional. Number of job templates, up to twenty, that will be returned at one // time. - MaxResults int32 + MaxResults *int32 // Use this string, provided with the response to a previous request, to request // the next batch of job templates. @@ -181,8 +181,8 @@ func NewListJobTemplatesPaginator(client ListJobTemplatesAPIClient, params *List } options := ListJobTemplatesPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults + if params.MaxResults != nil { + options.Limit = *params.MaxResults } for _, fn := range optFns { @@ -212,7 +212,11 @@ func (p *ListJobTemplatesPaginator) 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.ListJobTemplates(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/mediaconvert/api_op_ListJobs.go b/service/mediaconvert/api_op_ListJobs.go index d95232f0019..fee2ec94596 100644 --- a/service/mediaconvert/api_op_ListJobs.go +++ b/service/mediaconvert/api_op_ListJobs.go @@ -38,7 +38,7 @@ func (c *Client) ListJobs(ctx context.Context, params *ListJobsInput, optFns ... type ListJobsInput struct { // Optional. Number of jobs, up to twenty, that will be returned at one time. - MaxResults int32 + MaxResults *int32 // Optional. Use this string, provided with the response to a previous request, to // request the next batch of jobs. @@ -177,8 +177,8 @@ func NewListJobsPaginator(client ListJobsAPIClient, params *ListJobsInput, optFn } options := ListJobsPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults + if params.MaxResults != nil { + options.Limit = *params.MaxResults } for _, fn := range optFns { @@ -208,7 +208,11 @@ func (p *ListJobsPaginator) NextPage(ctx context.Context, optFns ...func(*Option 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.ListJobs(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/mediaconvert/api_op_ListPresets.go b/service/mediaconvert/api_op_ListPresets.go index 55086b2f63b..1acd7ce6328 100644 --- a/service/mediaconvert/api_op_ListPresets.go +++ b/service/mediaconvert/api_op_ListPresets.go @@ -46,7 +46,7 @@ type ListPresetsInput struct { ListBy types.PresetListBy // Optional. Number of presets, up to twenty, that will be returned at one time - MaxResults int32 + MaxResults *int32 // Use this string, provided with the response to a previous request, to request // the next batch of presets. @@ -178,8 +178,8 @@ func NewListPresetsPaginator(client ListPresetsAPIClient, params *ListPresetsInp } options := ListPresetsPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults + if params.MaxResults != nil { + options.Limit = *params.MaxResults } for _, fn := range optFns { @@ -209,7 +209,11 @@ func (p *ListPresetsPaginator) NextPage(ctx context.Context, optFns ...func(*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.ListPresets(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/mediaconvert/api_op_ListQueues.go b/service/mediaconvert/api_op_ListQueues.go index 57ea1a1cefb..be54bf00c8d 100644 --- a/service/mediaconvert/api_op_ListQueues.go +++ b/service/mediaconvert/api_op_ListQueues.go @@ -42,7 +42,7 @@ type ListQueuesInput struct { ListBy types.QueueListBy // Optional. Number of queues, up to twenty, that will be returned at one time. - MaxResults int32 + MaxResults *int32 // Use this string, provided with the response to a previous request, to request // the next batch of queues. @@ -174,8 +174,8 @@ func NewListQueuesPaginator(client ListQueuesAPIClient, params *ListQueuesInput, } options := ListQueuesPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults + if params.MaxResults != nil { + options.Limit = *params.MaxResults } for _, fn := range optFns { @@ -205,7 +205,11 @@ func (p *ListQueuesPaginator) NextPage(ctx context.Context, optFns ...func(*Opti 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.ListQueues(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/mediaconvert/api_op_UpdateJobTemplate.go b/service/mediaconvert/api_op_UpdateJobTemplate.go index 6273f8e20c5..b11abfe3198 100644 --- a/service/mediaconvert/api_op_UpdateJobTemplate.go +++ b/service/mediaconvert/api_op_UpdateJobTemplate.go @@ -58,7 +58,7 @@ type UpdateJobTemplateInput struct { // begins processing the job with the highest value first. When more than one job // has the same priority, the service begins processing the job that you submitted // first. If you don't specify a priority, the service uses the default value 0. - Priority int32 + Priority *int32 // The new queue for the job template, if you are changing it. Queue *string diff --git a/service/mediaconvert/deserializers.go b/service/mediaconvert/deserializers.go index a302e2140ae..e3f44b5fc70 100644 --- a/service/mediaconvert/deserializers.go +++ b/service/mediaconvert/deserializers.go @@ -5910,7 +5910,7 @@ func awsRestjson1_deserializeDocumentAacSettings(v **types.AacSettings, value in if err != nil { return err } - sv.Bitrate = int32(i64) + sv.Bitrate = ptr.Int32(int32(i64)) } case "codecProfile": @@ -5959,7 +5959,7 @@ func awsRestjson1_deserializeDocumentAacSettings(v **types.AacSettings, value in if err != nil { return err } - sv.SampleRate = int32(i64) + sv.SampleRate = ptr.Int32(int32(i64)) } case "specification": @@ -6021,7 +6021,7 @@ func awsRestjson1_deserializeDocumentAc3Settings(v **types.Ac3Settings, value in if err != nil { return err } - sv.Bitrate = int32(i64) + sv.Bitrate = ptr.Int32(int32(i64)) } case "bitstreamMode": @@ -6052,7 +6052,7 @@ func awsRestjson1_deserializeDocumentAc3Settings(v **types.Ac3Settings, value in if err != nil { return err } - sv.Dialnorm = int32(i64) + sv.Dialnorm = ptr.Int32(int32(i64)) } case "dynamicRangeCompressionLine": @@ -6110,7 +6110,7 @@ func awsRestjson1_deserializeDocumentAc3Settings(v **types.Ac3Settings, value in if err != nil { return err } - sv.SampleRate = int32(i64) + sv.SampleRate = ptr.Int32(int32(i64)) } default: @@ -6243,7 +6243,7 @@ func awsRestjson1_deserializeDocumentAiffSettings(v **types.AiffSettings, value if err != nil { return err } - sv.BitDepth = int32(i64) + sv.BitDepth = ptr.Int32(int32(i64)) } case "channels": @@ -6256,7 +6256,7 @@ func awsRestjson1_deserializeDocumentAiffSettings(v **types.AiffSettings, value if err != nil { return err } - sv.Channels = int32(i64) + sv.Channels = ptr.Int32(int32(i64)) } case "sampleRate": @@ -6269,7 +6269,7 @@ func awsRestjson1_deserializeDocumentAiffSettings(v **types.AiffSettings, value if err != nil { return err } - sv.SampleRate = int32(i64) + sv.SampleRate = ptr.Int32(int32(i64)) } default: @@ -6313,7 +6313,7 @@ func awsRestjson1_deserializeDocumentAllowedRenditionSize(v **types.AllowedRendi if err != nil { return err } - sv.Height = int32(i64) + sv.Height = ptr.Int32(int32(i64)) } case "required": @@ -6335,7 +6335,7 @@ func awsRestjson1_deserializeDocumentAllowedRenditionSize(v **types.AllowedRendi if err != nil { return err } - sv.Width = int32(i64) + sv.Width = ptr.Int32(int32(i64)) } default: @@ -6388,7 +6388,7 @@ func awsRestjson1_deserializeDocumentAncillarySourceSettings(v **types.Ancillary if err != nil { return err } - sv.SourceAncillaryChannelNumber = int32(i64) + sv.SourceAncillaryChannelNumber = ptr.Int32(int32(i64)) } case "terminateCaptions": @@ -6595,7 +6595,7 @@ func awsRestjson1_deserializeDocumentAudioDescription(v **types.AudioDescription if err != nil { return err } - sv.AudioType = int32(i64) + sv.AudioType = ptr.Int32(int32(i64)) } case "audioTypeControl": @@ -6712,7 +6712,7 @@ func awsRestjson1_deserializeDocumentAudioNormalizationSettings(v **types.AudioN if err != nil { return err } - sv.CorrectionGateLevel = int32(i64) + sv.CorrectionGateLevel = ptr.Int32(int32(i64)) } case "loudnessLogging": @@ -6741,7 +6741,7 @@ func awsRestjson1_deserializeDocumentAudioNormalizationSettings(v **types.AudioN if err != nil { return err } - sv.TargetLkfs = f64 + sv.TargetLkfs = ptr.Float64(f64) case string: var f64 float64 @@ -6759,7 +6759,7 @@ func awsRestjson1_deserializeDocumentAudioNormalizationSettings(v **types.AudioN return fmt.Errorf("unknown JSON number value: %s", jtv) } - sv.TargetLkfs = f64 + sv.TargetLkfs = ptr.Float64(f64) default: return fmt.Errorf("expected __doubleMinNegative59Max0 to be a JSON Number, got %T instead", value) @@ -6775,7 +6775,7 @@ func awsRestjson1_deserializeDocumentAudioNormalizationSettings(v **types.AudioN if err != nil { return err } - sv.TruePeakLimiterThreshold = f64 + sv.TruePeakLimiterThreshold = ptr.Float64(f64) case string: var f64 float64 @@ -6793,7 +6793,7 @@ func awsRestjson1_deserializeDocumentAudioNormalizationSettings(v **types.AudioN return fmt.Errorf("unknown JSON number value: %s", jtv) } - sv.TruePeakLimiterThreshold = f64 + sv.TruePeakLimiterThreshold = ptr.Float64(f64) default: return fmt.Errorf("expected __doubleMinNegative8Max0 to be a JSON Number, got %T instead", value) @@ -6892,7 +6892,7 @@ func awsRestjson1_deserializeDocumentAudioSelector(v **types.AudioSelector, valu if err != nil { return err } - sv.Offset = int32(i64) + sv.Offset = ptr.Int32(int32(i64)) } case "pids": @@ -6910,7 +6910,7 @@ func awsRestjson1_deserializeDocumentAudioSelector(v **types.AudioSelector, valu if err != nil { return err } - sv.ProgramSelection = int32(i64) + sv.ProgramSelection = ptr.Int32(int32(i64)) } case "remixSettings": @@ -7069,7 +7069,7 @@ func awsRestjson1_deserializeDocumentAutomatedAbrSettings(v **types.AutomatedAbr if err != nil { return err } - sv.MaxAbrBitrate = int32(i64) + sv.MaxAbrBitrate = ptr.Int32(int32(i64)) } case "maxRenditions": @@ -7082,7 +7082,7 @@ func awsRestjson1_deserializeDocumentAutomatedAbrSettings(v **types.AutomatedAbr if err != nil { return err } - sv.MaxRenditions = int32(i64) + sv.MaxRenditions = ptr.Int32(int32(i64)) } case "minAbrBitrate": @@ -7095,7 +7095,7 @@ func awsRestjson1_deserializeDocumentAutomatedAbrSettings(v **types.AutomatedAbr if err != nil { return err } - sv.MinAbrBitrate = int32(i64) + sv.MinAbrBitrate = ptr.Int32(int32(i64)) } case "rules": @@ -7180,7 +7180,7 @@ func awsRestjson1_deserializeDocumentAv1QvbrSettings(v **types.Av1QvbrSettings, if err != nil { return err } - sv.QvbrQualityLevel = int32(i64) + sv.QvbrQualityLevel = ptr.Int32(int32(i64)) } case "qvbrQualityLevelFineTune": @@ -7191,7 +7191,7 @@ func awsRestjson1_deserializeDocumentAv1QvbrSettings(v **types.Av1QvbrSettings, if err != nil { return err } - sv.QvbrQualityLevelFineTune = f64 + sv.QvbrQualityLevelFineTune = ptr.Float64(f64) case string: var f64 float64 @@ -7209,7 +7209,7 @@ func awsRestjson1_deserializeDocumentAv1QvbrSettings(v **types.Av1QvbrSettings, return fmt.Errorf("unknown JSON number value: %s", jtv) } - sv.QvbrQualityLevelFineTune = f64 + sv.QvbrQualityLevelFineTune = ptr.Float64(f64) default: return fmt.Errorf("expected __doubleMin0Max1 to be a JSON Number, got %T instead", value) @@ -7303,7 +7303,7 @@ func awsRestjson1_deserializeDocumentAv1Settings(v **types.Av1Settings, value in if err != nil { return err } - sv.FramerateDenominator = int32(i64) + sv.FramerateDenominator = ptr.Int32(int32(i64)) } case "framerateNumerator": @@ -7316,7 +7316,7 @@ func awsRestjson1_deserializeDocumentAv1Settings(v **types.Av1Settings, value in if err != nil { return err } - sv.FramerateNumerator = int32(i64) + sv.FramerateNumerator = ptr.Int32(int32(i64)) } case "gopSize": @@ -7327,7 +7327,7 @@ func awsRestjson1_deserializeDocumentAv1Settings(v **types.Av1Settings, value in if err != nil { return err } - sv.GopSize = f64 + sv.GopSize = ptr.Float64(f64) case string: var f64 float64 @@ -7345,7 +7345,7 @@ func awsRestjson1_deserializeDocumentAv1Settings(v **types.Av1Settings, value in return fmt.Errorf("unknown JSON number value: %s", jtv) } - sv.GopSize = f64 + sv.GopSize = ptr.Float64(f64) default: return fmt.Errorf("expected __doubleMin0 to be a JSON Number, got %T instead", value) @@ -7363,7 +7363,7 @@ func awsRestjson1_deserializeDocumentAv1Settings(v **types.Av1Settings, value in if err != nil { return err } - sv.MaxBitrate = int32(i64) + sv.MaxBitrate = ptr.Int32(int32(i64)) } case "numberBFramesBetweenReferenceFrames": @@ -7376,7 +7376,7 @@ func awsRestjson1_deserializeDocumentAv1Settings(v **types.Av1Settings, value in if err != nil { return err } - sv.NumberBFramesBetweenReferenceFrames = int32(i64) + sv.NumberBFramesBetweenReferenceFrames = ptr.Int32(int32(i64)) } case "qvbrSettings": @@ -7403,7 +7403,7 @@ func awsRestjson1_deserializeDocumentAv1Settings(v **types.Av1Settings, value in if err != nil { return err } - sv.Slices = int32(i64) + sv.Slices = ptr.Int32(int32(i64)) } case "spatialAdaptiveQuantization": @@ -7528,7 +7528,7 @@ func awsRestjson1_deserializeDocumentAvcIntraSettings(v **types.AvcIntraSettings if err != nil { return err } - sv.FramerateDenominator = int32(i64) + sv.FramerateDenominator = ptr.Int32(int32(i64)) } case "framerateNumerator": @@ -7541,7 +7541,7 @@ func awsRestjson1_deserializeDocumentAvcIntraSettings(v **types.AvcIntraSettings if err != nil { return err } - sv.FramerateNumerator = int32(i64) + sv.FramerateNumerator = ptr.Int32(int32(i64)) } case "interlaceMode": @@ -7777,7 +7777,7 @@ func awsRestjson1_deserializeDocumentBurninDestinationSettings(v **types.BurninD if err != nil { return err } - sv.BackgroundOpacity = int32(i64) + sv.BackgroundOpacity = ptr.Int32(int32(i64)) } case "fallbackFont": @@ -7808,7 +7808,7 @@ func awsRestjson1_deserializeDocumentBurninDestinationSettings(v **types.BurninD if err != nil { return err } - sv.FontOpacity = int32(i64) + sv.FontOpacity = ptr.Int32(int32(i64)) } case "fontResolution": @@ -7821,7 +7821,7 @@ func awsRestjson1_deserializeDocumentBurninDestinationSettings(v **types.BurninD if err != nil { return err } - sv.FontResolution = int32(i64) + sv.FontResolution = ptr.Int32(int32(i64)) } case "fontScript": @@ -7843,7 +7843,7 @@ func awsRestjson1_deserializeDocumentBurninDestinationSettings(v **types.BurninD if err != nil { return err } - sv.FontSize = int32(i64) + sv.FontSize = ptr.Int32(int32(i64)) } case "hexFontColor": @@ -7874,7 +7874,7 @@ func awsRestjson1_deserializeDocumentBurninDestinationSettings(v **types.BurninD if err != nil { return err } - sv.OutlineSize = int32(i64) + sv.OutlineSize = ptr.Int32(int32(i64)) } case "shadowColor": @@ -7896,7 +7896,7 @@ func awsRestjson1_deserializeDocumentBurninDestinationSettings(v **types.BurninD if err != nil { return err } - sv.ShadowOpacity = int32(i64) + sv.ShadowOpacity = ptr.Int32(int32(i64)) } case "shadowXOffset": @@ -7909,7 +7909,7 @@ func awsRestjson1_deserializeDocumentBurninDestinationSettings(v **types.BurninD if err != nil { return err } - sv.ShadowXOffset = int32(i64) + sv.ShadowXOffset = ptr.Int32(int32(i64)) } case "shadowYOffset": @@ -7922,7 +7922,7 @@ func awsRestjson1_deserializeDocumentBurninDestinationSettings(v **types.BurninD if err != nil { return err } - sv.ShadowYOffset = int32(i64) + sv.ShadowYOffset = ptr.Int32(int32(i64)) } case "stylePassthrough": @@ -7953,7 +7953,7 @@ func awsRestjson1_deserializeDocumentBurninDestinationSettings(v **types.BurninD if err != nil { return err } - sv.XPosition = int32(i64) + sv.XPosition = ptr.Int32(int32(i64)) } case "yPosition": @@ -7966,7 +7966,7 @@ func awsRestjson1_deserializeDocumentBurninDestinationSettings(v **types.BurninD if err != nil { return err } - sv.YPosition = int32(i64) + sv.YPosition = ptr.Int32(int32(i64)) } default: @@ -8284,7 +8284,7 @@ func awsRestjson1_deserializeDocumentCaptionSourceFramerate(v **types.CaptionSou if err != nil { return err } - sv.FramerateDenominator = int32(i64) + sv.FramerateDenominator = ptr.Int32(int32(i64)) } case "framerateNumerator": @@ -8297,7 +8297,7 @@ func awsRestjson1_deserializeDocumentCaptionSourceFramerate(v **types.CaptionSou if err != nil { return err } - sv.FramerateNumerator = int32(i64) + sv.FramerateNumerator = ptr.Int32(int32(i64)) } default: @@ -8452,7 +8452,7 @@ func awsRestjson1_deserializeDocumentClipLimits(v **types.ClipLimits, value inte if err != nil { return err } - sv.MaximumRGBTolerance = int32(i64) + sv.MaximumRGBTolerance = ptr.Int32(int32(i64)) } case "maximumYUV": @@ -8465,7 +8465,7 @@ func awsRestjson1_deserializeDocumentClipLimits(v **types.ClipLimits, value inte if err != nil { return err } - sv.MaximumYUV = int32(i64) + sv.MaximumYUV = ptr.Int32(int32(i64)) } case "minimumRGBTolerance": @@ -8478,7 +8478,7 @@ func awsRestjson1_deserializeDocumentClipLimits(v **types.ClipLimits, value inte if err != nil { return err } - sv.MinimumRGBTolerance = int32(i64) + sv.MinimumRGBTolerance = ptr.Int32(int32(i64)) } case "minimumYUV": @@ -8491,7 +8491,7 @@ func awsRestjson1_deserializeDocumentClipLimits(v **types.ClipLimits, value inte if err != nil { return err } - sv.MinimumYUV = int32(i64) + sv.MinimumYUV = ptr.Int32(int32(i64)) } default: @@ -8717,7 +8717,7 @@ func awsRestjson1_deserializeDocumentCmafGroupSettings(v **types.CmafGroupSettin if err != nil { return err } - sv.FragmentLength = int32(i64) + sv.FragmentLength = ptr.Int32(int32(i64)) } case "imageBasedTrickPlay": @@ -8762,7 +8762,7 @@ func awsRestjson1_deserializeDocumentCmafGroupSettings(v **types.CmafGroupSettin if err != nil { return err } - sv.MinBufferTime = int32(i64) + sv.MinBufferTime = ptr.Int32(int32(i64)) } case "minFinalSegmentLength": @@ -8773,7 +8773,7 @@ func awsRestjson1_deserializeDocumentCmafGroupSettings(v **types.CmafGroupSettin if err != nil { return err } - sv.MinFinalSegmentLength = f64 + sv.MinFinalSegmentLength = ptr.Float64(f64) case string: var f64 float64 @@ -8791,7 +8791,7 @@ func awsRestjson1_deserializeDocumentCmafGroupSettings(v **types.CmafGroupSettin return fmt.Errorf("unknown JSON number value: %s", jtv) } - sv.MinFinalSegmentLength = f64 + sv.MinFinalSegmentLength = ptr.Float64(f64) default: return fmt.Errorf("expected __doubleMin0Max2147483647 to be a JSON Number, got %T instead", value) @@ -8845,7 +8845,7 @@ func awsRestjson1_deserializeDocumentCmafGroupSettings(v **types.CmafGroupSettin if err != nil { return err } - sv.SegmentLength = int32(i64) + sv.SegmentLength = ptr.Int32(int32(i64)) } case "segmentLengthControl": @@ -8961,7 +8961,7 @@ func awsRestjson1_deserializeDocumentCmafImageBasedTrickPlaySettings(v **types.C if err != nil { return err } - sv.ThumbnailHeight = int32(i64) + sv.ThumbnailHeight = ptr.Int32(int32(i64)) } case "thumbnailInterval": @@ -8972,7 +8972,7 @@ func awsRestjson1_deserializeDocumentCmafImageBasedTrickPlaySettings(v **types.C if err != nil { return err } - sv.ThumbnailInterval = f64 + sv.ThumbnailInterval = ptr.Float64(f64) case string: var f64 float64 @@ -8990,7 +8990,7 @@ func awsRestjson1_deserializeDocumentCmafImageBasedTrickPlaySettings(v **types.C return fmt.Errorf("unknown JSON number value: %s", jtv) } - sv.ThumbnailInterval = f64 + sv.ThumbnailInterval = ptr.Float64(f64) default: return fmt.Errorf("expected __doubleMin0Max2147483647 to be a JSON Number, got %T instead", value) @@ -9008,7 +9008,7 @@ func awsRestjson1_deserializeDocumentCmafImageBasedTrickPlaySettings(v **types.C if err != nil { return err } - sv.ThumbnailWidth = int32(i64) + sv.ThumbnailWidth = ptr.Int32(int32(i64)) } case "tileHeight": @@ -9021,7 +9021,7 @@ func awsRestjson1_deserializeDocumentCmafImageBasedTrickPlaySettings(v **types.C if err != nil { return err } - sv.TileHeight = int32(i64) + sv.TileHeight = ptr.Int32(int32(i64)) } case "tileWidth": @@ -9034,7 +9034,7 @@ func awsRestjson1_deserializeDocumentCmafImageBasedTrickPlaySettings(v **types.C if err != nil { return err } - sv.TileWidth = int32(i64) + sv.TileWidth = ptr.Int32(int32(i64)) } default: @@ -9235,7 +9235,7 @@ func awsRestjson1_deserializeDocumentColorCorrector(v **types.ColorCorrector, va if err != nil { return err } - sv.Brightness = int32(i64) + sv.Brightness = ptr.Int32(int32(i64)) } case "clipLimits": @@ -9262,7 +9262,7 @@ func awsRestjson1_deserializeDocumentColorCorrector(v **types.ColorCorrector, va if err != nil { return err } - sv.Contrast = int32(i64) + sv.Contrast = ptr.Int32(int32(i64)) } case "hdr10Metadata": @@ -9289,7 +9289,7 @@ func awsRestjson1_deserializeDocumentColorCorrector(v **types.ColorCorrector, va if err != nil { return err } - sv.Hue = int32(i64) + sv.Hue = ptr.Int32(int32(i64)) } case "sampleRangeConversion": @@ -9311,7 +9311,7 @@ func awsRestjson1_deserializeDocumentColorCorrector(v **types.ColorCorrector, va if err != nil { return err } - sv.Saturation = int32(i64) + sv.Saturation = ptr.Int32(int32(i64)) } case "sdrReferenceWhiteLevel": @@ -9324,7 +9324,7 @@ func awsRestjson1_deserializeDocumentColorCorrector(v **types.ColorCorrector, va if err != nil { return err } - sv.SdrReferenceWhiteLevel = int32(i64) + sv.SdrReferenceWhiteLevel = ptr.Int32(int32(i64)) } default: @@ -9629,7 +9629,7 @@ func awsRestjson1_deserializeDocumentDashIsoGroupSettings(v **types.DashIsoGroup if err != nil { return err } - sv.FragmentLength = int32(i64) + sv.FragmentLength = ptr.Int32(int32(i64)) } case "hbbtvCompliance": @@ -9665,7 +9665,7 @@ func awsRestjson1_deserializeDocumentDashIsoGroupSettings(v **types.DashIsoGroup if err != nil { return err } - sv.MinBufferTime = int32(i64) + sv.MinBufferTime = ptr.Int32(int32(i64)) } case "minFinalSegmentLength": @@ -9676,7 +9676,7 @@ func awsRestjson1_deserializeDocumentDashIsoGroupSettings(v **types.DashIsoGroup if err != nil { return err } - sv.MinFinalSegmentLength = f64 + sv.MinFinalSegmentLength = ptr.Float64(f64) case string: var f64 float64 @@ -9694,7 +9694,7 @@ func awsRestjson1_deserializeDocumentDashIsoGroupSettings(v **types.DashIsoGroup return fmt.Errorf("unknown JSON number value: %s", jtv) } - sv.MinFinalSegmentLength = f64 + sv.MinFinalSegmentLength = ptr.Float64(f64) default: return fmt.Errorf("expected __doubleMin0Max2147483647 to be a JSON Number, got %T instead", value) @@ -9748,7 +9748,7 @@ func awsRestjson1_deserializeDocumentDashIsoGroupSettings(v **types.DashIsoGroup if err != nil { return err } - sv.SegmentLength = int32(i64) + sv.SegmentLength = ptr.Int32(int32(i64)) } case "segmentLengthControl": @@ -9828,7 +9828,7 @@ func awsRestjson1_deserializeDocumentDashIsoImageBasedTrickPlaySettings(v **type if err != nil { return err } - sv.ThumbnailHeight = int32(i64) + sv.ThumbnailHeight = ptr.Int32(int32(i64)) } case "thumbnailInterval": @@ -9839,7 +9839,7 @@ func awsRestjson1_deserializeDocumentDashIsoImageBasedTrickPlaySettings(v **type if err != nil { return err } - sv.ThumbnailInterval = f64 + sv.ThumbnailInterval = ptr.Float64(f64) case string: var f64 float64 @@ -9857,7 +9857,7 @@ func awsRestjson1_deserializeDocumentDashIsoImageBasedTrickPlaySettings(v **type return fmt.Errorf("unknown JSON number value: %s", jtv) } - sv.ThumbnailInterval = f64 + sv.ThumbnailInterval = ptr.Float64(f64) default: return fmt.Errorf("expected __doubleMin0Max2147483647 to be a JSON Number, got %T instead", value) @@ -9875,7 +9875,7 @@ func awsRestjson1_deserializeDocumentDashIsoImageBasedTrickPlaySettings(v **type if err != nil { return err } - sv.ThumbnailWidth = int32(i64) + sv.ThumbnailWidth = ptr.Int32(int32(i64)) } case "tileHeight": @@ -9888,7 +9888,7 @@ func awsRestjson1_deserializeDocumentDashIsoImageBasedTrickPlaySettings(v **type if err != nil { return err } - sv.TileHeight = int32(i64) + sv.TileHeight = ptr.Int32(int32(i64)) } case "tileWidth": @@ -9901,7 +9901,7 @@ func awsRestjson1_deserializeDocumentDashIsoImageBasedTrickPlaySettings(v **type if err != nil { return err } - sv.TileWidth = int32(i64) + sv.TileWidth = ptr.Int32(int32(i64)) } default: @@ -10102,7 +10102,7 @@ func awsRestjson1_deserializeDocumentDolbyVisionLevel6Metadata(v **types.DolbyVi if err != nil { return err } - sv.MaxCll = int32(i64) + sv.MaxCll = ptr.Int32(int32(i64)) } case "maxFall": @@ -10115,7 +10115,7 @@ func awsRestjson1_deserializeDocumentDolbyVisionLevel6Metadata(v **types.DolbyVi if err != nil { return err } - sv.MaxFall = int32(i64) + sv.MaxFall = ptr.Int32(int32(i64)) } default: @@ -10159,7 +10159,7 @@ func awsRestjson1_deserializeDocumentDvbNitSettings(v **types.DvbNitSettings, va if err != nil { return err } - sv.NetworkId = int32(i64) + sv.NetworkId = ptr.Int32(int32(i64)) } case "networkName": @@ -10181,7 +10181,7 @@ func awsRestjson1_deserializeDocumentDvbNitSettings(v **types.DvbNitSettings, va if err != nil { return err } - sv.NitInterval = int32(i64) + sv.NitInterval = ptr.Int32(int32(i64)) } default: @@ -10234,7 +10234,7 @@ func awsRestjson1_deserializeDocumentDvbSdtSettings(v **types.DvbSdtSettings, va if err != nil { return err } - sv.SdtInterval = int32(i64) + sv.SdtInterval = ptr.Int32(int32(i64)) } case "serviceName": @@ -10323,7 +10323,7 @@ func awsRestjson1_deserializeDocumentDvbSubDestinationSettings(v **types.DvbSubD if err != nil { return err } - sv.BackgroundOpacity = int32(i64) + sv.BackgroundOpacity = ptr.Int32(int32(i64)) } case "ddsHandling": @@ -10345,7 +10345,7 @@ func awsRestjson1_deserializeDocumentDvbSubDestinationSettings(v **types.DvbSubD if err != nil { return err } - sv.DdsXCoordinate = int32(i64) + sv.DdsXCoordinate = ptr.Int32(int32(i64)) } case "ddsYCoordinate": @@ -10358,7 +10358,7 @@ func awsRestjson1_deserializeDocumentDvbSubDestinationSettings(v **types.DvbSubD if err != nil { return err } - sv.DdsYCoordinate = int32(i64) + sv.DdsYCoordinate = ptr.Int32(int32(i64)) } case "fallbackFont": @@ -10389,7 +10389,7 @@ func awsRestjson1_deserializeDocumentDvbSubDestinationSettings(v **types.DvbSubD if err != nil { return err } - sv.FontOpacity = int32(i64) + sv.FontOpacity = ptr.Int32(int32(i64)) } case "fontResolution": @@ -10402,7 +10402,7 @@ func awsRestjson1_deserializeDocumentDvbSubDestinationSettings(v **types.DvbSubD if err != nil { return err } - sv.FontResolution = int32(i64) + sv.FontResolution = ptr.Int32(int32(i64)) } case "fontScript": @@ -10424,7 +10424,7 @@ func awsRestjson1_deserializeDocumentDvbSubDestinationSettings(v **types.DvbSubD if err != nil { return err } - sv.FontSize = int32(i64) + sv.FontSize = ptr.Int32(int32(i64)) } case "height": @@ -10437,7 +10437,7 @@ func awsRestjson1_deserializeDocumentDvbSubDestinationSettings(v **types.DvbSubD if err != nil { return err } - sv.Height = int32(i64) + sv.Height = ptr.Int32(int32(i64)) } case "hexFontColor": @@ -10468,7 +10468,7 @@ func awsRestjson1_deserializeDocumentDvbSubDestinationSettings(v **types.DvbSubD if err != nil { return err } - sv.OutlineSize = int32(i64) + sv.OutlineSize = ptr.Int32(int32(i64)) } case "shadowColor": @@ -10490,7 +10490,7 @@ func awsRestjson1_deserializeDocumentDvbSubDestinationSettings(v **types.DvbSubD if err != nil { return err } - sv.ShadowOpacity = int32(i64) + sv.ShadowOpacity = ptr.Int32(int32(i64)) } case "shadowXOffset": @@ -10503,7 +10503,7 @@ func awsRestjson1_deserializeDocumentDvbSubDestinationSettings(v **types.DvbSubD if err != nil { return err } - sv.ShadowXOffset = int32(i64) + sv.ShadowXOffset = ptr.Int32(int32(i64)) } case "shadowYOffset": @@ -10516,7 +10516,7 @@ func awsRestjson1_deserializeDocumentDvbSubDestinationSettings(v **types.DvbSubD if err != nil { return err } - sv.ShadowYOffset = int32(i64) + sv.ShadowYOffset = ptr.Int32(int32(i64)) } case "stylePassthrough": @@ -10556,7 +10556,7 @@ func awsRestjson1_deserializeDocumentDvbSubDestinationSettings(v **types.DvbSubD if err != nil { return err } - sv.Width = int32(i64) + sv.Width = ptr.Int32(int32(i64)) } case "xPosition": @@ -10569,7 +10569,7 @@ func awsRestjson1_deserializeDocumentDvbSubDestinationSettings(v **types.DvbSubD if err != nil { return err } - sv.XPosition = int32(i64) + sv.XPosition = ptr.Int32(int32(i64)) } case "yPosition": @@ -10582,7 +10582,7 @@ func awsRestjson1_deserializeDocumentDvbSubDestinationSettings(v **types.DvbSubD if err != nil { return err } - sv.YPosition = int32(i64) + sv.YPosition = ptr.Int32(int32(i64)) } default: @@ -10626,7 +10626,7 @@ func awsRestjson1_deserializeDocumentDvbSubSourceSettings(v **types.DvbSubSource if err != nil { return err } - sv.Pid = int32(i64) + sv.Pid = ptr.Int32(int32(i64)) } default: @@ -10670,7 +10670,7 @@ func awsRestjson1_deserializeDocumentDvbTdtSettings(v **types.DvbTdtSettings, va if err != nil { return err } - sv.TdtInterval = int32(i64) + sv.TdtInterval = ptr.Int32(int32(i64)) } default: @@ -10714,7 +10714,7 @@ func awsRestjson1_deserializeDocumentEac3AtmosSettings(v **types.Eac3AtmosSettin if err != nil { return err } - sv.Bitrate = int32(i64) + sv.Bitrate = ptr.Int32(int32(i64)) } case "bitstreamMode": @@ -10788,7 +10788,7 @@ func awsRestjson1_deserializeDocumentEac3AtmosSettings(v **types.Eac3AtmosSettin if err != nil { return err } - sv.LoRoCenterMixLevel = f64 + sv.LoRoCenterMixLevel = ptr.Float64(f64) case string: var f64 float64 @@ -10806,7 +10806,7 @@ func awsRestjson1_deserializeDocumentEac3AtmosSettings(v **types.Eac3AtmosSettin return fmt.Errorf("unknown JSON number value: %s", jtv) } - sv.LoRoCenterMixLevel = f64 + sv.LoRoCenterMixLevel = ptr.Float64(f64) default: return fmt.Errorf("expected __doubleMinNegative6Max3 to be a JSON Number, got %T instead", value) @@ -10822,7 +10822,7 @@ func awsRestjson1_deserializeDocumentEac3AtmosSettings(v **types.Eac3AtmosSettin if err != nil { return err } - sv.LoRoSurroundMixLevel = f64 + sv.LoRoSurroundMixLevel = ptr.Float64(f64) case string: var f64 float64 @@ -10840,7 +10840,7 @@ func awsRestjson1_deserializeDocumentEac3AtmosSettings(v **types.Eac3AtmosSettin return fmt.Errorf("unknown JSON number value: %s", jtv) } - sv.LoRoSurroundMixLevel = f64 + sv.LoRoSurroundMixLevel = ptr.Float64(f64) default: return fmt.Errorf("expected __doubleMinNegative60MaxNegative1 to be a JSON Number, got %T instead", value) @@ -10856,7 +10856,7 @@ func awsRestjson1_deserializeDocumentEac3AtmosSettings(v **types.Eac3AtmosSettin if err != nil { return err } - sv.LtRtCenterMixLevel = f64 + sv.LtRtCenterMixLevel = ptr.Float64(f64) case string: var f64 float64 @@ -10874,7 +10874,7 @@ func awsRestjson1_deserializeDocumentEac3AtmosSettings(v **types.Eac3AtmosSettin return fmt.Errorf("unknown JSON number value: %s", jtv) } - sv.LtRtCenterMixLevel = f64 + sv.LtRtCenterMixLevel = ptr.Float64(f64) default: return fmt.Errorf("expected __doubleMinNegative6Max3 to be a JSON Number, got %T instead", value) @@ -10890,7 +10890,7 @@ func awsRestjson1_deserializeDocumentEac3AtmosSettings(v **types.Eac3AtmosSettin if err != nil { return err } - sv.LtRtSurroundMixLevel = f64 + sv.LtRtSurroundMixLevel = ptr.Float64(f64) case string: var f64 float64 @@ -10908,7 +10908,7 @@ func awsRestjson1_deserializeDocumentEac3AtmosSettings(v **types.Eac3AtmosSettin return fmt.Errorf("unknown JSON number value: %s", jtv) } - sv.LtRtSurroundMixLevel = f64 + sv.LtRtSurroundMixLevel = ptr.Float64(f64) default: return fmt.Errorf("expected __doubleMinNegative60MaxNegative1 to be a JSON Number, got %T instead", value) @@ -10935,7 +10935,7 @@ func awsRestjson1_deserializeDocumentEac3AtmosSettings(v **types.Eac3AtmosSettin if err != nil { return err } - sv.SampleRate = int32(i64) + sv.SampleRate = ptr.Int32(int32(i64)) } case "speechThreshold": @@ -10948,7 +10948,7 @@ func awsRestjson1_deserializeDocumentEac3AtmosSettings(v **types.Eac3AtmosSettin if err != nil { return err } - sv.SpeechThreshold = int32(i64) + sv.SpeechThreshold = ptr.Int32(int32(i64)) } case "stereoDownmix": @@ -11019,7 +11019,7 @@ func awsRestjson1_deserializeDocumentEac3Settings(v **types.Eac3Settings, value if err != nil { return err } - sv.Bitrate = int32(i64) + sv.Bitrate = ptr.Int32(int32(i64)) } case "bitstreamMode": @@ -11059,7 +11059,7 @@ func awsRestjson1_deserializeDocumentEac3Settings(v **types.Eac3Settings, value if err != nil { return err } - sv.Dialnorm = int32(i64) + sv.Dialnorm = ptr.Int32(int32(i64)) } case "dynamicRangeCompressionLine": @@ -11106,7 +11106,7 @@ func awsRestjson1_deserializeDocumentEac3Settings(v **types.Eac3Settings, value if err != nil { return err } - sv.LoRoCenterMixLevel = f64 + sv.LoRoCenterMixLevel = ptr.Float64(f64) case string: var f64 float64 @@ -11124,7 +11124,7 @@ func awsRestjson1_deserializeDocumentEac3Settings(v **types.Eac3Settings, value return fmt.Errorf("unknown JSON number value: %s", jtv) } - sv.LoRoCenterMixLevel = f64 + sv.LoRoCenterMixLevel = ptr.Float64(f64) default: return fmt.Errorf("expected __doubleMinNegative60Max3 to be a JSON Number, got %T instead", value) @@ -11140,7 +11140,7 @@ func awsRestjson1_deserializeDocumentEac3Settings(v **types.Eac3Settings, value if err != nil { return err } - sv.LoRoSurroundMixLevel = f64 + sv.LoRoSurroundMixLevel = ptr.Float64(f64) case string: var f64 float64 @@ -11158,7 +11158,7 @@ func awsRestjson1_deserializeDocumentEac3Settings(v **types.Eac3Settings, value return fmt.Errorf("unknown JSON number value: %s", jtv) } - sv.LoRoSurroundMixLevel = f64 + sv.LoRoSurroundMixLevel = ptr.Float64(f64) default: return fmt.Errorf("expected __doubleMinNegative60MaxNegative1 to be a JSON Number, got %T instead", value) @@ -11174,7 +11174,7 @@ func awsRestjson1_deserializeDocumentEac3Settings(v **types.Eac3Settings, value if err != nil { return err } - sv.LtRtCenterMixLevel = f64 + sv.LtRtCenterMixLevel = ptr.Float64(f64) case string: var f64 float64 @@ -11192,7 +11192,7 @@ func awsRestjson1_deserializeDocumentEac3Settings(v **types.Eac3Settings, value return fmt.Errorf("unknown JSON number value: %s", jtv) } - sv.LtRtCenterMixLevel = f64 + sv.LtRtCenterMixLevel = ptr.Float64(f64) default: return fmt.Errorf("expected __doubleMinNegative60Max3 to be a JSON Number, got %T instead", value) @@ -11208,7 +11208,7 @@ func awsRestjson1_deserializeDocumentEac3Settings(v **types.Eac3Settings, value if err != nil { return err } - sv.LtRtSurroundMixLevel = f64 + sv.LtRtSurroundMixLevel = ptr.Float64(f64) case string: var f64 float64 @@ -11226,7 +11226,7 @@ func awsRestjson1_deserializeDocumentEac3Settings(v **types.Eac3Settings, value return fmt.Errorf("unknown JSON number value: %s", jtv) } - sv.LtRtSurroundMixLevel = f64 + sv.LtRtSurroundMixLevel = ptr.Float64(f64) default: return fmt.Errorf("expected __doubleMinNegative60MaxNegative1 to be a JSON Number, got %T instead", value) @@ -11271,7 +11271,7 @@ func awsRestjson1_deserializeDocumentEac3Settings(v **types.Eac3Settings, value if err != nil { return err } - sv.SampleRate = int32(i64) + sv.SampleRate = ptr.Int32(int32(i64)) } case "stereoDownmix": @@ -11342,7 +11342,7 @@ func awsRestjson1_deserializeDocumentEmbeddedDestinationSettings(v **types.Embed if err != nil { return err } - sv.Destination608ChannelNumber = int32(i64) + sv.Destination608ChannelNumber = ptr.Int32(int32(i64)) } case "destination708ServiceNumber": @@ -11355,7 +11355,7 @@ func awsRestjson1_deserializeDocumentEmbeddedDestinationSettings(v **types.Embed if err != nil { return err } - sv.Destination708ServiceNumber = int32(i64) + sv.Destination708ServiceNumber = ptr.Int32(int32(i64)) } default: @@ -11408,7 +11408,7 @@ func awsRestjson1_deserializeDocumentEmbeddedSourceSettings(v **types.EmbeddedSo if err != nil { return err } - sv.Source608ChannelNumber = int32(i64) + sv.Source608ChannelNumber = ptr.Int32(int32(i64)) } case "source608TrackNumber": @@ -11421,7 +11421,7 @@ func awsRestjson1_deserializeDocumentEmbeddedSourceSettings(v **types.EmbeddedSo if err != nil { return err } - sv.Source608TrackNumber = int32(i64) + sv.Source608TrackNumber = ptr.Int32(int32(i64)) } case "terminateCaptions": @@ -11559,7 +11559,7 @@ func awsRestjson1_deserializeDocumentEsamSettings(v **types.EsamSettings, value if err != nil { return err } - sv.ResponseSignalPreroll = int32(i64) + sv.ResponseSignalPreroll = ptr.Int32(int32(i64)) } case "signalProcessingNotification": @@ -11814,7 +11814,7 @@ func awsRestjson1_deserializeDocumentFileSourceSettings(v **types.FileSourceSett if err != nil { return err } - sv.TimeDelta = int32(i64) + sv.TimeDelta = ptr.Int32(int32(i64)) } case "timeDeltaUnits": @@ -11867,7 +11867,7 @@ func awsRestjson1_deserializeDocumentFlacSettings(v **types.FlacSettings, value if err != nil { return err } - sv.BitDepth = int32(i64) + sv.BitDepth = ptr.Int32(int32(i64)) } case "channels": @@ -11893,7 +11893,7 @@ func awsRestjson1_deserializeDocumentFlacSettings(v **types.FlacSettings, value if err != nil { return err } - sv.SampleRate = int32(i64) + sv.SampleRate = ptr.Int32(int32(i64)) } default: @@ -11977,7 +11977,7 @@ func awsRestjson1_deserializeDocumentForceIncludeRenditionSize(v **types.ForceIn if err != nil { return err } - sv.Height = int32(i64) + sv.Height = ptr.Int32(int32(i64)) } case "width": @@ -11990,7 +11990,7 @@ func awsRestjson1_deserializeDocumentForceIncludeRenditionSize(v **types.ForceIn if err != nil { return err } - sv.Width = int32(i64) + sv.Width = ptr.Int32(int32(i64)) } default: @@ -12034,7 +12034,7 @@ func awsRestjson1_deserializeDocumentFrameCaptureSettings(v **types.FrameCapture if err != nil { return err } - sv.FramerateDenominator = int32(i64) + sv.FramerateDenominator = ptr.Int32(int32(i64)) } case "framerateNumerator": @@ -12047,7 +12047,7 @@ func awsRestjson1_deserializeDocumentFrameCaptureSettings(v **types.FrameCapture if err != nil { return err } - sv.FramerateNumerator = int32(i64) + sv.FramerateNumerator = ptr.Int32(int32(i64)) } case "maxCaptures": @@ -12060,7 +12060,7 @@ func awsRestjson1_deserializeDocumentFrameCaptureSettings(v **types.FrameCapture if err != nil { return err } - sv.MaxCaptures = int32(i64) + sv.MaxCaptures = ptr.Int32(int32(i64)) } case "quality": @@ -12073,7 +12073,7 @@ func awsRestjson1_deserializeDocumentFrameCaptureSettings(v **types.FrameCapture if err != nil { return err } - sv.Quality = int32(i64) + sv.Quality = ptr.Int32(int32(i64)) } default: @@ -12117,7 +12117,7 @@ func awsRestjson1_deserializeDocumentH264QvbrSettings(v **types.H264QvbrSettings if err != nil { return err } - sv.MaxAverageBitrate = int32(i64) + sv.MaxAverageBitrate = ptr.Int32(int32(i64)) } case "qvbrQualityLevel": @@ -12130,7 +12130,7 @@ func awsRestjson1_deserializeDocumentH264QvbrSettings(v **types.H264QvbrSettings if err != nil { return err } - sv.QvbrQualityLevel = int32(i64) + sv.QvbrQualityLevel = ptr.Int32(int32(i64)) } case "qvbrQualityLevelFineTune": @@ -12141,7 +12141,7 @@ func awsRestjson1_deserializeDocumentH264QvbrSettings(v **types.H264QvbrSettings if err != nil { return err } - sv.QvbrQualityLevelFineTune = f64 + sv.QvbrQualityLevelFineTune = ptr.Float64(f64) case string: var f64 float64 @@ -12159,7 +12159,7 @@ func awsRestjson1_deserializeDocumentH264QvbrSettings(v **types.H264QvbrSettings return fmt.Errorf("unknown JSON number value: %s", jtv) } - sv.QvbrQualityLevelFineTune = f64 + sv.QvbrQualityLevelFineTune = ptr.Float64(f64) default: return fmt.Errorf("expected __doubleMin0Max1 to be a JSON Number, got %T instead", value) @@ -12222,7 +12222,7 @@ func awsRestjson1_deserializeDocumentH264Settings(v **types.H264Settings, value if err != nil { return err } - sv.Bitrate = int32(i64) + sv.Bitrate = ptr.Int32(int32(i64)) } case "codecLevel": @@ -12316,7 +12316,7 @@ func awsRestjson1_deserializeDocumentH264Settings(v **types.H264Settings, value if err != nil { return err } - sv.FramerateDenominator = int32(i64) + sv.FramerateDenominator = ptr.Int32(int32(i64)) } case "framerateNumerator": @@ -12329,7 +12329,7 @@ func awsRestjson1_deserializeDocumentH264Settings(v **types.H264Settings, value if err != nil { return err } - sv.FramerateNumerator = int32(i64) + sv.FramerateNumerator = ptr.Int32(int32(i64)) } case "gopBReference": @@ -12351,7 +12351,7 @@ func awsRestjson1_deserializeDocumentH264Settings(v **types.H264Settings, value if err != nil { return err } - sv.GopClosedCadence = int32(i64) + sv.GopClosedCadence = ptr.Int32(int32(i64)) } case "gopSize": @@ -12362,7 +12362,7 @@ func awsRestjson1_deserializeDocumentH264Settings(v **types.H264Settings, value if err != nil { return err } - sv.GopSize = f64 + sv.GopSize = ptr.Float64(f64) case string: var f64 float64 @@ -12380,7 +12380,7 @@ func awsRestjson1_deserializeDocumentH264Settings(v **types.H264Settings, value return fmt.Errorf("unknown JSON number value: %s", jtv) } - sv.GopSize = f64 + sv.GopSize = ptr.Float64(f64) default: return fmt.Errorf("expected __doubleMin0 to be a JSON Number, got %T instead", value) @@ -12407,7 +12407,7 @@ func awsRestjson1_deserializeDocumentH264Settings(v **types.H264Settings, value if err != nil { return err } - sv.HrdBufferFinalFillPercentage = int32(i64) + sv.HrdBufferFinalFillPercentage = ptr.Int32(int32(i64)) } case "hrdBufferInitialFillPercentage": @@ -12420,7 +12420,7 @@ func awsRestjson1_deserializeDocumentH264Settings(v **types.H264Settings, value if err != nil { return err } - sv.HrdBufferInitialFillPercentage = int32(i64) + sv.HrdBufferInitialFillPercentage = ptr.Int32(int32(i64)) } case "hrdBufferSize": @@ -12433,7 +12433,7 @@ func awsRestjson1_deserializeDocumentH264Settings(v **types.H264Settings, value if err != nil { return err } - sv.HrdBufferSize = int32(i64) + sv.HrdBufferSize = ptr.Int32(int32(i64)) } case "interlaceMode": @@ -12455,7 +12455,7 @@ func awsRestjson1_deserializeDocumentH264Settings(v **types.H264Settings, value if err != nil { return err } - sv.MaxBitrate = int32(i64) + sv.MaxBitrate = ptr.Int32(int32(i64)) } case "minIInterval": @@ -12468,7 +12468,7 @@ func awsRestjson1_deserializeDocumentH264Settings(v **types.H264Settings, value if err != nil { return err } - sv.MinIInterval = int32(i64) + sv.MinIInterval = ptr.Int32(int32(i64)) } case "numberBFramesBetweenReferenceFrames": @@ -12481,7 +12481,7 @@ func awsRestjson1_deserializeDocumentH264Settings(v **types.H264Settings, value if err != nil { return err } - sv.NumberBFramesBetweenReferenceFrames = int32(i64) + sv.NumberBFramesBetweenReferenceFrames = ptr.Int32(int32(i64)) } case "numberReferenceFrames": @@ -12494,7 +12494,7 @@ func awsRestjson1_deserializeDocumentH264Settings(v **types.H264Settings, value if err != nil { return err } - sv.NumberReferenceFrames = int32(i64) + sv.NumberReferenceFrames = ptr.Int32(int32(i64)) } case "parControl": @@ -12516,7 +12516,7 @@ func awsRestjson1_deserializeDocumentH264Settings(v **types.H264Settings, value if err != nil { return err } - sv.ParDenominator = int32(i64) + sv.ParDenominator = ptr.Int32(int32(i64)) } case "parNumerator": @@ -12529,7 +12529,7 @@ func awsRestjson1_deserializeDocumentH264Settings(v **types.H264Settings, value if err != nil { return err } - sv.ParNumerator = int32(i64) + sv.ParNumerator = ptr.Int32(int32(i64)) } case "qualityTuningLevel": @@ -12592,7 +12592,7 @@ func awsRestjson1_deserializeDocumentH264Settings(v **types.H264Settings, value if err != nil { return err } - sv.Slices = int32(i64) + sv.Slices = ptr.Int32(int32(i64)) } case "slowPal": @@ -12614,7 +12614,7 @@ func awsRestjson1_deserializeDocumentH264Settings(v **types.H264Settings, value if err != nil { return err } - sv.Softness = int32(i64) + sv.Softness = ptr.Int32(int32(i64)) } case "spatialAdaptiveQuantization": @@ -12703,7 +12703,7 @@ func awsRestjson1_deserializeDocumentH265QvbrSettings(v **types.H265QvbrSettings if err != nil { return err } - sv.MaxAverageBitrate = int32(i64) + sv.MaxAverageBitrate = ptr.Int32(int32(i64)) } case "qvbrQualityLevel": @@ -12716,7 +12716,7 @@ func awsRestjson1_deserializeDocumentH265QvbrSettings(v **types.H265QvbrSettings if err != nil { return err } - sv.QvbrQualityLevel = int32(i64) + sv.QvbrQualityLevel = ptr.Int32(int32(i64)) } case "qvbrQualityLevelFineTune": @@ -12727,7 +12727,7 @@ func awsRestjson1_deserializeDocumentH265QvbrSettings(v **types.H265QvbrSettings if err != nil { return err } - sv.QvbrQualityLevelFineTune = f64 + sv.QvbrQualityLevelFineTune = ptr.Float64(f64) case string: var f64 float64 @@ -12745,7 +12745,7 @@ func awsRestjson1_deserializeDocumentH265QvbrSettings(v **types.H265QvbrSettings return fmt.Errorf("unknown JSON number value: %s", jtv) } - sv.QvbrQualityLevelFineTune = f64 + sv.QvbrQualityLevelFineTune = ptr.Float64(f64) default: return fmt.Errorf("expected __doubleMin0Max1 to be a JSON Number, got %T instead", value) @@ -12817,7 +12817,7 @@ func awsRestjson1_deserializeDocumentH265Settings(v **types.H265Settings, value if err != nil { return err } - sv.Bitrate = int32(i64) + sv.Bitrate = ptr.Int32(int32(i64)) } case "codecLevel": @@ -12893,7 +12893,7 @@ func awsRestjson1_deserializeDocumentH265Settings(v **types.H265Settings, value if err != nil { return err } - sv.FramerateDenominator = int32(i64) + sv.FramerateDenominator = ptr.Int32(int32(i64)) } case "framerateNumerator": @@ -12906,7 +12906,7 @@ func awsRestjson1_deserializeDocumentH265Settings(v **types.H265Settings, value if err != nil { return err } - sv.FramerateNumerator = int32(i64) + sv.FramerateNumerator = ptr.Int32(int32(i64)) } case "gopBReference": @@ -12928,7 +12928,7 @@ func awsRestjson1_deserializeDocumentH265Settings(v **types.H265Settings, value if err != nil { return err } - sv.GopClosedCadence = int32(i64) + sv.GopClosedCadence = ptr.Int32(int32(i64)) } case "gopSize": @@ -12939,7 +12939,7 @@ func awsRestjson1_deserializeDocumentH265Settings(v **types.H265Settings, value if err != nil { return err } - sv.GopSize = f64 + sv.GopSize = ptr.Float64(f64) case string: var f64 float64 @@ -12957,7 +12957,7 @@ func awsRestjson1_deserializeDocumentH265Settings(v **types.H265Settings, value return fmt.Errorf("unknown JSON number value: %s", jtv) } - sv.GopSize = f64 + sv.GopSize = ptr.Float64(f64) default: return fmt.Errorf("expected __doubleMin0 to be a JSON Number, got %T instead", value) @@ -12984,7 +12984,7 @@ func awsRestjson1_deserializeDocumentH265Settings(v **types.H265Settings, value if err != nil { return err } - sv.HrdBufferFinalFillPercentage = int32(i64) + sv.HrdBufferFinalFillPercentage = ptr.Int32(int32(i64)) } case "hrdBufferInitialFillPercentage": @@ -12997,7 +12997,7 @@ func awsRestjson1_deserializeDocumentH265Settings(v **types.H265Settings, value if err != nil { return err } - sv.HrdBufferInitialFillPercentage = int32(i64) + sv.HrdBufferInitialFillPercentage = ptr.Int32(int32(i64)) } case "hrdBufferSize": @@ -13010,7 +13010,7 @@ func awsRestjson1_deserializeDocumentH265Settings(v **types.H265Settings, value if err != nil { return err } - sv.HrdBufferSize = int32(i64) + sv.HrdBufferSize = ptr.Int32(int32(i64)) } case "interlaceMode": @@ -13032,7 +13032,7 @@ func awsRestjson1_deserializeDocumentH265Settings(v **types.H265Settings, value if err != nil { return err } - sv.MaxBitrate = int32(i64) + sv.MaxBitrate = ptr.Int32(int32(i64)) } case "minIInterval": @@ -13045,7 +13045,7 @@ func awsRestjson1_deserializeDocumentH265Settings(v **types.H265Settings, value if err != nil { return err } - sv.MinIInterval = int32(i64) + sv.MinIInterval = ptr.Int32(int32(i64)) } case "numberBFramesBetweenReferenceFrames": @@ -13058,7 +13058,7 @@ func awsRestjson1_deserializeDocumentH265Settings(v **types.H265Settings, value if err != nil { return err } - sv.NumberBFramesBetweenReferenceFrames = int32(i64) + sv.NumberBFramesBetweenReferenceFrames = ptr.Int32(int32(i64)) } case "numberReferenceFrames": @@ -13071,7 +13071,7 @@ func awsRestjson1_deserializeDocumentH265Settings(v **types.H265Settings, value if err != nil { return err } - sv.NumberReferenceFrames = int32(i64) + sv.NumberReferenceFrames = ptr.Int32(int32(i64)) } case "parControl": @@ -13093,7 +13093,7 @@ func awsRestjson1_deserializeDocumentH265Settings(v **types.H265Settings, value if err != nil { return err } - sv.ParDenominator = int32(i64) + sv.ParDenominator = ptr.Int32(int32(i64)) } case "parNumerator": @@ -13106,7 +13106,7 @@ func awsRestjson1_deserializeDocumentH265Settings(v **types.H265Settings, value if err != nil { return err } - sv.ParNumerator = int32(i64) + sv.ParNumerator = ptr.Int32(int32(i64)) } case "qualityTuningLevel": @@ -13169,7 +13169,7 @@ func awsRestjson1_deserializeDocumentH265Settings(v **types.H265Settings, value if err != nil { return err } - sv.Slices = int32(i64) + sv.Slices = ptr.Int32(int32(i64)) } case "slowPal": @@ -13285,7 +13285,7 @@ func awsRestjson1_deserializeDocumentHdr10Metadata(v **types.Hdr10Metadata, valu if err != nil { return err } - sv.BluePrimaryX = int32(i64) + sv.BluePrimaryX = ptr.Int32(int32(i64)) } case "bluePrimaryY": @@ -13298,7 +13298,7 @@ func awsRestjson1_deserializeDocumentHdr10Metadata(v **types.Hdr10Metadata, valu if err != nil { return err } - sv.BluePrimaryY = int32(i64) + sv.BluePrimaryY = ptr.Int32(int32(i64)) } case "greenPrimaryX": @@ -13311,7 +13311,7 @@ func awsRestjson1_deserializeDocumentHdr10Metadata(v **types.Hdr10Metadata, valu if err != nil { return err } - sv.GreenPrimaryX = int32(i64) + sv.GreenPrimaryX = ptr.Int32(int32(i64)) } case "greenPrimaryY": @@ -13324,7 +13324,7 @@ func awsRestjson1_deserializeDocumentHdr10Metadata(v **types.Hdr10Metadata, valu if err != nil { return err } - sv.GreenPrimaryY = int32(i64) + sv.GreenPrimaryY = ptr.Int32(int32(i64)) } case "maxContentLightLevel": @@ -13337,7 +13337,7 @@ func awsRestjson1_deserializeDocumentHdr10Metadata(v **types.Hdr10Metadata, valu if err != nil { return err } - sv.MaxContentLightLevel = int32(i64) + sv.MaxContentLightLevel = ptr.Int32(int32(i64)) } case "maxFrameAverageLightLevel": @@ -13350,7 +13350,7 @@ func awsRestjson1_deserializeDocumentHdr10Metadata(v **types.Hdr10Metadata, valu if err != nil { return err } - sv.MaxFrameAverageLightLevel = int32(i64) + sv.MaxFrameAverageLightLevel = ptr.Int32(int32(i64)) } case "maxLuminance": @@ -13363,7 +13363,7 @@ func awsRestjson1_deserializeDocumentHdr10Metadata(v **types.Hdr10Metadata, valu if err != nil { return err } - sv.MaxLuminance = int32(i64) + sv.MaxLuminance = ptr.Int32(int32(i64)) } case "minLuminance": @@ -13376,7 +13376,7 @@ func awsRestjson1_deserializeDocumentHdr10Metadata(v **types.Hdr10Metadata, valu if err != nil { return err } - sv.MinLuminance = int32(i64) + sv.MinLuminance = ptr.Int32(int32(i64)) } case "redPrimaryX": @@ -13389,7 +13389,7 @@ func awsRestjson1_deserializeDocumentHdr10Metadata(v **types.Hdr10Metadata, valu if err != nil { return err } - sv.RedPrimaryX = int32(i64) + sv.RedPrimaryX = ptr.Int32(int32(i64)) } case "redPrimaryY": @@ -13402,7 +13402,7 @@ func awsRestjson1_deserializeDocumentHdr10Metadata(v **types.Hdr10Metadata, valu if err != nil { return err } - sv.RedPrimaryY = int32(i64) + sv.RedPrimaryY = ptr.Int32(int32(i64)) } case "whitePointX": @@ -13415,7 +13415,7 @@ func awsRestjson1_deserializeDocumentHdr10Metadata(v **types.Hdr10Metadata, valu if err != nil { return err } - sv.WhitePointX = int32(i64) + sv.WhitePointX = ptr.Int32(int32(i64)) } case "whitePointY": @@ -13428,7 +13428,7 @@ func awsRestjson1_deserializeDocumentHdr10Metadata(v **types.Hdr10Metadata, valu if err != nil { return err } - sv.WhitePointY = int32(i64) + sv.WhitePointY = ptr.Int32(int32(i64)) } default: @@ -13472,7 +13472,7 @@ func awsRestjson1_deserializeDocumentHdr10Plus(v **types.Hdr10Plus, value interf if err != nil { return err } - sv.MasteringMonitorNits = int32(i64) + sv.MasteringMonitorNits = ptr.Int32(int32(i64)) } case "targetMonitorNits": @@ -13485,7 +13485,7 @@ func awsRestjson1_deserializeDocumentHdr10Plus(v **types.Hdr10Plus, value interf if err != nil { return err } - sv.TargetMonitorNits = int32(i64) + sv.TargetMonitorNits = ptr.Int32(int32(i64)) } default: @@ -13574,7 +13574,7 @@ func awsRestjson1_deserializeDocumentHlsCaptionLanguageMapping(v **types.HlsCapt if err != nil { return err } - sv.CaptionChannel = int32(i64) + sv.CaptionChannel = ptr.Int32(int32(i64)) } case "customLanguageCode": @@ -13858,7 +13858,7 @@ func awsRestjson1_deserializeDocumentHlsGroupSettings(v **types.HlsGroupSettings if err != nil { return err } - sv.MinFinalSegmentLength = f64 + sv.MinFinalSegmentLength = ptr.Float64(f64) case string: var f64 float64 @@ -13876,7 +13876,7 @@ func awsRestjson1_deserializeDocumentHlsGroupSettings(v **types.HlsGroupSettings return fmt.Errorf("unknown JSON number value: %s", jtv) } - sv.MinFinalSegmentLength = f64 + sv.MinFinalSegmentLength = ptr.Float64(f64) default: return fmt.Errorf("expected __doubleMin0Max2147483647 to be a JSON Number, got %T instead", value) @@ -13894,7 +13894,7 @@ func awsRestjson1_deserializeDocumentHlsGroupSettings(v **types.HlsGroupSettings if err != nil { return err } - sv.MinSegmentLength = int32(i64) + sv.MinSegmentLength = ptr.Int32(int32(i64)) } case "outputSelection": @@ -13925,7 +13925,7 @@ func awsRestjson1_deserializeDocumentHlsGroupSettings(v **types.HlsGroupSettings if err != nil { return err } - sv.ProgramDateTimePeriod = int32(i64) + sv.ProgramDateTimePeriod = ptr.Int32(int32(i64)) } case "progressiveWriteHlsManifest": @@ -13956,7 +13956,7 @@ func awsRestjson1_deserializeDocumentHlsGroupSettings(v **types.HlsGroupSettings if err != nil { return err } - sv.SegmentLength = int32(i64) + sv.SegmentLength = ptr.Int32(int32(i64)) } case "segmentLengthControl": @@ -13978,7 +13978,7 @@ func awsRestjson1_deserializeDocumentHlsGroupSettings(v **types.HlsGroupSettings if err != nil { return err } - sv.SegmentsPerSubdirectory = int32(i64) + sv.SegmentsPerSubdirectory = ptr.Int32(int32(i64)) } case "streamInfResolution": @@ -14018,7 +14018,7 @@ func awsRestjson1_deserializeDocumentHlsGroupSettings(v **types.HlsGroupSettings if err != nil { return err } - sv.TimedMetadataId3Period = int32(i64) + sv.TimedMetadataId3Period = ptr.Int32(int32(i64)) } case "timestampDeltaMilliseconds": @@ -14031,7 +14031,7 @@ func awsRestjson1_deserializeDocumentHlsGroupSettings(v **types.HlsGroupSettings if err != nil { return err } - sv.TimestampDeltaMilliseconds = int32(i64) + sv.TimestampDeltaMilliseconds = ptr.Int32(int32(i64)) } default: @@ -14084,7 +14084,7 @@ func awsRestjson1_deserializeDocumentHlsImageBasedTrickPlaySettings(v **types.Hl if err != nil { return err } - sv.ThumbnailHeight = int32(i64) + sv.ThumbnailHeight = ptr.Int32(int32(i64)) } case "thumbnailInterval": @@ -14095,7 +14095,7 @@ func awsRestjson1_deserializeDocumentHlsImageBasedTrickPlaySettings(v **types.Hl if err != nil { return err } - sv.ThumbnailInterval = f64 + sv.ThumbnailInterval = ptr.Float64(f64) case string: var f64 float64 @@ -14113,7 +14113,7 @@ func awsRestjson1_deserializeDocumentHlsImageBasedTrickPlaySettings(v **types.Hl return fmt.Errorf("unknown JSON number value: %s", jtv) } - sv.ThumbnailInterval = f64 + sv.ThumbnailInterval = ptr.Float64(f64) default: return fmt.Errorf("expected __doubleMin0Max2147483647 to be a JSON Number, got %T instead", value) @@ -14131,7 +14131,7 @@ func awsRestjson1_deserializeDocumentHlsImageBasedTrickPlaySettings(v **types.Hl if err != nil { return err } - sv.ThumbnailWidth = int32(i64) + sv.ThumbnailWidth = ptr.Int32(int32(i64)) } case "tileHeight": @@ -14144,7 +14144,7 @@ func awsRestjson1_deserializeDocumentHlsImageBasedTrickPlaySettings(v **types.Hl if err != nil { return err } - sv.TileHeight = int32(i64) + sv.TileHeight = ptr.Int32(int32(i64)) } case "tileWidth": @@ -14157,7 +14157,7 @@ func awsRestjson1_deserializeDocumentHlsImageBasedTrickPlaySettings(v **types.Hl if err != nil { return err } - sv.TileWidth = int32(i64) + sv.TileWidth = ptr.Int32(int32(i64)) } default: @@ -14353,7 +14353,7 @@ func awsRestjson1_deserializeDocumentHopDestination(v **types.HopDestination, va if err != nil { return err } - sv.Priority = int32(i64) + sv.Priority = ptr.Int32(int32(i64)) } case "queue": @@ -14375,7 +14375,7 @@ func awsRestjson1_deserializeDocumentHopDestination(v **types.HopDestination, va if err != nil { return err } - sv.WaitMinutes = int32(i64) + sv.WaitMinutes = ptr.Int32(int32(i64)) } default: @@ -14473,7 +14473,7 @@ func awsRestjson1_deserializeDocumentImageInserter(v **types.ImageInserter, valu if err != nil { return err } - sv.SdrReferenceWhiteLevel = int32(i64) + sv.SdrReferenceWhiteLevel = ptr.Int32(int32(i64)) } default: @@ -14650,7 +14650,7 @@ func awsRestjson1_deserializeDocumentInput(v **types.Input, value interface{}) e if err != nil { return err } - sv.FilterStrength = int32(i64) + sv.FilterStrength = ptr.Int32(int32(i64)) } case "imageInserter": @@ -14687,7 +14687,7 @@ func awsRestjson1_deserializeDocumentInput(v **types.Input, value interface{}) e if err != nil { return err } - sv.ProgramNumber = int32(i64) + sv.ProgramNumber = ptr.Int32(int32(i64)) } case "psiControl": @@ -14964,7 +14964,7 @@ func awsRestjson1_deserializeDocumentInputTemplate(v **types.InputTemplate, valu if err != nil { return err } - sv.FilterStrength = int32(i64) + sv.FilterStrength = ptr.Int32(int32(i64)) } case "imageInserter": @@ -15001,7 +15001,7 @@ func awsRestjson1_deserializeDocumentInputTemplate(v **types.InputTemplate, valu if err != nil { return err } - sv.ProgramNumber = int32(i64) + sv.ProgramNumber = ptr.Int32(int32(i64)) } case "psiControl": @@ -15082,7 +15082,7 @@ func awsRestjson1_deserializeDocumentInputVideoGenerator(v **types.InputVideoGen if err != nil { return err } - sv.Duration = int32(i64) + sv.Duration = ptr.Int32(int32(i64)) } default: @@ -15126,7 +15126,7 @@ func awsRestjson1_deserializeDocumentInsertableImage(v **types.InsertableImage, if err != nil { return err } - sv.Duration = int32(i64) + sv.Duration = ptr.Int32(int32(i64)) } case "fadeIn": @@ -15139,7 +15139,7 @@ func awsRestjson1_deserializeDocumentInsertableImage(v **types.InsertableImage, if err != nil { return err } - sv.FadeIn = int32(i64) + sv.FadeIn = ptr.Int32(int32(i64)) } case "fadeOut": @@ -15152,7 +15152,7 @@ func awsRestjson1_deserializeDocumentInsertableImage(v **types.InsertableImage, if err != nil { return err } - sv.FadeOut = int32(i64) + sv.FadeOut = ptr.Int32(int32(i64)) } case "height": @@ -15165,7 +15165,7 @@ func awsRestjson1_deserializeDocumentInsertableImage(v **types.InsertableImage, if err != nil { return err } - sv.Height = int32(i64) + sv.Height = ptr.Int32(int32(i64)) } case "imageInserterInput": @@ -15187,7 +15187,7 @@ func awsRestjson1_deserializeDocumentInsertableImage(v **types.InsertableImage, if err != nil { return err } - sv.ImageX = int32(i64) + sv.ImageX = ptr.Int32(int32(i64)) } case "imageY": @@ -15200,7 +15200,7 @@ func awsRestjson1_deserializeDocumentInsertableImage(v **types.InsertableImage, if err != nil { return err } - sv.ImageY = int32(i64) + sv.ImageY = ptr.Int32(int32(i64)) } case "layer": @@ -15213,7 +15213,7 @@ func awsRestjson1_deserializeDocumentInsertableImage(v **types.InsertableImage, if err != nil { return err } - sv.Layer = int32(i64) + sv.Layer = ptr.Int32(int32(i64)) } case "opacity": @@ -15226,7 +15226,7 @@ func awsRestjson1_deserializeDocumentInsertableImage(v **types.InsertableImage, if err != nil { return err } - sv.Opacity = int32(i64) + sv.Opacity = ptr.Int32(int32(i64)) } case "startTime": @@ -15248,7 +15248,7 @@ func awsRestjson1_deserializeDocumentInsertableImage(v **types.InsertableImage, if err != nil { return err } - sv.Width = int32(i64) + sv.Width = ptr.Int32(int32(i64)) } default: @@ -15398,7 +15398,7 @@ func awsRestjson1_deserializeDocumentJob(v **types.Job, value interface{}) error if err != nil { return err } - sv.ErrorCode = int32(i64) + sv.ErrorCode = ptr.Int32(int32(i64)) } case "errorMessage": @@ -15434,7 +15434,7 @@ func awsRestjson1_deserializeDocumentJob(v **types.Job, value interface{}) error if err != nil { return err } - sv.JobPercentComplete = int32(i64) + sv.JobPercentComplete = ptr.Int32(int32(i64)) } case "jobTemplate": @@ -15466,7 +15466,7 @@ func awsRestjson1_deserializeDocumentJob(v **types.Job, value interface{}) error if err != nil { return err } - sv.Priority = int32(i64) + sv.Priority = ptr.Int32(int32(i64)) } case "queue": @@ -15493,7 +15493,7 @@ func awsRestjson1_deserializeDocumentJob(v **types.Job, value interface{}) error if err != nil { return err } - sv.RetryCount = int32(i64) + sv.RetryCount = ptr.Int32(int32(i64)) } case "role": @@ -15634,7 +15634,7 @@ func awsRestjson1_deserializeDocumentJobSettings(v **types.JobSettings, value in if err != nil { return err } - sv.AdAvailOffset = int32(i64) + sv.AdAvailOffset = ptr.Int32(int32(i64)) } case "availBlanking": @@ -15811,7 +15811,7 @@ func awsRestjson1_deserializeDocumentJobTemplate(v **types.JobTemplate, value in if err != nil { return err } - sv.Priority = int32(i64) + sv.Priority = ptr.Int32(int32(i64)) } case "queue": @@ -15887,7 +15887,7 @@ func awsRestjson1_deserializeDocumentJobTemplateSettings(v **types.JobTemplateSe if err != nil { return err } - sv.AdAvailOffset = int32(i64) + sv.AdAvailOffset = ptr.Int32(int32(i64)) } case "availBlanking": @@ -16011,7 +16011,7 @@ func awsRestjson1_deserializeDocumentKantarWatermarkSettings(v **types.KantarWat if err != nil { return err } - sv.FileOffset = f64 + sv.FileOffset = ptr.Float64(f64) case string: var f64 float64 @@ -16029,7 +16029,7 @@ func awsRestjson1_deserializeDocumentKantarWatermarkSettings(v **types.KantarWat return fmt.Errorf("unknown JSON number value: %s", jtv) } - sv.FileOffset = f64 + sv.FileOffset = ptr.Float64(f64) default: return fmt.Errorf("expected __doubleMin0 to be a JSON Number, got %T instead", value) @@ -16047,7 +16047,7 @@ func awsRestjson1_deserializeDocumentKantarWatermarkSettings(v **types.KantarWat if err != nil { return err } - sv.KantarLicenseId = int32(i64) + sv.KantarLicenseId = ptr.Int32(int32(i64)) } case "kantarServerUrl": @@ -16163,7 +16163,7 @@ func awsRestjson1_deserializeDocumentM2tsScte35Esam(v **types.M2tsScte35Esam, va if err != nil { return err } - sv.Scte35EsamPid = int32(i64) + sv.Scte35EsamPid = ptr.Int32(int32(i64)) } default: @@ -16225,7 +16225,7 @@ func awsRestjson1_deserializeDocumentM2tsSettings(v **types.M2tsSettings, value if err != nil { return err } - sv.AudioFramesPerPes = int32(i64) + sv.AudioFramesPerPes = ptr.Int32(int32(i64)) } case "audioPids": @@ -16243,7 +16243,7 @@ func awsRestjson1_deserializeDocumentM2tsSettings(v **types.M2tsSettings, value if err != nil { return err } - sv.Bitrate = int32(i64) + sv.Bitrate = ptr.Int32(int32(i64)) } case "bufferModel": @@ -16294,7 +16294,7 @@ func awsRestjson1_deserializeDocumentM2tsSettings(v **types.M2tsSettings, value if err != nil { return err } - sv.DvbTeletextPid = int32(i64) + sv.DvbTeletextPid = ptr.Int32(int32(i64)) } case "ebpAudioInterval": @@ -16341,7 +16341,7 @@ func awsRestjson1_deserializeDocumentM2tsSettings(v **types.M2tsSettings, value if err != nil { return err } - sv.FragmentTime = f64 + sv.FragmentTime = ptr.Float64(f64) case string: var f64 float64 @@ -16359,7 +16359,7 @@ func awsRestjson1_deserializeDocumentM2tsSettings(v **types.M2tsSettings, value return fmt.Errorf("unknown JSON number value: %s", jtv) } - sv.FragmentTime = f64 + sv.FragmentTime = ptr.Float64(f64) default: return fmt.Errorf("expected __doubleMin0 to be a JSON Number, got %T instead", value) @@ -16386,7 +16386,7 @@ func awsRestjson1_deserializeDocumentM2tsSettings(v **types.M2tsSettings, value if err != nil { return err } - sv.MaxPcrInterval = int32(i64) + sv.MaxPcrInterval = ptr.Int32(int32(i64)) } case "minEbpInterval": @@ -16399,7 +16399,7 @@ func awsRestjson1_deserializeDocumentM2tsSettings(v **types.M2tsSettings, value if err != nil { return err } - sv.MinEbpInterval = int32(i64) + sv.MinEbpInterval = ptr.Int32(int32(i64)) } case "nielsenId3": @@ -16419,7 +16419,7 @@ func awsRestjson1_deserializeDocumentM2tsSettings(v **types.M2tsSettings, value if err != nil { return err } - sv.NullPacketBitrate = f64 + sv.NullPacketBitrate = ptr.Float64(f64) case string: var f64 float64 @@ -16437,7 +16437,7 @@ func awsRestjson1_deserializeDocumentM2tsSettings(v **types.M2tsSettings, value return fmt.Errorf("unknown JSON number value: %s", jtv) } - sv.NullPacketBitrate = f64 + sv.NullPacketBitrate = ptr.Float64(f64) default: return fmt.Errorf("expected __doubleMin0 to be a JSON Number, got %T instead", value) @@ -16455,7 +16455,7 @@ func awsRestjson1_deserializeDocumentM2tsSettings(v **types.M2tsSettings, value if err != nil { return err } - sv.PatInterval = int32(i64) + sv.PatInterval = ptr.Int32(int32(i64)) } case "pcrControl": @@ -16477,7 +16477,7 @@ func awsRestjson1_deserializeDocumentM2tsSettings(v **types.M2tsSettings, value if err != nil { return err } - sv.PcrPid = int32(i64) + sv.PcrPid = ptr.Int32(int32(i64)) } case "pmtInterval": @@ -16490,7 +16490,7 @@ func awsRestjson1_deserializeDocumentM2tsSettings(v **types.M2tsSettings, value if err != nil { return err } - sv.PmtInterval = int32(i64) + sv.PmtInterval = ptr.Int32(int32(i64)) } case "pmtPid": @@ -16503,7 +16503,7 @@ func awsRestjson1_deserializeDocumentM2tsSettings(v **types.M2tsSettings, value if err != nil { return err } - sv.PmtPid = int32(i64) + sv.PmtPid = ptr.Int32(int32(i64)) } case "privateMetadataPid": @@ -16516,7 +16516,7 @@ func awsRestjson1_deserializeDocumentM2tsSettings(v **types.M2tsSettings, value if err != nil { return err } - sv.PrivateMetadataPid = int32(i64) + sv.PrivateMetadataPid = ptr.Int32(int32(i64)) } case "programNumber": @@ -16529,7 +16529,7 @@ func awsRestjson1_deserializeDocumentM2tsSettings(v **types.M2tsSettings, value if err != nil { return err } - sv.ProgramNumber = int32(i64) + sv.ProgramNumber = ptr.Int32(int32(i64)) } case "ptsOffset": @@ -16542,7 +16542,7 @@ func awsRestjson1_deserializeDocumentM2tsSettings(v **types.M2tsSettings, value if err != nil { return err } - sv.PtsOffset = int32(i64) + sv.PtsOffset = ptr.Int32(int32(i64)) } case "ptsOffsetMode": @@ -16578,7 +16578,7 @@ func awsRestjson1_deserializeDocumentM2tsSettings(v **types.M2tsSettings, value if err != nil { return err } - sv.Scte35Pid = int32(i64) + sv.Scte35Pid = ptr.Int32(int32(i64)) } case "scte35Source": @@ -16616,7 +16616,7 @@ func awsRestjson1_deserializeDocumentM2tsSettings(v **types.M2tsSettings, value if err != nil { return err } - sv.SegmentationTime = f64 + sv.SegmentationTime = ptr.Float64(f64) case string: var f64 float64 @@ -16634,7 +16634,7 @@ func awsRestjson1_deserializeDocumentM2tsSettings(v **types.M2tsSettings, value return fmt.Errorf("unknown JSON number value: %s", jtv) } - sv.SegmentationTime = f64 + sv.SegmentationTime = ptr.Float64(f64) default: return fmt.Errorf("expected __doubleMin0 to be a JSON Number, got %T instead", value) @@ -16652,7 +16652,7 @@ func awsRestjson1_deserializeDocumentM2tsSettings(v **types.M2tsSettings, value if err != nil { return err } - sv.TimedMetadataPid = int32(i64) + sv.TimedMetadataPid = ptr.Int32(int32(i64)) } case "transportStreamId": @@ -16665,7 +16665,7 @@ func awsRestjson1_deserializeDocumentM2tsSettings(v **types.M2tsSettings, value if err != nil { return err } - sv.TransportStreamId = int32(i64) + sv.TransportStreamId = ptr.Int32(int32(i64)) } case "videoPid": @@ -16678,7 +16678,7 @@ func awsRestjson1_deserializeDocumentM2tsSettings(v **types.M2tsSettings, value if err != nil { return err } - sv.VideoPid = int32(i64) + sv.VideoPid = ptr.Int32(int32(i64)) } default: @@ -16731,7 +16731,7 @@ func awsRestjson1_deserializeDocumentM3u8Settings(v **types.M3u8Settings, value if err != nil { return err } - sv.AudioFramesPerPes = int32(i64) + sv.AudioFramesPerPes = ptr.Int32(int32(i64)) } case "audioPids": @@ -16758,7 +16758,7 @@ func awsRestjson1_deserializeDocumentM3u8Settings(v **types.M3u8Settings, value if err != nil { return err } - sv.MaxPcrInterval = int32(i64) + sv.MaxPcrInterval = ptr.Int32(int32(i64)) } case "nielsenId3": @@ -16780,7 +16780,7 @@ func awsRestjson1_deserializeDocumentM3u8Settings(v **types.M3u8Settings, value if err != nil { return err } - sv.PatInterval = int32(i64) + sv.PatInterval = ptr.Int32(int32(i64)) } case "pcrControl": @@ -16802,7 +16802,7 @@ func awsRestjson1_deserializeDocumentM3u8Settings(v **types.M3u8Settings, value if err != nil { return err } - sv.PcrPid = int32(i64) + sv.PcrPid = ptr.Int32(int32(i64)) } case "pmtInterval": @@ -16815,7 +16815,7 @@ func awsRestjson1_deserializeDocumentM3u8Settings(v **types.M3u8Settings, value if err != nil { return err } - sv.PmtInterval = int32(i64) + sv.PmtInterval = ptr.Int32(int32(i64)) } case "pmtPid": @@ -16828,7 +16828,7 @@ func awsRestjson1_deserializeDocumentM3u8Settings(v **types.M3u8Settings, value if err != nil { return err } - sv.PmtPid = int32(i64) + sv.PmtPid = ptr.Int32(int32(i64)) } case "privateMetadataPid": @@ -16841,7 +16841,7 @@ func awsRestjson1_deserializeDocumentM3u8Settings(v **types.M3u8Settings, value if err != nil { return err } - sv.PrivateMetadataPid = int32(i64) + sv.PrivateMetadataPid = ptr.Int32(int32(i64)) } case "programNumber": @@ -16854,7 +16854,7 @@ func awsRestjson1_deserializeDocumentM3u8Settings(v **types.M3u8Settings, value if err != nil { return err } - sv.ProgramNumber = int32(i64) + sv.ProgramNumber = ptr.Int32(int32(i64)) } case "ptsOffset": @@ -16867,7 +16867,7 @@ func awsRestjson1_deserializeDocumentM3u8Settings(v **types.M3u8Settings, value if err != nil { return err } - sv.PtsOffset = int32(i64) + sv.PtsOffset = ptr.Int32(int32(i64)) } case "ptsOffsetMode": @@ -16889,7 +16889,7 @@ func awsRestjson1_deserializeDocumentM3u8Settings(v **types.M3u8Settings, value if err != nil { return err } - sv.Scte35Pid = int32(i64) + sv.Scte35Pid = ptr.Int32(int32(i64)) } case "scte35Source": @@ -16920,7 +16920,7 @@ func awsRestjson1_deserializeDocumentM3u8Settings(v **types.M3u8Settings, value if err != nil { return err } - sv.TimedMetadataPid = int32(i64) + sv.TimedMetadataPid = ptr.Int32(int32(i64)) } case "transportStreamId": @@ -16933,7 +16933,7 @@ func awsRestjson1_deserializeDocumentM3u8Settings(v **types.M3u8Settings, value if err != nil { return err } - sv.TransportStreamId = int32(i64) + sv.TransportStreamId = ptr.Int32(int32(i64)) } case "videoPid": @@ -16946,7 +16946,7 @@ func awsRestjson1_deserializeDocumentM3u8Settings(v **types.M3u8Settings, value if err != nil { return err } - sv.VideoPid = int32(i64) + sv.VideoPid = ptr.Int32(int32(i64)) } default: @@ -16990,7 +16990,7 @@ func awsRestjson1_deserializeDocumentMinBottomRenditionSize(v **types.MinBottomR if err != nil { return err } - sv.Height = int32(i64) + sv.Height = ptr.Int32(int32(i64)) } case "width": @@ -17003,7 +17003,7 @@ func awsRestjson1_deserializeDocumentMinBottomRenditionSize(v **types.MinBottomR if err != nil { return err } - sv.Width = int32(i64) + sv.Width = ptr.Int32(int32(i64)) } default: @@ -17047,7 +17047,7 @@ func awsRestjson1_deserializeDocumentMinTopRenditionSize(v **types.MinTopRenditi if err != nil { return err } - sv.Height = int32(i64) + sv.Height = ptr.Int32(int32(i64)) } case "width": @@ -17060,7 +17060,7 @@ func awsRestjson1_deserializeDocumentMinTopRenditionSize(v **types.MinTopRenditi if err != nil { return err } - sv.Width = int32(i64) + sv.Width = ptr.Int32(int32(i64)) } default: @@ -17181,7 +17181,7 @@ func awsRestjson1_deserializeDocumentMotionImageInsertionFramerate(v **types.Mot if err != nil { return err } - sv.FramerateDenominator = int32(i64) + sv.FramerateDenominator = ptr.Int32(int32(i64)) } case "framerateNumerator": @@ -17194,7 +17194,7 @@ func awsRestjson1_deserializeDocumentMotionImageInsertionFramerate(v **types.Mot if err != nil { return err } - sv.FramerateNumerator = int32(i64) + sv.FramerateNumerator = ptr.Int32(int32(i64)) } default: @@ -17238,7 +17238,7 @@ func awsRestjson1_deserializeDocumentMotionImageInsertionOffset(v **types.Motion if err != nil { return err } - sv.ImageX = int32(i64) + sv.ImageX = ptr.Int32(int32(i64)) } case "imageY": @@ -17251,7 +17251,7 @@ func awsRestjson1_deserializeDocumentMotionImageInsertionOffset(v **types.Motion if err != nil { return err } - sv.ImageY = int32(i64) + sv.ImageY = ptr.Int32(int32(i64)) } default: @@ -17371,7 +17371,7 @@ func awsRestjson1_deserializeDocumentMp2Settings(v **types.Mp2Settings, value in if err != nil { return err } - sv.Bitrate = int32(i64) + sv.Bitrate = ptr.Int32(int32(i64)) } case "channels": @@ -17384,7 +17384,7 @@ func awsRestjson1_deserializeDocumentMp2Settings(v **types.Mp2Settings, value in if err != nil { return err } - sv.Channels = int32(i64) + sv.Channels = ptr.Int32(int32(i64)) } case "sampleRate": @@ -17397,7 +17397,7 @@ func awsRestjson1_deserializeDocumentMp2Settings(v **types.Mp2Settings, value in if err != nil { return err } - sv.SampleRate = int32(i64) + sv.SampleRate = ptr.Int32(int32(i64)) } default: @@ -17441,7 +17441,7 @@ func awsRestjson1_deserializeDocumentMp3Settings(v **types.Mp3Settings, value in if err != nil { return err } - sv.Bitrate = int32(i64) + sv.Bitrate = ptr.Int32(int32(i64)) } case "channels": @@ -17454,7 +17454,7 @@ func awsRestjson1_deserializeDocumentMp3Settings(v **types.Mp3Settings, value in if err != nil { return err } - sv.Channels = int32(i64) + sv.Channels = ptr.Int32(int32(i64)) } case "rateControlMode": @@ -17476,7 +17476,7 @@ func awsRestjson1_deserializeDocumentMp3Settings(v **types.Mp3Settings, value in if err != nil { return err } - sv.SampleRate = int32(i64) + sv.SampleRate = ptr.Int32(int32(i64)) } case "vbrQuality": @@ -17489,7 +17489,7 @@ func awsRestjson1_deserializeDocumentMp3Settings(v **types.Mp3Settings, value in if err != nil { return err } - sv.VbrQuality = int32(i64) + sv.VbrQuality = ptr.Int32(int32(i64)) } default: @@ -17551,7 +17551,7 @@ func awsRestjson1_deserializeDocumentMp4Settings(v **types.Mp4Settings, value in if err != nil { return err } - sv.CttsVersion = int32(i64) + sv.CttsVersion = ptr.Int32(int32(i64)) } case "freeSpaceBox": @@ -17761,7 +17761,7 @@ func awsRestjson1_deserializeDocumentMpeg2Settings(v **types.Mpeg2Settings, valu if err != nil { return err } - sv.Bitrate = int32(i64) + sv.Bitrate = ptr.Int32(int32(i64)) } case "codecLevel": @@ -17819,7 +17819,7 @@ func awsRestjson1_deserializeDocumentMpeg2Settings(v **types.Mpeg2Settings, valu if err != nil { return err } - sv.FramerateDenominator = int32(i64) + sv.FramerateDenominator = ptr.Int32(int32(i64)) } case "framerateNumerator": @@ -17832,7 +17832,7 @@ func awsRestjson1_deserializeDocumentMpeg2Settings(v **types.Mpeg2Settings, valu if err != nil { return err } - sv.FramerateNumerator = int32(i64) + sv.FramerateNumerator = ptr.Int32(int32(i64)) } case "gopClosedCadence": @@ -17845,7 +17845,7 @@ func awsRestjson1_deserializeDocumentMpeg2Settings(v **types.Mpeg2Settings, valu if err != nil { return err } - sv.GopClosedCadence = int32(i64) + sv.GopClosedCadence = ptr.Int32(int32(i64)) } case "gopSize": @@ -17856,7 +17856,7 @@ func awsRestjson1_deserializeDocumentMpeg2Settings(v **types.Mpeg2Settings, valu if err != nil { return err } - sv.GopSize = f64 + sv.GopSize = ptr.Float64(f64) case string: var f64 float64 @@ -17874,7 +17874,7 @@ func awsRestjson1_deserializeDocumentMpeg2Settings(v **types.Mpeg2Settings, valu return fmt.Errorf("unknown JSON number value: %s", jtv) } - sv.GopSize = f64 + sv.GopSize = ptr.Float64(f64) default: return fmt.Errorf("expected __doubleMin0 to be a JSON Number, got %T instead", value) @@ -17901,7 +17901,7 @@ func awsRestjson1_deserializeDocumentMpeg2Settings(v **types.Mpeg2Settings, valu if err != nil { return err } - sv.HrdBufferFinalFillPercentage = int32(i64) + sv.HrdBufferFinalFillPercentage = ptr.Int32(int32(i64)) } case "hrdBufferInitialFillPercentage": @@ -17914,7 +17914,7 @@ func awsRestjson1_deserializeDocumentMpeg2Settings(v **types.Mpeg2Settings, valu if err != nil { return err } - sv.HrdBufferInitialFillPercentage = int32(i64) + sv.HrdBufferInitialFillPercentage = ptr.Int32(int32(i64)) } case "hrdBufferSize": @@ -17927,7 +17927,7 @@ func awsRestjson1_deserializeDocumentMpeg2Settings(v **types.Mpeg2Settings, valu if err != nil { return err } - sv.HrdBufferSize = int32(i64) + sv.HrdBufferSize = ptr.Int32(int32(i64)) } case "interlaceMode": @@ -17958,7 +17958,7 @@ func awsRestjson1_deserializeDocumentMpeg2Settings(v **types.Mpeg2Settings, valu if err != nil { return err } - sv.MaxBitrate = int32(i64) + sv.MaxBitrate = ptr.Int32(int32(i64)) } case "minIInterval": @@ -17971,7 +17971,7 @@ func awsRestjson1_deserializeDocumentMpeg2Settings(v **types.Mpeg2Settings, valu if err != nil { return err } - sv.MinIInterval = int32(i64) + sv.MinIInterval = ptr.Int32(int32(i64)) } case "numberBFramesBetweenReferenceFrames": @@ -17984,7 +17984,7 @@ func awsRestjson1_deserializeDocumentMpeg2Settings(v **types.Mpeg2Settings, valu if err != nil { return err } - sv.NumberBFramesBetweenReferenceFrames = int32(i64) + sv.NumberBFramesBetweenReferenceFrames = ptr.Int32(int32(i64)) } case "parControl": @@ -18006,7 +18006,7 @@ func awsRestjson1_deserializeDocumentMpeg2Settings(v **types.Mpeg2Settings, valu if err != nil { return err } - sv.ParDenominator = int32(i64) + sv.ParDenominator = ptr.Int32(int32(i64)) } case "parNumerator": @@ -18019,7 +18019,7 @@ func awsRestjson1_deserializeDocumentMpeg2Settings(v **types.Mpeg2Settings, valu if err != nil { return err } - sv.ParNumerator = int32(i64) + sv.ParNumerator = ptr.Int32(int32(i64)) } case "qualityTuningLevel": @@ -18077,7 +18077,7 @@ func awsRestjson1_deserializeDocumentMpeg2Settings(v **types.Mpeg2Settings, valu if err != nil { return err } - sv.Softness = int32(i64) + sv.Softness = ptr.Int32(int32(i64)) } case "spatialAdaptiveQuantization": @@ -18271,7 +18271,7 @@ func awsRestjson1_deserializeDocumentMsSmoothGroupSettings(v **types.MsSmoothGro if err != nil { return err } - sv.FragmentLength = int32(i64) + sv.FragmentLength = ptr.Int32(int32(i64)) } case "fragmentLengthControl": @@ -18396,7 +18396,7 @@ func awsRestjson1_deserializeDocumentMxfXavcProfileSettings(v **types.MxfXavcPro if err != nil { return err } - sv.MaxAncDataSize = int32(i64) + sv.MaxAncDataSize = ptr.Int32(int32(i64)) } default: @@ -18449,7 +18449,7 @@ func awsRestjson1_deserializeDocumentNexGuardFileMarkerSettings(v **types.NexGua if err != nil { return err } - sv.Payload = int32(i64) + sv.Payload = ptr.Int32(int32(i64)) } case "preset": @@ -18511,7 +18511,7 @@ func awsRestjson1_deserializeDocumentNielsenConfiguration(v **types.NielsenConfi if err != nil { return err } - sv.BreakoutCode = int32(i64) + sv.BreakoutCode = ptr.Int32(int32(i64)) } case "distributorId": @@ -18627,7 +18627,7 @@ func awsRestjson1_deserializeDocumentNielsenNonLinearWatermarkSettings(v **types if err != nil { return err } - sv.SourceId = int32(i64) + sv.SourceId = ptr.Int32(int32(i64)) } case "sourceWatermarkStatus": @@ -18753,7 +18753,7 @@ func awsRestjson1_deserializeDocumentNoiseReducerFilterSettings(v **types.NoiseR if err != nil { return err } - sv.Strength = int32(i64) + sv.Strength = ptr.Int32(int32(i64)) } default: @@ -18797,7 +18797,7 @@ func awsRestjson1_deserializeDocumentNoiseReducerSpatialFilterSettings(v **types if err != nil { return err } - sv.PostFilterSharpenStrength = int32(i64) + sv.PostFilterSharpenStrength = ptr.Int32(int32(i64)) } case "speed": @@ -18810,7 +18810,7 @@ func awsRestjson1_deserializeDocumentNoiseReducerSpatialFilterSettings(v **types if err != nil { return err } - sv.Speed = int32(i64) + sv.Speed = ptr.Int32(int32(i64)) } case "strength": @@ -18823,7 +18823,7 @@ func awsRestjson1_deserializeDocumentNoiseReducerSpatialFilterSettings(v **types if err != nil { return err } - sv.Strength = int32(i64) + sv.Strength = ptr.Int32(int32(i64)) } default: @@ -18867,7 +18867,7 @@ func awsRestjson1_deserializeDocumentNoiseReducerTemporalFilterSettings(v **type if err != nil { return err } - sv.AggressiveMode = int32(i64) + sv.AggressiveMode = ptr.Int32(int32(i64)) } case "postTemporalSharpening": @@ -18898,7 +18898,7 @@ func awsRestjson1_deserializeDocumentNoiseReducerTemporalFilterSettings(v **type if err != nil { return err } - sv.Speed = int32(i64) + sv.Speed = ptr.Int32(int32(i64)) } case "strength": @@ -18911,7 +18911,7 @@ func awsRestjson1_deserializeDocumentNoiseReducerTemporalFilterSettings(v **type if err != nil { return err } - sv.Strength = int32(i64) + sv.Strength = ptr.Int32(int32(i64)) } default: @@ -18995,7 +18995,7 @@ func awsRestjson1_deserializeDocumentOpusSettings(v **types.OpusSettings, value if err != nil { return err } - sv.Bitrate = int32(i64) + sv.Bitrate = ptr.Int32(int32(i64)) } case "channels": @@ -19008,7 +19008,7 @@ func awsRestjson1_deserializeDocumentOpusSettings(v **types.OpusSettings, value if err != nil { return err } - sv.Channels = int32(i64) + sv.Channels = ptr.Int32(int32(i64)) } case "sampleRate": @@ -19021,7 +19021,7 @@ func awsRestjson1_deserializeDocumentOpusSettings(v **types.OpusSettings, value if err != nil { return err } - sv.SampleRate = int32(i64) + sv.SampleRate = ptr.Int32(int32(i64)) } default: @@ -19189,7 +19189,7 @@ func awsRestjson1_deserializeDocumentOutputDetail(v **types.OutputDetail, value if err != nil { return err } - sv.DurationInMs = int32(i64) + sv.DurationInMs = ptr.Int32(int32(i64)) } case "videoDetails": @@ -19733,7 +19733,7 @@ func awsRestjson1_deserializeDocumentProresSettings(v **types.ProresSettings, va if err != nil { return err } - sv.FramerateDenominator = int32(i64) + sv.FramerateDenominator = ptr.Int32(int32(i64)) } case "framerateNumerator": @@ -19746,7 +19746,7 @@ func awsRestjson1_deserializeDocumentProresSettings(v **types.ProresSettings, va if err != nil { return err } - sv.FramerateNumerator = int32(i64) + sv.FramerateNumerator = ptr.Int32(int32(i64)) } case "interlaceMode": @@ -19777,7 +19777,7 @@ func awsRestjson1_deserializeDocumentProresSettings(v **types.ProresSettings, va if err != nil { return err } - sv.ParDenominator = int32(i64) + sv.ParDenominator = ptr.Int32(int32(i64)) } case "parNumerator": @@ -19790,7 +19790,7 @@ func awsRestjson1_deserializeDocumentProresSettings(v **types.ProresSettings, va if err != nil { return err } - sv.ParNumerator = int32(i64) + sv.ParNumerator = ptr.Int32(int32(i64)) } case "scanTypeConversionMode": @@ -19929,7 +19929,7 @@ func awsRestjson1_deserializeDocumentQueue(v **types.Queue, value interface{}) e if err != nil { return err } - sv.ProgressingJobsCount = int32(i64) + sv.ProgressingJobsCount = ptr.Int32(int32(i64)) } case "reservationPlan": @@ -19956,7 +19956,7 @@ func awsRestjson1_deserializeDocumentQueue(v **types.Queue, value interface{}) e if err != nil { return err } - sv.SubmittedJobsCount = int32(i64) + sv.SubmittedJobsCount = ptr.Int32(int32(i64)) } case "type": @@ -20074,7 +20074,7 @@ func awsRestjson1_deserializeDocumentRectangle(v **types.Rectangle, value interf if err != nil { return err } - sv.Height = int32(i64) + sv.Height = ptr.Int32(int32(i64)) } case "width": @@ -20087,7 +20087,7 @@ func awsRestjson1_deserializeDocumentRectangle(v **types.Rectangle, value interf if err != nil { return err } - sv.Width = int32(i64) + sv.Width = ptr.Int32(int32(i64)) } case "x": @@ -20100,7 +20100,7 @@ func awsRestjson1_deserializeDocumentRectangle(v **types.Rectangle, value interf if err != nil { return err } - sv.X = int32(i64) + sv.X = ptr.Int32(int32(i64)) } case "y": @@ -20113,7 +20113,7 @@ func awsRestjson1_deserializeDocumentRectangle(v **types.Rectangle, value interf if err != nil { return err } - sv.Y = int32(i64) + sv.Y = ptr.Int32(int32(i64)) } default: @@ -20162,7 +20162,7 @@ func awsRestjson1_deserializeDocumentRemixSettings(v **types.RemixSettings, valu if err != nil { return err } - sv.ChannelsIn = int32(i64) + sv.ChannelsIn = ptr.Int32(int32(i64)) } case "channelsOut": @@ -20175,7 +20175,7 @@ func awsRestjson1_deserializeDocumentRemixSettings(v **types.RemixSettings, valu if err != nil { return err } - sv.ChannelsOut = int32(i64) + sv.ChannelsOut = ptr.Int32(int32(i64)) } default: @@ -20269,7 +20269,7 @@ func awsRestjson1_deserializeDocumentReservationPlan(v **types.ReservationPlan, if err != nil { return err } - sv.ReservedSlots = int32(i64) + sv.ReservedSlots = ptr.Int32(int32(i64)) } case "status": @@ -20878,7 +20878,7 @@ func awsRestjson1_deserializeDocumentTimecodeBurnin(v **types.TimecodeBurnin, va if err != nil { return err } - sv.FontSize = int32(i64) + sv.FontSize = ptr.Int32(int32(i64)) } case "position": @@ -21162,7 +21162,7 @@ func awsRestjson1_deserializeDocumentTrackSourceSettings(v **types.TrackSourceSe if err != nil { return err } - sv.TrackNumber = int32(i64) + sv.TrackNumber = ptr.Int32(int32(i64)) } default: @@ -21264,7 +21264,7 @@ func awsRestjson1_deserializeDocumentVc3Settings(v **types.Vc3Settings, value in if err != nil { return err } - sv.FramerateDenominator = int32(i64) + sv.FramerateDenominator = ptr.Int32(int32(i64)) } case "framerateNumerator": @@ -21277,7 +21277,7 @@ func awsRestjson1_deserializeDocumentVc3Settings(v **types.Vc3Settings, value in if err != nil { return err } - sv.FramerateNumerator = int32(i64) + sv.FramerateNumerator = ptr.Int32(int32(i64)) } case "interlaceMode": @@ -21507,7 +21507,7 @@ func awsRestjson1_deserializeDocumentVideoDescription(v **types.VideoDescription if err != nil { return err } - sv.FixedAfd = int32(i64) + sv.FixedAfd = ptr.Int32(int32(i64)) } case "height": @@ -21520,7 +21520,7 @@ func awsRestjson1_deserializeDocumentVideoDescription(v **types.VideoDescription if err != nil { return err } - sv.Height = int32(i64) + sv.Height = ptr.Int32(int32(i64)) } case "position": @@ -21556,7 +21556,7 @@ func awsRestjson1_deserializeDocumentVideoDescription(v **types.VideoDescription if err != nil { return err } - sv.Sharpness = int32(i64) + sv.Sharpness = ptr.Int32(int32(i64)) } case "timecodeInsertion": @@ -21583,7 +21583,7 @@ func awsRestjson1_deserializeDocumentVideoDescription(v **types.VideoDescription if err != nil { return err } - sv.Width = int32(i64) + sv.Width = ptr.Int32(int32(i64)) } default: @@ -21627,7 +21627,7 @@ func awsRestjson1_deserializeDocumentVideoDetail(v **types.VideoDetail, value in if err != nil { return err } - sv.HeightInPx = int32(i64) + sv.HeightInPx = ptr.Int32(int32(i64)) } case "widthInPx": @@ -21640,7 +21640,7 @@ func awsRestjson1_deserializeDocumentVideoDetail(v **types.VideoDetail, value in if err != nil { return err } - sv.WidthInPx = int32(i64) + sv.WidthInPx = ptr.Int32(int32(i64)) } default: @@ -21971,7 +21971,7 @@ func awsRestjson1_deserializeDocumentVideoSelector(v **types.VideoSelector, valu if err != nil { return err } - sv.Pid = int32(i64) + sv.Pid = ptr.Int32(int32(i64)) } case "programNumber": @@ -21984,7 +21984,7 @@ func awsRestjson1_deserializeDocumentVideoSelector(v **types.VideoSelector, valu if err != nil { return err } - sv.ProgramNumber = int32(i64) + sv.ProgramNumber = ptr.Int32(int32(i64)) } case "rotate": @@ -22046,7 +22046,7 @@ func awsRestjson1_deserializeDocumentVorbisSettings(v **types.VorbisSettings, va if err != nil { return err } - sv.Channels = int32(i64) + sv.Channels = ptr.Int32(int32(i64)) } case "sampleRate": @@ -22059,7 +22059,7 @@ func awsRestjson1_deserializeDocumentVorbisSettings(v **types.VorbisSettings, va if err != nil { return err } - sv.SampleRate = int32(i64) + sv.SampleRate = ptr.Int32(int32(i64)) } case "vbrQuality": @@ -22072,7 +22072,7 @@ func awsRestjson1_deserializeDocumentVorbisSettings(v **types.VorbisSettings, va if err != nil { return err } - sv.VbrQuality = int32(i64) + sv.VbrQuality = ptr.Int32(int32(i64)) } default: @@ -22116,7 +22116,7 @@ func awsRestjson1_deserializeDocumentVp8Settings(v **types.Vp8Settings, value in if err != nil { return err } - sv.Bitrate = int32(i64) + sv.Bitrate = ptr.Int32(int32(i64)) } case "framerateControl": @@ -22147,7 +22147,7 @@ func awsRestjson1_deserializeDocumentVp8Settings(v **types.Vp8Settings, value in if err != nil { return err } - sv.FramerateDenominator = int32(i64) + sv.FramerateDenominator = ptr.Int32(int32(i64)) } case "framerateNumerator": @@ -22160,7 +22160,7 @@ func awsRestjson1_deserializeDocumentVp8Settings(v **types.Vp8Settings, value in if err != nil { return err } - sv.FramerateNumerator = int32(i64) + sv.FramerateNumerator = ptr.Int32(int32(i64)) } case "gopSize": @@ -22171,7 +22171,7 @@ func awsRestjson1_deserializeDocumentVp8Settings(v **types.Vp8Settings, value in if err != nil { return err } - sv.GopSize = f64 + sv.GopSize = ptr.Float64(f64) case string: var f64 float64 @@ -22189,7 +22189,7 @@ func awsRestjson1_deserializeDocumentVp8Settings(v **types.Vp8Settings, value in return fmt.Errorf("unknown JSON number value: %s", jtv) } - sv.GopSize = f64 + sv.GopSize = ptr.Float64(f64) default: return fmt.Errorf("expected __doubleMin0 to be a JSON Number, got %T instead", value) @@ -22207,7 +22207,7 @@ func awsRestjson1_deserializeDocumentVp8Settings(v **types.Vp8Settings, value in if err != nil { return err } - sv.HrdBufferSize = int32(i64) + sv.HrdBufferSize = ptr.Int32(int32(i64)) } case "maxBitrate": @@ -22220,7 +22220,7 @@ func awsRestjson1_deserializeDocumentVp8Settings(v **types.Vp8Settings, value in if err != nil { return err } - sv.MaxBitrate = int32(i64) + sv.MaxBitrate = ptr.Int32(int32(i64)) } case "parControl": @@ -22242,7 +22242,7 @@ func awsRestjson1_deserializeDocumentVp8Settings(v **types.Vp8Settings, value in if err != nil { return err } - sv.ParDenominator = int32(i64) + sv.ParDenominator = ptr.Int32(int32(i64)) } case "parNumerator": @@ -22255,7 +22255,7 @@ func awsRestjson1_deserializeDocumentVp8Settings(v **types.Vp8Settings, value in if err != nil { return err } - sv.ParNumerator = int32(i64) + sv.ParNumerator = ptr.Int32(int32(i64)) } case "qualityTuningLevel": @@ -22317,7 +22317,7 @@ func awsRestjson1_deserializeDocumentVp9Settings(v **types.Vp9Settings, value in if err != nil { return err } - sv.Bitrate = int32(i64) + sv.Bitrate = ptr.Int32(int32(i64)) } case "framerateControl": @@ -22348,7 +22348,7 @@ func awsRestjson1_deserializeDocumentVp9Settings(v **types.Vp9Settings, value in if err != nil { return err } - sv.FramerateDenominator = int32(i64) + sv.FramerateDenominator = ptr.Int32(int32(i64)) } case "framerateNumerator": @@ -22361,7 +22361,7 @@ func awsRestjson1_deserializeDocumentVp9Settings(v **types.Vp9Settings, value in if err != nil { return err } - sv.FramerateNumerator = int32(i64) + sv.FramerateNumerator = ptr.Int32(int32(i64)) } case "gopSize": @@ -22372,7 +22372,7 @@ func awsRestjson1_deserializeDocumentVp9Settings(v **types.Vp9Settings, value in if err != nil { return err } - sv.GopSize = f64 + sv.GopSize = ptr.Float64(f64) case string: var f64 float64 @@ -22390,7 +22390,7 @@ func awsRestjson1_deserializeDocumentVp9Settings(v **types.Vp9Settings, value in return fmt.Errorf("unknown JSON number value: %s", jtv) } - sv.GopSize = f64 + sv.GopSize = ptr.Float64(f64) default: return fmt.Errorf("expected __doubleMin0 to be a JSON Number, got %T instead", value) @@ -22408,7 +22408,7 @@ func awsRestjson1_deserializeDocumentVp9Settings(v **types.Vp9Settings, value in if err != nil { return err } - sv.HrdBufferSize = int32(i64) + sv.HrdBufferSize = ptr.Int32(int32(i64)) } case "maxBitrate": @@ -22421,7 +22421,7 @@ func awsRestjson1_deserializeDocumentVp9Settings(v **types.Vp9Settings, value in if err != nil { return err } - sv.MaxBitrate = int32(i64) + sv.MaxBitrate = ptr.Int32(int32(i64)) } case "parControl": @@ -22443,7 +22443,7 @@ func awsRestjson1_deserializeDocumentVp9Settings(v **types.Vp9Settings, value in if err != nil { return err } - sv.ParDenominator = int32(i64) + sv.ParDenominator = ptr.Int32(int32(i64)) } case "parNumerator": @@ -22456,7 +22456,7 @@ func awsRestjson1_deserializeDocumentVp9Settings(v **types.Vp9Settings, value in if err != nil { return err } - sv.ParNumerator = int32(i64) + sv.ParNumerator = ptr.Int32(int32(i64)) } case "qualityTuningLevel": @@ -22518,7 +22518,7 @@ func awsRestjson1_deserializeDocumentWarningGroup(v **types.WarningGroup, value if err != nil { return err } - sv.Code = int32(i64) + sv.Code = ptr.Int32(int32(i64)) } case "count": @@ -22531,7 +22531,7 @@ func awsRestjson1_deserializeDocumentWarningGroup(v **types.WarningGroup, value if err != nil { return err } - sv.Count = int32(i64) + sv.Count = ptr.Int32(int32(i64)) } default: @@ -22575,7 +22575,7 @@ func awsRestjson1_deserializeDocumentWavSettings(v **types.WavSettings, value in if err != nil { return err } - sv.BitDepth = int32(i64) + sv.BitDepth = ptr.Int32(int32(i64)) } case "channels": @@ -22588,7 +22588,7 @@ func awsRestjson1_deserializeDocumentWavSettings(v **types.WavSettings, value in if err != nil { return err } - sv.Channels = int32(i64) + sv.Channels = ptr.Int32(int32(i64)) } case "format": @@ -22610,7 +22610,7 @@ func awsRestjson1_deserializeDocumentWavSettings(v **types.WavSettings, value in if err != nil { return err } - sv.SampleRate = int32(i64) + sv.SampleRate = ptr.Int32(int32(i64)) } default: @@ -22877,7 +22877,7 @@ func awsRestjson1_deserializeDocumentXavc4kProfileSettings(v **types.Xavc4kProfi if err != nil { return err } - sv.GopClosedCadence = int32(i64) + sv.GopClosedCadence = ptr.Int32(int32(i64)) } case "hrdBufferSize": @@ -22890,7 +22890,7 @@ func awsRestjson1_deserializeDocumentXavc4kProfileSettings(v **types.Xavc4kProfi if err != nil { return err } - sv.HrdBufferSize = int32(i64) + sv.HrdBufferSize = ptr.Int32(int32(i64)) } case "qualityTuningLevel": @@ -22912,7 +22912,7 @@ func awsRestjson1_deserializeDocumentXavc4kProfileSettings(v **types.Xavc4kProfi if err != nil { return err } - sv.Slices = int32(i64) + sv.Slices = ptr.Int32(int32(i64)) } default: @@ -23023,7 +23023,7 @@ func awsRestjson1_deserializeDocumentXavcHdProfileSettings(v **types.XavcHdProfi if err != nil { return err } - sv.GopClosedCadence = int32(i64) + sv.GopClosedCadence = ptr.Int32(int32(i64)) } case "hrdBufferSize": @@ -23036,7 +23036,7 @@ func awsRestjson1_deserializeDocumentXavcHdProfileSettings(v **types.XavcHdProfi if err != nil { return err } - sv.HrdBufferSize = int32(i64) + sv.HrdBufferSize = ptr.Int32(int32(i64)) } case "interlaceMode": @@ -23067,7 +23067,7 @@ func awsRestjson1_deserializeDocumentXavcHdProfileSettings(v **types.XavcHdProfi if err != nil { return err } - sv.Slices = int32(i64) + sv.Slices = ptr.Int32(int32(i64)) } case "telecine": @@ -23156,7 +23156,7 @@ func awsRestjson1_deserializeDocumentXavcSettings(v **types.XavcSettings, value if err != nil { return err } - sv.FramerateDenominator = int32(i64) + sv.FramerateDenominator = ptr.Int32(int32(i64)) } case "framerateNumerator": @@ -23169,7 +23169,7 @@ func awsRestjson1_deserializeDocumentXavcSettings(v **types.XavcSettings, value if err != nil { return err } - sv.FramerateNumerator = int32(i64) + sv.FramerateNumerator = ptr.Int32(int32(i64)) } case "profile": @@ -23200,7 +23200,7 @@ func awsRestjson1_deserializeDocumentXavcSettings(v **types.XavcSettings, value if err != nil { return err } - sv.Softness = int32(i64) + sv.Softness = ptr.Int32(int32(i64)) } case "spatialAdaptiveQuantization": diff --git a/service/mediaconvert/serializers.go b/service/mediaconvert/serializers.go index 7e12760737d..79a6f284208 100644 --- a/service/mediaconvert/serializers.go +++ b/service/mediaconvert/serializers.go @@ -251,9 +251,9 @@ func awsRestjson1_serializeOpDocumentCreateJobInput(v *CreateJobInput, value smi ok.String(*v.JobTemplate) } - if v.Priority != 0 { + if v.Priority != nil { ok := object.Key("priority") - ok.Integer(v.Priority) + ok.Integer(*v.Priority) } if v.Queue != nil { @@ -396,9 +396,9 @@ func awsRestjson1_serializeOpDocumentCreateJobTemplateInput(v *CreateJobTemplate ok.String(*v.Name) } - if v.Priority != 0 { + if v.Priority != nil { ok := object.Key("priority") - ok.Integer(v.Priority) + ok.Integer(*v.Priority) } if v.Queue != nil { @@ -945,9 +945,9 @@ func awsRestjson1_serializeOpDocumentDescribeEndpointsInput(v *DescribeEndpoints object := value.Object() defer object.Close() - if v.MaxResults != 0 { + if v.MaxResults != nil { ok := object.Key("maxResults") - ok.Integer(v.MaxResults) + ok.Integer(*v.MaxResults) } if len(v.Mode) > 0 { @@ -1393,8 +1393,8 @@ func awsRestjson1_serializeOpHttpBindingsListJobsInput(v *ListJobsInput, encoder return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.MaxResults != 0 { - encoder.SetQuery("maxResults").Integer(v.MaxResults) + if v.MaxResults != nil { + encoder.SetQuery("maxResults").Integer(*v.MaxResults) } if v.NextToken != nil { @@ -1477,8 +1477,8 @@ func awsRestjson1_serializeOpHttpBindingsListJobTemplatesInput(v *ListJobTemplat encoder.SetQuery("listBy").String(string(v.ListBy)) } - if v.MaxResults != 0 { - encoder.SetQuery("maxResults").Integer(v.MaxResults) + if v.MaxResults != nil { + encoder.SetQuery("maxResults").Integer(*v.MaxResults) } if v.NextToken != nil { @@ -1553,8 +1553,8 @@ func awsRestjson1_serializeOpHttpBindingsListPresetsInput(v *ListPresetsInput, e encoder.SetQuery("listBy").String(string(v.ListBy)) } - if v.MaxResults != 0 { - encoder.SetQuery("maxResults").Integer(v.MaxResults) + if v.MaxResults != nil { + encoder.SetQuery("maxResults").Integer(*v.MaxResults) } if v.NextToken != nil { @@ -1625,8 +1625,8 @@ func awsRestjson1_serializeOpHttpBindingsListQueuesInput(v *ListQueuesInput, enc encoder.SetQuery("listBy").String(string(v.ListBy)) } - if v.MaxResults != 0 { - encoder.SetQuery("maxResults").Integer(v.MaxResults) + if v.MaxResults != nil { + encoder.SetQuery("maxResults").Integer(*v.MaxResults) } if v.NextToken != nil { @@ -2058,9 +2058,9 @@ func awsRestjson1_serializeOpDocumentUpdateJobTemplateInput(v *UpdateJobTemplate } } - if v.Priority != 0 { + if v.Priority != nil { ok := object.Key("priority") - ok.Integer(v.Priority) + ok.Integer(*v.Priority) } if v.Queue != nil { @@ -2765,9 +2765,9 @@ func awsRestjson1_serializeDocumentAacSettings(v *types.AacSettings, value smith ok.String(string(v.AudioDescriptionBroadcasterMix)) } - if v.Bitrate != 0 { + if v.Bitrate != nil { ok := object.Key("bitrate") - ok.Integer(v.Bitrate) + ok.Integer(*v.Bitrate) } if len(v.CodecProfile) > 0 { @@ -2790,9 +2790,9 @@ func awsRestjson1_serializeDocumentAacSettings(v *types.AacSettings, value smith ok.String(string(v.RawFormat)) } - if v.SampleRate != 0 { + if v.SampleRate != nil { ok := object.Key("sampleRate") - ok.Integer(v.SampleRate) + ok.Integer(*v.SampleRate) } if len(v.Specification) > 0 { @@ -2812,9 +2812,9 @@ func awsRestjson1_serializeDocumentAc3Settings(v *types.Ac3Settings, value smith object := value.Object() defer object.Close() - if v.Bitrate != 0 { + if v.Bitrate != nil { ok := object.Key("bitrate") - ok.Integer(v.Bitrate) + ok.Integer(*v.Bitrate) } if len(v.BitstreamMode) > 0 { @@ -2827,9 +2827,9 @@ func awsRestjson1_serializeDocumentAc3Settings(v *types.Ac3Settings, value smith ok.String(string(v.CodingMode)) } - if v.Dialnorm != 0 { + if v.Dialnorm != nil { ok := object.Key("dialnorm") - ok.Integer(v.Dialnorm) + ok.Integer(*v.Dialnorm) } if len(v.DynamicRangeCompressionLine) > 0 { @@ -2857,9 +2857,9 @@ func awsRestjson1_serializeDocumentAc3Settings(v *types.Ac3Settings, value smith ok.String(string(v.MetadataControl)) } - if v.SampleRate != 0 { + if v.SampleRate != nil { ok := object.Key("sampleRate") - ok.Integer(v.SampleRate) + ok.Integer(*v.SampleRate) } return nil @@ -2898,19 +2898,19 @@ func awsRestjson1_serializeDocumentAiffSettings(v *types.AiffSettings, value smi object := value.Object() defer object.Close() - if v.BitDepth != 0 { + if v.BitDepth != nil { ok := object.Key("bitDepth") - ok.Integer(v.BitDepth) + ok.Integer(*v.BitDepth) } - if v.Channels != 0 { + if v.Channels != nil { ok := object.Key("channels") - ok.Integer(v.Channels) + ok.Integer(*v.Channels) } - if v.SampleRate != 0 { + if v.SampleRate != nil { ok := object.Key("sampleRate") - ok.Integer(v.SampleRate) + ok.Integer(*v.SampleRate) } return nil @@ -2920,9 +2920,9 @@ func awsRestjson1_serializeDocumentAllowedRenditionSize(v *types.AllowedRenditio object := value.Object() defer object.Close() - if v.Height != 0 { + if v.Height != nil { ok := object.Key("height") - ok.Integer(v.Height) + ok.Integer(*v.Height) } if len(v.Required) > 0 { @@ -2930,9 +2930,9 @@ func awsRestjson1_serializeDocumentAllowedRenditionSize(v *types.AllowedRenditio ok.String(string(v.Required)) } - if v.Width != 0 { + if v.Width != nil { ok := object.Key("width") - ok.Integer(v.Width) + ok.Integer(*v.Width) } return nil @@ -2947,9 +2947,9 @@ func awsRestjson1_serializeDocumentAncillarySourceSettings(v *types.AncillarySou ok.String(string(v.Convert608To708)) } - if v.SourceAncillaryChannelNumber != 0 { + if v.SourceAncillaryChannelNumber != nil { ok := object.Key("sourceAncillaryChannelNumber") - ok.Integer(v.SourceAncillaryChannelNumber) + ok.Integer(*v.SourceAncillaryChannelNumber) } if len(v.TerminateCaptions) > 0 { @@ -3084,9 +3084,9 @@ func awsRestjson1_serializeDocumentAudioDescription(v *types.AudioDescription, v ok.String(*v.AudioSourceName) } - if v.AudioType != 0 { + if v.AudioType != nil { ok := object.Key("audioType") - ok.Integer(v.AudioType) + ok.Integer(*v.AudioType) } if len(v.AudioTypeControl) > 0 { @@ -3145,9 +3145,9 @@ func awsRestjson1_serializeDocumentAudioNormalizationSettings(v *types.AudioNorm ok.String(string(v.AlgorithmControl)) } - if v.CorrectionGateLevel != 0 { + if v.CorrectionGateLevel != nil { ok := object.Key("correctionGateLevel") - ok.Integer(v.CorrectionGateLevel) + ok.Integer(*v.CorrectionGateLevel) } if len(v.LoudnessLogging) > 0 { @@ -3160,38 +3160,38 @@ func awsRestjson1_serializeDocumentAudioNormalizationSettings(v *types.AudioNorm ok.String(string(v.PeakCalculation)) } - if v.TargetLkfs != 0 { + if v.TargetLkfs != nil { ok := object.Key("targetLkfs") switch { - case math.IsNaN(v.TargetLkfs): + case math.IsNaN(*v.TargetLkfs): ok.String("NaN") - case math.IsInf(v.TargetLkfs, 1): + case math.IsInf(*v.TargetLkfs, 1): ok.String("Infinity") - case math.IsInf(v.TargetLkfs, -1): + case math.IsInf(*v.TargetLkfs, -1): ok.String("-Infinity") default: - ok.Double(v.TargetLkfs) + ok.Double(*v.TargetLkfs) } } - if v.TruePeakLimiterThreshold != 0 { + if v.TruePeakLimiterThreshold != nil { ok := object.Key("truePeakLimiterThreshold") switch { - case math.IsNaN(v.TruePeakLimiterThreshold): + case math.IsNaN(*v.TruePeakLimiterThreshold): ok.String("NaN") - case math.IsInf(v.TruePeakLimiterThreshold, 1): + case math.IsInf(*v.TruePeakLimiterThreshold, 1): ok.String("Infinity") - case math.IsInf(v.TruePeakLimiterThreshold, -1): + case math.IsInf(*v.TruePeakLimiterThreshold, -1): ok.String("-Infinity") default: - ok.Double(v.TruePeakLimiterThreshold) + ok.Double(*v.TruePeakLimiterThreshold) } } @@ -3235,9 +3235,9 @@ func awsRestjson1_serializeDocumentAudioSelector(v *types.AudioSelector, value s ok.String(string(v.LanguageCode)) } - if v.Offset != 0 { + if v.Offset != nil { ok := object.Key("offset") - ok.Integer(v.Offset) + ok.Integer(*v.Offset) } if v.Pids != nil { @@ -3247,9 +3247,9 @@ func awsRestjson1_serializeDocumentAudioSelector(v *types.AudioSelector, value s } } - if v.ProgramSelection != 0 { + if v.ProgramSelection != nil { ok := object.Key("programSelection") - ok.Integer(v.ProgramSelection) + ok.Integer(*v.ProgramSelection) } if v.RemixSettings != nil { @@ -3332,19 +3332,19 @@ func awsRestjson1_serializeDocumentAutomatedAbrSettings(v *types.AutomatedAbrSet object := value.Object() defer object.Close() - if v.MaxAbrBitrate != 0 { + if v.MaxAbrBitrate != nil { ok := object.Key("maxAbrBitrate") - ok.Integer(v.MaxAbrBitrate) + ok.Integer(*v.MaxAbrBitrate) } - if v.MaxRenditions != 0 { + if v.MaxRenditions != nil { ok := object.Key("maxRenditions") - ok.Integer(v.MaxRenditions) + ok.Integer(*v.MaxRenditions) } - if v.MinAbrBitrate != 0 { + if v.MinAbrBitrate != nil { ok := object.Key("minAbrBitrate") - ok.Integer(v.MinAbrBitrate) + ok.Integer(*v.MinAbrBitrate) } if v.Rules != nil { @@ -3375,25 +3375,25 @@ func awsRestjson1_serializeDocumentAv1QvbrSettings(v *types.Av1QvbrSettings, val object := value.Object() defer object.Close() - if v.QvbrQualityLevel != 0 { + if v.QvbrQualityLevel != nil { ok := object.Key("qvbrQualityLevel") - ok.Integer(v.QvbrQualityLevel) + ok.Integer(*v.QvbrQualityLevel) } - if v.QvbrQualityLevelFineTune != 0 { + if v.QvbrQualityLevelFineTune != nil { ok := object.Key("qvbrQualityLevelFineTune") switch { - case math.IsNaN(v.QvbrQualityLevelFineTune): + case math.IsNaN(*v.QvbrQualityLevelFineTune): ok.String("NaN") - case math.IsInf(v.QvbrQualityLevelFineTune, 1): + case math.IsInf(*v.QvbrQualityLevelFineTune, 1): ok.String("Infinity") - case math.IsInf(v.QvbrQualityLevelFineTune, -1): + case math.IsInf(*v.QvbrQualityLevelFineTune, -1): ok.String("-Infinity") default: - ok.Double(v.QvbrQualityLevelFineTune) + ok.Double(*v.QvbrQualityLevelFineTune) } } @@ -3430,42 +3430,42 @@ func awsRestjson1_serializeDocumentAv1Settings(v *types.Av1Settings, value smith ok.String(string(v.FramerateConversionAlgorithm)) } - if v.FramerateDenominator != 0 { + if v.FramerateDenominator != nil { ok := object.Key("framerateDenominator") - ok.Integer(v.FramerateDenominator) + ok.Integer(*v.FramerateDenominator) } - if v.FramerateNumerator != 0 { + if v.FramerateNumerator != nil { ok := object.Key("framerateNumerator") - ok.Integer(v.FramerateNumerator) + ok.Integer(*v.FramerateNumerator) } - if v.GopSize != 0 { + if v.GopSize != nil { ok := object.Key("gopSize") switch { - case math.IsNaN(v.GopSize): + case math.IsNaN(*v.GopSize): ok.String("NaN") - case math.IsInf(v.GopSize, 1): + case math.IsInf(*v.GopSize, 1): ok.String("Infinity") - case math.IsInf(v.GopSize, -1): + case math.IsInf(*v.GopSize, -1): ok.String("-Infinity") default: - ok.Double(v.GopSize) + ok.Double(*v.GopSize) } } - if v.MaxBitrate != 0 { + if v.MaxBitrate != nil { ok := object.Key("maxBitrate") - ok.Integer(v.MaxBitrate) + ok.Integer(*v.MaxBitrate) } - if v.NumberBFramesBetweenReferenceFrames != 0 { + if v.NumberBFramesBetweenReferenceFrames != nil { ok := object.Key("numberBFramesBetweenReferenceFrames") - ok.Integer(v.NumberBFramesBetweenReferenceFrames) + ok.Integer(*v.NumberBFramesBetweenReferenceFrames) } if v.QvbrSettings != nil { @@ -3480,9 +3480,9 @@ func awsRestjson1_serializeDocumentAv1Settings(v *types.Av1Settings, value smith ok.String(string(v.RateControlMode)) } - if v.Slices != 0 { + if v.Slices != nil { ok := object.Key("slices") - ok.Integer(v.Slices) + ok.Integer(*v.Slices) } if len(v.SpatialAdaptiveQuantization) > 0 { @@ -3531,14 +3531,14 @@ func awsRestjson1_serializeDocumentAvcIntraSettings(v *types.AvcIntraSettings, v ok.String(string(v.FramerateConversionAlgorithm)) } - if v.FramerateDenominator != 0 { + if v.FramerateDenominator != nil { ok := object.Key("framerateDenominator") - ok.Integer(v.FramerateDenominator) + ok.Integer(*v.FramerateDenominator) } - if v.FramerateNumerator != 0 { + if v.FramerateNumerator != nil { ok := object.Key("framerateNumerator") - ok.Integer(v.FramerateNumerator) + ok.Integer(*v.FramerateNumerator) } if len(v.InterlaceMode) > 0 { @@ -3612,9 +3612,9 @@ func awsRestjson1_serializeDocumentBurninDestinationSettings(v *types.BurninDest ok.String(string(v.BackgroundColor)) } - if v.BackgroundOpacity != 0 { + if v.BackgroundOpacity != nil { ok := object.Key("backgroundOpacity") - ok.Integer(v.BackgroundOpacity) + ok.Integer(*v.BackgroundOpacity) } if len(v.FallbackFont) > 0 { @@ -3627,14 +3627,14 @@ func awsRestjson1_serializeDocumentBurninDestinationSettings(v *types.BurninDest ok.String(string(v.FontColor)) } - if v.FontOpacity != 0 { + if v.FontOpacity != nil { ok := object.Key("fontOpacity") - ok.Integer(v.FontOpacity) + ok.Integer(*v.FontOpacity) } - if v.FontResolution != 0 { + if v.FontResolution != nil { ok := object.Key("fontResolution") - ok.Integer(v.FontResolution) + ok.Integer(*v.FontResolution) } if len(v.FontScript) > 0 { @@ -3642,9 +3642,9 @@ func awsRestjson1_serializeDocumentBurninDestinationSettings(v *types.BurninDest ok.String(string(v.FontScript)) } - if v.FontSize != 0 { + if v.FontSize != nil { ok := object.Key("fontSize") - ok.Integer(v.FontSize) + ok.Integer(*v.FontSize) } if v.HexFontColor != nil { @@ -3657,9 +3657,9 @@ func awsRestjson1_serializeDocumentBurninDestinationSettings(v *types.BurninDest ok.String(string(v.OutlineColor)) } - if v.OutlineSize != 0 { + if v.OutlineSize != nil { ok := object.Key("outlineSize") - ok.Integer(v.OutlineSize) + ok.Integer(*v.OutlineSize) } if len(v.ShadowColor) > 0 { @@ -3667,19 +3667,19 @@ func awsRestjson1_serializeDocumentBurninDestinationSettings(v *types.BurninDest ok.String(string(v.ShadowColor)) } - if v.ShadowOpacity != 0 { + if v.ShadowOpacity != nil { ok := object.Key("shadowOpacity") - ok.Integer(v.ShadowOpacity) + ok.Integer(*v.ShadowOpacity) } - if v.ShadowXOffset != 0 { + if v.ShadowXOffset != nil { ok := object.Key("shadowXOffset") - ok.Integer(v.ShadowXOffset) + ok.Integer(*v.ShadowXOffset) } - if v.ShadowYOffset != 0 { + if v.ShadowYOffset != nil { ok := object.Key("shadowYOffset") - ok.Integer(v.ShadowYOffset) + ok.Integer(*v.ShadowYOffset) } if len(v.StylePassthrough) > 0 { @@ -3692,14 +3692,14 @@ func awsRestjson1_serializeDocumentBurninDestinationSettings(v *types.BurninDest ok.String(string(v.TeletextSpacing)) } - if v.XPosition != 0 { + if v.XPosition != nil { ok := object.Key("xPosition") - ok.Integer(v.XPosition) + ok.Integer(*v.XPosition) } - if v.YPosition != 0 { + if v.YPosition != nil { ok := object.Key("yPosition") - ok.Integer(v.YPosition) + ok.Integer(*v.YPosition) } return nil @@ -3871,14 +3871,14 @@ func awsRestjson1_serializeDocumentCaptionSourceFramerate(v *types.CaptionSource object := value.Object() defer object.Close() - if v.FramerateDenominator != 0 { + if v.FramerateDenominator != nil { ok := object.Key("framerateDenominator") - ok.Integer(v.FramerateDenominator) + ok.Integer(*v.FramerateDenominator) } - if v.FramerateNumerator != 0 { + if v.FramerateNumerator != nil { ok := object.Key("framerateNumerator") - ok.Integer(v.FramerateNumerator) + ok.Integer(*v.FramerateNumerator) } return nil @@ -3963,24 +3963,24 @@ func awsRestjson1_serializeDocumentClipLimits(v *types.ClipLimits, value smithyj object := value.Object() defer object.Close() - if v.MaximumRGBTolerance != 0 { + if v.MaximumRGBTolerance != nil { ok := object.Key("maximumRGBTolerance") - ok.Integer(v.MaximumRGBTolerance) + ok.Integer(*v.MaximumRGBTolerance) } - if v.MaximumYUV != 0 { + if v.MaximumYUV != nil { ok := object.Key("maximumYUV") - ok.Integer(v.MaximumYUV) + ok.Integer(*v.MaximumYUV) } - if v.MinimumRGBTolerance != 0 { + if v.MinimumRGBTolerance != nil { ok := object.Key("minimumRGBTolerance") - ok.Integer(v.MinimumRGBTolerance) + ok.Integer(*v.MinimumRGBTolerance) } - if v.MinimumYUV != 0 { + if v.MinimumYUV != nil { ok := object.Key("minimumYUV") - ok.Integer(v.MinimumYUV) + ok.Integer(*v.MinimumYUV) } return nil @@ -4096,9 +4096,9 @@ func awsRestjson1_serializeDocumentCmafGroupSettings(v *types.CmafGroupSettings, } } - if v.FragmentLength != 0 { + if v.FragmentLength != nil { ok := object.Key("fragmentLength") - ok.Integer(v.FragmentLength) + ok.Integer(*v.FragmentLength) } if len(v.ImageBasedTrickPlay) > 0 { @@ -4123,25 +4123,25 @@ func awsRestjson1_serializeDocumentCmafGroupSettings(v *types.CmafGroupSettings, ok.String(string(v.ManifestDurationFormat)) } - if v.MinBufferTime != 0 { + if v.MinBufferTime != nil { ok := object.Key("minBufferTime") - ok.Integer(v.MinBufferTime) + ok.Integer(*v.MinBufferTime) } - if v.MinFinalSegmentLength != 0 { + if v.MinFinalSegmentLength != nil { ok := object.Key("minFinalSegmentLength") switch { - case math.IsNaN(v.MinFinalSegmentLength): + case math.IsNaN(*v.MinFinalSegmentLength): ok.String("NaN") - case math.IsInf(v.MinFinalSegmentLength, 1): + case math.IsInf(*v.MinFinalSegmentLength, 1): ok.String("Infinity") - case math.IsInf(v.MinFinalSegmentLength, -1): + case math.IsInf(*v.MinFinalSegmentLength, -1): ok.String("-Infinity") default: - ok.Double(v.MinFinalSegmentLength) + ok.Double(*v.MinFinalSegmentLength) } } @@ -4166,9 +4166,9 @@ func awsRestjson1_serializeDocumentCmafGroupSettings(v *types.CmafGroupSettings, ok.String(string(v.SegmentControl)) } - if v.SegmentLength != 0 { + if v.SegmentLength != nil { ok := object.Key("segmentLength") - ok.Integer(v.SegmentLength) + ok.Integer(*v.SegmentLength) } if len(v.SegmentLengthControl) > 0 { @@ -4218,42 +4218,42 @@ func awsRestjson1_serializeDocumentCmafImageBasedTrickPlaySettings(v *types.Cmaf ok.String(string(v.IntervalCadence)) } - if v.ThumbnailHeight != 0 { + if v.ThumbnailHeight != nil { ok := object.Key("thumbnailHeight") - ok.Integer(v.ThumbnailHeight) + ok.Integer(*v.ThumbnailHeight) } - if v.ThumbnailInterval != 0 { + if v.ThumbnailInterval != nil { ok := object.Key("thumbnailInterval") switch { - case math.IsNaN(v.ThumbnailInterval): + case math.IsNaN(*v.ThumbnailInterval): ok.String("NaN") - case math.IsInf(v.ThumbnailInterval, 1): + case math.IsInf(*v.ThumbnailInterval, 1): ok.String("Infinity") - case math.IsInf(v.ThumbnailInterval, -1): + case math.IsInf(*v.ThumbnailInterval, -1): ok.String("-Infinity") default: - ok.Double(v.ThumbnailInterval) + ok.Double(*v.ThumbnailInterval) } } - if v.ThumbnailWidth != 0 { + if v.ThumbnailWidth != nil { ok := object.Key("thumbnailWidth") - ok.Integer(v.ThumbnailWidth) + ok.Integer(*v.ThumbnailWidth) } - if v.TileHeight != 0 { + if v.TileHeight != nil { ok := object.Key("tileHeight") - ok.Integer(v.TileHeight) + ok.Integer(*v.TileHeight) } - if v.TileWidth != 0 { + if v.TileWidth != nil { ok := object.Key("tileWidth") - ok.Integer(v.TileWidth) + ok.Integer(*v.TileWidth) } return nil @@ -4340,9 +4340,9 @@ func awsRestjson1_serializeDocumentColorCorrector(v *types.ColorCorrector, value object := value.Object() defer object.Close() - if v.Brightness != 0 { + if v.Brightness != nil { ok := object.Key("brightness") - ok.Integer(v.Brightness) + ok.Integer(*v.Brightness) } if v.ClipLimits != nil { @@ -4357,9 +4357,9 @@ func awsRestjson1_serializeDocumentColorCorrector(v *types.ColorCorrector, value ok.String(string(v.ColorSpaceConversion)) } - if v.Contrast != 0 { + if v.Contrast != nil { ok := object.Key("contrast") - ok.Integer(v.Contrast) + ok.Integer(*v.Contrast) } if v.Hdr10Metadata != nil { @@ -4374,9 +4374,9 @@ func awsRestjson1_serializeDocumentColorCorrector(v *types.ColorCorrector, value ok.String(string(v.HdrToSdrToneMapper)) } - if v.Hue != 0 { + if v.Hue != nil { ok := object.Key("hue") - ok.Integer(v.Hue) + ok.Integer(*v.Hue) } if len(v.SampleRangeConversion) > 0 { @@ -4384,14 +4384,14 @@ func awsRestjson1_serializeDocumentColorCorrector(v *types.ColorCorrector, value ok.String(string(v.SampleRangeConversion)) } - if v.Saturation != 0 { + if v.Saturation != nil { ok := object.Key("saturation") - ok.Integer(v.Saturation) + ok.Integer(*v.Saturation) } - if v.SdrReferenceWhiteLevel != 0 { + if v.SdrReferenceWhiteLevel != nil { ok := object.Key("sdrReferenceWhiteLevel") - ok.Integer(v.SdrReferenceWhiteLevel) + ok.Integer(*v.SdrReferenceWhiteLevel) } return nil @@ -4548,9 +4548,9 @@ func awsRestjson1_serializeDocumentDashIsoGroupSettings(v *types.DashIsoGroupSet } } - if v.FragmentLength != 0 { + if v.FragmentLength != nil { ok := object.Key("fragmentLength") - ok.Integer(v.FragmentLength) + ok.Integer(*v.FragmentLength) } if len(v.HbbtvCompliance) > 0 { @@ -4570,25 +4570,25 @@ func awsRestjson1_serializeDocumentDashIsoGroupSettings(v *types.DashIsoGroupSet } } - if v.MinBufferTime != 0 { + if v.MinBufferTime != nil { ok := object.Key("minBufferTime") - ok.Integer(v.MinBufferTime) + ok.Integer(*v.MinBufferTime) } - if v.MinFinalSegmentLength != 0 { + if v.MinFinalSegmentLength != nil { ok := object.Key("minFinalSegmentLength") switch { - case math.IsNaN(v.MinFinalSegmentLength): + case math.IsNaN(*v.MinFinalSegmentLength): ok.String("NaN") - case math.IsInf(v.MinFinalSegmentLength, 1): + case math.IsInf(*v.MinFinalSegmentLength, 1): ok.String("Infinity") - case math.IsInf(v.MinFinalSegmentLength, -1): + case math.IsInf(*v.MinFinalSegmentLength, -1): ok.String("-Infinity") default: - ok.Double(v.MinFinalSegmentLength) + ok.Double(*v.MinFinalSegmentLength) } } @@ -4613,9 +4613,9 @@ func awsRestjson1_serializeDocumentDashIsoGroupSettings(v *types.DashIsoGroupSet ok.String(string(v.SegmentControl)) } - if v.SegmentLength != 0 { + if v.SegmentLength != nil { ok := object.Key("segmentLength") - ok.Integer(v.SegmentLength) + ok.Integer(*v.SegmentLength) } if len(v.SegmentLengthControl) > 0 { @@ -4645,42 +4645,42 @@ func awsRestjson1_serializeDocumentDashIsoImageBasedTrickPlaySettings(v *types.D ok.String(string(v.IntervalCadence)) } - if v.ThumbnailHeight != 0 { + if v.ThumbnailHeight != nil { ok := object.Key("thumbnailHeight") - ok.Integer(v.ThumbnailHeight) + ok.Integer(*v.ThumbnailHeight) } - if v.ThumbnailInterval != 0 { + if v.ThumbnailInterval != nil { ok := object.Key("thumbnailInterval") switch { - case math.IsNaN(v.ThumbnailInterval): + case math.IsNaN(*v.ThumbnailInterval): ok.String("NaN") - case math.IsInf(v.ThumbnailInterval, 1): + case math.IsInf(*v.ThumbnailInterval, 1): ok.String("Infinity") - case math.IsInf(v.ThumbnailInterval, -1): + case math.IsInf(*v.ThumbnailInterval, -1): ok.String("-Infinity") default: - ok.Double(v.ThumbnailInterval) + ok.Double(*v.ThumbnailInterval) } } - if v.ThumbnailWidth != 0 { + if v.ThumbnailWidth != nil { ok := object.Key("thumbnailWidth") - ok.Integer(v.ThumbnailWidth) + ok.Integer(*v.ThumbnailWidth) } - if v.TileHeight != 0 { + if v.TileHeight != nil { ok := object.Key("tileHeight") - ok.Integer(v.TileHeight) + ok.Integer(*v.TileHeight) } - if v.TileWidth != 0 { + if v.TileWidth != nil { ok := object.Key("tileWidth") - ok.Integer(v.TileWidth) + ok.Integer(*v.TileWidth) } return nil @@ -4755,14 +4755,14 @@ func awsRestjson1_serializeDocumentDolbyVisionLevel6Metadata(v *types.DolbyVisio object := value.Object() defer object.Close() - if v.MaxCll != 0 { + if v.MaxCll != nil { ok := object.Key("maxCll") - ok.Integer(v.MaxCll) + ok.Integer(*v.MaxCll) } - if v.MaxFall != 0 { + if v.MaxFall != nil { ok := object.Key("maxFall") - ok.Integer(v.MaxFall) + ok.Integer(*v.MaxFall) } return nil @@ -4772,9 +4772,9 @@ func awsRestjson1_serializeDocumentDvbNitSettings(v *types.DvbNitSettings, value object := value.Object() defer object.Close() - if v.NetworkId != 0 { + if v.NetworkId != nil { ok := object.Key("networkId") - ok.Integer(v.NetworkId) + ok.Integer(*v.NetworkId) } if v.NetworkName != nil { @@ -4782,9 +4782,9 @@ func awsRestjson1_serializeDocumentDvbNitSettings(v *types.DvbNitSettings, value ok.String(*v.NetworkName) } - if v.NitInterval != 0 { + if v.NitInterval != nil { ok := object.Key("nitInterval") - ok.Integer(v.NitInterval) + ok.Integer(*v.NitInterval) } return nil @@ -4799,9 +4799,9 @@ func awsRestjson1_serializeDocumentDvbSdtSettings(v *types.DvbSdtSettings, value ok.String(string(v.OutputSdt)) } - if v.SdtInterval != 0 { + if v.SdtInterval != nil { ok := object.Key("sdtInterval") - ok.Integer(v.SdtInterval) + ok.Integer(*v.SdtInterval) } if v.ServiceName != nil { @@ -4836,9 +4836,9 @@ func awsRestjson1_serializeDocumentDvbSubDestinationSettings(v *types.DvbSubDest ok.String(string(v.BackgroundColor)) } - if v.BackgroundOpacity != 0 { + if v.BackgroundOpacity != nil { ok := object.Key("backgroundOpacity") - ok.Integer(v.BackgroundOpacity) + ok.Integer(*v.BackgroundOpacity) } if len(v.DdsHandling) > 0 { @@ -4846,14 +4846,14 @@ func awsRestjson1_serializeDocumentDvbSubDestinationSettings(v *types.DvbSubDest ok.String(string(v.DdsHandling)) } - if v.DdsXCoordinate != 0 { + if v.DdsXCoordinate != nil { ok := object.Key("ddsXCoordinate") - ok.Integer(v.DdsXCoordinate) + ok.Integer(*v.DdsXCoordinate) } - if v.DdsYCoordinate != 0 { + if v.DdsYCoordinate != nil { ok := object.Key("ddsYCoordinate") - ok.Integer(v.DdsYCoordinate) + ok.Integer(*v.DdsYCoordinate) } if len(v.FallbackFont) > 0 { @@ -4866,14 +4866,14 @@ func awsRestjson1_serializeDocumentDvbSubDestinationSettings(v *types.DvbSubDest ok.String(string(v.FontColor)) } - if v.FontOpacity != 0 { + if v.FontOpacity != nil { ok := object.Key("fontOpacity") - ok.Integer(v.FontOpacity) + ok.Integer(*v.FontOpacity) } - if v.FontResolution != 0 { + if v.FontResolution != nil { ok := object.Key("fontResolution") - ok.Integer(v.FontResolution) + ok.Integer(*v.FontResolution) } if len(v.FontScript) > 0 { @@ -4881,14 +4881,14 @@ func awsRestjson1_serializeDocumentDvbSubDestinationSettings(v *types.DvbSubDest ok.String(string(v.FontScript)) } - if v.FontSize != 0 { + if v.FontSize != nil { ok := object.Key("fontSize") - ok.Integer(v.FontSize) + ok.Integer(*v.FontSize) } - if v.Height != 0 { + if v.Height != nil { ok := object.Key("height") - ok.Integer(v.Height) + ok.Integer(*v.Height) } if v.HexFontColor != nil { @@ -4901,9 +4901,9 @@ func awsRestjson1_serializeDocumentDvbSubDestinationSettings(v *types.DvbSubDest ok.String(string(v.OutlineColor)) } - if v.OutlineSize != 0 { + if v.OutlineSize != nil { ok := object.Key("outlineSize") - ok.Integer(v.OutlineSize) + ok.Integer(*v.OutlineSize) } if len(v.ShadowColor) > 0 { @@ -4911,19 +4911,19 @@ func awsRestjson1_serializeDocumentDvbSubDestinationSettings(v *types.DvbSubDest ok.String(string(v.ShadowColor)) } - if v.ShadowOpacity != 0 { + if v.ShadowOpacity != nil { ok := object.Key("shadowOpacity") - ok.Integer(v.ShadowOpacity) + ok.Integer(*v.ShadowOpacity) } - if v.ShadowXOffset != 0 { + if v.ShadowXOffset != nil { ok := object.Key("shadowXOffset") - ok.Integer(v.ShadowXOffset) + ok.Integer(*v.ShadowXOffset) } - if v.ShadowYOffset != 0 { + if v.ShadowYOffset != nil { ok := object.Key("shadowYOffset") - ok.Integer(v.ShadowYOffset) + ok.Integer(*v.ShadowYOffset) } if len(v.StylePassthrough) > 0 { @@ -4941,19 +4941,19 @@ func awsRestjson1_serializeDocumentDvbSubDestinationSettings(v *types.DvbSubDest ok.String(string(v.TeletextSpacing)) } - if v.Width != 0 { + if v.Width != nil { ok := object.Key("width") - ok.Integer(v.Width) + ok.Integer(*v.Width) } - if v.XPosition != 0 { + if v.XPosition != nil { ok := object.Key("xPosition") - ok.Integer(v.XPosition) + ok.Integer(*v.XPosition) } - if v.YPosition != 0 { + if v.YPosition != nil { ok := object.Key("yPosition") - ok.Integer(v.YPosition) + ok.Integer(*v.YPosition) } return nil @@ -4963,9 +4963,9 @@ func awsRestjson1_serializeDocumentDvbSubSourceSettings(v *types.DvbSubSourceSet object := value.Object() defer object.Close() - if v.Pid != 0 { + if v.Pid != nil { ok := object.Key("pid") - ok.Integer(v.Pid) + ok.Integer(*v.Pid) } return nil @@ -4975,9 +4975,9 @@ func awsRestjson1_serializeDocumentDvbTdtSettings(v *types.DvbTdtSettings, value object := value.Object() defer object.Close() - if v.TdtInterval != 0 { + if v.TdtInterval != nil { ok := object.Key("tdtInterval") - ok.Integer(v.TdtInterval) + ok.Integer(*v.TdtInterval) } return nil @@ -4987,9 +4987,9 @@ func awsRestjson1_serializeDocumentEac3AtmosSettings(v *types.Eac3AtmosSettings, object := value.Object() defer object.Close() - if v.Bitrate != 0 { + if v.Bitrate != nil { ok := object.Key("bitrate") - ok.Integer(v.Bitrate) + ok.Integer(*v.Bitrate) } if len(v.BitstreamMode) > 0 { @@ -5027,74 +5027,74 @@ func awsRestjson1_serializeDocumentEac3AtmosSettings(v *types.Eac3AtmosSettings, ok.String(string(v.DynamicRangeControl)) } - if v.LoRoCenterMixLevel != 0 { + if v.LoRoCenterMixLevel != nil { ok := object.Key("loRoCenterMixLevel") switch { - case math.IsNaN(v.LoRoCenterMixLevel): + case math.IsNaN(*v.LoRoCenterMixLevel): ok.String("NaN") - case math.IsInf(v.LoRoCenterMixLevel, 1): + case math.IsInf(*v.LoRoCenterMixLevel, 1): ok.String("Infinity") - case math.IsInf(v.LoRoCenterMixLevel, -1): + case math.IsInf(*v.LoRoCenterMixLevel, -1): ok.String("-Infinity") default: - ok.Double(v.LoRoCenterMixLevel) + ok.Double(*v.LoRoCenterMixLevel) } } - if v.LoRoSurroundMixLevel != 0 { + if v.LoRoSurroundMixLevel != nil { ok := object.Key("loRoSurroundMixLevel") switch { - case math.IsNaN(v.LoRoSurroundMixLevel): + case math.IsNaN(*v.LoRoSurroundMixLevel): ok.String("NaN") - case math.IsInf(v.LoRoSurroundMixLevel, 1): + case math.IsInf(*v.LoRoSurroundMixLevel, 1): ok.String("Infinity") - case math.IsInf(v.LoRoSurroundMixLevel, -1): + case math.IsInf(*v.LoRoSurroundMixLevel, -1): ok.String("-Infinity") default: - ok.Double(v.LoRoSurroundMixLevel) + ok.Double(*v.LoRoSurroundMixLevel) } } - if v.LtRtCenterMixLevel != 0 { + if v.LtRtCenterMixLevel != nil { ok := object.Key("ltRtCenterMixLevel") switch { - case math.IsNaN(v.LtRtCenterMixLevel): + case math.IsNaN(*v.LtRtCenterMixLevel): ok.String("NaN") - case math.IsInf(v.LtRtCenterMixLevel, 1): + case math.IsInf(*v.LtRtCenterMixLevel, 1): ok.String("Infinity") - case math.IsInf(v.LtRtCenterMixLevel, -1): + case math.IsInf(*v.LtRtCenterMixLevel, -1): ok.String("-Infinity") default: - ok.Double(v.LtRtCenterMixLevel) + ok.Double(*v.LtRtCenterMixLevel) } } - if v.LtRtSurroundMixLevel != 0 { + if v.LtRtSurroundMixLevel != nil { ok := object.Key("ltRtSurroundMixLevel") switch { - case math.IsNaN(v.LtRtSurroundMixLevel): + case math.IsNaN(*v.LtRtSurroundMixLevel): ok.String("NaN") - case math.IsInf(v.LtRtSurroundMixLevel, 1): + case math.IsInf(*v.LtRtSurroundMixLevel, 1): ok.String("Infinity") - case math.IsInf(v.LtRtSurroundMixLevel, -1): + case math.IsInf(*v.LtRtSurroundMixLevel, -1): ok.String("-Infinity") default: - ok.Double(v.LtRtSurroundMixLevel) + ok.Double(*v.LtRtSurroundMixLevel) } } @@ -5104,14 +5104,14 @@ func awsRestjson1_serializeDocumentEac3AtmosSettings(v *types.Eac3AtmosSettings, ok.String(string(v.MeteringMode)) } - if v.SampleRate != 0 { + if v.SampleRate != nil { ok := object.Key("sampleRate") - ok.Integer(v.SampleRate) + ok.Integer(*v.SampleRate) } - if v.SpeechThreshold != 0 { + if v.SpeechThreshold != nil { ok := object.Key("speechThreshold") - ok.Integer(v.SpeechThreshold) + ok.Integer(*v.SpeechThreshold) } if len(v.StereoDownmix) > 0 { @@ -5136,9 +5136,9 @@ func awsRestjson1_serializeDocumentEac3Settings(v *types.Eac3Settings, value smi ok.String(string(v.AttenuationControl)) } - if v.Bitrate != 0 { + if v.Bitrate != nil { ok := object.Key("bitrate") - ok.Integer(v.Bitrate) + ok.Integer(*v.Bitrate) } if len(v.BitstreamMode) > 0 { @@ -5156,9 +5156,9 @@ func awsRestjson1_serializeDocumentEac3Settings(v *types.Eac3Settings, value smi ok.String(string(v.DcFilter)) } - if v.Dialnorm != 0 { + if v.Dialnorm != nil { ok := object.Key("dialnorm") - ok.Integer(v.Dialnorm) + ok.Integer(*v.Dialnorm) } if len(v.DynamicRangeCompressionLine) > 0 { @@ -5181,74 +5181,74 @@ func awsRestjson1_serializeDocumentEac3Settings(v *types.Eac3Settings, value smi ok.String(string(v.LfeFilter)) } - if v.LoRoCenterMixLevel != 0 { + if v.LoRoCenterMixLevel != nil { ok := object.Key("loRoCenterMixLevel") switch { - case math.IsNaN(v.LoRoCenterMixLevel): + case math.IsNaN(*v.LoRoCenterMixLevel): ok.String("NaN") - case math.IsInf(v.LoRoCenterMixLevel, 1): + case math.IsInf(*v.LoRoCenterMixLevel, 1): ok.String("Infinity") - case math.IsInf(v.LoRoCenterMixLevel, -1): + case math.IsInf(*v.LoRoCenterMixLevel, -1): ok.String("-Infinity") default: - ok.Double(v.LoRoCenterMixLevel) + ok.Double(*v.LoRoCenterMixLevel) } } - if v.LoRoSurroundMixLevel != 0 { + if v.LoRoSurroundMixLevel != nil { ok := object.Key("loRoSurroundMixLevel") switch { - case math.IsNaN(v.LoRoSurroundMixLevel): + case math.IsNaN(*v.LoRoSurroundMixLevel): ok.String("NaN") - case math.IsInf(v.LoRoSurroundMixLevel, 1): + case math.IsInf(*v.LoRoSurroundMixLevel, 1): ok.String("Infinity") - case math.IsInf(v.LoRoSurroundMixLevel, -1): + case math.IsInf(*v.LoRoSurroundMixLevel, -1): ok.String("-Infinity") default: - ok.Double(v.LoRoSurroundMixLevel) + ok.Double(*v.LoRoSurroundMixLevel) } } - if v.LtRtCenterMixLevel != 0 { + if v.LtRtCenterMixLevel != nil { ok := object.Key("ltRtCenterMixLevel") switch { - case math.IsNaN(v.LtRtCenterMixLevel): + case math.IsNaN(*v.LtRtCenterMixLevel): ok.String("NaN") - case math.IsInf(v.LtRtCenterMixLevel, 1): + case math.IsInf(*v.LtRtCenterMixLevel, 1): ok.String("Infinity") - case math.IsInf(v.LtRtCenterMixLevel, -1): + case math.IsInf(*v.LtRtCenterMixLevel, -1): ok.String("-Infinity") default: - ok.Double(v.LtRtCenterMixLevel) + ok.Double(*v.LtRtCenterMixLevel) } } - if v.LtRtSurroundMixLevel != 0 { + if v.LtRtSurroundMixLevel != nil { ok := object.Key("ltRtSurroundMixLevel") switch { - case math.IsNaN(v.LtRtSurroundMixLevel): + case math.IsNaN(*v.LtRtSurroundMixLevel): ok.String("NaN") - case math.IsInf(v.LtRtSurroundMixLevel, 1): + case math.IsInf(*v.LtRtSurroundMixLevel, 1): ok.String("Infinity") - case math.IsInf(v.LtRtSurroundMixLevel, -1): + case math.IsInf(*v.LtRtSurroundMixLevel, -1): ok.String("-Infinity") default: - ok.Double(v.LtRtSurroundMixLevel) + ok.Double(*v.LtRtSurroundMixLevel) } } @@ -5268,9 +5268,9 @@ func awsRestjson1_serializeDocumentEac3Settings(v *types.Eac3Settings, value smi ok.String(string(v.PhaseControl)) } - if v.SampleRate != 0 { + if v.SampleRate != nil { ok := object.Key("sampleRate") - ok.Integer(v.SampleRate) + ok.Integer(*v.SampleRate) } if len(v.StereoDownmix) > 0 { @@ -5295,14 +5295,14 @@ func awsRestjson1_serializeDocumentEmbeddedDestinationSettings(v *types.Embedded object := value.Object() defer object.Close() - if v.Destination608ChannelNumber != 0 { + if v.Destination608ChannelNumber != nil { ok := object.Key("destination608ChannelNumber") - ok.Integer(v.Destination608ChannelNumber) + ok.Integer(*v.Destination608ChannelNumber) } - if v.Destination708ServiceNumber != 0 { + if v.Destination708ServiceNumber != nil { ok := object.Key("destination708ServiceNumber") - ok.Integer(v.Destination708ServiceNumber) + ok.Integer(*v.Destination708ServiceNumber) } return nil @@ -5317,14 +5317,14 @@ func awsRestjson1_serializeDocumentEmbeddedSourceSettings(v *types.EmbeddedSourc ok.String(string(v.Convert608To708)) } - if v.Source608ChannelNumber != 0 { + if v.Source608ChannelNumber != nil { ok := object.Key("source608ChannelNumber") - ok.Integer(v.Source608ChannelNumber) + ok.Integer(*v.Source608ChannelNumber) } - if v.Source608TrackNumber != 0 { + if v.Source608TrackNumber != nil { ok := object.Key("source608TrackNumber") - ok.Integer(v.Source608TrackNumber) + ok.Integer(*v.Source608TrackNumber) } if len(v.TerminateCaptions) > 0 { @@ -5358,9 +5358,9 @@ func awsRestjson1_serializeDocumentEsamSettings(v *types.EsamSettings, value smi } } - if v.ResponseSignalPreroll != 0 { + if v.ResponseSignalPreroll != nil { ok := object.Key("responseSignalPreroll") - ok.Integer(v.ResponseSignalPreroll) + ok.Integer(*v.ResponseSignalPreroll) } if v.SignalProcessingNotification != nil { @@ -5459,9 +5459,9 @@ func awsRestjson1_serializeDocumentFileSourceSettings(v *types.FileSourceSetting ok.String(*v.SourceFile) } - if v.TimeDelta != 0 { + if v.TimeDelta != nil { ok := object.Key("timeDelta") - ok.Integer(v.TimeDelta) + ok.Integer(*v.TimeDelta) } if len(v.TimeDeltaUnits) > 0 { @@ -5476,9 +5476,9 @@ func awsRestjson1_serializeDocumentFlacSettings(v *types.FlacSettings, value smi object := value.Object() defer object.Close() - if v.BitDepth != 0 { + if v.BitDepth != nil { ok := object.Key("bitDepth") - ok.Integer(v.BitDepth) + ok.Integer(*v.BitDepth) } if v.Channels != nil { @@ -5486,9 +5486,9 @@ func awsRestjson1_serializeDocumentFlacSettings(v *types.FlacSettings, value smi ok.Integer(*v.Channels) } - if v.SampleRate != 0 { + if v.SampleRate != nil { ok := object.Key("sampleRate") - ok.Integer(v.SampleRate) + ok.Integer(*v.SampleRate) } return nil @@ -5498,14 +5498,14 @@ func awsRestjson1_serializeDocumentForceIncludeRenditionSize(v *types.ForceInclu object := value.Object() defer object.Close() - if v.Height != 0 { + if v.Height != nil { ok := object.Key("height") - ok.Integer(v.Height) + ok.Integer(*v.Height) } - if v.Width != 0 { + if v.Width != nil { ok := object.Key("width") - ok.Integer(v.Width) + ok.Integer(*v.Width) } return nil @@ -5515,24 +5515,24 @@ func awsRestjson1_serializeDocumentFrameCaptureSettings(v *types.FrameCaptureSet object := value.Object() defer object.Close() - if v.FramerateDenominator != 0 { + if v.FramerateDenominator != nil { ok := object.Key("framerateDenominator") - ok.Integer(v.FramerateDenominator) + ok.Integer(*v.FramerateDenominator) } - if v.FramerateNumerator != 0 { + if v.FramerateNumerator != nil { ok := object.Key("framerateNumerator") - ok.Integer(v.FramerateNumerator) + ok.Integer(*v.FramerateNumerator) } - if v.MaxCaptures != 0 { + if v.MaxCaptures != nil { ok := object.Key("maxCaptures") - ok.Integer(v.MaxCaptures) + ok.Integer(*v.MaxCaptures) } - if v.Quality != 0 { + if v.Quality != nil { ok := object.Key("quality") - ok.Integer(v.Quality) + ok.Integer(*v.Quality) } return nil @@ -5542,30 +5542,30 @@ func awsRestjson1_serializeDocumentH264QvbrSettings(v *types.H264QvbrSettings, v object := value.Object() defer object.Close() - if v.MaxAverageBitrate != 0 { + if v.MaxAverageBitrate != nil { ok := object.Key("maxAverageBitrate") - ok.Integer(v.MaxAverageBitrate) + ok.Integer(*v.MaxAverageBitrate) } - if v.QvbrQualityLevel != 0 { + if v.QvbrQualityLevel != nil { ok := object.Key("qvbrQualityLevel") - ok.Integer(v.QvbrQualityLevel) + ok.Integer(*v.QvbrQualityLevel) } - if v.QvbrQualityLevelFineTune != 0 { + if v.QvbrQualityLevelFineTune != nil { ok := object.Key("qvbrQualityLevelFineTune") switch { - case math.IsNaN(v.QvbrQualityLevelFineTune): + case math.IsNaN(*v.QvbrQualityLevelFineTune): ok.String("NaN") - case math.IsInf(v.QvbrQualityLevelFineTune, 1): + case math.IsInf(*v.QvbrQualityLevelFineTune, 1): ok.String("Infinity") - case math.IsInf(v.QvbrQualityLevelFineTune, -1): + case math.IsInf(*v.QvbrQualityLevelFineTune, -1): ok.String("-Infinity") default: - ok.Double(v.QvbrQualityLevelFineTune) + ok.Double(*v.QvbrQualityLevelFineTune) } } @@ -5589,9 +5589,9 @@ func awsRestjson1_serializeDocumentH264Settings(v *types.H264Settings, value smi } } - if v.Bitrate != 0 { + if v.Bitrate != nil { ok := object.Key("bitrate") - ok.Integer(v.Bitrate) + ok.Integer(*v.Bitrate) } if len(v.CodecLevel) > 0 { @@ -5639,14 +5639,14 @@ func awsRestjson1_serializeDocumentH264Settings(v *types.H264Settings, value smi ok.String(string(v.FramerateConversionAlgorithm)) } - if v.FramerateDenominator != 0 { + if v.FramerateDenominator != nil { ok := object.Key("framerateDenominator") - ok.Integer(v.FramerateDenominator) + ok.Integer(*v.FramerateDenominator) } - if v.FramerateNumerator != 0 { + if v.FramerateNumerator != nil { ok := object.Key("framerateNumerator") - ok.Integer(v.FramerateNumerator) + ok.Integer(*v.FramerateNumerator) } if len(v.GopBReference) > 0 { @@ -5654,25 +5654,25 @@ func awsRestjson1_serializeDocumentH264Settings(v *types.H264Settings, value smi ok.String(string(v.GopBReference)) } - if v.GopClosedCadence != 0 { + if v.GopClosedCadence != nil { ok := object.Key("gopClosedCadence") - ok.Integer(v.GopClosedCadence) + ok.Integer(*v.GopClosedCadence) } - if v.GopSize != 0 { + if v.GopSize != nil { ok := object.Key("gopSize") switch { - case math.IsNaN(v.GopSize): + case math.IsNaN(*v.GopSize): ok.String("NaN") - case math.IsInf(v.GopSize, 1): + case math.IsInf(*v.GopSize, 1): ok.String("Infinity") - case math.IsInf(v.GopSize, -1): + case math.IsInf(*v.GopSize, -1): ok.String("-Infinity") default: - ok.Double(v.GopSize) + ok.Double(*v.GopSize) } } @@ -5682,19 +5682,19 @@ func awsRestjson1_serializeDocumentH264Settings(v *types.H264Settings, value smi ok.String(string(v.GopSizeUnits)) } - if v.HrdBufferFinalFillPercentage != 0 { + if v.HrdBufferFinalFillPercentage != nil { ok := object.Key("hrdBufferFinalFillPercentage") - ok.Integer(v.HrdBufferFinalFillPercentage) + ok.Integer(*v.HrdBufferFinalFillPercentage) } - if v.HrdBufferInitialFillPercentage != 0 { + if v.HrdBufferInitialFillPercentage != nil { ok := object.Key("hrdBufferInitialFillPercentage") - ok.Integer(v.HrdBufferInitialFillPercentage) + ok.Integer(*v.HrdBufferInitialFillPercentage) } - if v.HrdBufferSize != 0 { + if v.HrdBufferSize != nil { ok := object.Key("hrdBufferSize") - ok.Integer(v.HrdBufferSize) + ok.Integer(*v.HrdBufferSize) } if len(v.InterlaceMode) > 0 { @@ -5702,24 +5702,24 @@ func awsRestjson1_serializeDocumentH264Settings(v *types.H264Settings, value smi ok.String(string(v.InterlaceMode)) } - if v.MaxBitrate != 0 { + if v.MaxBitrate != nil { ok := object.Key("maxBitrate") - ok.Integer(v.MaxBitrate) + ok.Integer(*v.MaxBitrate) } - if v.MinIInterval != 0 { + if v.MinIInterval != nil { ok := object.Key("minIInterval") - ok.Integer(v.MinIInterval) + ok.Integer(*v.MinIInterval) } - if v.NumberBFramesBetweenReferenceFrames != 0 { + if v.NumberBFramesBetweenReferenceFrames != nil { ok := object.Key("numberBFramesBetweenReferenceFrames") - ok.Integer(v.NumberBFramesBetweenReferenceFrames) + ok.Integer(*v.NumberBFramesBetweenReferenceFrames) } - if v.NumberReferenceFrames != 0 { + if v.NumberReferenceFrames != nil { ok := object.Key("numberReferenceFrames") - ok.Integer(v.NumberReferenceFrames) + ok.Integer(*v.NumberReferenceFrames) } if len(v.ParControl) > 0 { @@ -5727,14 +5727,14 @@ func awsRestjson1_serializeDocumentH264Settings(v *types.H264Settings, value smi ok.String(string(v.ParControl)) } - if v.ParDenominator != 0 { + if v.ParDenominator != nil { ok := object.Key("parDenominator") - ok.Integer(v.ParDenominator) + ok.Integer(*v.ParDenominator) } - if v.ParNumerator != 0 { + if v.ParNumerator != nil { ok := object.Key("parNumerator") - ok.Integer(v.ParNumerator) + ok.Integer(*v.ParNumerator) } if len(v.QualityTuningLevel) > 0 { @@ -5769,9 +5769,9 @@ func awsRestjson1_serializeDocumentH264Settings(v *types.H264Settings, value smi ok.String(string(v.SceneChangeDetect)) } - if v.Slices != 0 { + if v.Slices != nil { ok := object.Key("slices") - ok.Integer(v.Slices) + ok.Integer(*v.Slices) } if len(v.SlowPal) > 0 { @@ -5779,9 +5779,9 @@ func awsRestjson1_serializeDocumentH264Settings(v *types.H264Settings, value smi ok.String(string(v.SlowPal)) } - if v.Softness != 0 { + if v.Softness != nil { ok := object.Key("softness") - ok.Integer(v.Softness) + ok.Integer(*v.Softness) } if len(v.SpatialAdaptiveQuantization) > 0 { @@ -5816,30 +5816,30 @@ func awsRestjson1_serializeDocumentH265QvbrSettings(v *types.H265QvbrSettings, v object := value.Object() defer object.Close() - if v.MaxAverageBitrate != 0 { + if v.MaxAverageBitrate != nil { ok := object.Key("maxAverageBitrate") - ok.Integer(v.MaxAverageBitrate) + ok.Integer(*v.MaxAverageBitrate) } - if v.QvbrQualityLevel != 0 { + if v.QvbrQualityLevel != nil { ok := object.Key("qvbrQualityLevel") - ok.Integer(v.QvbrQualityLevel) + ok.Integer(*v.QvbrQualityLevel) } - if v.QvbrQualityLevelFineTune != 0 { + if v.QvbrQualityLevelFineTune != nil { ok := object.Key("qvbrQualityLevelFineTune") switch { - case math.IsNaN(v.QvbrQualityLevelFineTune): + case math.IsNaN(*v.QvbrQualityLevelFineTune): ok.String("NaN") - case math.IsInf(v.QvbrQualityLevelFineTune, 1): + case math.IsInf(*v.QvbrQualityLevelFineTune, 1): ok.String("Infinity") - case math.IsInf(v.QvbrQualityLevelFineTune, -1): + case math.IsInf(*v.QvbrQualityLevelFineTune, -1): ok.String("-Infinity") default: - ok.Double(v.QvbrQualityLevelFineTune) + ok.Double(*v.QvbrQualityLevelFineTune) } } @@ -5868,9 +5868,9 @@ func awsRestjson1_serializeDocumentH265Settings(v *types.H265Settings, value smi } } - if v.Bitrate != 0 { + if v.Bitrate != nil { ok := object.Key("bitrate") - ok.Integer(v.Bitrate) + ok.Integer(*v.Bitrate) } if len(v.CodecLevel) > 0 { @@ -5908,14 +5908,14 @@ func awsRestjson1_serializeDocumentH265Settings(v *types.H265Settings, value smi ok.String(string(v.FramerateConversionAlgorithm)) } - if v.FramerateDenominator != 0 { + if v.FramerateDenominator != nil { ok := object.Key("framerateDenominator") - ok.Integer(v.FramerateDenominator) + ok.Integer(*v.FramerateDenominator) } - if v.FramerateNumerator != 0 { + if v.FramerateNumerator != nil { ok := object.Key("framerateNumerator") - ok.Integer(v.FramerateNumerator) + ok.Integer(*v.FramerateNumerator) } if len(v.GopBReference) > 0 { @@ -5923,25 +5923,25 @@ func awsRestjson1_serializeDocumentH265Settings(v *types.H265Settings, value smi ok.String(string(v.GopBReference)) } - if v.GopClosedCadence != 0 { + if v.GopClosedCadence != nil { ok := object.Key("gopClosedCadence") - ok.Integer(v.GopClosedCadence) + ok.Integer(*v.GopClosedCadence) } - if v.GopSize != 0 { + if v.GopSize != nil { ok := object.Key("gopSize") switch { - case math.IsNaN(v.GopSize): + case math.IsNaN(*v.GopSize): ok.String("NaN") - case math.IsInf(v.GopSize, 1): + case math.IsInf(*v.GopSize, 1): ok.String("Infinity") - case math.IsInf(v.GopSize, -1): + case math.IsInf(*v.GopSize, -1): ok.String("-Infinity") default: - ok.Double(v.GopSize) + ok.Double(*v.GopSize) } } @@ -5951,19 +5951,19 @@ func awsRestjson1_serializeDocumentH265Settings(v *types.H265Settings, value smi ok.String(string(v.GopSizeUnits)) } - if v.HrdBufferFinalFillPercentage != 0 { + if v.HrdBufferFinalFillPercentage != nil { ok := object.Key("hrdBufferFinalFillPercentage") - ok.Integer(v.HrdBufferFinalFillPercentage) + ok.Integer(*v.HrdBufferFinalFillPercentage) } - if v.HrdBufferInitialFillPercentage != 0 { + if v.HrdBufferInitialFillPercentage != nil { ok := object.Key("hrdBufferInitialFillPercentage") - ok.Integer(v.HrdBufferInitialFillPercentage) + ok.Integer(*v.HrdBufferInitialFillPercentage) } - if v.HrdBufferSize != 0 { + if v.HrdBufferSize != nil { ok := object.Key("hrdBufferSize") - ok.Integer(v.HrdBufferSize) + ok.Integer(*v.HrdBufferSize) } if len(v.InterlaceMode) > 0 { @@ -5971,24 +5971,24 @@ func awsRestjson1_serializeDocumentH265Settings(v *types.H265Settings, value smi ok.String(string(v.InterlaceMode)) } - if v.MaxBitrate != 0 { + if v.MaxBitrate != nil { ok := object.Key("maxBitrate") - ok.Integer(v.MaxBitrate) + ok.Integer(*v.MaxBitrate) } - if v.MinIInterval != 0 { + if v.MinIInterval != nil { ok := object.Key("minIInterval") - ok.Integer(v.MinIInterval) + ok.Integer(*v.MinIInterval) } - if v.NumberBFramesBetweenReferenceFrames != 0 { + if v.NumberBFramesBetweenReferenceFrames != nil { ok := object.Key("numberBFramesBetweenReferenceFrames") - ok.Integer(v.NumberBFramesBetweenReferenceFrames) + ok.Integer(*v.NumberBFramesBetweenReferenceFrames) } - if v.NumberReferenceFrames != 0 { + if v.NumberReferenceFrames != nil { ok := object.Key("numberReferenceFrames") - ok.Integer(v.NumberReferenceFrames) + ok.Integer(*v.NumberReferenceFrames) } if len(v.ParControl) > 0 { @@ -5996,14 +5996,14 @@ func awsRestjson1_serializeDocumentH265Settings(v *types.H265Settings, value smi ok.String(string(v.ParControl)) } - if v.ParDenominator != 0 { + if v.ParDenominator != nil { ok := object.Key("parDenominator") - ok.Integer(v.ParDenominator) + ok.Integer(*v.ParDenominator) } - if v.ParNumerator != 0 { + if v.ParNumerator != nil { ok := object.Key("parNumerator") - ok.Integer(v.ParNumerator) + ok.Integer(*v.ParNumerator) } if len(v.QualityTuningLevel) > 0 { @@ -6038,9 +6038,9 @@ func awsRestjson1_serializeDocumentH265Settings(v *types.H265Settings, value smi ok.String(string(v.SceneChangeDetect)) } - if v.Slices != 0 { + if v.Slices != nil { ok := object.Key("slices") - ok.Integer(v.Slices) + ok.Integer(*v.Slices) } if len(v.SlowPal) > 0 { @@ -6090,64 +6090,64 @@ func awsRestjson1_serializeDocumentHdr10Metadata(v *types.Hdr10Metadata, value s object := value.Object() defer object.Close() - if v.BluePrimaryX != 0 { + if v.BluePrimaryX != nil { ok := object.Key("bluePrimaryX") - ok.Integer(v.BluePrimaryX) + ok.Integer(*v.BluePrimaryX) } - if v.BluePrimaryY != 0 { + if v.BluePrimaryY != nil { ok := object.Key("bluePrimaryY") - ok.Integer(v.BluePrimaryY) + ok.Integer(*v.BluePrimaryY) } - if v.GreenPrimaryX != 0 { + if v.GreenPrimaryX != nil { ok := object.Key("greenPrimaryX") - ok.Integer(v.GreenPrimaryX) + ok.Integer(*v.GreenPrimaryX) } - if v.GreenPrimaryY != 0 { + if v.GreenPrimaryY != nil { ok := object.Key("greenPrimaryY") - ok.Integer(v.GreenPrimaryY) + ok.Integer(*v.GreenPrimaryY) } - if v.MaxContentLightLevel != 0 { + if v.MaxContentLightLevel != nil { ok := object.Key("maxContentLightLevel") - ok.Integer(v.MaxContentLightLevel) + ok.Integer(*v.MaxContentLightLevel) } - if v.MaxFrameAverageLightLevel != 0 { + if v.MaxFrameAverageLightLevel != nil { ok := object.Key("maxFrameAverageLightLevel") - ok.Integer(v.MaxFrameAverageLightLevel) + ok.Integer(*v.MaxFrameAverageLightLevel) } - if v.MaxLuminance != 0 { + if v.MaxLuminance != nil { ok := object.Key("maxLuminance") - ok.Integer(v.MaxLuminance) + ok.Integer(*v.MaxLuminance) } - if v.MinLuminance != 0 { + if v.MinLuminance != nil { ok := object.Key("minLuminance") - ok.Integer(v.MinLuminance) + ok.Integer(*v.MinLuminance) } - if v.RedPrimaryX != 0 { + if v.RedPrimaryX != nil { ok := object.Key("redPrimaryX") - ok.Integer(v.RedPrimaryX) + ok.Integer(*v.RedPrimaryX) } - if v.RedPrimaryY != 0 { + if v.RedPrimaryY != nil { ok := object.Key("redPrimaryY") - ok.Integer(v.RedPrimaryY) + ok.Integer(*v.RedPrimaryY) } - if v.WhitePointX != 0 { + if v.WhitePointX != nil { ok := object.Key("whitePointX") - ok.Integer(v.WhitePointX) + ok.Integer(*v.WhitePointX) } - if v.WhitePointY != 0 { + if v.WhitePointY != nil { ok := object.Key("whitePointY") - ok.Integer(v.WhitePointY) + ok.Integer(*v.WhitePointY) } return nil @@ -6157,14 +6157,14 @@ func awsRestjson1_serializeDocumentHdr10Plus(v *types.Hdr10Plus, value smithyjso object := value.Object() defer object.Close() - if v.MasteringMonitorNits != 0 { + if v.MasteringMonitorNits != nil { ok := object.Key("masteringMonitorNits") - ok.Integer(v.MasteringMonitorNits) + ok.Integer(*v.MasteringMonitorNits) } - if v.TargetMonitorNits != 0 { + if v.TargetMonitorNits != nil { ok := object.Key("targetMonitorNits") - ok.Integer(v.TargetMonitorNits) + ok.Integer(*v.TargetMonitorNits) } return nil @@ -6193,9 +6193,9 @@ func awsRestjson1_serializeDocumentHlsCaptionLanguageMapping(v *types.HlsCaption object := value.Object() defer object.Close() - if v.CaptionChannel != 0 { + if v.CaptionChannel != nil { ok := object.Key("captionChannel") - ok.Integer(v.CaptionChannel) + ok.Integer(*v.CaptionChannel) } if v.CustomLanguageCode != nil { @@ -6363,27 +6363,27 @@ func awsRestjson1_serializeDocumentHlsGroupSettings(v *types.HlsGroupSettings, v ok.String(string(v.ManifestDurationFormat)) } - if v.MinFinalSegmentLength != 0 { + if v.MinFinalSegmentLength != nil { ok := object.Key("minFinalSegmentLength") switch { - case math.IsNaN(v.MinFinalSegmentLength): + case math.IsNaN(*v.MinFinalSegmentLength): ok.String("NaN") - case math.IsInf(v.MinFinalSegmentLength, 1): + case math.IsInf(*v.MinFinalSegmentLength, 1): ok.String("Infinity") - case math.IsInf(v.MinFinalSegmentLength, -1): + case math.IsInf(*v.MinFinalSegmentLength, -1): ok.String("-Infinity") default: - ok.Double(v.MinFinalSegmentLength) + ok.Double(*v.MinFinalSegmentLength) } } - if v.MinSegmentLength != 0 { + if v.MinSegmentLength != nil { ok := object.Key("minSegmentLength") - ok.Integer(v.MinSegmentLength) + ok.Integer(*v.MinSegmentLength) } if len(v.OutputSelection) > 0 { @@ -6396,9 +6396,9 @@ func awsRestjson1_serializeDocumentHlsGroupSettings(v *types.HlsGroupSettings, v ok.String(string(v.ProgramDateTime)) } - if v.ProgramDateTimePeriod != 0 { + if v.ProgramDateTimePeriod != nil { ok := object.Key("programDateTimePeriod") - ok.Integer(v.ProgramDateTimePeriod) + ok.Integer(*v.ProgramDateTimePeriod) } if len(v.ProgressiveWriteHlsManifest) > 0 { @@ -6411,9 +6411,9 @@ func awsRestjson1_serializeDocumentHlsGroupSettings(v *types.HlsGroupSettings, v ok.String(string(v.SegmentControl)) } - if v.SegmentLength != 0 { + if v.SegmentLength != nil { ok := object.Key("segmentLength") - ok.Integer(v.SegmentLength) + ok.Integer(*v.SegmentLength) } if len(v.SegmentLengthControl) > 0 { @@ -6421,9 +6421,9 @@ func awsRestjson1_serializeDocumentHlsGroupSettings(v *types.HlsGroupSettings, v ok.String(string(v.SegmentLengthControl)) } - if v.SegmentsPerSubdirectory != 0 { + if v.SegmentsPerSubdirectory != nil { ok := object.Key("segmentsPerSubdirectory") - ok.Integer(v.SegmentsPerSubdirectory) + ok.Integer(*v.SegmentsPerSubdirectory) } if len(v.StreamInfResolution) > 0 { @@ -6441,14 +6441,14 @@ func awsRestjson1_serializeDocumentHlsGroupSettings(v *types.HlsGroupSettings, v ok.String(string(v.TimedMetadataId3Frame)) } - if v.TimedMetadataId3Period != 0 { + if v.TimedMetadataId3Period != nil { ok := object.Key("timedMetadataId3Period") - ok.Integer(v.TimedMetadataId3Period) + ok.Integer(*v.TimedMetadataId3Period) } - if v.TimestampDeltaMilliseconds != 0 { + if v.TimestampDeltaMilliseconds != nil { ok := object.Key("timestampDeltaMilliseconds") - ok.Integer(v.TimestampDeltaMilliseconds) + ok.Integer(*v.TimestampDeltaMilliseconds) } return nil @@ -6463,42 +6463,42 @@ func awsRestjson1_serializeDocumentHlsImageBasedTrickPlaySettings(v *types.HlsIm ok.String(string(v.IntervalCadence)) } - if v.ThumbnailHeight != 0 { + if v.ThumbnailHeight != nil { ok := object.Key("thumbnailHeight") - ok.Integer(v.ThumbnailHeight) + ok.Integer(*v.ThumbnailHeight) } - if v.ThumbnailInterval != 0 { + if v.ThumbnailInterval != nil { ok := object.Key("thumbnailInterval") switch { - case math.IsNaN(v.ThumbnailInterval): + case math.IsNaN(*v.ThumbnailInterval): ok.String("NaN") - case math.IsInf(v.ThumbnailInterval, 1): + case math.IsInf(*v.ThumbnailInterval, 1): ok.String("Infinity") - case math.IsInf(v.ThumbnailInterval, -1): + case math.IsInf(*v.ThumbnailInterval, -1): ok.String("-Infinity") default: - ok.Double(v.ThumbnailInterval) + ok.Double(*v.ThumbnailInterval) } } - if v.ThumbnailWidth != 0 { + if v.ThumbnailWidth != nil { ok := object.Key("thumbnailWidth") - ok.Integer(v.ThumbnailWidth) + ok.Integer(*v.ThumbnailWidth) } - if v.TileHeight != 0 { + if v.TileHeight != nil { ok := object.Key("tileHeight") - ok.Integer(v.TileHeight) + ok.Integer(*v.TileHeight) } - if v.TileWidth != 0 { + if v.TileWidth != nil { ok := object.Key("tileWidth") - ok.Integer(v.TileWidth) + ok.Integer(*v.TileWidth) } return nil @@ -6572,9 +6572,9 @@ func awsRestjson1_serializeDocumentHopDestination(v *types.HopDestination, value object := value.Object() defer object.Close() - if v.Priority != 0 { + if v.Priority != nil { ok := object.Key("priority") - ok.Integer(v.Priority) + ok.Integer(*v.Priority) } if v.Queue != nil { @@ -6582,9 +6582,9 @@ func awsRestjson1_serializeDocumentHopDestination(v *types.HopDestination, value ok.String(*v.Queue) } - if v.WaitMinutes != 0 { + if v.WaitMinutes != nil { ok := object.Key("waitMinutes") - ok.Integer(v.WaitMinutes) + ok.Integer(*v.WaitMinutes) } return nil @@ -6618,9 +6618,9 @@ func awsRestjson1_serializeDocumentImageInserter(v *types.ImageInserter, value s } } - if v.SdrReferenceWhiteLevel != 0 { + if v.SdrReferenceWhiteLevel != nil { ok := object.Key("sdrReferenceWhiteLevel") - ok.Integer(v.SdrReferenceWhiteLevel) + ok.Integer(*v.SdrReferenceWhiteLevel) } return nil @@ -6719,9 +6719,9 @@ func awsRestjson1_serializeDocumentInput(v *types.Input, value smithyjson.Value) ok.String(string(v.FilterEnable)) } - if v.FilterStrength != 0 { + if v.FilterStrength != nil { ok := object.Key("filterStrength") - ok.Integer(v.FilterStrength) + ok.Integer(*v.FilterStrength) } if v.ImageInserter != nil { @@ -6750,9 +6750,9 @@ func awsRestjson1_serializeDocumentInput(v *types.Input, value smithyjson.Value) } } - if v.ProgramNumber != 0 { + if v.ProgramNumber != nil { ok := object.Key("programNumber") - ok.Integer(v.ProgramNumber) + ok.Integer(*v.ProgramNumber) } if len(v.PsiControl) > 0 { @@ -6909,9 +6909,9 @@ func awsRestjson1_serializeDocumentInputTemplate(v *types.InputTemplate, value s ok.String(string(v.FilterEnable)) } - if v.FilterStrength != 0 { + if v.FilterStrength != nil { ok := object.Key("filterStrength") - ok.Integer(v.FilterStrength) + ok.Integer(*v.FilterStrength) } if v.ImageInserter != nil { @@ -6940,9 +6940,9 @@ func awsRestjson1_serializeDocumentInputTemplate(v *types.InputTemplate, value s } } - if v.ProgramNumber != 0 { + if v.ProgramNumber != nil { ok := object.Key("programNumber") - ok.Integer(v.ProgramNumber) + ok.Integer(*v.ProgramNumber) } if len(v.PsiControl) > 0 { @@ -6981,9 +6981,9 @@ func awsRestjson1_serializeDocumentInputVideoGenerator(v *types.InputVideoGenera object := value.Object() defer object.Close() - if v.Duration != 0 { + if v.Duration != nil { ok := object.Key("duration") - ok.Integer(v.Duration) + ok.Integer(*v.Duration) } return nil @@ -6993,24 +6993,24 @@ func awsRestjson1_serializeDocumentInsertableImage(v *types.InsertableImage, val object := value.Object() defer object.Close() - if v.Duration != 0 { + if v.Duration != nil { ok := object.Key("duration") - ok.Integer(v.Duration) + ok.Integer(*v.Duration) } - if v.FadeIn != 0 { + if v.FadeIn != nil { ok := object.Key("fadeIn") - ok.Integer(v.FadeIn) + ok.Integer(*v.FadeIn) } - if v.FadeOut != 0 { + if v.FadeOut != nil { ok := object.Key("fadeOut") - ok.Integer(v.FadeOut) + ok.Integer(*v.FadeOut) } - if v.Height != 0 { + if v.Height != nil { ok := object.Key("height") - ok.Integer(v.Height) + ok.Integer(*v.Height) } if v.ImageInserterInput != nil { @@ -7018,24 +7018,24 @@ func awsRestjson1_serializeDocumentInsertableImage(v *types.InsertableImage, val ok.String(*v.ImageInserterInput) } - if v.ImageX != 0 { + if v.ImageX != nil { ok := object.Key("imageX") - ok.Integer(v.ImageX) + ok.Integer(*v.ImageX) } - if v.ImageY != 0 { + if v.ImageY != nil { ok := object.Key("imageY") - ok.Integer(v.ImageY) + ok.Integer(*v.ImageY) } - if v.Layer != 0 { + if v.Layer != nil { ok := object.Key("layer") - ok.Integer(v.Layer) + ok.Integer(*v.Layer) } - if v.Opacity != 0 { + if v.Opacity != nil { ok := object.Key("opacity") - ok.Integer(v.Opacity) + ok.Integer(*v.Opacity) } if v.StartTime != nil { @@ -7043,9 +7043,9 @@ func awsRestjson1_serializeDocumentInsertableImage(v *types.InsertableImage, val ok.String(*v.StartTime) } - if v.Width != 0 { + if v.Width != nil { ok := object.Key("width") - ok.Integer(v.Width) + ok.Integer(*v.Width) } return nil @@ -7055,9 +7055,9 @@ func awsRestjson1_serializeDocumentJobSettings(v *types.JobSettings, value smith object := value.Object() defer object.Close() - if v.AdAvailOffset != 0 { + if v.AdAvailOffset != nil { ok := object.Key("adAvailOffset") - ok.Integer(v.AdAvailOffset) + ok.Integer(*v.AdAvailOffset) } if v.AvailBlanking != nil { @@ -7144,9 +7144,9 @@ func awsRestjson1_serializeDocumentJobTemplateSettings(v *types.JobTemplateSetti object := value.Object() defer object.Close() - if v.AdAvailOffset != 0 { + if v.AdAvailOffset != nil { ok := object.Key("adAvailOffset") - ok.Integer(v.AdAvailOffset) + ok.Integer(*v.AdAvailOffset) } if v.AvailBlanking != nil { @@ -7248,27 +7248,27 @@ func awsRestjson1_serializeDocumentKantarWatermarkSettings(v *types.KantarWaterm ok.String(*v.CredentialsSecretName) } - if v.FileOffset != 0 { + if v.FileOffset != nil { ok := object.Key("fileOffset") switch { - case math.IsNaN(v.FileOffset): + case math.IsNaN(*v.FileOffset): ok.String("NaN") - case math.IsInf(v.FileOffset, 1): + case math.IsInf(*v.FileOffset, 1): ok.String("Infinity") - case math.IsInf(v.FileOffset, -1): + case math.IsInf(*v.FileOffset, -1): ok.String("-Infinity") default: - ok.Double(v.FileOffset) + ok.Double(*v.FileOffset) } } - if v.KantarLicenseId != 0 { + if v.KantarLicenseId != nil { ok := object.Key("kantarLicenseId") - ok.Integer(v.KantarLicenseId) + ok.Integer(*v.KantarLicenseId) } if v.KantarServerUrl != nil { @@ -7318,9 +7318,9 @@ func awsRestjson1_serializeDocumentM2tsScte35Esam(v *types.M2tsScte35Esam, value object := value.Object() defer object.Close() - if v.Scte35EsamPid != 0 { + if v.Scte35EsamPid != nil { ok := object.Key("scte35EsamPid") - ok.Integer(v.Scte35EsamPid) + ok.Integer(*v.Scte35EsamPid) } return nil @@ -7340,9 +7340,9 @@ func awsRestjson1_serializeDocumentM2tsSettings(v *types.M2tsSettings, value smi ok.String(string(v.AudioDuration)) } - if v.AudioFramesPerPes != 0 { + if v.AudioFramesPerPes != nil { ok := object.Key("audioFramesPerPes") - ok.Integer(v.AudioFramesPerPes) + ok.Integer(*v.AudioFramesPerPes) } if v.AudioPids != nil { @@ -7352,9 +7352,9 @@ func awsRestjson1_serializeDocumentM2tsSettings(v *types.M2tsSettings, value smi } } - if v.Bitrate != 0 { + if v.Bitrate != nil { ok := object.Key("bitrate") - ok.Integer(v.Bitrate) + ok.Integer(*v.Bitrate) } if len(v.BufferModel) > 0 { @@ -7395,9 +7395,9 @@ func awsRestjson1_serializeDocumentM2tsSettings(v *types.M2tsSettings, value smi } } - if v.DvbTeletextPid != 0 { + if v.DvbTeletextPid != nil { ok := object.Key("dvbTeletextPid") - ok.Integer(v.DvbTeletextPid) + ok.Integer(*v.DvbTeletextPid) } if len(v.EbpAudioInterval) > 0 { @@ -7420,20 +7420,20 @@ func awsRestjson1_serializeDocumentM2tsSettings(v *types.M2tsSettings, value smi ok.String(string(v.ForceTsVideoEbpOrder)) } - if v.FragmentTime != 0 { + if v.FragmentTime != nil { ok := object.Key("fragmentTime") switch { - case math.IsNaN(v.FragmentTime): + case math.IsNaN(*v.FragmentTime): ok.String("NaN") - case math.IsInf(v.FragmentTime, 1): + case math.IsInf(*v.FragmentTime, 1): ok.String("Infinity") - case math.IsInf(v.FragmentTime, -1): + case math.IsInf(*v.FragmentTime, -1): ok.String("-Infinity") default: - ok.Double(v.FragmentTime) + ok.Double(*v.FragmentTime) } } @@ -7443,14 +7443,14 @@ func awsRestjson1_serializeDocumentM2tsSettings(v *types.M2tsSettings, value smi ok.String(string(v.KlvMetadata)) } - if v.MaxPcrInterval != 0 { + if v.MaxPcrInterval != nil { ok := object.Key("maxPcrInterval") - ok.Integer(v.MaxPcrInterval) + ok.Integer(*v.MaxPcrInterval) } - if v.MinEbpInterval != 0 { + if v.MinEbpInterval != nil { ok := object.Key("minEbpInterval") - ok.Integer(v.MinEbpInterval) + ok.Integer(*v.MinEbpInterval) } if len(v.NielsenId3) > 0 { @@ -7458,27 +7458,27 @@ func awsRestjson1_serializeDocumentM2tsSettings(v *types.M2tsSettings, value smi ok.String(string(v.NielsenId3)) } - if v.NullPacketBitrate != 0 { + if v.NullPacketBitrate != nil { ok := object.Key("nullPacketBitrate") switch { - case math.IsNaN(v.NullPacketBitrate): + case math.IsNaN(*v.NullPacketBitrate): ok.String("NaN") - case math.IsInf(v.NullPacketBitrate, 1): + case math.IsInf(*v.NullPacketBitrate, 1): ok.String("Infinity") - case math.IsInf(v.NullPacketBitrate, -1): + case math.IsInf(*v.NullPacketBitrate, -1): ok.String("-Infinity") default: - ok.Double(v.NullPacketBitrate) + ok.Double(*v.NullPacketBitrate) } } - if v.PatInterval != 0 { + if v.PatInterval != nil { ok := object.Key("patInterval") - ok.Integer(v.PatInterval) + ok.Integer(*v.PatInterval) } if len(v.PcrControl) > 0 { @@ -7486,34 +7486,34 @@ func awsRestjson1_serializeDocumentM2tsSettings(v *types.M2tsSettings, value smi ok.String(string(v.PcrControl)) } - if v.PcrPid != 0 { + if v.PcrPid != nil { ok := object.Key("pcrPid") - ok.Integer(v.PcrPid) + ok.Integer(*v.PcrPid) } - if v.PmtInterval != 0 { + if v.PmtInterval != nil { ok := object.Key("pmtInterval") - ok.Integer(v.PmtInterval) + ok.Integer(*v.PmtInterval) } - if v.PmtPid != 0 { + if v.PmtPid != nil { ok := object.Key("pmtPid") - ok.Integer(v.PmtPid) + ok.Integer(*v.PmtPid) } - if v.PrivateMetadataPid != 0 { + if v.PrivateMetadataPid != nil { ok := object.Key("privateMetadataPid") - ok.Integer(v.PrivateMetadataPid) + ok.Integer(*v.PrivateMetadataPid) } - if v.ProgramNumber != 0 { + if v.ProgramNumber != nil { ok := object.Key("programNumber") - ok.Integer(v.ProgramNumber) + ok.Integer(*v.ProgramNumber) } - if v.PtsOffset != 0 { + if v.PtsOffset != nil { ok := object.Key("ptsOffset") - ok.Integer(v.PtsOffset) + ok.Integer(*v.PtsOffset) } if len(v.PtsOffsetMode) > 0 { @@ -7533,9 +7533,9 @@ func awsRestjson1_serializeDocumentM2tsSettings(v *types.M2tsSettings, value smi } } - if v.Scte35Pid != 0 { + if v.Scte35Pid != nil { ok := object.Key("scte35Pid") - ok.Integer(v.Scte35Pid) + ok.Integer(*v.Scte35Pid) } if len(v.Scte35Source) > 0 { @@ -7553,37 +7553,37 @@ func awsRestjson1_serializeDocumentM2tsSettings(v *types.M2tsSettings, value smi ok.String(string(v.SegmentationStyle)) } - if v.SegmentationTime != 0 { + if v.SegmentationTime != nil { ok := object.Key("segmentationTime") switch { - case math.IsNaN(v.SegmentationTime): + case math.IsNaN(*v.SegmentationTime): ok.String("NaN") - case math.IsInf(v.SegmentationTime, 1): + case math.IsInf(*v.SegmentationTime, 1): ok.String("Infinity") - case math.IsInf(v.SegmentationTime, -1): + case math.IsInf(*v.SegmentationTime, -1): ok.String("-Infinity") default: - ok.Double(v.SegmentationTime) + ok.Double(*v.SegmentationTime) } } - if v.TimedMetadataPid != 0 { + if v.TimedMetadataPid != nil { ok := object.Key("timedMetadataPid") - ok.Integer(v.TimedMetadataPid) + ok.Integer(*v.TimedMetadataPid) } - if v.TransportStreamId != 0 { + if v.TransportStreamId != nil { ok := object.Key("transportStreamId") - ok.Integer(v.TransportStreamId) + ok.Integer(*v.TransportStreamId) } - if v.VideoPid != 0 { + if v.VideoPid != nil { ok := object.Key("videoPid") - ok.Integer(v.VideoPid) + ok.Integer(*v.VideoPid) } return nil @@ -7598,9 +7598,9 @@ func awsRestjson1_serializeDocumentM3u8Settings(v *types.M3u8Settings, value smi ok.String(string(v.AudioDuration)) } - if v.AudioFramesPerPes != 0 { + if v.AudioFramesPerPes != nil { ok := object.Key("audioFramesPerPes") - ok.Integer(v.AudioFramesPerPes) + ok.Integer(*v.AudioFramesPerPes) } if v.AudioPids != nil { @@ -7615,9 +7615,9 @@ func awsRestjson1_serializeDocumentM3u8Settings(v *types.M3u8Settings, value smi ok.String(string(v.DataPTSControl)) } - if v.MaxPcrInterval != 0 { + if v.MaxPcrInterval != nil { ok := object.Key("maxPcrInterval") - ok.Integer(v.MaxPcrInterval) + ok.Integer(*v.MaxPcrInterval) } if len(v.NielsenId3) > 0 { @@ -7625,9 +7625,9 @@ func awsRestjson1_serializeDocumentM3u8Settings(v *types.M3u8Settings, value smi ok.String(string(v.NielsenId3)) } - if v.PatInterval != 0 { + if v.PatInterval != nil { ok := object.Key("patInterval") - ok.Integer(v.PatInterval) + ok.Integer(*v.PatInterval) } if len(v.PcrControl) > 0 { @@ -7635,34 +7635,34 @@ func awsRestjson1_serializeDocumentM3u8Settings(v *types.M3u8Settings, value smi ok.String(string(v.PcrControl)) } - if v.PcrPid != 0 { + if v.PcrPid != nil { ok := object.Key("pcrPid") - ok.Integer(v.PcrPid) + ok.Integer(*v.PcrPid) } - if v.PmtInterval != 0 { + if v.PmtInterval != nil { ok := object.Key("pmtInterval") - ok.Integer(v.PmtInterval) + ok.Integer(*v.PmtInterval) } - if v.PmtPid != 0 { + if v.PmtPid != nil { ok := object.Key("pmtPid") - ok.Integer(v.PmtPid) + ok.Integer(*v.PmtPid) } - if v.PrivateMetadataPid != 0 { + if v.PrivateMetadataPid != nil { ok := object.Key("privateMetadataPid") - ok.Integer(v.PrivateMetadataPid) + ok.Integer(*v.PrivateMetadataPid) } - if v.ProgramNumber != 0 { + if v.ProgramNumber != nil { ok := object.Key("programNumber") - ok.Integer(v.ProgramNumber) + ok.Integer(*v.ProgramNumber) } - if v.PtsOffset != 0 { + if v.PtsOffset != nil { ok := object.Key("ptsOffset") - ok.Integer(v.PtsOffset) + ok.Integer(*v.PtsOffset) } if len(v.PtsOffsetMode) > 0 { @@ -7670,9 +7670,9 @@ func awsRestjson1_serializeDocumentM3u8Settings(v *types.M3u8Settings, value smi ok.String(string(v.PtsOffsetMode)) } - if v.Scte35Pid != 0 { + if v.Scte35Pid != nil { ok := object.Key("scte35Pid") - ok.Integer(v.Scte35Pid) + ok.Integer(*v.Scte35Pid) } if len(v.Scte35Source) > 0 { @@ -7685,19 +7685,19 @@ func awsRestjson1_serializeDocumentM3u8Settings(v *types.M3u8Settings, value smi ok.String(string(v.TimedMetadata)) } - if v.TimedMetadataPid != 0 { + if v.TimedMetadataPid != nil { ok := object.Key("timedMetadataPid") - ok.Integer(v.TimedMetadataPid) + ok.Integer(*v.TimedMetadataPid) } - if v.TransportStreamId != 0 { + if v.TransportStreamId != nil { ok := object.Key("transportStreamId") - ok.Integer(v.TransportStreamId) + ok.Integer(*v.TransportStreamId) } - if v.VideoPid != 0 { + if v.VideoPid != nil { ok := object.Key("videoPid") - ok.Integer(v.VideoPid) + ok.Integer(*v.VideoPid) } return nil @@ -7707,14 +7707,14 @@ func awsRestjson1_serializeDocumentMinBottomRenditionSize(v *types.MinBottomRend object := value.Object() defer object.Close() - if v.Height != 0 { + if v.Height != nil { ok := object.Key("height") - ok.Integer(v.Height) + ok.Integer(*v.Height) } - if v.Width != 0 { + if v.Width != nil { ok := object.Key("width") - ok.Integer(v.Width) + ok.Integer(*v.Width) } return nil @@ -7724,14 +7724,14 @@ func awsRestjson1_serializeDocumentMinTopRenditionSize(v *types.MinTopRenditionS object := value.Object() defer object.Close() - if v.Height != 0 { + if v.Height != nil { ok := object.Key("height") - ok.Integer(v.Height) + ok.Integer(*v.Height) } - if v.Width != 0 { + if v.Width != nil { ok := object.Key("width") - ok.Integer(v.Width) + ok.Integer(*v.Width) } return nil @@ -7782,14 +7782,14 @@ func awsRestjson1_serializeDocumentMotionImageInsertionFramerate(v *types.Motion object := value.Object() defer object.Close() - if v.FramerateDenominator != 0 { + if v.FramerateDenominator != nil { ok := object.Key("framerateDenominator") - ok.Integer(v.FramerateDenominator) + ok.Integer(*v.FramerateDenominator) } - if v.FramerateNumerator != 0 { + if v.FramerateNumerator != nil { ok := object.Key("framerateNumerator") - ok.Integer(v.FramerateNumerator) + ok.Integer(*v.FramerateNumerator) } return nil @@ -7799,14 +7799,14 @@ func awsRestjson1_serializeDocumentMotionImageInsertionOffset(v *types.MotionIma object := value.Object() defer object.Close() - if v.ImageX != 0 { + if v.ImageX != nil { ok := object.Key("imageX") - ok.Integer(v.ImageX) + ok.Integer(*v.ImageX) } - if v.ImageY != 0 { + if v.ImageY != nil { ok := object.Key("imageY") - ok.Integer(v.ImageY) + ok.Integer(*v.ImageY) } return nil @@ -7848,19 +7848,19 @@ func awsRestjson1_serializeDocumentMp2Settings(v *types.Mp2Settings, value smith object := value.Object() defer object.Close() - if v.Bitrate != 0 { + if v.Bitrate != nil { ok := object.Key("bitrate") - ok.Integer(v.Bitrate) + ok.Integer(*v.Bitrate) } - if v.Channels != 0 { + if v.Channels != nil { ok := object.Key("channels") - ok.Integer(v.Channels) + ok.Integer(*v.Channels) } - if v.SampleRate != 0 { + if v.SampleRate != nil { ok := object.Key("sampleRate") - ok.Integer(v.SampleRate) + ok.Integer(*v.SampleRate) } return nil @@ -7870,14 +7870,14 @@ func awsRestjson1_serializeDocumentMp3Settings(v *types.Mp3Settings, value smith object := value.Object() defer object.Close() - if v.Bitrate != 0 { + if v.Bitrate != nil { ok := object.Key("bitrate") - ok.Integer(v.Bitrate) + ok.Integer(*v.Bitrate) } - if v.Channels != 0 { + if v.Channels != nil { ok := object.Key("channels") - ok.Integer(v.Channels) + ok.Integer(*v.Channels) } if len(v.RateControlMode) > 0 { @@ -7885,14 +7885,14 @@ func awsRestjson1_serializeDocumentMp3Settings(v *types.Mp3Settings, value smith ok.String(string(v.RateControlMode)) } - if v.SampleRate != 0 { + if v.SampleRate != nil { ok := object.Key("sampleRate") - ok.Integer(v.SampleRate) + ok.Integer(*v.SampleRate) } - if v.VbrQuality != 0 { + if v.VbrQuality != nil { ok := object.Key("vbrQuality") - ok.Integer(v.VbrQuality) + ok.Integer(*v.VbrQuality) } return nil @@ -7912,9 +7912,9 @@ func awsRestjson1_serializeDocumentMp4Settings(v *types.Mp4Settings, value smith ok.String(string(v.CslgAtom)) } - if v.CttsVersion != 0 { + if v.CttsVersion != nil { ok := object.Key("cttsVersion") - ok.Integer(v.CttsVersion) + ok.Integer(*v.CttsVersion) } if len(v.FreeSpaceBox) > 0 { @@ -8006,9 +8006,9 @@ func awsRestjson1_serializeDocumentMpeg2Settings(v *types.Mpeg2Settings, value s ok.String(string(v.AdaptiveQuantization)) } - if v.Bitrate != 0 { + if v.Bitrate != nil { ok := object.Key("bitrate") - ok.Integer(v.Bitrate) + ok.Integer(*v.Bitrate) } if len(v.CodecLevel) > 0 { @@ -8036,35 +8036,35 @@ func awsRestjson1_serializeDocumentMpeg2Settings(v *types.Mpeg2Settings, value s ok.String(string(v.FramerateConversionAlgorithm)) } - if v.FramerateDenominator != 0 { + if v.FramerateDenominator != nil { ok := object.Key("framerateDenominator") - ok.Integer(v.FramerateDenominator) + ok.Integer(*v.FramerateDenominator) } - if v.FramerateNumerator != 0 { + if v.FramerateNumerator != nil { ok := object.Key("framerateNumerator") - ok.Integer(v.FramerateNumerator) + ok.Integer(*v.FramerateNumerator) } - if v.GopClosedCadence != 0 { + if v.GopClosedCadence != nil { ok := object.Key("gopClosedCadence") - ok.Integer(v.GopClosedCadence) + ok.Integer(*v.GopClosedCadence) } - if v.GopSize != 0 { + if v.GopSize != nil { ok := object.Key("gopSize") switch { - case math.IsNaN(v.GopSize): + case math.IsNaN(*v.GopSize): ok.String("NaN") - case math.IsInf(v.GopSize, 1): + case math.IsInf(*v.GopSize, 1): ok.String("Infinity") - case math.IsInf(v.GopSize, -1): + case math.IsInf(*v.GopSize, -1): ok.String("-Infinity") default: - ok.Double(v.GopSize) + ok.Double(*v.GopSize) } } @@ -8074,19 +8074,19 @@ func awsRestjson1_serializeDocumentMpeg2Settings(v *types.Mpeg2Settings, value s ok.String(string(v.GopSizeUnits)) } - if v.HrdBufferFinalFillPercentage != 0 { + if v.HrdBufferFinalFillPercentage != nil { ok := object.Key("hrdBufferFinalFillPercentage") - ok.Integer(v.HrdBufferFinalFillPercentage) + ok.Integer(*v.HrdBufferFinalFillPercentage) } - if v.HrdBufferInitialFillPercentage != 0 { + if v.HrdBufferInitialFillPercentage != nil { ok := object.Key("hrdBufferInitialFillPercentage") - ok.Integer(v.HrdBufferInitialFillPercentage) + ok.Integer(*v.HrdBufferInitialFillPercentage) } - if v.HrdBufferSize != 0 { + if v.HrdBufferSize != nil { ok := object.Key("hrdBufferSize") - ok.Integer(v.HrdBufferSize) + ok.Integer(*v.HrdBufferSize) } if len(v.InterlaceMode) > 0 { @@ -8099,19 +8099,19 @@ func awsRestjson1_serializeDocumentMpeg2Settings(v *types.Mpeg2Settings, value s ok.String(string(v.IntraDcPrecision)) } - if v.MaxBitrate != 0 { + if v.MaxBitrate != nil { ok := object.Key("maxBitrate") - ok.Integer(v.MaxBitrate) + ok.Integer(*v.MaxBitrate) } - if v.MinIInterval != 0 { + if v.MinIInterval != nil { ok := object.Key("minIInterval") - ok.Integer(v.MinIInterval) + ok.Integer(*v.MinIInterval) } - if v.NumberBFramesBetweenReferenceFrames != 0 { + if v.NumberBFramesBetweenReferenceFrames != nil { ok := object.Key("numberBFramesBetweenReferenceFrames") - ok.Integer(v.NumberBFramesBetweenReferenceFrames) + ok.Integer(*v.NumberBFramesBetweenReferenceFrames) } if len(v.ParControl) > 0 { @@ -8119,14 +8119,14 @@ func awsRestjson1_serializeDocumentMpeg2Settings(v *types.Mpeg2Settings, value s ok.String(string(v.ParControl)) } - if v.ParDenominator != 0 { + if v.ParDenominator != nil { ok := object.Key("parDenominator") - ok.Integer(v.ParDenominator) + ok.Integer(*v.ParDenominator) } - if v.ParNumerator != 0 { + if v.ParNumerator != nil { ok := object.Key("parNumerator") - ok.Integer(v.ParNumerator) + ok.Integer(*v.ParNumerator) } if len(v.QualityTuningLevel) > 0 { @@ -8154,9 +8154,9 @@ func awsRestjson1_serializeDocumentMpeg2Settings(v *types.Mpeg2Settings, value s ok.String(string(v.SlowPal)) } - if v.Softness != 0 { + if v.Softness != nil { ok := object.Key("softness") - ok.Integer(v.Softness) + ok.Integer(*v.Softness) } if len(v.SpatialAdaptiveQuantization) > 0 { @@ -8250,9 +8250,9 @@ func awsRestjson1_serializeDocumentMsSmoothGroupSettings(v *types.MsSmoothGroupS } } - if v.FragmentLength != 0 { + if v.FragmentLength != nil { ok := object.Key("fragmentLength") - ok.Integer(v.FragmentLength) + ok.Integer(*v.FragmentLength) } if len(v.FragmentLengthControl) > 0 { @@ -8301,9 +8301,9 @@ func awsRestjson1_serializeDocumentMxfXavcProfileSettings(v *types.MxfXavcProfil ok.String(string(v.DurationMode)) } - if v.MaxAncDataSize != 0 { + if v.MaxAncDataSize != nil { ok := object.Key("maxAncDataSize") - ok.Integer(v.MaxAncDataSize) + ok.Integer(*v.MaxAncDataSize) } return nil @@ -8318,9 +8318,9 @@ func awsRestjson1_serializeDocumentNexGuardFileMarkerSettings(v *types.NexGuardF ok.String(*v.License) } - if v.Payload != 0 { + if v.Payload != nil { ok := object.Key("payload") - ok.Integer(v.Payload) + ok.Integer(*v.Payload) } if v.Preset != nil { @@ -8340,9 +8340,9 @@ func awsRestjson1_serializeDocumentNielsenConfiguration(v *types.NielsenConfigur object := value.Object() defer object.Close() - if v.BreakoutCode != 0 { + if v.BreakoutCode != nil { ok := object.Key("breakoutCode") - ok.Integer(v.BreakoutCode) + ok.Integer(*v.BreakoutCode) } if v.DistributorId != nil { @@ -8392,9 +8392,9 @@ func awsRestjson1_serializeDocumentNielsenNonLinearWatermarkSettings(v *types.Ni ok.String(*v.MetadataDestination) } - if v.SourceId != 0 { + if v.SourceId != nil { ok := object.Key("sourceId") - ok.Integer(v.SourceId) + ok.Integer(*v.SourceId) } if len(v.SourceWatermarkStatus) > 0 { @@ -8452,9 +8452,9 @@ func awsRestjson1_serializeDocumentNoiseReducerFilterSettings(v *types.NoiseRedu object := value.Object() defer object.Close() - if v.Strength != 0 { + if v.Strength != nil { ok := object.Key("strength") - ok.Integer(v.Strength) + ok.Integer(*v.Strength) } return nil @@ -8464,19 +8464,19 @@ func awsRestjson1_serializeDocumentNoiseReducerSpatialFilterSettings(v *types.No object := value.Object() defer object.Close() - if v.PostFilterSharpenStrength != 0 { + if v.PostFilterSharpenStrength != nil { ok := object.Key("postFilterSharpenStrength") - ok.Integer(v.PostFilterSharpenStrength) + ok.Integer(*v.PostFilterSharpenStrength) } - if v.Speed != 0 { + if v.Speed != nil { ok := object.Key("speed") - ok.Integer(v.Speed) + ok.Integer(*v.Speed) } - if v.Strength != 0 { + if v.Strength != nil { ok := object.Key("strength") - ok.Integer(v.Strength) + ok.Integer(*v.Strength) } return nil @@ -8486,9 +8486,9 @@ func awsRestjson1_serializeDocumentNoiseReducerTemporalFilterSettings(v *types.N object := value.Object() defer object.Close() - if v.AggressiveMode != 0 { + if v.AggressiveMode != nil { ok := object.Key("aggressiveMode") - ok.Integer(v.AggressiveMode) + ok.Integer(*v.AggressiveMode) } if len(v.PostTemporalSharpening) > 0 { @@ -8501,14 +8501,14 @@ func awsRestjson1_serializeDocumentNoiseReducerTemporalFilterSettings(v *types.N ok.String(string(v.PostTemporalSharpeningStrength)) } - if v.Speed != 0 { + if v.Speed != nil { ok := object.Key("speed") - ok.Integer(v.Speed) + ok.Integer(*v.Speed) } - if v.Strength != 0 { + if v.Strength != nil { ok := object.Key("strength") - ok.Integer(v.Strength) + ok.Integer(*v.Strength) } return nil @@ -8518,19 +8518,19 @@ func awsRestjson1_serializeDocumentOpusSettings(v *types.OpusSettings, value smi object := value.Object() defer object.Close() - if v.Bitrate != 0 { + if v.Bitrate != nil { ok := object.Key("bitrate") - ok.Integer(v.Bitrate) + ok.Integer(*v.Bitrate) } - if v.Channels != 0 { + if v.Channels != nil { ok := object.Key("channels") - ok.Integer(v.Channels) + ok.Integer(*v.Channels) } - if v.SampleRate != 0 { + if v.SampleRate != nil { ok := object.Key("sampleRate") - ok.Integer(v.SampleRate) + ok.Integer(*v.SampleRate) } return nil @@ -8808,14 +8808,14 @@ func awsRestjson1_serializeDocumentProresSettings(v *types.ProresSettings, value ok.String(string(v.FramerateConversionAlgorithm)) } - if v.FramerateDenominator != 0 { + if v.FramerateDenominator != nil { ok := object.Key("framerateDenominator") - ok.Integer(v.FramerateDenominator) + ok.Integer(*v.FramerateDenominator) } - if v.FramerateNumerator != 0 { + if v.FramerateNumerator != nil { ok := object.Key("framerateNumerator") - ok.Integer(v.FramerateNumerator) + ok.Integer(*v.FramerateNumerator) } if len(v.InterlaceMode) > 0 { @@ -8828,14 +8828,14 @@ func awsRestjson1_serializeDocumentProresSettings(v *types.ProresSettings, value ok.String(string(v.ParControl)) } - if v.ParDenominator != 0 { + if v.ParDenominator != nil { ok := object.Key("parDenominator") - ok.Integer(v.ParDenominator) + ok.Integer(*v.ParDenominator) } - if v.ParNumerator != 0 { + if v.ParNumerator != nil { ok := object.Key("parNumerator") - ok.Integer(v.ParNumerator) + ok.Integer(*v.ParNumerator) } if len(v.ScanTypeConversionMode) > 0 { @@ -8860,24 +8860,24 @@ func awsRestjson1_serializeDocumentRectangle(v *types.Rectangle, value smithyjso object := value.Object() defer object.Close() - if v.Height != 0 { + if v.Height != nil { ok := object.Key("height") - ok.Integer(v.Height) + ok.Integer(*v.Height) } - if v.Width != 0 { + if v.Width != nil { ok := object.Key("width") - ok.Integer(v.Width) + ok.Integer(*v.Width) } - if v.X != 0 { + if v.X != nil { ok := object.Key("x") - ok.Integer(v.X) + ok.Integer(*v.X) } - if v.Y != 0 { + if v.Y != nil { ok := object.Key("y") - ok.Integer(v.Y) + ok.Integer(*v.Y) } return nil @@ -8894,14 +8894,14 @@ func awsRestjson1_serializeDocumentRemixSettings(v *types.RemixSettings, value s } } - if v.ChannelsIn != 0 { + if v.ChannelsIn != nil { ok := object.Key("channelsIn") - ok.Integer(v.ChannelsIn) + ok.Integer(*v.ChannelsIn) } - if v.ChannelsOut != 0 { + if v.ChannelsOut != nil { ok := object.Key("channelsOut") - ok.Integer(v.ChannelsOut) + ok.Integer(*v.ChannelsOut) } return nil @@ -8921,9 +8921,9 @@ func awsRestjson1_serializeDocumentReservationPlanSettings(v *types.ReservationP ok.String(string(v.RenewalType)) } - { + if v.ReservedSlots != nil { ok := object.Key("reservedSlots") - ok.Integer(v.ReservedSlots) + ok.Integer(*v.ReservedSlots) } return nil @@ -9140,9 +9140,9 @@ func awsRestjson1_serializeDocumentTimecodeBurnin(v *types.TimecodeBurnin, value object := value.Object() defer object.Close() - if v.FontSize != 0 { + if v.FontSize != nil { ok := object.Key("fontSize") - ok.Integer(v.FontSize) + ok.Integer(*v.FontSize) } if len(v.Position) > 0 { @@ -9203,9 +9203,9 @@ func awsRestjson1_serializeDocumentTrackSourceSettings(v *types.TrackSourceSetti object := value.Object() defer object.Close() - if v.TrackNumber != 0 { + if v.TrackNumber != nil { ok := object.Key("trackNumber") - ok.Integer(v.TrackNumber) + ok.Integer(*v.TrackNumber) } return nil @@ -9237,14 +9237,14 @@ func awsRestjson1_serializeDocumentVc3Settings(v *types.Vc3Settings, value smith ok.String(string(v.FramerateConversionAlgorithm)) } - if v.FramerateDenominator != 0 { + if v.FramerateDenominator != nil { ok := object.Key("framerateDenominator") - ok.Integer(v.FramerateDenominator) + ok.Integer(*v.FramerateDenominator) } - if v.FramerateNumerator != 0 { + if v.FramerateNumerator != nil { ok := object.Key("framerateNumerator") - ok.Integer(v.FramerateNumerator) + ok.Integer(*v.FramerateNumerator) } if len(v.InterlaceMode) > 0 { @@ -9402,14 +9402,14 @@ func awsRestjson1_serializeDocumentVideoDescription(v *types.VideoDescription, v ok.String(string(v.DropFrameTimecode)) } - if v.FixedAfd != 0 { + if v.FixedAfd != nil { ok := object.Key("fixedAfd") - ok.Integer(v.FixedAfd) + ok.Integer(*v.FixedAfd) } - if v.Height != 0 { + if v.Height != nil { ok := object.Key("height") - ok.Integer(v.Height) + ok.Integer(*v.Height) } if v.Position != nil { @@ -9429,9 +9429,9 @@ func awsRestjson1_serializeDocumentVideoDescription(v *types.VideoDescription, v ok.String(string(v.ScalingBehavior)) } - if v.Sharpness != 0 { + if v.Sharpness != nil { ok := object.Key("sharpness") - ok.Integer(v.Sharpness) + ok.Integer(*v.Sharpness) } if len(v.TimecodeInsertion) > 0 { @@ -9446,9 +9446,9 @@ func awsRestjson1_serializeDocumentVideoDescription(v *types.VideoDescription, v } } - if v.Width != 0 { + if v.Width != nil { ok := object.Key("width") - ok.Integer(v.Width) + ok.Integer(*v.Width) } return nil @@ -9623,14 +9623,14 @@ func awsRestjson1_serializeDocumentVideoSelector(v *types.VideoSelector, value s ok.String(string(v.PadVideo)) } - if v.Pid != 0 { + if v.Pid != nil { ok := object.Key("pid") - ok.Integer(v.Pid) + ok.Integer(*v.Pid) } - if v.ProgramNumber != 0 { + if v.ProgramNumber != nil { ok := object.Key("programNumber") - ok.Integer(v.ProgramNumber) + ok.Integer(*v.ProgramNumber) } if len(v.Rotate) > 0 { @@ -9650,19 +9650,19 @@ func awsRestjson1_serializeDocumentVorbisSettings(v *types.VorbisSettings, value object := value.Object() defer object.Close() - if v.Channels != 0 { + if v.Channels != nil { ok := object.Key("channels") - ok.Integer(v.Channels) + ok.Integer(*v.Channels) } - if v.SampleRate != 0 { + if v.SampleRate != nil { ok := object.Key("sampleRate") - ok.Integer(v.SampleRate) + ok.Integer(*v.SampleRate) } - if v.VbrQuality != 0 { + if v.VbrQuality != nil { ok := object.Key("vbrQuality") - ok.Integer(v.VbrQuality) + ok.Integer(*v.VbrQuality) } return nil @@ -9672,9 +9672,9 @@ func awsRestjson1_serializeDocumentVp8Settings(v *types.Vp8Settings, value smith object := value.Object() defer object.Close() - if v.Bitrate != 0 { + if v.Bitrate != nil { ok := object.Key("bitrate") - ok.Integer(v.Bitrate) + ok.Integer(*v.Bitrate) } if len(v.FramerateControl) > 0 { @@ -9687,42 +9687,42 @@ func awsRestjson1_serializeDocumentVp8Settings(v *types.Vp8Settings, value smith ok.String(string(v.FramerateConversionAlgorithm)) } - if v.FramerateDenominator != 0 { + if v.FramerateDenominator != nil { ok := object.Key("framerateDenominator") - ok.Integer(v.FramerateDenominator) + ok.Integer(*v.FramerateDenominator) } - if v.FramerateNumerator != 0 { + if v.FramerateNumerator != nil { ok := object.Key("framerateNumerator") - ok.Integer(v.FramerateNumerator) + ok.Integer(*v.FramerateNumerator) } - if v.GopSize != 0 { + if v.GopSize != nil { ok := object.Key("gopSize") switch { - case math.IsNaN(v.GopSize): + case math.IsNaN(*v.GopSize): ok.String("NaN") - case math.IsInf(v.GopSize, 1): + case math.IsInf(*v.GopSize, 1): ok.String("Infinity") - case math.IsInf(v.GopSize, -1): + case math.IsInf(*v.GopSize, -1): ok.String("-Infinity") default: - ok.Double(v.GopSize) + ok.Double(*v.GopSize) } } - if v.HrdBufferSize != 0 { + if v.HrdBufferSize != nil { ok := object.Key("hrdBufferSize") - ok.Integer(v.HrdBufferSize) + ok.Integer(*v.HrdBufferSize) } - if v.MaxBitrate != 0 { + if v.MaxBitrate != nil { ok := object.Key("maxBitrate") - ok.Integer(v.MaxBitrate) + ok.Integer(*v.MaxBitrate) } if len(v.ParControl) > 0 { @@ -9730,14 +9730,14 @@ func awsRestjson1_serializeDocumentVp8Settings(v *types.Vp8Settings, value smith ok.String(string(v.ParControl)) } - if v.ParDenominator != 0 { + if v.ParDenominator != nil { ok := object.Key("parDenominator") - ok.Integer(v.ParDenominator) + ok.Integer(*v.ParDenominator) } - if v.ParNumerator != 0 { + if v.ParNumerator != nil { ok := object.Key("parNumerator") - ok.Integer(v.ParNumerator) + ok.Integer(*v.ParNumerator) } if len(v.QualityTuningLevel) > 0 { @@ -9757,9 +9757,9 @@ func awsRestjson1_serializeDocumentVp9Settings(v *types.Vp9Settings, value smith object := value.Object() defer object.Close() - if v.Bitrate != 0 { + if v.Bitrate != nil { ok := object.Key("bitrate") - ok.Integer(v.Bitrate) + ok.Integer(*v.Bitrate) } if len(v.FramerateControl) > 0 { @@ -9772,42 +9772,42 @@ func awsRestjson1_serializeDocumentVp9Settings(v *types.Vp9Settings, value smith ok.String(string(v.FramerateConversionAlgorithm)) } - if v.FramerateDenominator != 0 { + if v.FramerateDenominator != nil { ok := object.Key("framerateDenominator") - ok.Integer(v.FramerateDenominator) + ok.Integer(*v.FramerateDenominator) } - if v.FramerateNumerator != 0 { + if v.FramerateNumerator != nil { ok := object.Key("framerateNumerator") - ok.Integer(v.FramerateNumerator) + ok.Integer(*v.FramerateNumerator) } - if v.GopSize != 0 { + if v.GopSize != nil { ok := object.Key("gopSize") switch { - case math.IsNaN(v.GopSize): + case math.IsNaN(*v.GopSize): ok.String("NaN") - case math.IsInf(v.GopSize, 1): + case math.IsInf(*v.GopSize, 1): ok.String("Infinity") - case math.IsInf(v.GopSize, -1): + case math.IsInf(*v.GopSize, -1): ok.String("-Infinity") default: - ok.Double(v.GopSize) + ok.Double(*v.GopSize) } } - if v.HrdBufferSize != 0 { + if v.HrdBufferSize != nil { ok := object.Key("hrdBufferSize") - ok.Integer(v.HrdBufferSize) + ok.Integer(*v.HrdBufferSize) } - if v.MaxBitrate != 0 { + if v.MaxBitrate != nil { ok := object.Key("maxBitrate") - ok.Integer(v.MaxBitrate) + ok.Integer(*v.MaxBitrate) } if len(v.ParControl) > 0 { @@ -9815,14 +9815,14 @@ func awsRestjson1_serializeDocumentVp9Settings(v *types.Vp9Settings, value smith ok.String(string(v.ParControl)) } - if v.ParDenominator != 0 { + if v.ParDenominator != nil { ok := object.Key("parDenominator") - ok.Integer(v.ParDenominator) + ok.Integer(*v.ParDenominator) } - if v.ParNumerator != 0 { + if v.ParNumerator != nil { ok := object.Key("parNumerator") - ok.Integer(v.ParNumerator) + ok.Integer(*v.ParNumerator) } if len(v.QualityTuningLevel) > 0 { @@ -9842,14 +9842,14 @@ func awsRestjson1_serializeDocumentWavSettings(v *types.WavSettings, value smith object := value.Object() defer object.Close() - if v.BitDepth != 0 { + if v.BitDepth != nil { ok := object.Key("bitDepth") - ok.Integer(v.BitDepth) + ok.Integer(*v.BitDepth) } - if v.Channels != 0 { + if v.Channels != nil { ok := object.Key("channels") - ok.Integer(v.Channels) + ok.Integer(*v.Channels) } if len(v.Format) > 0 { @@ -9857,9 +9857,9 @@ func awsRestjson1_serializeDocumentWavSettings(v *types.WavSettings, value smith ok.String(string(v.Format)) } - if v.SampleRate != 0 { + if v.SampleRate != nil { ok := object.Key("sampleRate") - ok.Integer(v.SampleRate) + ok.Integer(*v.SampleRate) } return nil @@ -9952,14 +9952,14 @@ func awsRestjson1_serializeDocumentXavc4kProfileSettings(v *types.Xavc4kProfileS ok.String(string(v.GopBReference)) } - if v.GopClosedCadence != 0 { + if v.GopClosedCadence != nil { ok := object.Key("gopClosedCadence") - ok.Integer(v.GopClosedCadence) + ok.Integer(*v.GopClosedCadence) } - if v.HrdBufferSize != 0 { + if v.HrdBufferSize != nil { ok := object.Key("hrdBufferSize") - ok.Integer(v.HrdBufferSize) + ok.Integer(*v.HrdBufferSize) } if len(v.QualityTuningLevel) > 0 { @@ -9967,9 +9967,9 @@ func awsRestjson1_serializeDocumentXavc4kProfileSettings(v *types.Xavc4kProfileS ok.String(string(v.QualityTuningLevel)) } - if v.Slices != 0 { + if v.Slices != nil { ok := object.Key("slices") - ok.Integer(v.Slices) + ok.Integer(*v.Slices) } return nil @@ -10006,14 +10006,14 @@ func awsRestjson1_serializeDocumentXavcHdProfileSettings(v *types.XavcHdProfileS ok.String(string(v.GopBReference)) } - if v.GopClosedCadence != 0 { + if v.GopClosedCadence != nil { ok := object.Key("gopClosedCadence") - ok.Integer(v.GopClosedCadence) + ok.Integer(*v.GopClosedCadence) } - if v.HrdBufferSize != 0 { + if v.HrdBufferSize != nil { ok := object.Key("hrdBufferSize") - ok.Integer(v.HrdBufferSize) + ok.Integer(*v.HrdBufferSize) } if len(v.InterlaceMode) > 0 { @@ -10026,9 +10026,9 @@ func awsRestjson1_serializeDocumentXavcHdProfileSettings(v *types.XavcHdProfileS ok.String(string(v.QualityTuningLevel)) } - if v.Slices != 0 { + if v.Slices != nil { ok := object.Key("slices") - ok.Integer(v.Slices) + ok.Integer(*v.Slices) } if len(v.Telecine) > 0 { @@ -10063,14 +10063,14 @@ func awsRestjson1_serializeDocumentXavcSettings(v *types.XavcSettings, value smi ok.String(string(v.FramerateConversionAlgorithm)) } - if v.FramerateDenominator != 0 { + if v.FramerateDenominator != nil { ok := object.Key("framerateDenominator") - ok.Integer(v.FramerateDenominator) + ok.Integer(*v.FramerateDenominator) } - if v.FramerateNumerator != 0 { + if v.FramerateNumerator != nil { ok := object.Key("framerateNumerator") - ok.Integer(v.FramerateNumerator) + ok.Integer(*v.FramerateNumerator) } if len(v.Profile) > 0 { @@ -10083,9 +10083,9 @@ func awsRestjson1_serializeDocumentXavcSettings(v *types.XavcSettings, value smi ok.String(string(v.SlowPal)) } - if v.Softness != 0 { + if v.Softness != nil { ok := object.Key("softness") - ok.Integer(v.Softness) + ok.Integer(*v.Softness) } if len(v.SpatialAdaptiveQuantization) > 0 { diff --git a/service/mediaconvert/types/types.go b/service/mediaconvert/types/types.go index b671bbe0a43..3b9a19c7ba5 100644 --- a/service/mediaconvert/types/types.go +++ b/service/mediaconvert/types/types.go @@ -32,7 +32,7 @@ type AacSettings struct { // 896000, 1024000. The value you set is also constrained by the values that you // choose for Profile, Bitrate control mode, and Sample rate. Default values depend // on Bitrate control mode and Profile. - Bitrate int32 + Bitrate *int32 // AAC Profile. CodecProfile AacCodecProfile @@ -62,7 +62,7 @@ type AacSettings struct { // mode 1.0 and Receiver Mix: 22050, 24000, 32000, 44100, 48000. * HEV1 Profile, // Coding mode 2.0 and 5.1: 32000, 44100, 48000, 96000. * HEV2 Profile, Coding mode // 2.0: 22050, 24000, 32000, 44100, 48000. - SampleRate int32 + SampleRate *int32 // Use MPEG-2 AAC instead of MPEG-4 AAC audio for raw or MPEG-2 Transport Stream // containers. @@ -85,7 +85,7 @@ type Ac3Settings struct { // 128000. Maximum: 384000. Valid bitrates for coding mode 2/0: Default: 192000. // Minimum: 128000. Maximum: 384000. Valid bitrates for coding mode 3/2 with FLE: // Default: 384000. Minimum: 384000. Maximum: 640000. - Bitrate int32 + Bitrate *int32 // Specify the bitstream mode for the AC-3 stream that the encoder emits. For more // information about the AC3 bitstream mode, see ATSC A/52-2012 (Annex E). @@ -96,7 +96,7 @@ type Ac3Settings struct { // Sets the dialnorm for the output. If blank and input audio is Dolby Digital, // dialnorm will be passed through. - Dialnorm int32 + Dialnorm *int32 // Choose the Dolby Digital dynamic range control (DRC) profile that MediaConvert // uses when encoding the metadata in the Dolby Digital stream for the line @@ -137,7 +137,7 @@ type Ac3Settings struct { MetadataControl Ac3MetadataControl // This value is always 48000. It represents the sample rate in Hz. - SampleRate int32 + SampleRate *int32 noSmithyDocumentSerde } @@ -181,14 +181,14 @@ type AiffSettings struct { // Specify Bit depth, in bits per sample, to choose the encoding quality for this // audio track. - BitDepth int32 + BitDepth *int32 // Specify the number of channels in this output audio track. Valid values are 1 // and even numbers up to 64. For example, 1, 2, 4, 6, and so on, up to 64. - Channels int32 + Channels *int32 // Sample rate in hz. - SampleRate int32 + SampleRate *int32 noSmithyDocumentSerde } @@ -204,13 +204,13 @@ type AiffSettings struct { type AllowedRenditionSize struct { // Use Height to define the video resolution height, in pixels, for this rule. - Height int32 + Height *int32 // Set to ENABLED to force a rendition to be included. Required RequiredFlag // Use Width to define the video resolution width, in pixels, for this rule. - Width int32 + Width *int32 noSmithyDocumentSerde } @@ -226,7 +226,7 @@ type AncillarySourceSettings struct { // Specifies the 608 channel number in the ancillary data track from which to // extract captions. Unused for passthrough. - SourceAncillaryChannelNumber int32 + SourceAncillaryChannelNumber *int32 // By default, the service terminates any unterminated captions at the end of each // input. If you want the caption to continue onto your next input, disable this @@ -349,7 +349,7 @@ type AudioDescription struct { // 0 and 255. The following are defined in ISO-IEC 13818-1: 0 = Undefined, 1 = // Clean Effects, 2 = Hearing Impaired, 3 = Visually Impaired Commentary, 4-255 = // Reserved. - AudioType int32 + AudioType *int32 // When set to FOLLOW_INPUT, if the input contains an ISO 639 audio_type, then // that value is passed through to the output. If the input contains no ISO 639 @@ -421,7 +421,7 @@ type AudioNormalizationSettings struct { // Content measuring above this level will be corrected to the target level. // Content measuring below this level will not be corrected. - CorrectionGateLevel int32 + CorrectionGateLevel *int32 // If set to LOG, log each output's audio track loudness to a CSV file. LoudnessLogging AudioNormalizationLoudnessLogging @@ -435,13 +435,13 @@ type AudioNormalizationSettings struct { // for you, based on the algorithm that you choose for Algorithm. If you choose // algorithm 1770-1, the encoder will choose -24 LKFS; otherwise, the encoder will // choose -23 LKFS. - TargetLkfs float64 + TargetLkfs *float64 // Specify the True-peak limiter threshold in decibels relative to full scale // (dBFS). The peak inter-audio sample loudness in your output will be limited to // the value that you specify, without affecting the overall target LKFS. Enter a // value from 0 to -8. Leave blank to use the default value 0. - TruePeakLimiterThreshold float64 + TruePeakLimiterThreshold *float64 noSmithyDocumentSerde } @@ -492,7 +492,7 @@ type AudioSelector struct { LanguageCode LanguageCode // Specifies a time delta in milliseconds to offset the audio from the input video. - Offset int32 + Offset *int32 // Selects a specific PID from within an audio source (e.g. 257 selects PID 0x101). Pids []int32 @@ -504,7 +504,7 @@ type AudioSelector struct { // the program number from the dropdown list. If your input file has incorrect // metadata, you can choose All channels instead of a program number to have the // service ignore the program IDs and include all the programs in the track. - ProgramSelection int32 + ProgramSelection *int32 // Use these settings to reorder the audio channels of one input to match those of // another input. This allows you to combine the two files into a single output, @@ -617,21 +617,21 @@ type AutomatedAbrSettings struct { // or below this value, depending on the quality, complexity, and resolution of // your content. Note that the instantaneous maximum bitrate may vary above the // value that you specify. - MaxAbrBitrate int32 + MaxAbrBitrate *int32 // Optional. The maximum number of renditions that MediaConvert will create in // your automated ABR stack. The number of renditions is determined automatically, // based on analysis of each job, but will never exceed this limit. When you set // this to Auto in the console, which is equivalent to excluding it from your JSON // job specification, MediaConvert defaults to a limit of 15. - MaxRenditions int32 + MaxRenditions *int32 // Specify the minimum average bitrate for MediaConvert to use in your automated // ABR stack. If you don't specify a value, MediaConvert uses 600,000 (600 kb/s) by // default. The average bitrate of your lowest-quality rendition will be near this // value. Note that the instantaneous minimum bitrate may vary below the value that // you specify. - MinAbrBitrate int32 + MinAbrBitrate *int32 // Optional. Use Automated ABR rules to specify restrictions for the rendition // sizes MediaConvert will create in your ABR stack. You can use these rules if @@ -671,7 +671,7 @@ type Av1QvbrSettings struct { // the setting qvbrQualityLevelFineTune. For example, if you want your QVBR quality // level to be 7.33, set qvbrQualityLevel to 7 and set qvbrQualityLevelFineTune to // .33. - QvbrQualityLevel int32 + QvbrQualityLevel *int32 // Optional. Specify a value here to set the QVBR quality to a level that is // between whole numbers. For example, if you want your QVBR quality level to be @@ -679,7 +679,7 @@ type Av1QvbrSettings struct { // MediaConvert rounds your QVBR quality level to the nearest third of a whole // number. For example, if you set qvbrQualityLevel to 7 and you set // qvbrQualityLevelFineTune to .25, your actual QVBR quality level is 7.33. - QvbrQualityLevelFineTune float64 + QvbrQualityLevelFineTune *float64 noSmithyDocumentSerde } @@ -730,7 +730,7 @@ type Av1Settings struct { // example, use 1001 for the value of FramerateDenominator. When you use the // console for transcode jobs that use frame rate conversion, provide the value as // a decimal number for Framerate. In this example, specify 23.976. - FramerateDenominator int32 + FramerateDenominator *int32 // When you use the API for transcode jobs that use frame rate conversion, specify // the frame rate as a fraction. For example, 24000 / 1001 = 23.976 fps. Use @@ -738,21 +738,21 @@ type Av1Settings struct { // use 24000 for the value of FramerateNumerator. When you use the console for // transcode jobs that use frame rate conversion, provide the value as a decimal // number for Framerate. In this example, specify 23.976. - FramerateNumerator int32 + FramerateNumerator *int32 // Specify the GOP length (keyframe interval) in frames. With AV1, MediaConvert // doesn't support GOP length in seconds. This value must be greater than zero and // preferably equal to 1 + ((numberBFrames + 1) * x), where x is an integer value. - GopSize float64 + GopSize *float64 // Maximum bitrate in bits/second. For example, enter five megabits per second as // 5000000. Required when Rate control mode is QVBR. - MaxBitrate int32 + MaxBitrate *int32 // Specify from the number of B-frames, in the range of 0-15. For AV1 encoding, we // recommend using 7 or 15. Choose a larger number for a lower bitrate and smaller // file size; choose a smaller number for better video quality. - NumberBFramesBetweenReferenceFrames int32 + NumberBFramesBetweenReferenceFrames *int32 // Settings for quality-defined variable bitrate encoding with the H.265 codec. // Use these settings only when you set QVBR for Rate control mode. @@ -766,7 +766,7 @@ type Av1Settings struct { // 32. For progressive pictures, this value must be less than or equal to the // number of macroblock rows. For interlaced pictures, this value must be less than // or equal to half the number of macroblock rows. - Slices int32 + Slices *int32 // Keep the default value, Enabled, to adjust quantization within each frame based // on spatial variation of content complexity. When you enable this feature, the @@ -846,7 +846,7 @@ type AvcIntraSettings struct { // example, use 1001 for the value of FramerateDenominator. When you use the // console for transcode jobs that use frame rate conversion, provide the value as // a decimal number for Framerate. In this example, specify 23.976. - FramerateDenominator int32 + FramerateDenominator *int32 // When you use the API for transcode jobs that use frame rate conversion, specify // the frame rate as a fraction. For example, 24000 / 1001 = 23.976 fps. Use @@ -854,7 +854,7 @@ type AvcIntraSettings struct { // use 24000 for the value of FramerateNumerator. When you use the console for // transcode jobs that use frame rate conversion, provide the value as a decimal // number for Framerate. In this example, specify 23.976. - FramerateNumerator int32 + FramerateNumerator *int32 // Choose the scan line type for the output. Keep the default value, Progressive // to create a progressive output, regardless of the scan type of your input. Use @@ -979,7 +979,7 @@ type BurninDestinationSettings struct { // input captions to your output captions. If Style passthrough is set to disabled, // leave blank to use a value of 0 and remove all backgrounds from your output // captions. - BackgroundOpacity int32 + BackgroundOpacity *int32 // Specify the font that you want the service to use for your burn in captions // when your input captions specify a font that MediaConvert doesn't support. When @@ -997,10 +997,10 @@ type BurninDestinationSettings struct { FontColor BurninSubtitleFontColor // Specify the opacity of the burned-in captions. 255 is opaque; 0 is transparent. - FontOpacity int32 + FontOpacity *int32 // Specify the Font resolution in DPI (dots per inch). - FontResolution int32 + FontResolution *int32 // Set Font script to Automatically determined, or leave blank, to automatically // determine the font script in your input captions. Otherwise, set to Simplified @@ -1010,7 +1010,7 @@ type BurninDestinationSettings struct { // Specify the Font size in pixels. Must be a positive integer. Set to 0, or leave // blank, for automatic font size. - FontSize int32 + FontSize *int32 // Ignore this setting unless your Font color is set to Hex. Enter either six or // eight hexidecimal digits, representing red, green, and blue, with two optional @@ -1026,7 +1026,7 @@ type BurninDestinationSettings struct { // Specify the Outline size of the caption text, in pixels. Leave Outline size // blank and set Style passthrough to enabled to use the outline size data from // your input captions, if present. - OutlineSize int32 + OutlineSize *int32 // Specify the color of the shadow cast by the captions. Leave Shadow color blank // and set Style passthrough to enabled to use the shadow color data from your @@ -1038,17 +1038,17 @@ type BurninDestinationSettings struct { // Shadow opacity blank to pass through the shadow style information in your input // captions to your output captions. If Style passthrough is set to disabled, leave // blank to use a value of 0 and remove all shadows from your output captions. - ShadowOpacity int32 + ShadowOpacity *int32 // Specify the horizontal offset of the shadow, relative to the captions in // pixels. A value of -2 would result in a shadow offset 2 pixels to the left. - ShadowXOffset int32 + ShadowXOffset *int32 // Specify the vertical offset of the shadow relative to the captions in pixels. A // value of -2 would result in a shadow offset 2 pixels above the text. Leave // Shadow y-offset blank and set Style passthrough to enabled to use the shadow // y-offset data from your input captions, if present. - ShadowYOffset int32 + ShadowYOffset *int32 // Set Style passthrough to ENABLED to use the available style, color, and // position information from your input captions. MediaConvert uses default @@ -1070,13 +1070,13 @@ type BurninDestinationSettings struct { // the output in pixels. A value of 10 would result in the captions starting 10 // pixels from the left of the output. If no explicit x_position is provided, the // horizontal caption position will be determined by the alignment parameter. - XPosition int32 + XPosition *int32 // Specify the vertical position of the captions, relative to the top of the // output in pixels. A value of 10 would result in the captions starting 10 pixels // from the top of the output. If no explicit y_position is provided, the caption // will be positioned towards the bottom of the output. - YPosition int32 + YPosition *int32 noSmithyDocumentSerde } @@ -1278,12 +1278,12 @@ type CaptionSourceFramerate struct { // Specify the denominator of the fraction that represents the frame rate for the // setting Caption source frame rate. Use this setting along with the setting // Framerate numerator. - FramerateDenominator int32 + FramerateDenominator *int32 // Specify the numerator of the fraction that represents the frame rate for the // setting Caption source frame rate. Use this setting along with the setting // Framerate denominator. - FramerateNumerator int32 + FramerateNumerator *int32 noSmithyDocumentSerde } @@ -1365,7 +1365,7 @@ type ClipLimits struct { // an offset percentage to the maximum possible value. Leave blank to use the // default value 100. When you specify a value for Maximum RGB tolerance, you must // set Sample range conversion to Limited range clip. - MaximumRGBTolerance int32 + MaximumRGBTolerance *int32 // Specify the Maximum YUV color sample limit. MediaConvert conforms any pixels in // your input above the value that you specify to typical limited range bounds. @@ -1373,7 +1373,7 @@ type ClipLimits struct { // value that you enter applies to 10-bit ranges. For 8-bit ranges, MediaConvert // automatically scales this value down. When you specify a value for Maximum YUV, // you must set Sample range conversion to Limited range clip. - MaximumYUV int32 + MaximumYUV *int32 // Specify the Minimum RGB color sample range tolerance for your output. // MediaConvert corrects any YUV values that, when converted to RGB, would be @@ -1381,7 +1381,7 @@ type ClipLimits struct { // an offset percentage to the minimum possible value. Leave blank to use the // default value 0. When you specify a value for Minimum RGB tolerance, you must // set Sample range conversion to Limited range clip. - MinimumRGBTolerance int32 + MinimumRGBTolerance *int32 // Specify the Minimum YUV color sample limit. MediaConvert conforms any pixels in // your input below the value that you specify to typical limited range bounds. @@ -1389,7 +1389,7 @@ type ClipLimits struct { // value that you enter applies to 10-bit ranges. For 8-bit ranges, MediaConvert // automatically scales this value down. When you specify a value for Minumum YUV, // you must set Sample range conversion to Limited range clip. - MinimumYUV int32 + MinimumYUV *int32 noSmithyDocumentSerde } @@ -1499,7 +1499,7 @@ type CmafGroupSettings struct { // Specify the length, in whole seconds, of the mp4 fragments. When you don't // specify a value, MediaConvert defaults to 2. Related setting: Use Fragment // length control to specify whether the encoder enforces this value strictly. - FragmentLength int32 + FragmentLength *int32 // Specify whether MediaConvert generates images for trick play. Keep the default // value, None, to not generate any images. Choose Thumbnail to generate tiled @@ -1526,7 +1526,7 @@ type CmafGroupSettings struct { // Minimum time of initially buffered media that is needed to ensure smooth // playout. - MinBufferTime int32 + MinBufferTime *int32 // Keep this setting at the default value of 0, unless you are troubleshooting a // problem with how devices play back the end of your video asset. If you know that @@ -1539,7 +1539,7 @@ type CmafGroupSettings struct { // seconds and your final segment is .5 seconds without a minimum final segment // length; when you set the minimum final segment length to 1, your final segment // is 3.5 seconds. - MinFinalSegmentLength float64 + MinFinalSegmentLength *float64 // Specify how the value for bandwidth is determined for each video Representation // in your output MPD manifest. We recommend that you choose a MPD manifest @@ -1578,7 +1578,7 @@ type CmafGroupSettings struct { // to specify whether the encoder enforces this value strictly. Use Segment control // to specify whether MediaConvert creates separate segment files or one content // file that has metadata to mark the segment boundaries. - SegmentLength int32 + SegmentLength *int32 // Specify how you want MediaConvert to determine the segment length. Choose Exact // to have the encoder use the exact length that you specify with the setting @@ -1640,25 +1640,25 @@ type CmafImageBasedTrickPlaySettings struct { // maintain aspect ratio with thumbnail width. If following the aspect ratio would // lead to a total tile height greater than 4096, then the job will be rejected. // Must be divisible by 2. - ThumbnailHeight int32 + ThumbnailHeight *int32 // Enter the interval, in seconds, that MediaConvert uses to generate thumbnails. // If the interval you enter doesn't align with the output frame rate, MediaConvert // automatically rounds the interval to align with the output frame rate. For // example, if the output frame rate is 29.97 frames per second and you enter 5, // MediaConvert uses a 150 frame interval to generate thumbnails. - ThumbnailInterval float64 + ThumbnailInterval *float64 // Width of each thumbnail within each tile image, in pixels. Default is 312. Must // be divisible by 8. - ThumbnailWidth int32 + ThumbnailWidth *int32 // Number of thumbnails in each column of a tile image. Set a value between 2 and // 2048. Must be divisible by 2. - TileHeight int32 + TileHeight *int32 // Number of thumbnails in each row of a tile image. Set a value between 1 and 512. - TileWidth int32 + TileWidth *int32 noSmithyDocumentSerde } @@ -1807,7 +1807,7 @@ type CmfcSettings struct { type ColorCorrector struct { // Brightness level. - Brightness int32 + Brightness *int32 // Specify YUV limits and RGB tolerances when you set Sample range conversion to // Limited range clip. @@ -1829,7 +1829,7 @@ type ColorCorrector struct { ColorSpaceConversion ColorSpaceConversion // Contrast level. - Contrast int32 + Contrast *int32 // Use these settings when you convert to the HDR 10 color space. Specify the // SMPTE ST 2086 Mastering Display Color Volume static metadata that you want @@ -1858,7 +1858,7 @@ type ColorCorrector struct { HdrToSdrToneMapper HDRToSDRToneMapper // Hue in degrees. - Hue int32 + Hue *int32 // Specify how MediaConvert limits the color sample range for this output. To // create a limited range output from a full range input: Choose Limited range @@ -1877,7 +1877,7 @@ type ColorCorrector struct { SampleRangeConversion SampleRangeConversion // Saturation level. - Saturation int32 + Saturation *int32 // Specify the reference white level, in nits, for all of your SDR inputs. Use to // correct brightness levels within HDR10 outputs. The following color metadata @@ -1887,7 +1887,7 @@ type ColorCorrector struct { // input video selector. For 1,000 nit peak brightness displays, we recommend that // you set SDR reference white level to 203 (according to ITU-R BT.2408). Leave // blank to use the default value of 100, or specify an integer from 100 to 1000. - SdrReferenceWhiteLevel int32 + SdrReferenceWhiteLevel *int32 noSmithyDocumentSerde } @@ -2031,7 +2031,7 @@ type DashIsoGroupSettings struct { // When Emit Single File is checked, the fragmentation is internal to a single // output file and it does not cause the creation of many output files as in other // output types. - FragmentLength int32 + FragmentLength *int32 // Supports HbbTV specification as indicated HbbtvCompliance DashIsoHbbtvCompliance @@ -2052,7 +2052,7 @@ type DashIsoGroupSettings struct { // Minimum time of initially buffered media that is needed to ensure smooth // playout. - MinBufferTime int32 + MinBufferTime *int32 // Keep this setting at the default value of 0, unless you are troubleshooting a // problem with how devices play back the end of your video asset. If you know that @@ -2065,7 +2065,7 @@ type DashIsoGroupSettings struct { // seconds and your final segment is .5 seconds without a minimum final segment // length; when you set the minimum final segment length to 1, your final segment // is 3.5 seconds. - MinFinalSegmentLength float64 + MinFinalSegmentLength *float64 // Specify how the value for bandwidth is determined for each video Representation // in your output MPD manifest. We recommend that you choose a MPD manifest @@ -2104,7 +2104,7 @@ type DashIsoGroupSettings struct { // to specify whether the encoder enforces this value strictly. Use Segment control // to specify whether MediaConvert creates separate segment files or one content // file that has metadata to mark the segment boundaries. - SegmentLength int32 + SegmentLength *int32 // Specify how you want MediaConvert to determine the segment length. Choose Exact // to have the encoder use the exact length that you specify with the setting @@ -2145,25 +2145,25 @@ type DashIsoImageBasedTrickPlaySettings struct { // maintain aspect ratio with thumbnail width. If following the aspect ratio would // lead to a total tile height greater than 4096, then the job will be rejected. // Must be divisible by 2. - ThumbnailHeight int32 + ThumbnailHeight *int32 // Enter the interval, in seconds, that MediaConvert uses to generate thumbnails. // If the interval you enter doesn't align with the output frame rate, MediaConvert // automatically rounds the interval to align with the output frame rate. For // example, if the output frame rate is 29.97 frames per second and you enter 5, // MediaConvert uses a 150 frame interval to generate thumbnails. - ThumbnailInterval float64 + ThumbnailInterval *float64 // Width of each thumbnail within each tile image, in pixels. Default is 312. Must // be divisible by 8. - ThumbnailWidth int32 + ThumbnailWidth *int32 // Number of thumbnails in each column of a tile image. Set a value between 2 and // 2048. Must be divisible by 2. - TileHeight int32 + TileHeight *int32 // Number of thumbnails in each row of a tile image. Set a value between 1 and 512. - TileWidth int32 + TileWidth *int32 noSmithyDocumentSerde } @@ -2247,11 +2247,11 @@ type DolbyVisionLevel6Metadata struct { // Maximum Content Light Level. Static HDR metadata that corresponds to the // brightest pixel in the entire stream. Measured in nits. - MaxCll int32 + MaxCll *int32 // Maximum Frame-Average Light Level. Static HDR metadata that corresponds to the // highest frame-average brightness in the entire stream. Measured in nits. - MaxFall int32 + MaxFall *int32 noSmithyDocumentSerde } @@ -2261,7 +2261,7 @@ type DolbyVisionLevel6Metadata struct { type DvbNitSettings struct { // The numeric value placed in the Network Information Table (NIT). - NetworkId int32 + NetworkId *int32 // The network name text placed in the network_name_descriptor inside the Network // Information Table. Maximum length is 256 characters. @@ -2269,7 +2269,7 @@ type DvbNitSettings struct { // The number of milliseconds between instances of this table in the output // transport stream. - NitInterval int32 + NitInterval *int32 noSmithyDocumentSerde } @@ -2288,7 +2288,7 @@ type DvbSdtSettings struct { // The number of milliseconds between instances of this table in the output // transport stream. - SdtInterval int32 + SdtInterval *int32 // The service name placed in the service_descriptor in the Service Description // Table. Maximum length is 256 characters. @@ -2337,7 +2337,7 @@ type DvbSubDestinationSettings struct { // leave blank to use a value of 0 and remove all backgrounds from your output // captions. Within your job settings, all of your DVB-Sub settings must be // identical. - BackgroundOpacity int32 + BackgroundOpacity *int32 // Specify how MediaConvert handles the display definition segment (DDS). To // exclude the DDS from this set of captions: Keep the default, None. To include @@ -2358,7 +2358,7 @@ type DvbSubDestinationSettings struct { // you must set DDS handling to a value other than None. MediaConvert uses these // values to determine whether to write page position data to the DDS or to the // page composition segment. All burn-in and DVB-Sub font settings must match. - DdsXCoordinate int32 + DdsXCoordinate *int32 // Use this setting, along with DDS x-coordinate, to specify the upper left corner // of the display definition segment (DDS) display window. With this setting, @@ -2369,7 +2369,7 @@ type DvbSubDestinationSettings struct { // values to determine whether to write page position data to the DDS or to the // page composition segment (PCS). All burn-in and DVB-Sub font settings must // match. - DdsYCoordinate int32 + DdsYCoordinate *int32 // Specify the font that you want the service to use for your burn in captions // when your input captions specify a font that MediaConvert doesn't support. When @@ -2389,11 +2389,11 @@ type DvbSubDestinationSettings struct { // Specify the opacity of the burned-in captions. 255 is opaque; 0 is transparent. // Within your job settings, all of your DVB-Sub settings must be identical. - FontOpacity int32 + FontOpacity *int32 // Specify the Font resolution in DPI (dots per inch). Within your job settings, // all of your DVB-Sub settings must be identical. - FontResolution int32 + FontResolution *int32 // Set Font script to Automatically determined, or leave blank, to automatically // determine the font script in your input captions. Otherwise, set to Simplified @@ -2405,13 +2405,13 @@ type DvbSubDestinationSettings struct { // Specify the Font size in pixels. Must be a positive integer. Set to 0, or leave // blank, for automatic font size. Within your job settings, all of your DVB-Sub // settings must be identical. - FontSize int32 + FontSize *int32 // Specify the height, in pixels, of this set of DVB-Sub captions. The default // value is 576 pixels. Related setting: When you use this setting, you must set // DDS handling to a value other than None. All burn-in and DVB-Sub font settings // must match. - Height int32 + Height *int32 // Ignore this setting unless your Font color is set to Hex. Enter either six or // eight hexidecimal digits, representing red, green, and blue, with two optional @@ -2429,7 +2429,7 @@ type DvbSubDestinationSettings struct { // blank and set Style passthrough to enabled to use the outline size data from // your input captions, if present. Within your job settings, all of your DVB-Sub // settings must be identical. - OutlineSize int32 + OutlineSize *int32 // Specify the color of the shadow cast by the captions. Leave Shadow color blank // and set Style passthrough to enabled to use the shadow color data from your @@ -2443,19 +2443,19 @@ type DvbSubDestinationSettings struct { // captions to your output captions. If Style passthrough is set to disabled, leave // blank to use a value of 0 and remove all shadows from your output captions. // Within your job settings, all of your DVB-Sub settings must be identical. - ShadowOpacity int32 + ShadowOpacity *int32 // Specify the horizontal offset of the shadow, relative to the captions in // pixels. A value of -2 would result in a shadow offset 2 pixels to the left. // Within your job settings, all of your DVB-Sub settings must be identical. - ShadowXOffset int32 + ShadowXOffset *int32 // Specify the vertical offset of the shadow relative to the captions in pixels. A // value of -2 would result in a shadow offset 2 pixels above the text. Leave // Shadow y-offset blank and set Style passthrough to enabled to use the shadow // y-offset data from your input captions, if present. Within your job settings, // all of your DVB-Sub settings must be identical. - ShadowYOffset int32 + ShadowYOffset *int32 // Set Style passthrough to ENABLED to use the available style, color, and // position information from your input captions. MediaConvert uses default @@ -2483,21 +2483,21 @@ type DvbSubDestinationSettings struct { // value is 720 pixels. Related setting: When you use this setting, you must set // DDS handling to a value other than None. All burn-in and DVB-Sub font settings // must match. - Width int32 + Width *int32 // Specify the horizontal position of the captions, relative to the left side of // the output in pixels. A value of 10 would result in the captions starting 10 // pixels from the left of the output. If no explicit x_position is provided, the // horizontal caption position will be determined by the alignment parameter. // Within your job settings, all of your DVB-Sub settings must be identical. - XPosition int32 + XPosition *int32 // Specify the vertical position of the captions, relative to the top of the // output in pixels. A value of 10 would result in the captions starting 10 pixels // from the top of the output. If no explicit y_position is provided, the caption // will be positioned towards the bottom of the output. Within your job settings, // all of your DVB-Sub settings must be identical. - YPosition int32 + YPosition *int32 noSmithyDocumentSerde } @@ -2508,7 +2508,7 @@ type DvbSubSourceSettings struct { // When using DVB-Sub with Burn-in, use this PID for the source content. Unused // for DVB-Sub passthrough. All DVB-Sub content is passed through, regardless of // selectors. - Pid int32 + Pid *int32 noSmithyDocumentSerde } @@ -2519,7 +2519,7 @@ type DvbTdtSettings struct { // The number of milliseconds between instances of this table in the output // transport stream. - TdtInterval int32 + TdtInterval *int32 noSmithyDocumentSerde } @@ -2532,7 +2532,7 @@ type Eac3AtmosSettings struct { // supports 384k only with channel-based immersive (CBI) 7.1.4 and 5.1.4 inputs. // For CBI 9.1.6 and other input types, MediaConvert automatically increases your // output bitrate to 448k. - Bitrate int32 + Bitrate *int32 // Specify the bitstream mode for the E-AC-3 stream that the encoder emits. For // more information about the EAC3 bitstream mode, see ATSC A/52-2012 (Annex E). @@ -2592,7 +2592,7 @@ type Eac3AtmosSettings struct { // for Stereo downmix. Related setting: To have MediaConvert use this value, keep // the default value, Custom for the setting Downmix control. Otherwise, // MediaConvert ignores Left only/Right only center. - LoRoCenterMixLevel float64 + LoRoCenterMixLevel *float64 // Specify a value for the following Dolby Atmos setting: Left only/Right only. // MediaConvert uses this value for downmixing. Default value: -3 dB. Valid values: @@ -2601,7 +2601,7 @@ type Eac3AtmosSettings struct { // for Stereo downmix. Related setting: To have MediaConvert use this value, keep // the default value, Custom for the setting Downmix control. Otherwise, // MediaConvert ignores Left only/Right only surround. - LoRoSurroundMixLevel float64 + LoRoSurroundMixLevel *float64 // Specify a value for the following Dolby Atmos setting: Left total/Right total // center mix (Lt/Rt center). MediaConvert uses this value for downmixing. Default @@ -2610,7 +2610,7 @@ type Eac3AtmosSettings struct { // for Stereo downmix. Related setting: To have MediaConvert use this value, keep // the default value, Custom for the setting Downmix control. Otherwise, // MediaConvert ignores Left total/Right total center. - LtRtCenterMixLevel float64 + LtRtCenterMixLevel *float64 // Specify a value for the following Dolby Atmos setting: Left total/Right total // surround mix (Lt/Rt surround). MediaConvert uses this value for downmixing. @@ -2619,18 +2619,18 @@ type Eac3AtmosSettings struct { // on the value that you choose for Stereo downmix. Related setting: To have // MediaConvert use this value, keep the default value, Custom for the setting // Downmix control. Otherwise, the service ignores Left total/Right total surround. - LtRtSurroundMixLevel float64 + LtRtSurroundMixLevel *float64 // Choose how the service meters the loudness of your audio. MeteringMode Eac3AtmosMeteringMode // This value is always 48000. It represents the sample rate in Hz. - SampleRate int32 + SampleRate *int32 // Specify the percentage of audio content, from 0% to 100%, that must be speech // in order for the encoder to use the measured speech loudness as the overall // program loudness. Default value: 15% - SpeechThreshold int32 + SpeechThreshold *int32 // Choose how the service does stereo downmixing. Default value: Not indicated // Related setting: To have MediaConvert use this value, keep the default value, @@ -2659,7 +2659,7 @@ type Eac3Settings struct { // Maximum: 3024000. Valid bitrates for coding mode 2/0: Default: 192000. Minimum: // 96000. Maximum: 3024000. Valid bitrates for coding mode 3/2: Default: 384000. // Minimum: 192000. Maximum: 3024000. - Bitrate int32 + Bitrate *int32 // Specify the bitstream mode for the E-AC-3 stream that the encoder emits. For // more information about the EAC3 bitstream mode, see ATSC A/52-2012 (Annex E). @@ -2673,7 +2673,7 @@ type Eac3Settings struct { // Sets the dialnorm for the output. If blank and input audio is Dolby Digital // Plus, dialnorm will be passed through. - Dialnorm int32 + Dialnorm *int32 // Choose the Dolby Digital dynamic range control (DRC) profile that MediaConvert // uses when encoding the metadata in the Dolby Digital stream for the line @@ -2707,7 +2707,7 @@ type Eac3Settings struct { // channel. This setting applies only if you keep the default value of 3/2 - L, R, // C, Ls, Rs for the setting Coding mode. If you choose a different value for // Coding mode, the service ignores Left only/Right only center. - LoRoCenterMixLevel float64 + LoRoCenterMixLevel *float64 // Specify a value for the following Dolby Digital Plus setting: Left only/Right // only. MediaConvert uses this value for downmixing. How the service uses this @@ -2716,7 +2716,7 @@ type Eac3Settings struct { // applies only if you keep the default value of 3/2 - L, R, C, Ls, Rs for the // setting Coding mode. If you choose a different value for Coding mode, the // service ignores Left only/Right only surround. - LoRoSurroundMixLevel float64 + LoRoSurroundMixLevel *float64 // Specify a value for the following Dolby Digital Plus setting: Left total/Right // total center mix. MediaConvert uses this value for downmixing. How the service @@ -2725,7 +2725,7 @@ type Eac3Settings struct { // channel. This setting applies only if you keep the default value of 3/2 - L, R, // C, Ls, Rs for the setting Coding mode. If you choose a different value for // Coding mode, the service ignores Left total/Right total center. - LtRtCenterMixLevel float64 + LtRtCenterMixLevel *float64 // Specify a value for the following Dolby Digital Plus setting: Left total/Right // total surround mix. MediaConvert uses this value for downmixing. How the service @@ -2734,7 +2734,7 @@ type Eac3Settings struct { // setting applies only if you keep the default value of 3/2 - L, R, C, Ls, Rs for // the setting Coding mode. If you choose a different value for Coding mode, the // service ignores Left total/Right total surround. - LtRtSurroundMixLevel float64 + LtRtSurroundMixLevel *float64 // When set to FOLLOW_INPUT, encoder metadata will be sourced from the DD, DD+, or // DolbyE decoder that supplied this audio data. If audio was not supplied from one @@ -2752,7 +2752,7 @@ type Eac3Settings struct { PhaseControl Eac3PhaseControl // This value is always 48000. It represents the sample rate in Hz. - SampleRate int32 + SampleRate *int32 // Choose how the service does stereo downmixing. This setting only applies if you // keep the default value of 3/2 - L, R, C, Ls, Rs for the setting Coding mode. If @@ -2782,7 +2782,7 @@ type EmbeddedDestinationSettings struct { // channel in this output. If you have two channels, choose CC numbers that aren't // in the same field. For example, choose 1 and 3. For more information, see // https://docs.aws.amazon.com/console/mediaconvert/dual-scc-to-embedded. - Destination608ChannelNumber int32 + Destination608ChannelNumber *int32 // Ignore this setting unless your input captions are SCC format and you want both // 608 and 708 captions embedded in your output stream. Optionally, specify the 708 @@ -2792,7 +2792,7 @@ type EmbeddedDestinationSettings struct { // but don't specify a 708 service number, MediaConvert uses the number that you // specify for CC channel number for the 708 service number. For more information, // see https://docs.aws.amazon.com/console/mediaconvert/dual-scc-to-embedded. - Destination708ServiceNumber int32 + Destination708ServiceNumber *int32 noSmithyDocumentSerde } @@ -2808,11 +2808,11 @@ type EmbeddedSourceSettings struct { // Specifies the 608/708 channel number within the video track from which to // extract captions. Unused for passthrough. - Source608ChannelNumber int32 + Source608ChannelNumber *int32 // Specifies the video track index used for extracting captions. The system only // supports one input video track, so this should always be set to '1'. - Source608TrackNumber int32 + Source608TrackNumber *int32 // By default, the service terminates any unterminated captions at the end of each // input. If you want the caption to continue onto your next input, disable this @@ -2856,7 +2856,7 @@ type EsamSettings struct { // that the transcoder places and the splice points that they refer to. If the time // between the start of the asset and the SCTE-35 message is less than this value, // then the transcoder places the SCTE-35 marker at the beginning of the stream. - ResponseSignalPreroll int32 + ResponseSignalPreroll *int32 // Specifies an ESAM SignalProcessingNotification XML as per // OC-SP-ESAM-API-I03-131025. The transcoder uses the signal processing @@ -2971,7 +2971,7 @@ type FileSourceSettings struct { // MediaConvert snaps the captions to the nearest frame. For example, when your // input video frame rate is 25 fps and you specify 1010ms for time delta, // MediaConvert delays your captions by 1000 ms. - TimeDelta int32 + TimeDelta *int32 // When you use the setting Time delta to adjust the sync between your sidecar // captions and your video, use this setting to specify the units for the delta @@ -2988,7 +2988,7 @@ type FlacSettings struct { // Specify Bit depth (BitDepth), in bits per sample, to choose the encoding // quality for this audio track. - BitDepth int32 + BitDepth *int32 // Specify the number of channels in this output audio track. Choosing Mono on the // console gives you 1 output channel; choosing Stereo gives you 2. In the API, @@ -2996,7 +2996,7 @@ type FlacSettings struct { Channels *int32 // Sample rate in hz. - SampleRate int32 + SampleRate *int32 noSmithyDocumentSerde } @@ -3015,10 +3015,10 @@ type FlacSettings struct { type ForceIncludeRenditionSize struct { // Use Height to define the video resolution height, in pixels, for this rule. - Height int32 + Height *int32 // Use Width to define the video resolution width, in pixels, for this rule. - Width int32 + Width *int32 noSmithyDocumentSerde } @@ -3031,7 +3031,7 @@ type FrameCaptureSettings struct { // framerateNumerator = 1 and framerateDenominator = 3 (a rate of 1/3 frame per // second) will capture the first frame, then 1 frame every 3s. Files will be named // as filename.n.jpg where n is the 0-based sequence number of each Capture. - FramerateDenominator int32 + FramerateDenominator *int32 // Frame capture will encode the first frame of the output stream, then one frame // every framerateDenominator/framerateNumerator seconds. For example, settings of @@ -3039,13 +3039,13 @@ type FrameCaptureSettings struct { // second) will capture the first frame, then 1 frame every 3s. Files will be named // as filename.NNNNNNN.jpg where N is the 0-based frame sequence number zero padded // to 7 decimal places. - FramerateNumerator int32 + FramerateNumerator *int32 // Maximum number of captures (encoded jpg output files). - MaxCaptures int32 + MaxCaptures *int32 // JPEG Quality - a higher value equals higher quality. - Quality int32 + Quality *int32 noSmithyDocumentSerde } @@ -3060,7 +3060,7 @@ type H264QvbrSettings struct { // this output to the value that you choose. That is, the total size of the video // element is less than or equal to the value you set multiplied by the number of // seconds of encoded output. - MaxAverageBitrate int32 + MaxAverageBitrate *int32 // Use this setting only when you set Rate control mode to QVBR. Specify the // target quality level for this output. MediaConvert determines the right number @@ -3074,7 +3074,7 @@ type H264QvbrSettings struct { // the setting qvbrQualityLevelFineTune. For example, if you want your QVBR quality // level to be 7.33, set qvbrQualityLevel to 7 and set qvbrQualityLevelFineTune to // .33. - QvbrQualityLevel int32 + QvbrQualityLevel *int32 // Optional. Specify a value here to set the QVBR quality to a level that is // between whole numbers. For example, if you want your QVBR quality level to be @@ -3082,7 +3082,7 @@ type H264QvbrSettings struct { // MediaConvert rounds your QVBR quality level to the nearest third of a whole // number. For example, if you set qvbrQualityLevel to 7 and you set // qvbrQualityLevelFineTune to .25, your actual QVBR quality level is 7.33. - QvbrQualityLevelFineTune float64 + QvbrQualityLevelFineTune *float64 noSmithyDocumentSerde } @@ -3114,7 +3114,7 @@ type H264Settings struct { // Specify the average bitrate in bits per second. Required for VBR and CBR. For // MS Smooth outputs, bitrates must be unique when rounded down to the nearest // multiple of 1000. - Bitrate int32 + Bitrate *int32 // Specify an H.264 level that is consistent with your output video settings. If // you aren't sure what level to specify, choose Auto. @@ -3191,7 +3191,7 @@ type H264Settings struct { // example, use 1001 for the value of FramerateDenominator. When you use the // console for transcode jobs that use frame rate conversion, provide the value as // a decimal number for Framerate. In this example, specify 23.976. - FramerateDenominator int32 + FramerateDenominator *int32 // When you use the API for transcode jobs that use frame rate conversion, specify // the frame rate as a fraction. For example, 24000 / 1001 = 23.976 fps. Use @@ -3199,7 +3199,7 @@ type H264Settings struct { // use 24000 for the value of FramerateNumerator. When you use the console for // transcode jobs that use frame rate conversion, provide the value as a decimal // number for Framerate. In this example, specify 23.976. - FramerateNumerator int32 + FramerateNumerator *int32 // Specify whether to allow B-frames to be referenced by other frame types. To use // reference B-frames when your GOP structure has 1 or more B-frames: Leave blank @@ -3214,7 +3214,7 @@ type H264Settings struct { // this value for you based on characteristics of your input video. In the console, // do this by keeping the default empty value. If you do explicitly specify a // value, for segmented outputs, don't set this value to 0. - GopClosedCadence int32 + GopClosedCadence *int32 // Use this setting only when you set GOP mode control to Specified, frames or // Specified, seconds. Specify the GOP length using a whole number of frames or a @@ -3224,7 +3224,7 @@ type H264Settings struct { // set GOP mode control to Auto. If your output group specifies HLS, DASH, or CMAF, // leave GOP size blank and set GOP mode control to Auto in each output in your // output group. - GopSize float64 + GopSize *float64 // Specify how the transcoder determines GOP size for this output. We recommend // that you have the transcoder automatically choose this value for you based on @@ -3241,14 +3241,14 @@ type H264Settings struct { // percentage of the HRD buffer that's available at the end of each encoded video // segment. For the best video quality: Set to 0 or leave blank to automatically // determine the final buffer fill percentage. - HrdBufferFinalFillPercentage int32 + HrdBufferFinalFillPercentage *int32 // Percentage of the buffer that should initially be filled (HRD buffer model). - HrdBufferInitialFillPercentage int32 + HrdBufferInitialFillPercentage *int32 // Size of buffer (HRD buffer model) in bits. For example, enter five megabits as // 5000000. - HrdBufferSize int32 + HrdBufferSize *int32 // Choose the scan line type for the output. Keep the default value, Progressive // to create a progressive output, regardless of the scan type of your input. Use @@ -3264,7 +3264,7 @@ type H264Settings struct { // Maximum bitrate in bits/second. For example, enter five megabits per second as // 5000000. Required when Rate control mode is QVBR. - MaxBitrate int32 + MaxBitrate *int32 // Use this setting only when you also enable Scene change detection. This setting // determines how the encoder manages the spacing between I-frames that it inserts @@ -3280,18 +3280,18 @@ type H264Settings struct { // cadence-driven I-frames are farther from the scene-change I-frame than the value // you set, then the encoder leaves all I-frames in place and the GOPs surrounding // the scene change are smaller than the usual cadence GOPs. - MinIInterval int32 + MinIInterval *int32 // Specify the number of B-frames between reference frames in this output. For the // best video quality: Leave blank. MediaConvert automatically determines the // number of B-frames to use based on the characteristics of your input video. To // manually specify the number of B-frames between reference frames: Enter an // integer from 0 to 7. - NumberBFramesBetweenReferenceFrames int32 + NumberBFramesBetweenReferenceFrames *int32 // Number of reference frames to use. The encoder may use more than requested if // using B-frames and/or interlaced encoding. - NumberReferenceFrames int32 + NumberReferenceFrames *int32 // Optional. Specify how the service determines the pixel aspect ratio (PAR) for // this output. The default behavior, Follow source, uses the PAR from your input @@ -3305,14 +3305,14 @@ type H264Settings struct { // pixel aspect ratio (PAR) that is different from your input video PAR, provide // your output PAR as a ratio. For example, for D1/DV NTSC widescreen, you would // specify the ratio 40:33. In this example, the value for parDenominator is 33. - ParDenominator int32 + ParDenominator *int32 // Required when you set Pixel aspect ratio to SPECIFIED. On the console, this // corresponds to any value other than Follow source. When you specify an output // pixel aspect ratio (PAR) that is different from your input video PAR, provide // your output PAR as a ratio. For example, for D1/DV NTSC widescreen, you would // specify the ratio 40:33. In this example, the value for parNumerator is 40. - ParNumerator int32 + ParNumerator *int32 // The Quality tuning level you choose represents a trade-off between the encoding // speed of your job and the output video quality. For the fastest encoding speed @@ -3358,7 +3358,7 @@ type H264Settings struct { // Number of slices per picture. Must be less than or equal to the number of // macroblock rows for progressive pictures, and less than or equal to half the // number of macroblock rows for interlaced pictures. - Slices int32 + Slices *int32 // Ignore this setting unless your input frame rate is 23.976 or 24 frames per // second (fps). Enable slow PAL to create a 25 fps output. When you enable slow @@ -3378,7 +3378,7 @@ type H264Settings struct { // Choose a value from 17 to 128 to use planar interpolation. Increasing values // from 17 to 128 result in increasing reduction of high-frequency data. The value // 128 results in the softest video. - Softness int32 + Softness *int32 // Only use this setting when you change the default value, Auto, for the setting // H264AdaptiveQuantization. When you keep all defaults, excluding @@ -3455,7 +3455,7 @@ type H265QvbrSettings struct { // this output to the value that you choose. That is, the total size of the video // element is less than or equal to the value you set multiplied by the number of // seconds of encoded output. - MaxAverageBitrate int32 + MaxAverageBitrate *int32 // Use this setting only when you set Rate control mode to QVBR. Specify the // target quality level for this output. MediaConvert determines the right number @@ -3469,7 +3469,7 @@ type H265QvbrSettings struct { // the setting qvbrQualityLevelFineTune. For example, if you want your QVBR quality // level to be 7.33, set qvbrQualityLevel to 7 and set qvbrQualityLevelFineTune to // .33. - QvbrQualityLevel int32 + QvbrQualityLevel *int32 // Optional. Specify a value here to set the QVBR quality to a level that is // between whole numbers. For example, if you want your QVBR quality level to be @@ -3477,7 +3477,7 @@ type H265QvbrSettings struct { // MediaConvert rounds your QVBR quality level to the nearest third of a whole // number. For example, if you set qvbrQualityLevel to 7 and you set // qvbrQualityLevelFineTune to .25, your actual QVBR quality level is 7.33. - QvbrQualityLevelFineTune float64 + QvbrQualityLevelFineTune *float64 noSmithyDocumentSerde } @@ -3511,7 +3511,7 @@ type H265Settings struct { // Specify the average bitrate in bits per second. Required for VBR and CBR. For // MS Smooth outputs, bitrates must be unique when rounded down to the nearest // multiple of 1000. - Bitrate int32 + Bitrate *int32 // H.265 Level. CodecLevel H265CodecLevel @@ -3572,7 +3572,7 @@ type H265Settings struct { // example, use 1001 for the value of FramerateDenominator. When you use the // console for transcode jobs that use frame rate conversion, provide the value as // a decimal number for Framerate. In this example, specify 23.976. - FramerateDenominator int32 + FramerateDenominator *int32 // When you use the API for transcode jobs that use frame rate conversion, specify // the frame rate as a fraction. For example, 24000 / 1001 = 23.976 fps. Use @@ -3580,7 +3580,7 @@ type H265Settings struct { // use 24000 for the value of FramerateNumerator. When you use the console for // transcode jobs that use frame rate conversion, provide the value as a decimal // number for Framerate. In this example, specify 23.976. - FramerateNumerator int32 + FramerateNumerator *int32 // Specify whether to allow B-frames to be referenced by other frame types. To use // reference B-frames when your GOP structure has 1 or more B-frames: Leave blank @@ -3595,7 +3595,7 @@ type H265Settings struct { // this value for you based on characteristics of your input video. To enable this // automatic behavior, do this by keeping the default empty value. If you do // explicitly specify a value, for segmented outputs, don't set this value to 0. - GopClosedCadence int32 + GopClosedCadence *int32 // Use this setting only when you set GOP mode control to Specified, frames or // Specified, seconds. Specify the GOP length using a whole number of frames or a @@ -3605,7 +3605,7 @@ type H265Settings struct { // set GOP mode control to Auto. If your output group specifies HLS, DASH, or CMAF, // leave GOP size blank and set GOP mode control to Auto in each output in your // output group. - GopSize float64 + GopSize *float64 // Specify how the transcoder determines GOP size for this output. We recommend // that you have the transcoder automatically choose this value for you based on @@ -3622,14 +3622,14 @@ type H265Settings struct { // percentage of the HRD buffer that's available at the end of each encoded video // segment. For the best video quality: Set to 0 or leave blank to automatically // determine the final buffer fill percentage. - HrdBufferFinalFillPercentage int32 + HrdBufferFinalFillPercentage *int32 // Percentage of the buffer that should initially be filled (HRD buffer model). - HrdBufferInitialFillPercentage int32 + HrdBufferInitialFillPercentage *int32 // Size of buffer (HRD buffer model) in bits. For example, enter five megabits as // 5000000. - HrdBufferSize int32 + HrdBufferSize *int32 // Choose the scan line type for the output. Keep the default value, Progressive // to create a progressive output, regardless of the scan type of your input. Use @@ -3645,7 +3645,7 @@ type H265Settings struct { // Maximum bitrate in bits/second. For example, enter five megabits per second as // 5000000. Required when Rate control mode is QVBR. - MaxBitrate int32 + MaxBitrate *int32 // Use this setting only when you also enable Scene change detection. This setting // determines how the encoder manages the spacing between I-frames that it inserts @@ -3661,18 +3661,18 @@ type H265Settings struct { // cadence-driven I-frames are farther from the scene-change I-frame than the value // you set, then the encoder leaves all I-frames in place and the GOPs surrounding // the scene change are smaller than the usual cadence GOPs. - MinIInterval int32 + MinIInterval *int32 // Specify the number of B-frames between reference frames in this output. For the // best video quality: Leave blank. MediaConvert automatically determines the // number of B-frames to use based on the characteristics of your input video. To // manually specify the number of B-frames between reference frames: Enter an // integer from 0 to 7. - NumberBFramesBetweenReferenceFrames int32 + NumberBFramesBetweenReferenceFrames *int32 // Number of reference frames to use. The encoder may use more than requested if // using B-frames and/or interlaced encoding. - NumberReferenceFrames int32 + NumberReferenceFrames *int32 // Optional. Specify how the service determines the pixel aspect ratio (PAR) for // this output. The default behavior, Follow source, uses the PAR from your input @@ -3686,14 +3686,14 @@ type H265Settings struct { // pixel aspect ratio (PAR) that is different from your input video PAR, provide // your output PAR as a ratio. For example, for D1/DV NTSC widescreen, you would // specify the ratio 40:33. In this example, the value for parDenominator is 33. - ParDenominator int32 + ParDenominator *int32 // Required when you set Pixel aspect ratio to SPECIFIED. On the console, this // corresponds to any value other than Follow source. When you specify an output // pixel aspect ratio (PAR) that is different from your input video PAR, provide // your output PAR as a ratio. For example, for D1/DV NTSC widescreen, you would // specify the ratio 40:33. In this example, the value for parNumerator is 40. - ParNumerator int32 + ParNumerator *int32 // Optional. Use Quality tuning level to choose how you want to trade off encoding // speed for output video quality. The default behavior is faster, lower quality, @@ -3736,7 +3736,7 @@ type H265Settings struct { // Number of slices per picture. Must be less than or equal to the number of // macroblock rows for progressive pictures, and less than or equal to half the // number of macroblock rows for interlaced pictures. - Slices int32 + Slices *int32 // Ignore this setting unless your input frame rate is 23.976 or 24 frames per // second (fps). Enable slow PAL to create a 25 fps output. When you enable slow @@ -3825,60 +3825,60 @@ type Hdr10Metadata struct { // HDR Master Display Information must be provided by a color grader, using color // grading tools. Range is 0 to 50,000, each increment represents 0.00002 in // CIE1931 color coordinate. Note that this setting is not for color correction. - BluePrimaryX int32 + BluePrimaryX *int32 // HDR Master Display Information must be provided by a color grader, using color // grading tools. Range is 0 to 50,000, each increment represents 0.00002 in // CIE1931 color coordinate. Note that this setting is not for color correction. - BluePrimaryY int32 + BluePrimaryY *int32 // HDR Master Display Information must be provided by a color grader, using color // grading tools. Range is 0 to 50,000, each increment represents 0.00002 in // CIE1931 color coordinate. Note that this setting is not for color correction. - GreenPrimaryX int32 + GreenPrimaryX *int32 // HDR Master Display Information must be provided by a color grader, using color // grading tools. Range is 0 to 50,000, each increment represents 0.00002 in // CIE1931 color coordinate. Note that this setting is not for color correction. - GreenPrimaryY int32 + GreenPrimaryY *int32 // Maximum light level among all samples in the coded video sequence, in units of // candelas per square meter. This setting doesn't have a default value; you must // specify a value that is suitable for the content. - MaxContentLightLevel int32 + MaxContentLightLevel *int32 // Maximum average light level of any frame in the coded video sequence, in units // of candelas per square meter. This setting doesn't have a default value; you // must specify a value that is suitable for the content. - MaxFrameAverageLightLevel int32 + MaxFrameAverageLightLevel *int32 // Nominal maximum mastering display luminance in units of of 0.0001 candelas per // square meter. - MaxLuminance int32 + MaxLuminance *int32 // Nominal minimum mastering display luminance in units of of 0.0001 candelas per // square meter - MinLuminance int32 + MinLuminance *int32 // HDR Master Display Information must be provided by a color grader, using color // grading tools. Range is 0 to 50,000, each increment represents 0.00002 in // CIE1931 color coordinate. Note that this setting is not for color correction. - RedPrimaryX int32 + RedPrimaryX *int32 // HDR Master Display Information must be provided by a color grader, using color // grading tools. Range is 0 to 50,000, each increment represents 0.00002 in // CIE1931 color coordinate. Note that this setting is not for color correction. - RedPrimaryY int32 + RedPrimaryY *int32 // HDR Master Display Information must be provided by a color grader, using color // grading tools. Range is 0 to 50,000, each increment represents 0.00002 in // CIE1931 color coordinate. Note that this setting is not for color correction. - WhitePointX int32 + WhitePointX *int32 // HDR Master Display Information must be provided by a color grader, using color // grading tools. Range is 0 to 50,000, each increment represents 0.00002 in // CIE1931 color coordinate. Note that this setting is not for color correction. - WhitePointY int32 + WhitePointY *int32 noSmithyDocumentSerde } @@ -3889,11 +3889,11 @@ type Hdr10Plus struct { // Specify the HDR10+ mastering display normalized peak luminance, in nits. This // is the normalized actual peak luminance of the mastering display, as defined by // ST 2094-40. - MasteringMonitorNits int32 + MasteringMonitorNits *int32 // Specify the HDR10+ target display nominal peak luminance, in nits. This is the // nominal maximum luminance of the target display as defined by ST 2094-40. - TargetMonitorNits int32 + TargetMonitorNits *int32 noSmithyDocumentSerde } @@ -3924,7 +3924,7 @@ type HlsAdditionalManifest struct { type HlsCaptionLanguageMapping struct { // Caption channel. - CaptionChannel int32 + CaptionChannel *int32 // Specify the language for this captions channel, using the ISO 639-2 or ISO // 639-3 three-letter language code @@ -4081,11 +4081,11 @@ type HlsGroupSettings struct { // seconds and your final segment is .5 seconds without a minimum final segment // length; when you set the minimum final segment length to 1, your final segment // is 3.5 seconds. - MinFinalSegmentLength float64 + MinFinalSegmentLength *float64 // When set, Minimum Segment Size is enforced by looking ahead and back within the // specified range for a nearby avail and extending the segment size if needed. - MinSegmentLength int32 + MinSegmentLength *int32 // Indicates whether the .m3u8 manifest file should be generated for this HLS // output group. @@ -4098,7 +4098,7 @@ type HlsGroupSettings struct { ProgramDateTime HlsProgramDateTime // Period of insertion of EXT-X-PROGRAM-DATE-TIME entry, in seconds. - ProgramDateTimePeriod int32 + ProgramDateTimePeriod *int32 // Specify whether MediaConvert generates HLS manifests while your job is running // or when your job is complete. To generate HLS manifests while your job is @@ -4121,7 +4121,7 @@ type HlsGroupSettings struct { // to specify whether the encoder enforces this value strictly. Use Segment control // to specify whether MediaConvert creates separate segment files or one content // file that has metadata to mark the segment boundaries. - SegmentLength int32 + SegmentLength *int32 // Specify how you want MediaConvert to determine the segment length. Choose Exact // to have the encoder use the exact length that you specify with the setting @@ -4132,7 +4132,7 @@ type HlsGroupSettings struct { // Specify the number of segments to write to a subdirectory before starting a new // one. You must also set Directory structure to Subdirectory per stream for this // setting to have an effect. - SegmentsPerSubdirectory int32 + SegmentsPerSubdirectory *int32 // Include or exclude RESOLUTION attribute for video in EXT-X-STREAM-INF tag of // variant manifest. @@ -4159,10 +4159,10 @@ type HlsGroupSettings struct { // incrementally with each ID3 timestamp. To use the default interval of 10 // seconds: Leave blank. To include this metadata in your output: Set ID3 timestamp // frame type to PRIV or TDRL, and set ID3 metadata to Passthrough. - TimedMetadataId3Period int32 + TimedMetadataId3Period *int32 // Provides an extra millisecond delta offset to fine tune the timestamps. - TimestampDeltaMilliseconds int32 + TimestampDeltaMilliseconds *int32 noSmithyDocumentSerde } @@ -4180,25 +4180,25 @@ type HlsImageBasedTrickPlaySettings struct { // maintain aspect ratio with thumbnail width. If following the aspect ratio would // lead to a total tile height greater than 4096, then the job will be rejected. // Must be divisible by 2. - ThumbnailHeight int32 + ThumbnailHeight *int32 // Enter the interval, in seconds, that MediaConvert uses to generate thumbnails. // If the interval you enter doesn't align with the output frame rate, MediaConvert // automatically rounds the interval to align with the output frame rate. For // example, if the output frame rate is 29.97 frames per second and you enter 5, // MediaConvert uses a 150 frame interval to generate thumbnails. - ThumbnailInterval float64 + ThumbnailInterval *float64 // Width of each thumbnail within each tile image, in pixels. Default is 312. Must // be divisible by 8. - ThumbnailWidth int32 + ThumbnailWidth *int32 // Number of thumbnails in each column of a tile image. Set a value between 2 and // 2048. Must be divisible by 2. - TileHeight int32 + TileHeight *int32 // Number of thumbnails in each row of a tile image. Set a value between 1 and 512. - TileWidth int32 + TileWidth *int32 noSmithyDocumentSerde } @@ -4287,7 +4287,7 @@ type HopDestination struct { // Optional. When you set up a job to use queue hopping, you can specify a // different relative priority for the job in the destination queue. If you don't // specify, the relative priority will remain the same as in the previous queue. - Priority int32 + Priority *int32 // Optional unless the job is submitted on the default queue. When you set up a // job to use queue hopping, you can specify a destination queue. This queue cannot @@ -4299,7 +4299,7 @@ type HopDestination struct { // Required for setting up a job to use queue hopping. Minimum wait time in // minutes until the job can hop to the destination queue. Valid range is 1 to 4320 // minutes, inclusive. - WaitMinutes int32 + WaitMinutes *int32 noSmithyDocumentSerde } @@ -4335,7 +4335,7 @@ type ImageInserter struct { // peak brightness displays, we recommend that you set SDR reference white level to // 203 (according to ITU-R BT.2408). Leave blank to use the default value of 100, // or specify an integer from 100 to 1000. - SdrReferenceWhiteLevel int32 + SdrReferenceWhiteLevel *int32 noSmithyDocumentSerde } @@ -4460,7 +4460,7 @@ type Input struct { // apply filtering: Enter a value from 1 to 5, where 1 is the least amount of // filtering and 5 is the most. The value that you enter applies to the strength of // the Deblock or Denoise filters, or to the strength of the Advanced input filter. - FilterStrength int32 + FilterStrength *int32 // Enable the image inserter feature to include a graphic overlay on your video. // Enable or disable this feature for each input individually. This setting is @@ -4497,7 +4497,7 @@ type Input struct { // stream. Note that Quad 4K is not currently supported. Default is the first // program within the transport stream. If the program you specify doesn't exist, // the transcoding service will use this default. - ProgramNumber int32 + ProgramNumber *int32 // Set PSI control for transport stream inputs to specify which data the demux // process to scans. @@ -4679,7 +4679,7 @@ type InputTemplate struct { // apply filtering: Enter a value from 1 to 5, where 1 is the least amount of // filtering and 5 is the most. The value that you enter applies to the strength of // the Deblock or Denoise filters, or to the strength of the Advanced input filter. - FilterStrength int32 + FilterStrength *int32 // Enable the image inserter feature to include a graphic overlay on your video. // Enable or disable this feature for each input individually. This setting is @@ -4716,7 +4716,7 @@ type InputTemplate struct { // stream. Note that Quad 4K is not currently supported. Default is the first // program within the transport stream. If the program you specify doesn't exist, // the transcoding service will use this default. - ProgramNumber int32 + ProgramNumber *int32 // Set PSI control for transport stream inputs to specify which data the demux // process to scans. @@ -4762,7 +4762,7 @@ type InputVideoGenerator struct { // Specify an integer value for Black video duration from 50 to 86400000 to // generate a black video input for that many milliseconds. Required when you // include Video generator. - Duration int32 + Duration *int32 noSmithyDocumentSerde } @@ -4773,26 +4773,26 @@ type InsertableImage struct { // Specify the time, in milliseconds, for the image to remain on the output video. // This duration includes fade-in time but not fade-out time. - Duration int32 + Duration *int32 // Specify the length of time, in milliseconds, between the Start time that you // specify for the image insertion and the time that the image appears at full // opacity. Full opacity is the level that you specify for the opacity setting. If // you don't specify a value for Fade-in, the image will appear abruptly at the // overlay start time. - FadeIn int32 + FadeIn *int32 // Specify the length of time, in milliseconds, between the end of the time that // you have specified for the image overlay Duration and when the overlaid image // has faded to total transparency. If you don't specify a value for Fade-out, the // image will disappear abruptly at the end of the inserted image duration. - FadeOut int32 + FadeOut *int32 // Specify the height of the inserted image in pixels. If you specify a value // that's larger than the video resolution height, the service will crop your // overlaid image to fit. To use the native height of the image, keep this setting // blank. - Height int32 + Height *int32 // Specify the HTTP, HTTPS, or Amazon S3 location of the image that you want to // overlay on the video. Use a PNG or TGA file. @@ -4800,19 +4800,19 @@ type InsertableImage struct { // Specify the distance, in pixels, between the inserted image and the left edge // of the video frame. Required for any image overlay that you specify. - ImageX int32 + ImageX *int32 // Specify the distance, in pixels, between the overlaid image and the top edge of // the video frame. Required for any image overlay that you specify. - ImageY int32 + ImageY *int32 // Specify how overlapping inserted images appear. Images with higher values for // Layer appear on top of images with lower values for Layer. - Layer int32 + Layer *int32 // Use Opacity to specify how much of the underlying video shows through the // inserted image. 0 is transparent and 100 is fully opaque. Default is 50. - Opacity int32 + Opacity *int32 // Specify the timecode of the frame that you want the overlay to first appear on. // This must be in timecode (HH:MM:SS:FF or HH:MM:SS;FF) format. Remember to take @@ -4823,7 +4823,7 @@ type InsertableImage struct { // that's larger than the video resolution width, the service will crop your // overlaid image to fit. To use the native width of the image, keep this setting // blank. - Width int32 + Width *int32 noSmithyDocumentSerde } @@ -4884,7 +4884,7 @@ type Job struct { CurrentPhase JobPhase // Error code for the job - ErrorCode int32 + ErrorCode *int32 // Error message of Job ErrorMessage *string @@ -4904,7 +4904,7 @@ type Job struct { // reliable for the following input containers: Quicktime, Transport Stream, MP4, // and MXF. For some jobs, the service can't provide information about job // progress. In those cases, jobPercentComplete returns a null value. - JobPercentComplete int32 + JobPercentComplete *int32 // The job template that the job is created from, if it is created from a job // template. @@ -4918,7 +4918,7 @@ type Job struct { OutputGroupDetails []OutputGroupDetail // Relative priority on the job. - Priority int32 + Priority *int32 // When you create a job, you can specify a queue to send it to. If you don't // specify, the job will go to the default queue. For more about queues, see the @@ -4931,7 +4931,7 @@ type Job struct { // The number of times that the service automatically attempted to process your // job after encountering an error. - RetryCount int32 + RetryCount *int32 // Enable this setting when you run a test job to estimate how many reserved // transcoding slots (RTS) you need. When this is enabled, MediaConvert runs your @@ -4984,7 +4984,7 @@ type JobSettings struct { // When specified, this offset (in milliseconds) is added to the input Ad Avail // PTS time. - AdAvailOffset int32 + AdAvailOffset *int32 // Settings for ad avail blanking. Video can be blanked or overlaid with an image, // and audio muted during SCTE-35 triggered ad avails. @@ -5095,7 +5095,7 @@ type JobTemplate struct { LastUpdated *time.Time // Relative priority on the job. - Priority int32 + Priority *int32 // Optional. The queue that jobs created from this template are assigned to. If // you don't specify this, jobs will go to the default queue. @@ -5120,7 +5120,7 @@ type JobTemplateSettings struct { // When specified, this offset (in milliseconds) is added to the input Ad Avail // PTS time. - AdAvailOffset int32 + AdAvailOffset *int32 // Settings for ad avail blanking. Video can be blanked or overlaid with an image, // and audio muted during SCTE-35 triggered ad avails. @@ -5218,10 +5218,10 @@ type KantarWatermarkSettings struct { // Optional. Specify an offset, in whole seconds, from the start of your output // and the beginning of the watermarking. When you don't specify an offset, Kantar // defaults to zero. - FileOffset float64 + FileOffset *float64 // Provide your Kantar license ID number. You should get this number from Kantar. - KantarLicenseId int32 + KantarLicenseId *int32 // Provide the HTTPS endpoint to the Kantar server. You should get this endpoint // from Kantar. @@ -5272,7 +5272,7 @@ type M2tsScte35Esam struct { // Packet Identifier (PID) of the SCTE-35 stream in the transport stream generated // by ESAM. - Scte35EsamPid int32 + Scte35EsamPid *int32 noSmithyDocumentSerde } @@ -5306,7 +5306,7 @@ type M2tsSettings struct { AudioDuration M2tsAudioDuration // The number of audio frames to insert for each PES packet. - AudioFramesPerPes int32 + AudioFramesPerPes *int32 // Specify the packet identifiers (PIDs) for any elementary audio streams you // include in this output. Specify multiple PIDs as a JSON array. Default is the @@ -5316,7 +5316,7 @@ type M2tsSettings struct { // Specify the output bitrate of the transport stream in bits per second. Setting // to 0 lets the muxer automatically determine the appropriate bitrate. Other // common values are 3750000, 7500000, and 15000000. - Bitrate int32 + Bitrate *int32 // Controls what buffer model to use for accurate interleaving. If set to // MULTIPLEX, use multiplex buffer model. If set to NONE, this can lead to lower @@ -5348,7 +5348,7 @@ type M2tsSettings struct { // Specify the packet identifier (PID) for DVB teletext data you include in this // output. Default is 499. - DvbTeletextPid int32 + DvbTeletextPid *int32 // When set to VIDEO_AND_FIXED_INTERVALS, audio EBP markers will be added to // partitions 3 and 4. The interval between these additional markers will be fixed, @@ -5373,7 +5373,7 @@ type M2tsSettings struct { ForceTsVideoEbpOrder M2tsForceTsVideoEbpOrder // The length, in seconds, of each fragment. Only used with EBP markers. - FragmentTime float64 + FragmentTime *float64 // To include key-length-value metadata in this output: Set KLV metadata insertion // to Passthrough. MediaConvert reads KLV metadata present in your input and passes @@ -5383,7 +5383,7 @@ type M2tsSettings struct { // Specify the maximum time, in milliseconds, between Program Clock References // (PCRs) inserted into the transport stream. - MaxPcrInterval int32 + MaxPcrInterval *int32 // When set, enforces that Encoder Boundary Points do not come within the // specified time interval of each other by looking ahead at input video. If @@ -5392,7 +5392,7 @@ type M2tsSettings struct { // lookahead value does not add latency to the system. The Live Event must be // configured elsewhere to create sufficient latency to make the lookahead // accurate. - MinEbpInterval int32 + MinEbpInterval *int32 // If INSERT, Nielsen inaudible tones for media tracking will be detected in the // input audio and an equivalent ID3 tag will be inserted in the output. @@ -5401,11 +5401,11 @@ type M2tsSettings struct { // Value in bits per second of extra null packets to insert into the transport // stream. This can be used if a downstream encryption system requires periodic // null packets. - NullPacketBitrate float64 + NullPacketBitrate *float64 // The number of milliseconds between instances of this table in the output // transport stream. - PatInterval int32 + PatInterval *int32 // When set to PCR_EVERY_PES_PACKET, a Program Clock Reference value is inserted // for every Packetized Elementary Stream (PES) header. This is effective only when @@ -5415,29 +5415,29 @@ type M2tsSettings struct { // Specify the packet identifier (PID) for the program clock reference (PCR) in // this output. If you do not specify a value, the service will use the value for // Video PID. - PcrPid int32 + PcrPid *int32 // Specify the number of milliseconds between instances of the program map table // (PMT) in the output transport stream. - PmtInterval int32 + PmtInterval *int32 // Specify the packet identifier (PID) for the program map table (PMT) itself. // Default is 480. - PmtPid int32 + PmtPid *int32 // Specify the packet identifier (PID) of the private metadata stream. Default is // 503. - PrivateMetadataPid int32 + PrivateMetadataPid *int32 // Use Program number to specify the program number used in the program map table // (PMT) for this output. Default is 1. Program numbers and program map tables are // parts of MPEG-2 transport stream containers, used for organizing data. - ProgramNumber int32 + ProgramNumber *int32 // Manually specify the initial PTS offset, in seconds, when you set PTS offset to // Seconds. Enter an integer from 0 to 3600. Leave blank to keep the default value // 2. - PtsOffset int32 + PtsOffset *int32 // Specify the initial presentation timestamp (PTS) offset for your transport // stream output. To let MediaConvert automatically determine the initial PTS @@ -5460,7 +5460,7 @@ type M2tsSettings struct { // Specify the packet identifier (PID) of the SCTE-35 stream in the transport // stream. - Scte35Pid int32 + Scte35Pid *int32 // For SCTE-35 markers from your input-- Choose Passthrough if you want SCTE-35 // markers that appear in your input to also appear in this output. Choose None if @@ -5494,19 +5494,19 @@ type M2tsSettings struct { // Specify the length, in seconds, of each segment. Required unless markers is set // to none. - SegmentationTime float64 + SegmentationTime *float64 // Packet Identifier (PID) of the ID3 metadata stream in the transport stream. - TimedMetadataPid int32 + TimedMetadataPid *int32 // Specify the ID for the transport stream itself in the program map table for // this output. Transport stream IDs and program map tables are parts of MPEG-2 // transport stream containers, used for organizing data. - TransportStreamId int32 + TransportStreamId *int32 // Specify the packet identifier (PID) of the elementary video stream in the // transport stream. - VideoPid int32 + VideoPid *int32 noSmithyDocumentSerde } @@ -5530,7 +5530,7 @@ type M3u8Settings struct { AudioDuration M3u8AudioDuration // The number of audio frames to insert for each PES packet. - AudioFramesPerPes int32 + AudioFramesPerPes *int32 // Packet Identifier (PID) of the elementary audio stream(s) in the transport // stream. Multiple values are accepted, and can be entered in ranges and/or by @@ -5545,7 +5545,7 @@ type M3u8Settings struct { // Specify the maximum time, in milliseconds, between Program Clock References // (PCRs) inserted into the transport stream. - MaxPcrInterval int32 + MaxPcrInterval *int32 // If INSERT, Nielsen inaudible tones for media tracking will be detected in the // input audio and an equivalent ID3 tag will be inserted in the output. @@ -5553,7 +5553,7 @@ type M3u8Settings struct { // The number of milliseconds between instances of this table in the output // transport stream. - PatInterval int32 + PatInterval *int32 // When set to PCR_EVERY_PES_PACKET a Program Clock Reference value is inserted // for every Packetized Elementary Stream (PES) header. This parameter is effective @@ -5563,25 +5563,25 @@ type M3u8Settings struct { // Packet Identifier (PID) of the Program Clock Reference (PCR) in the transport // stream. When no value is given, the encoder will assign the same value as the // Video PID. - PcrPid int32 + PcrPid *int32 // The number of milliseconds between instances of this table in the output // transport stream. - PmtInterval int32 + PmtInterval *int32 // Packet Identifier (PID) for the Program Map Table (PMT) in the transport stream. - PmtPid int32 + PmtPid *int32 // Packet Identifier (PID) of the private metadata stream in the transport stream. - PrivateMetadataPid int32 + PrivateMetadataPid *int32 // The value of the program number field in the Program Map Table. - ProgramNumber int32 + ProgramNumber *int32 // Manually specify the initial PTS offset, in seconds, when you set PTS offset to // Seconds. Enter an integer from 0 to 3600. Leave blank to keep the default value // 2. - PtsOffset int32 + PtsOffset *int32 // Specify the initial presentation timestamp (PTS) offset for your transport // stream output. To let MediaConvert automatically determine the initial PTS @@ -5593,7 +5593,7 @@ type M3u8Settings struct { PtsOffsetMode TsPtsOffset // Packet Identifier (PID) of the SCTE-35 stream in the transport stream. - Scte35Pid int32 + Scte35Pid *int32 // For SCTE-35 markers from your input-- Choose Passthrough if you want SCTE-35 // markers that appear in your input to also appear in this output. Choose None if @@ -5611,13 +5611,13 @@ type M3u8Settings struct { TimedMetadata TimedMetadata // Packet Identifier (PID) of the ID3 metadata stream in the transport stream. - TimedMetadataPid int32 + TimedMetadataPid *int32 // The value of the transport stream ID field in the Program Map Table. - TransportStreamId int32 + TransportStreamId *int32 // Packet Identifier (PID) of the elementary video stream in the transport stream. - VideoPid int32 + VideoPid *int32 noSmithyDocumentSerde } @@ -5632,10 +5632,10 @@ type M3u8Settings struct { type MinBottomRenditionSize struct { // Use Height to define the video resolution height, in pixels, for this rule. - Height int32 + Height *int32 // Use Width to define the video resolution width, in pixels, for this rule. - Width int32 + Width *int32 noSmithyDocumentSerde } @@ -5650,10 +5650,10 @@ type MinBottomRenditionSize struct { type MinTopRenditionSize struct { // Use Height to define the video resolution height, in pixels, for this rule. - Height int32 + Height *int32 // Use Width to define the video resolution width, in pixels, for this rule. - Width int32 + Width *int32 noSmithyDocumentSerde } @@ -5721,11 +5721,11 @@ type MotionImageInsertionFramerate struct { // The bottom of the fraction that expresses your overlay frame rate. For example, // if your frame rate is 24 fps, set this value to 1. - FramerateDenominator int32 + FramerateDenominator *int32 // The top of the fraction that expresses your overlay frame rate. For example, if // your frame rate is 24 fps, set this value to 24. - FramerateNumerator int32 + FramerateNumerator *int32 noSmithyDocumentSerde } @@ -5736,11 +5736,11 @@ type MotionImageInsertionOffset struct { // Set the distance, in pixels, between the overlay and the left edge of the video // frame. - ImageX int32 + ImageX *int32 // Set the distance, in pixels, between the overlay and the top edge of the video // frame. - ImageY int32 + ImageY *int32 noSmithyDocumentSerde } @@ -5780,15 +5780,15 @@ type MovSettings struct { type Mp2Settings struct { // Specify the average bitrate in bits per second. - Bitrate int32 + Bitrate *int32 // Set Channels to specify the number of channels in this output audio track. // Choosing Mono in will give you 1 output channel; choosing Stereo will give you // 2. In the API, valid values are 1 and 2. - Channels int32 + Channels *int32 // Sample rate in hz. - SampleRate int32 + SampleRate *int32 noSmithyDocumentSerde } @@ -5798,23 +5798,23 @@ type Mp2Settings struct { type Mp3Settings struct { // Specify the average bitrate in bits per second. - Bitrate int32 + Bitrate *int32 // Specify the number of channels in this output audio track. Choosing Mono gives // you 1 output channel; choosing Stereo gives you 2. In the API, valid values are // 1 and 2. - Channels int32 + Channels *int32 // Specify whether the service encodes this MP3 audio output with a constant // bitrate (CBR) or a variable bitrate (VBR). RateControlMode Mp3RateControlMode // Sample rate in hz. - SampleRate int32 + SampleRate *int32 // Required when you set Bitrate control mode to VBR. Specify the audio quality of // this MP3 output from 0 (highest quality) to 9 (lowest quality). - VbrQuality int32 + VbrQuality *int32 noSmithyDocumentSerde } @@ -5850,7 +5850,7 @@ type Mp4Settings struct { // of 1, you must also set CSLG atom to the value INCLUDE. Keep the default value 0 // to set your CTTS box version to 0. This can provide backward compatibility for // some players and packagers. - CttsVersion int32 + CttsVersion *int32 // Inserts a free-space box immediately after the moov box. FreeSpaceBox Mp4FreeSpaceBox @@ -5968,7 +5968,7 @@ type Mpeg2Settings struct { // Specify the average bitrate in bits per second. Required for VBR and CBR. For // MS Smooth outputs, bitrates must be unique when rounded down to the nearest // multiple of 1000. - Bitrate int32 + Bitrate *int32 // Use Level to set the MPEG-2 level for the video output. CodecLevel Mpeg2CodecLevel @@ -6010,7 +6010,7 @@ type Mpeg2Settings struct { // example, use 1001 for the value of FramerateDenominator. When you use the // console for transcode jobs that use frame rate conversion, provide the value as // a decimal number for Framerate. In this example, specify 23.976. - FramerateDenominator int32 + FramerateDenominator *int32 // When you use the API for transcode jobs that use frame rate conversion, specify // the frame rate as a fraction. For example, 24000 / 1001 = 23.976 fps. Use @@ -6018,7 +6018,7 @@ type Mpeg2Settings struct { // use 24000 for the value of FramerateNumerator. When you use the console for // transcode jobs that use frame rate conversion, provide the value as a decimal // number for Framerate. In this example, specify 23.976. - FramerateNumerator int32 + FramerateNumerator *int32 // Specify the relative frequency of open to closed GOPs in this output. For // example, if you want to allow four open GOPs and then require a closed GOP, set @@ -6026,13 +6026,13 @@ type Mpeg2Settings struct { // the default value, 1, so that players starting mid-stream receive an IDR frame // as quickly as possible. Don't set this value to 0; that would break output // segmenting. - GopClosedCadence int32 + GopClosedCadence *int32 // Specify the interval between keyframes, in seconds or frames, for this output. // Default: 12 Related settings: When you specify the GOP size in seconds, set GOP // mode control to Specified, seconds. The default value for GOP mode control is // Frames. - GopSize float64 + GopSize *float64 // Specify the units for GOP size. If you don't specify a value here, by default // the encoder measures GOP size in frames. @@ -6042,14 +6042,14 @@ type Mpeg2Settings struct { // percentage of the HRD buffer that's available at the end of each encoded video // segment. For the best video quality: Set to 0 or leave blank to automatically // determine the final buffer fill percentage. - HrdBufferFinalFillPercentage int32 + HrdBufferFinalFillPercentage *int32 // Percentage of the buffer that should initially be filled (HRD buffer model). - HrdBufferInitialFillPercentage int32 + HrdBufferInitialFillPercentage *int32 // Size of buffer (HRD buffer model) in bits. For example, enter five megabits as // 5000000. - HrdBufferSize int32 + HrdBufferSize *int32 // Choose the scan line type for the output. Keep the default value, Progressive // to create a progressive output, regardless of the scan type of your input. Use @@ -6070,7 +6070,7 @@ type Mpeg2Settings struct { // Maximum bitrate in bits/second. For example, enter five megabits per second as // 5000000. - MaxBitrate int32 + MaxBitrate *int32 // Use this setting only when you also enable Scene change detection. This setting // determines how the encoder manages the spacing between I-frames that it inserts @@ -6084,12 +6084,12 @@ type Mpeg2Settings struct { // I-frame than the value you set, then the encoder leaves all I-frames in place // and the GOPs surrounding the scene change are smaller than the usual cadence // GOPs. - MinIInterval int32 + MinIInterval *int32 // Specify the number of B-frames that MediaConvert puts between reference frames // in this output. Valid values are whole numbers from 0 through 7. When you don't // specify a value, MediaConvert defaults to 2. - NumberBFramesBetweenReferenceFrames int32 + NumberBFramesBetweenReferenceFrames *int32 // Optional. Specify how the service determines the pixel aspect ratio (PAR) for // this output. The default behavior, Follow source, uses the PAR from your input @@ -6103,14 +6103,14 @@ type Mpeg2Settings struct { // pixel aspect ratio (PAR) that is different from your input video PAR, provide // your output PAR as a ratio. For example, for D1/DV NTSC widescreen, you would // specify the ratio 40:33. In this example, the value for parDenominator is 33. - ParDenominator int32 + ParDenominator *int32 // Required when you set Pixel aspect ratio to SPECIFIED. On the console, this // corresponds to any value other than Follow source. When you specify an output // pixel aspect ratio (PAR) that is different from your input video PAR, provide // your output PAR as a ratio. For example, for D1/DV NTSC widescreen, you would // specify the ratio 40:33. In this example, the value for parNumerator is 40. - ParNumerator int32 + ParNumerator *int32 // Optional. Use Quality tuning level to choose how you want to trade off encoding // speed for output video quality. The default behavior is faster, lower quality, @@ -6156,7 +6156,7 @@ type Mpeg2Settings struct { // 17 to 128 to use planar interpolation. Increasing values from 17 to 128 result // in increasing reduction of high-frequency data. The value 128 results in the // softest video. - Softness int32 + Softness *int32 // Keep the default value, Enabled, to adjust quantization within each frame based // on spatial variation of content complexity. When you enable this feature, the @@ -6269,7 +6269,7 @@ type MsSmoothGroupSettings struct { // Exact to have the encoder use the exact length that you specify with the setting // Fragment length. This might result in extra I-frames. Choose Multiple of GOP to // have the encoder round up the segment lengths to match the next GOP boundary. - FragmentLength int32 + FragmentLength *int32 // Specify how you want MediaConvert to determine the fragment length. Choose // Exact to have the encoder use the exact length that you specify with the setting @@ -6330,7 +6330,7 @@ type MxfXavcProfileSettings struct { // frame. This should be sufficient to prevent overflow unless you have multiple // pages of teletext captions data. If you have a large amount of teletext data, // specify a larger number. - MaxAncDataSize int32 + MaxAncDataSize *int32 noSmithyDocumentSerde } @@ -6355,7 +6355,7 @@ type NexGuardFileMarkerSettings struct { // create two adaptive bitrate (ABR) stacks for each asset. Do this by setting up // two output groups. For one output group, set the value of Payload ID to 0 in // every output. For the other output group, set Payload ID to 1 in every output. - Payload int32 + Payload *int32 // Enter one of the watermarking preset strings that Nagra provides you. Required // when you include Nagra NexGuard File Marker watermarking in your job. @@ -6376,7 +6376,7 @@ type NielsenConfiguration struct { // Nielsen has discontinued the use of breakout code functionality. If you must // include this property, set the value to zero. - BreakoutCode int32 + BreakoutCode *int32 // Use Distributor ID to specify the distributor ID that is assigned to your // organization by Nielsen. @@ -6438,7 +6438,7 @@ type NielsenNonLinearWatermarkSettings struct { // Nielsen non-linear watermarking. This ID should be unique to your Nielsen // account but common to all of your output assets. Required for all Nielsen // non-linear watermarking. - SourceId int32 + SourceId *int32 // Required. Specify whether your source content already contains Nielsen // non-linear watermarks. When you set this value to Watermarked, the service fails @@ -6494,7 +6494,7 @@ type NoiseReducerFilterSettings struct { // Relative strength of noise reducing filter. Higher values produce stronger // filtering. - Strength int32 + Strength *int32 noSmithyDocumentSerde } @@ -6504,15 +6504,15 @@ type NoiseReducerSpatialFilterSettings struct { // Specify strength of post noise reduction sharpening filter, with 0 disabling // the filter and 3 enabling it at maximum strength. - PostFilterSharpenStrength int32 + PostFilterSharpenStrength *int32 // The speed of the filter, from -2 (lower speed) to 3 (higher speed), with 0 // being the nominal value. - Speed int32 + Speed *int32 // Relative strength of noise reducing filter. Higher values produce stronger // filtering. - Strength int32 + Strength *int32 noSmithyDocumentSerde } @@ -6523,7 +6523,7 @@ type NoiseReducerTemporalFilterSettings struct { // Use Aggressive mode for content that has complex motion. Higher values produce // stronger temporal filtering. This filters highly complex scenes more // aggressively and creates better VQ for low bitrate outputs. - AggressiveMode int32 + AggressiveMode *int32 // When you set Noise reducer to Temporal, the bandwidth and sharpness of your // output is reduced. You can optionally use Post temporal sharpening to apply @@ -6544,14 +6544,14 @@ type NoiseReducerTemporalFilterSettings struct { // The speed of the filter (higher number is faster). Low setting reduces bit rate // at the cost of transcode time, high setting improves transcode time at the cost // of bit rate. - Speed int32 + Speed *int32 // Specify the strength of the noise reducing filter on this output. Higher values // produce stronger filtering. We recommend the following value ranges, depending // on the result that you want: * 0-2 for complexity reduction with minimal // sharpness loss * 2-8 for complexity reduction with image preservation * 8-16 for // a high level of complexity reduction - Strength int32 + Strength *int32 noSmithyDocumentSerde } @@ -6563,16 +6563,16 @@ type OpusSettings struct { // Optional. Specify the average bitrate in bits per second. Valid values are // multiples of 8000, from 32000 through 192000. The default value is 96000, which // we recommend for quality and bandwidth. - Bitrate int32 + Bitrate *int32 // Specify the number of channels in this output audio track. Choosing Mono on // gives you 1 output channel; choosing Stereo gives you 2. In the API, valid // values are 1 and 2. - Channels int32 + Channels *int32 // Optional. Sample rate in hz. Valid values are 16000, 24000, and 48000. The // default value is 48000. - SampleRate int32 + SampleRate *int32 noSmithyDocumentSerde } @@ -6644,7 +6644,7 @@ type OutputChannelMapping struct { type OutputDetail struct { // Duration in milliseconds - DurationInMs int32 + DurationInMs *int32 // Contains details about the output's video stream VideoDetails *VideoDetail @@ -6858,7 +6858,7 @@ type ProresSettings struct { // example, use 1001 for the value of FramerateDenominator. When you use the // console for transcode jobs that use frame rate conversion, provide the value as // a decimal number for Framerate. In this example, specify 23.976. - FramerateDenominator int32 + FramerateDenominator *int32 // When you use the API for transcode jobs that use frame rate conversion, specify // the frame rate as a fraction. For example, 24000 / 1001 = 23.976 fps. Use @@ -6866,7 +6866,7 @@ type ProresSettings struct { // use 24000 for the value of FramerateNumerator. When you use the console for // transcode jobs that use frame rate conversion, provide the value as a decimal // number for Framerate. In this example, specify 23.976. - FramerateNumerator int32 + FramerateNumerator *int32 // Choose the scan line type for the output. Keep the default value, Progressive // to create a progressive output, regardless of the scan type of your input. Use @@ -6892,14 +6892,14 @@ type ProresSettings struct { // pixel aspect ratio (PAR) that is different from your input video PAR, provide // your output PAR as a ratio. For example, for D1/DV NTSC widescreen, you would // specify the ratio 40:33. In this example, the value for parDenominator is 33. - ParDenominator int32 + ParDenominator *int32 // Required when you set Pixel aspect ratio to SPECIFIED. On the console, this // corresponds to any value other than Follow source. When you specify an output // pixel aspect ratio (PAR) that is different from your input video PAR, provide // your output PAR as a ratio. For example, for D1/DV NTSC widescreen, you would // specify the ratio 40:33. In this example, the value for parNumerator is 40. - ParNumerator int32 + ParNumerator *int32 // Use this setting for interlaced outputs, when your output frame rate is half of // your input frame rate. In this situation, choose Optimized interlacing to create @@ -6965,7 +6965,7 @@ type Queue struct { PricingPlan PricingPlan // The estimated number of jobs with a PROGRESSING status. - ProgressingJobsCount int32 + ProgressingJobsCount *int32 // Details about the pricing plan for your reserved queue. Required for reserved // queues and not applicable to on-demand queues. @@ -6977,7 +6977,7 @@ type Queue struct { Status QueueStatus // The estimated number of jobs with a SUBMITTED status. - SubmittedJobsCount int32 + SubmittedJobsCount *int32 // Specifies whether this on-demand queue is system or custom. System queues are // built in. You can't modify or delete system queues. You can create and modify @@ -7008,18 +7008,18 @@ type QueueTransition struct { type Rectangle struct { // Height of rectangle in pixels. Specify only even numbers. - Height int32 + Height *int32 // Width of rectangle in pixels. Specify only even numbers. - Width int32 + Width *int32 // The distance, in pixels, between the rectangle and the left edge of the video // frame. Specify only even numbers. - X int32 + X *int32 // The distance, in pixels, between the rectangle and the top edge of the video // frame. Specify only even numbers. - Y int32 + Y *int32 noSmithyDocumentSerde } @@ -7048,14 +7048,14 @@ type RemixSettings struct { // you are doing both input channel mapping and output channel mapping, the number // of output channels in your input mapping must be the same as the number of input // channels in your output mapping. - ChannelsIn int32 + ChannelsIn *int32 // Specify the number of channels in this output after remixing. Valid values: 1, // 2, 4, 6, 8... 64. (1 and even numbers to 64.) If you are doing both input // channel mapping and output channel mapping, the number of output channels in // your input mapping must be the same as the number of input channels in your // output mapping. - ChannelsOut int32 + ChannelsOut *int32 noSmithyDocumentSerde } @@ -7085,7 +7085,7 @@ type ReservationPlan struct { // your existing commitment with a new 12-month commitment for a larger number of // RTS. The new commitment begins when you purchase the additional capacity. You // can't decrease the number of RTS in your reserved queue. - ReservedSlots int32 + ReservedSlots *int32 // Specifies whether the pricing plan for your reserved queue is ACTIVE or EXPIRED. Status ReservationPlanStatus @@ -7120,7 +7120,7 @@ type ReservationPlanSettings struct { // capacity. // // This member is required. - ReservedSlots int32 + ReservedSlots *int32 noSmithyDocumentSerde } @@ -7358,7 +7358,7 @@ type TimecodeBurnin struct { // Use Font size to set the font size of any burned-in timecode. Valid values are // 10, 16, 32, 48. - FontSize int32 + FontSize *int32 // Use Position under Timecode burn-in to specify the location the burned-in // timecode on output video. @@ -7456,7 +7456,7 @@ type TrackSourceSettings struct { // example, use 1 to select the captions asset that is listed first in the CPL. To // include more than one captions track in your job outputs, create multiple input // captions selectors. Specify one track per selector. - TrackNumber int32 + TrackNumber *int32 noSmithyDocumentSerde } @@ -7505,7 +7505,7 @@ type Vc3Settings struct { // example, use 1001 for the value of FramerateDenominator. When you use the // console for transcode jobs that use frame rate conversion, provide the value as // a decimal number for Framerate. In this example, specify 23.976. - FramerateDenominator int32 + FramerateDenominator *int32 // When you use the API for transcode jobs that use frame rate conversion, specify // the frame rate as a fraction. For example, 24000 / 1001 = 23.976 fps. Use @@ -7513,7 +7513,7 @@ type Vc3Settings struct { // use 24000 for the value of FramerateNumerator. When you use the console for // transcode jobs that use frame rate conversion, provide the value as a decimal // number for Framerate. In this example, specify 23.976. - FramerateNumerator int32 + FramerateNumerator *int32 // Optional. Choose the scan line type for this output. If you don't specify a // value, MediaConvert will create a progressive output. @@ -7663,14 +7663,14 @@ type VideoDescription struct { // Applies only if you set AFD Signaling to Fixed. Use Fixed to specify a four-bit // AFD value which the service will write on all frames of this video output. - FixedAfd int32 + FixedAfd *int32 // Use Height to define the video resolution height, in pixels, for this output. // To use the same resolution as your input: Leave both Width and Height blank. To // evenly scale from your input resolution: Leave Height blank and enter a value // for Width. For example, if your input is 1920x1080 and you set Width to 1280, // your output will be 1280x720. - Height int32 + Height *int32 // Use Selection placement to define the video area in your output frame. The area // outside of the rectangle that you specify here is black. @@ -7696,7 +7696,7 @@ type VideoDescription struct { // changes the width of the anti-alias filter kernel used for scaling. Sharpness // only applies if your output resolution is different from your input resolution. // 0 is the softest setting, 100 the sharpest, and 50 recommended for most content. - Sharpness int32 + Sharpness *int32 // Applies only to H.264, H.265, MPEG2, and ProRes outputs. Only enable Timecode // insertion when the input frame rate is identical to the output frame rate. To @@ -7720,7 +7720,7 @@ type VideoDescription struct { // evenly scale from your input resolution: Leave Width blank and enter a value for // Height. For example, if your input is 1920x1080 and you set Height to 720, your // output will be 1280x720. - Width int32 + Width *int32 noSmithyDocumentSerde } @@ -7729,10 +7729,10 @@ type VideoDescription struct { type VideoDetail struct { // Height in pixels for the output - HeightInPx int32 + HeightInPx *int32 // Width in pixels for the output - WidthInPx int32 + WidthInPx *int32 noSmithyDocumentSerde } @@ -7931,11 +7931,11 @@ type VideoSelector struct { // an integer; the system automatically converts it to the hexidecimal value. For // example, 257 selects PID 0x101. A PID, or packet identifier, is an identifier // for a set of data in an MPEG-2 transport stream container. - Pid int32 + Pid *int32 // Selects a specific program from within a multi-program transport stream. Note // that Quad 4K is not currently supported. - ProgramNumber int32 + ProgramNumber *int32 // Use Rotate to specify how the service rotates your video. You can choose // automatic rotation or specify a rotation. You can specify a clockwise rotation @@ -7968,17 +7968,17 @@ type VorbisSettings struct { // Optional. Specify the number of channels in this output audio track. Choosing // Mono on the console gives you 1 output channel; choosing Stereo gives you 2. In // the API, valid values are 1 and 2. The default value is 2. - Channels int32 + Channels *int32 // Optional. Specify the audio sample rate in Hz. Valid values are 22050, 32000, // 44100, and 48000. The default value is 48000. - SampleRate int32 + SampleRate *int32 // Optional. Specify the variable audio quality of this Vorbis output from -1 // (lowest quality, ~45 kbit/s) to 10 (highest quality, ~500 kbit/s). The default // value is 4 (~128 kbit/s). Values 5 and 6 are approximately 160 and 192 kbit/s, // respectively. - VbrQuality int32 + VbrQuality *int32 noSmithyDocumentSerde } @@ -7988,7 +7988,7 @@ type Vp8Settings struct { // Target bitrate in bits/second. For example, enter five megabits per second as // 5000000. - Bitrate int32 + Bitrate *int32 // If you are using the console, use the Framerate setting to specify the frame // rate for this output. If you want to keep the same frame rate as the input @@ -8017,7 +8017,7 @@ type Vp8Settings struct { // example, use 1001 for the value of FramerateDenominator. When you use the // console for transcode jobs that use frame rate conversion, provide the value as // a decimal number for Framerate. In this example, specify 23.976. - FramerateDenominator int32 + FramerateDenominator *int32 // When you use the API for transcode jobs that use frame rate conversion, specify // the frame rate as a fraction. For example, 24000 / 1001 = 23.976 fps. Use @@ -8025,20 +8025,20 @@ type Vp8Settings struct { // use 24000 for the value of FramerateNumerator. When you use the console for // transcode jobs that use frame rate conversion, provide the value as a decimal // number for Framerate. In this example, specify 23.976. - FramerateNumerator int32 + FramerateNumerator *int32 // GOP Length (keyframe interval) in frames. Must be greater than zero. - GopSize float64 + GopSize *float64 // Optional. Size of buffer (HRD buffer model) in bits. For example, enter five // megabits as 5000000. - HrdBufferSize int32 + HrdBufferSize *int32 // Ignore this setting unless you set qualityTuningLevel to MULTI_PASS. Optional. // Specify the maximum bitrate in bits/second. For example, enter five megabits per // second as 5000000. The default behavior uses twice the target bitrate as the // maximum bitrate. - MaxBitrate int32 + MaxBitrate *int32 // Optional. Specify how the service determines the pixel aspect ratio (PAR) for // this output. The default behavior, Follow source, uses the PAR from your input @@ -8052,14 +8052,14 @@ type Vp8Settings struct { // pixel aspect ratio (PAR) that is different from your input video PAR, provide // your output PAR as a ratio. For example, for D1/DV NTSC widescreen, you would // specify the ratio 40:33. In this example, the value for parDenominator is 33. - ParDenominator int32 + ParDenominator *int32 // Required when you set Pixel aspect ratio to SPECIFIED. On the console, this // corresponds to any value other than Follow source. When you specify an output // pixel aspect ratio (PAR) that is different from your input video PAR, provide // your output PAR as a ratio. For example, for D1/DV NTSC widescreen, you would // specify the ratio 40:33. In this example, the value for parNumerator is 40. - ParNumerator int32 + ParNumerator *int32 // Optional. Use Quality tuning level to choose how you want to trade off encoding // speed for output video quality. The default behavior is faster, lower quality, @@ -8078,7 +8078,7 @@ type Vp9Settings struct { // Target bitrate in bits/second. For example, enter five megabits per second as // 5000000. - Bitrate int32 + Bitrate *int32 // If you are using the console, use the Framerate setting to specify the frame // rate for this output. If you want to keep the same frame rate as the input @@ -8107,7 +8107,7 @@ type Vp9Settings struct { // example, use 1001 for the value of FramerateDenominator. When you use the // console for transcode jobs that use frame rate conversion, provide the value as // a decimal number for Framerate. In this example, specify 23.976. - FramerateDenominator int32 + FramerateDenominator *int32 // When you use the API for transcode jobs that use frame rate conversion, specify // the frame rate as a fraction. For example, 24000 / 1001 = 23.976 fps. Use @@ -8115,20 +8115,20 @@ type Vp9Settings struct { // use 24000 for the value of FramerateNumerator. When you use the console for // transcode jobs that use frame rate conversion, provide the value as a decimal // number for Framerate. In this example, specify 23.976. - FramerateNumerator int32 + FramerateNumerator *int32 // GOP Length (keyframe interval) in frames. Must be greater than zero. - GopSize float64 + GopSize *float64 // Size of buffer (HRD buffer model) in bits. For example, enter five megabits as // 5000000. - HrdBufferSize int32 + HrdBufferSize *int32 // Ignore this setting unless you set qualityTuningLevel to MULTI_PASS. Optional. // Specify the maximum bitrate in bits/second. For example, enter five megabits per // second as 5000000. The default behavior uses twice the target bitrate as the // maximum bitrate. - MaxBitrate int32 + MaxBitrate *int32 // Optional. Specify how the service determines the pixel aspect ratio for this // output. The default behavior is to use the same pixel aspect ratio as your input @@ -8140,14 +8140,14 @@ type Vp9Settings struct { // pixel aspect ratio (PAR) that is different from your input video PAR, provide // your output PAR as a ratio. For example, for D1/DV NTSC widescreen, you would // specify the ratio 40:33. In this example, the value for parDenominator is 33. - ParDenominator int32 + ParDenominator *int32 // Required when you set Pixel aspect ratio to SPECIFIED. On the console, this // corresponds to any value other than Follow source. When you specify an output // pixel aspect ratio (PAR) that is different from your input video PAR, provide // your output PAR as a ratio. For example, for D1/DV NTSC widescreen, you would // specify the ratio 40:33. In this example, the value for parNumerator is 40. - ParNumerator int32 + ParNumerator *int32 // Optional. Use Quality tuning level to choose how you want to trade off encoding // speed for output video quality. The default behavior is faster, lower quality, @@ -8169,12 +8169,12 @@ type WarningGroup struct { // https://docs.aws.amazon.com/mediaconvert/latest/ug/warning_codes.html // // This member is required. - Code int32 + Code *int32 // The number of times this warning occurred in the job. // // This member is required. - Count int32 + Count *int32 noSmithyDocumentSerde } @@ -8184,11 +8184,11 @@ type WavSettings struct { // Specify Bit depth, in bits per sample, to choose the encoding quality for this // audio track. - BitDepth int32 + BitDepth *int32 // Specify the number of channels in this output audio track. Valid values are 1 // and even numbers up to 64. For example, 1, 2, 4, 6, and so on, up to 64. - Channels int32 + Channels *int32 // The service defaults to using RIFF for WAV outputs. If your output audio is // likely to exceed 4 GB in file size, or if you otherwise need the extended @@ -8196,7 +8196,7 @@ type WavSettings struct { Format WavFormat // Sample rate in Hz. - SampleRate int32 + SampleRate *int32 noSmithyDocumentSerde } @@ -8315,13 +8315,13 @@ type Xavc4kProfileSettings struct { // Frequency of closed GOPs. In streaming applications, it is recommended that // this be set to 1 so a decoder joining mid-stream will receive an IDR frame as // quickly as possible. Setting this value to 0 will break output segmenting. - GopClosedCadence int32 + GopClosedCadence *int32 // Specify the size of the buffer that MediaConvert uses in the HRD buffer model // for this output. Specify this value in bits; for example, enter five megabits as // 5000000. When you don't set this value, or you set it to zero, MediaConvert // calculates the default by doubling the bitrate of this output point. - HrdBufferSize int32 + HrdBufferSize *int32 // Optional. Use Quality tuning level to choose how you want to trade off encoding // speed for output video quality. The default behavior is faster, lower quality, @@ -8331,7 +8331,7 @@ type Xavc4kProfileSettings struct { // Number of slices per picture. Must be less than or equal to the number of // macroblock rows for progressive pictures, and less than or equal to half the // number of macroblock rows for interlaced pictures. - Slices int32 + Slices *int32 noSmithyDocumentSerde } @@ -8379,13 +8379,13 @@ type XavcHdProfileSettings struct { // Frequency of closed GOPs. In streaming applications, it is recommended that // this be set to 1 so a decoder joining mid-stream will receive an IDR frame as // quickly as possible. Setting this value to 0 will break output segmenting. - GopClosedCadence int32 + GopClosedCadence *int32 // Specify the size of the buffer that MediaConvert uses in the HRD buffer model // for this output. Specify this value in bits; for example, enter five megabits as // 5000000. When you don't set this value, or you set it to zero, MediaConvert // calculates the default by doubling the bitrate of this output point. - HrdBufferSize int32 + HrdBufferSize *int32 // Choose the scan line type for the output. Keep the default value, Progressive // to create a progressive output, regardless of the scan type of your input. Use @@ -8407,7 +8407,7 @@ type XavcHdProfileSettings struct { // Number of slices per picture. Must be less than or equal to the number of // macroblock rows for progressive pictures, and less than or equal to half the // number of macroblock rows for interlaced pictures. - Slices int32 + Slices *int32 // Ignore this setting unless you set Frame rate (framerateNumerator divided by // framerateDenominator) to 29.970. If your input framerate is 23.976, choose Hard. @@ -8465,7 +8465,7 @@ type XavcSettings struct { // example, use 1001 for the value of FramerateDenominator. When you use the // console for transcode jobs that use frame rate conversion, provide the value as // a decimal number for Frame rate. In this example, specify 23.976. - FramerateDenominator int32 + FramerateDenominator *int32 // When you use the API for transcode jobs that use frame rate conversion, specify // the frame rate as a fraction. For example, 24000 / 1001 = 23.976 fps. Use @@ -8473,7 +8473,7 @@ type XavcSettings struct { // use 24000 for the value of FramerateNumerator. When you use the console for // transcode jobs that use frame rate conversion, provide the value as a decimal // number for Framerate. In this example, specify 23.976. - FramerateNumerator int32 + FramerateNumerator *int32 // Specify the XAVC profile for this output. For more information, see the Sony // documentation at https://www.xavc-info.org/. Note that MediaConvert doesn't @@ -8497,7 +8497,7 @@ type XavcSettings struct { // H.264 specification. Choose a value from 17 to 128 to use planar interpolation. // Increasing values from 17 to 128 result in increasing reduction of // high-frequency data. The value 128 results in the softest video. - Softness int32 + Softness *int32 // The best way to set up adaptive quantization is to keep the default value, // Auto, for the setting Adaptive quantization. When you do so, MediaConvert diff --git a/service/mediaconvert/validators.go b/service/mediaconvert/validators.go index 0a0a8982643..2d5944b1481 100644 --- a/service/mediaconvert/validators.go +++ b/service/mediaconvert/validators.go @@ -540,6 +540,9 @@ func validateReservationPlanSettings(v *types.ReservationPlanSettings) error { if len(v.RenewalType) == 0 { invalidParams.Add(smithy.NewErrParamRequired("RenewalType")) } + if v.ReservedSlots == nil { + invalidParams.Add(smithy.NewErrParamRequired("ReservedSlots")) + } if invalidParams.Len() > 0 { return invalidParams } else { diff --git a/service/medialive/api_op_DeleteChannel.go b/service/medialive/api_op_DeleteChannel.go index 50a2f6012b4..4628b1f6c3f 100644 --- a/service/medialive/api_op_DeleteChannel.go +++ b/service/medialive/api_op_DeleteChannel.go @@ -89,7 +89,7 @@ type DeleteChannelOutput struct { PipelineDetails []types.PipelineDetail // The number of currently healthy pipelines. - PipelinesRunningCount int32 + PipelinesRunningCount *int32 // The Amazon Resource Name (ARN) of the role assumed when running the Channel. RoleArn *string diff --git a/service/medialive/api_op_DeleteMultiplex.go b/service/medialive/api_op_DeleteMultiplex.go index 066980a660f..3650cc2c9fd 100644 --- a/service/medialive/api_op_DeleteMultiplex.go +++ b/service/medialive/api_op_DeleteMultiplex.go @@ -65,10 +65,10 @@ type DeleteMultiplexOutput struct { Name *string // The number of currently healthy pipelines. - PipelinesRunningCount int32 + PipelinesRunningCount *int32 // The number of programs in the multiplex. - ProgramCount int32 + ProgramCount *int32 // The current state of the multiplex. State types.MultiplexState diff --git a/service/medialive/api_op_DeleteReservation.go b/service/medialive/api_op_DeleteReservation.go index 5dcc1a37a74..759176406ed 100644 --- a/service/medialive/api_op_DeleteReservation.go +++ b/service/medialive/api_op_DeleteReservation.go @@ -51,13 +51,13 @@ type DeleteReservationOutput struct { Arn *string // Number of reserved resources - Count int32 + Count *int32 // Currency code for usagePrice and fixedPrice in ISO-4217 format, e.g. 'USD' CurrencyCode *string // Lease duration, e.g. '12' - Duration int32 + Duration *int32 // Units for duration, e.g. 'MONTHS' DurationUnits types.OfferingDurationUnits @@ -66,7 +66,7 @@ type DeleteReservationOutput struct { End *string // One-time charge for each reserved resource, e.g. '0.0' for a NO_UPFRONT offering - FixedPrice float64 + FixedPrice *float64 // User specified reservation name Name *string @@ -104,7 +104,7 @@ type DeleteReservationOutput struct { Tags map[string]string // Recurring usage charge for each reserved resource, e.g. '157.0' - UsagePrice float64 + UsagePrice *float64 // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/medialive/api_op_DescribeChannel.go b/service/medialive/api_op_DescribeChannel.go index e40103aecfa..5d799a6a8ad 100644 --- a/service/medialive/api_op_DescribeChannel.go +++ b/service/medialive/api_op_DescribeChannel.go @@ -93,7 +93,7 @@ type DescribeChannelOutput struct { PipelineDetails []types.PipelineDetail // The number of currently healthy pipelines. - PipelinesRunningCount int32 + PipelinesRunningCount *int32 // The Amazon Resource Name (ARN) of the role assumed when running the Channel. RoleArn *string diff --git a/service/medialive/api_op_DescribeInputDeviceThumbnail.go b/service/medialive/api_op_DescribeInputDeviceThumbnail.go index 92ae4854047..527fef01818 100644 --- a/service/medialive/api_op_DescribeInputDeviceThumbnail.go +++ b/service/medialive/api_op_DescribeInputDeviceThumbnail.go @@ -58,7 +58,7 @@ type DescribeInputDeviceThumbnailOutput struct { Body io.ReadCloser // The length of the content. - ContentLength int64 + ContentLength *int64 // Specifies the media type of the thumbnail. ContentType types.ContentType diff --git a/service/medialive/api_op_DescribeMultiplex.go b/service/medialive/api_op_DescribeMultiplex.go index de513b08c88..555db2894cc 100644 --- a/service/medialive/api_op_DescribeMultiplex.go +++ b/service/medialive/api_op_DescribeMultiplex.go @@ -69,10 +69,10 @@ type DescribeMultiplexOutput struct { Name *string // The number of currently healthy pipelines. - PipelinesRunningCount int32 + PipelinesRunningCount *int32 // The number of programs in the multiplex. - ProgramCount int32 + ProgramCount *int32 // The current state of the multiplex. State types.MultiplexState diff --git a/service/medialive/api_op_DescribeOffering.go b/service/medialive/api_op_DescribeOffering.go index 5a4474d25f7..e1f4c7a462e 100644 --- a/service/medialive/api_op_DescribeOffering.go +++ b/service/medialive/api_op_DescribeOffering.go @@ -54,13 +54,13 @@ type DescribeOfferingOutput struct { CurrencyCode *string // Lease duration, e.g. '12' - Duration int32 + Duration *int32 // Units for duration, e.g. 'MONTHS' DurationUnits types.OfferingDurationUnits // One-time charge for each reserved resource, e.g. '0.0' for a NO_UPFRONT offering - FixedPrice float64 + FixedPrice *float64 // Offering description, e.g. 'HD AVC output at 10-20 Mbps, 30 fps, and standard // VQ in US West (Oregon)' @@ -79,7 +79,7 @@ type DescribeOfferingOutput struct { ResourceSpecification *types.ReservationResourceSpecification // Recurring usage charge for each reserved resource, e.g. '157.0' - UsagePrice float64 + UsagePrice *float64 // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/medialive/api_op_DescribeReservation.go b/service/medialive/api_op_DescribeReservation.go index 4622b11dbf6..f64fe246756 100644 --- a/service/medialive/api_op_DescribeReservation.go +++ b/service/medialive/api_op_DescribeReservation.go @@ -51,13 +51,13 @@ type DescribeReservationOutput struct { Arn *string // Number of reserved resources - Count int32 + Count *int32 // Currency code for usagePrice and fixedPrice in ISO-4217 format, e.g. 'USD' CurrencyCode *string // Lease duration, e.g. '12' - Duration int32 + Duration *int32 // Units for duration, e.g. 'MONTHS' DurationUnits types.OfferingDurationUnits @@ -66,7 +66,7 @@ type DescribeReservationOutput struct { End *string // One-time charge for each reserved resource, e.g. '0.0' for a NO_UPFRONT offering - FixedPrice float64 + FixedPrice *float64 // User specified reservation name Name *string @@ -104,7 +104,7 @@ type DescribeReservationOutput struct { Tags map[string]string // Recurring usage charge for each reserved resource, e.g. '157.0' - UsagePrice float64 + UsagePrice *float64 // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/medialive/api_op_DescribeSchedule.go b/service/medialive/api_op_DescribeSchedule.go index c33d6cd19e0..67e9f264584 100644 --- a/service/medialive/api_op_DescribeSchedule.go +++ b/service/medialive/api_op_DescribeSchedule.go @@ -41,7 +41,7 @@ type DescribeScheduleInput struct { ChannelId *string // Placeholder documentation for MaxResults - MaxResults int32 + MaxResults *int32 // Placeholder documentation for __string NextToken *string @@ -173,8 +173,8 @@ func NewDescribeSchedulePaginator(client DescribeScheduleAPIClient, params *Desc } options := DescribeSchedulePaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults + if params.MaxResults != nil { + options.Limit = *params.MaxResults } for _, fn := range optFns { @@ -204,7 +204,11 @@ func (p *DescribeSchedulePaginator) 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.DescribeSchedule(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/medialive/api_op_ListChannels.go b/service/medialive/api_op_ListChannels.go index 3ee550a6b94..644b31130cd 100644 --- a/service/medialive/api_op_ListChannels.go +++ b/service/medialive/api_op_ListChannels.go @@ -36,7 +36,7 @@ func (c *Client) ListChannels(ctx context.Context, params *ListChannelsInput, op type ListChannelsInput struct { // Placeholder documentation for MaxResults - MaxResults int32 + MaxResults *int32 // Placeholder documentation for __string NextToken *string @@ -164,8 +164,8 @@ func NewListChannelsPaginator(client ListChannelsAPIClient, params *ListChannels } options := ListChannelsPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults + if params.MaxResults != nil { + options.Limit = *params.MaxResults } for _, fn := range optFns { @@ -195,7 +195,11 @@ func (p *ListChannelsPaginator) 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.ListChannels(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/medialive/api_op_ListInputDeviceTransfers.go b/service/medialive/api_op_ListInputDeviceTransfers.go index ecbb1b1aa69..06880864ff0 100644 --- a/service/medialive/api_op_ListInputDeviceTransfers.go +++ b/service/medialive/api_op_ListInputDeviceTransfers.go @@ -43,7 +43,7 @@ type ListInputDeviceTransfersInput struct { TransferType *string // Placeholder documentation for MaxResults - MaxResults int32 + MaxResults *int32 // Placeholder documentation for __string NextToken *string @@ -177,8 +177,8 @@ func NewListInputDeviceTransfersPaginator(client ListInputDeviceTransfersAPIClie } options := ListInputDeviceTransfersPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults + if params.MaxResults != nil { + options.Limit = *params.MaxResults } for _, fn := range optFns { @@ -208,7 +208,11 @@ func (p *ListInputDeviceTransfersPaginator) 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.ListInputDeviceTransfers(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/medialive/api_op_ListInputDevices.go b/service/medialive/api_op_ListInputDevices.go index c933ae2386f..41be26994d0 100644 --- a/service/medialive/api_op_ListInputDevices.go +++ b/service/medialive/api_op_ListInputDevices.go @@ -36,7 +36,7 @@ func (c *Client) ListInputDevices(ctx context.Context, params *ListInputDevicesI type ListInputDevicesInput struct { // Placeholder documentation for MaxResults - MaxResults int32 + MaxResults *int32 // Placeholder documentation for __string NextToken *string @@ -165,8 +165,8 @@ func NewListInputDevicesPaginator(client ListInputDevicesAPIClient, params *List } options := ListInputDevicesPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults + if params.MaxResults != nil { + options.Limit = *params.MaxResults } for _, fn := range optFns { @@ -196,7 +196,11 @@ func (p *ListInputDevicesPaginator) 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.ListInputDevices(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/medialive/api_op_ListInputSecurityGroups.go b/service/medialive/api_op_ListInputSecurityGroups.go index 3cc5d1e1d90..f4ac4664f85 100644 --- a/service/medialive/api_op_ListInputSecurityGroups.go +++ b/service/medialive/api_op_ListInputSecurityGroups.go @@ -36,7 +36,7 @@ func (c *Client) ListInputSecurityGroups(ctx context.Context, params *ListInputS type ListInputSecurityGroupsInput struct { // Placeholder documentation for MaxResults - MaxResults int32 + MaxResults *int32 // Placeholder documentation for __string NextToken *string @@ -167,8 +167,8 @@ func NewListInputSecurityGroupsPaginator(client ListInputSecurityGroupsAPIClient } options := ListInputSecurityGroupsPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults + if params.MaxResults != nil { + options.Limit = *params.MaxResults } for _, fn := range optFns { @@ -198,7 +198,11 @@ func (p *ListInputSecurityGroupsPaginator) 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.ListInputSecurityGroups(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/medialive/api_op_ListInputs.go b/service/medialive/api_op_ListInputs.go index f2e11b9490b..90400454cf9 100644 --- a/service/medialive/api_op_ListInputs.go +++ b/service/medialive/api_op_ListInputs.go @@ -36,7 +36,7 @@ func (c *Client) ListInputs(ctx context.Context, params *ListInputsInput, optFns type ListInputsInput struct { // Placeholder documentation for MaxResults - MaxResults int32 + MaxResults *int32 // Placeholder documentation for __string NextToken *string @@ -164,8 +164,8 @@ func NewListInputsPaginator(client ListInputsAPIClient, params *ListInputsInput, } options := ListInputsPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults + if params.MaxResults != nil { + options.Limit = *params.MaxResults } for _, fn := range optFns { @@ -195,7 +195,11 @@ func (p *ListInputsPaginator) NextPage(ctx context.Context, optFns ...func(*Opti 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.ListInputs(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/medialive/api_op_ListMultiplexPrograms.go b/service/medialive/api_op_ListMultiplexPrograms.go index 8d41b325e78..a263e0364f7 100644 --- a/service/medialive/api_op_ListMultiplexPrograms.go +++ b/service/medialive/api_op_ListMultiplexPrograms.go @@ -41,7 +41,7 @@ type ListMultiplexProgramsInput struct { MultiplexId *string // The maximum number of items to return. - MaxResults int32 + MaxResults *int32 // The token to retrieve the next page of results. NextToken *string @@ -174,8 +174,8 @@ func NewListMultiplexProgramsPaginator(client ListMultiplexProgramsAPIClient, pa } options := ListMultiplexProgramsPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults + if params.MaxResults != nil { + options.Limit = *params.MaxResults } for _, fn := range optFns { @@ -205,7 +205,11 @@ func (p *ListMultiplexProgramsPaginator) 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.ListMultiplexPrograms(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/medialive/api_op_ListMultiplexes.go b/service/medialive/api_op_ListMultiplexes.go index 7f69de4b832..ff46e56da9e 100644 --- a/service/medialive/api_op_ListMultiplexes.go +++ b/service/medialive/api_op_ListMultiplexes.go @@ -36,7 +36,7 @@ func (c *Client) ListMultiplexes(ctx context.Context, params *ListMultiplexesInp type ListMultiplexesInput struct { // The maximum number of items to return. - MaxResults int32 + MaxResults *int32 // The token to retrieve the next page of results. NextToken *string @@ -165,8 +165,8 @@ func NewListMultiplexesPaginator(client ListMultiplexesAPIClient, params *ListMu } options := ListMultiplexesPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults + if params.MaxResults != nil { + options.Limit = *params.MaxResults } for _, fn := range optFns { @@ -196,7 +196,11 @@ func (p *ListMultiplexesPaginator) 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.ListMultiplexes(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/medialive/api_op_ListOfferings.go b/service/medialive/api_op_ListOfferings.go index 71623876c04..0bea4ff643c 100644 --- a/service/medialive/api_op_ListOfferings.go +++ b/service/medialive/api_op_ListOfferings.go @@ -49,7 +49,7 @@ type ListOfferingsInput struct { Duration *string // Placeholder documentation for MaxResults - MaxResults int32 + MaxResults *int32 // Filter by bitrate, 'MAX_10_MBPS', 'MAX_20_MBPS', or 'MAX_50_MBPS' MaximumBitrate *string @@ -195,8 +195,8 @@ func NewListOfferingsPaginator(client ListOfferingsAPIClient, params *ListOfferi } options := ListOfferingsPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults + if params.MaxResults != nil { + options.Limit = *params.MaxResults } for _, fn := range optFns { @@ -226,7 +226,11 @@ func (p *ListOfferingsPaginator) 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.ListOfferings(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/medialive/api_op_ListReservations.go b/service/medialive/api_op_ListReservations.go index a9062f5786a..44532bf60c1 100644 --- a/service/medialive/api_op_ListReservations.go +++ b/service/medialive/api_op_ListReservations.go @@ -42,7 +42,7 @@ type ListReservationsInput struct { Codec *string // Placeholder documentation for MaxResults - MaxResults int32 + MaxResults *int32 // Filter by bitrate, 'MAX_10_MBPS', 'MAX_20_MBPS', or 'MAX_50_MBPS' MaximumBitrate *string @@ -189,8 +189,8 @@ func NewListReservationsPaginator(client ListReservationsAPIClient, params *List } options := ListReservationsPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults + if params.MaxResults != nil { + options.Limit = *params.MaxResults } for _, fn := range optFns { @@ -220,7 +220,11 @@ func (p *ListReservationsPaginator) 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.ListReservations(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/medialive/api_op_PurchaseOffering.go b/service/medialive/api_op_PurchaseOffering.go index 1b61ff72301..095e5f5e100 100644 --- a/service/medialive/api_op_PurchaseOffering.go +++ b/service/medialive/api_op_PurchaseOffering.go @@ -38,7 +38,7 @@ type PurchaseOfferingInput struct { // Number of resources // // This member is required. - Count int32 + Count *int32 // Offering to purchase, e.g. '87654321' // diff --git a/service/medialive/api_op_StartChannel.go b/service/medialive/api_op_StartChannel.go index 9bf4f9b23af..ee858c9224d 100644 --- a/service/medialive/api_op_StartChannel.go +++ b/service/medialive/api_op_StartChannel.go @@ -89,7 +89,7 @@ type StartChannelOutput struct { PipelineDetails []types.PipelineDetail // The number of currently healthy pipelines. - PipelinesRunningCount int32 + PipelinesRunningCount *int32 // The Amazon Resource Name (ARN) of the role assumed when running the Channel. RoleArn *string diff --git a/service/medialive/api_op_StartMultiplex.go b/service/medialive/api_op_StartMultiplex.go index 35601dc073d..ec151a8444b 100644 --- a/service/medialive/api_op_StartMultiplex.go +++ b/service/medialive/api_op_StartMultiplex.go @@ -66,10 +66,10 @@ type StartMultiplexOutput struct { Name *string // The number of currently healthy pipelines. - PipelinesRunningCount int32 + PipelinesRunningCount *int32 // The number of programs in the multiplex. - ProgramCount int32 + ProgramCount *int32 // The current state of the multiplex. State types.MultiplexState diff --git a/service/medialive/api_op_StopChannel.go b/service/medialive/api_op_StopChannel.go index 279ce41b5e9..f64d0226d72 100644 --- a/service/medialive/api_op_StopChannel.go +++ b/service/medialive/api_op_StopChannel.go @@ -89,7 +89,7 @@ type StopChannelOutput struct { PipelineDetails []types.PipelineDetail // The number of currently healthy pipelines. - PipelinesRunningCount int32 + PipelinesRunningCount *int32 // The Amazon Resource Name (ARN) of the role assumed when running the Channel. RoleArn *string diff --git a/service/medialive/api_op_StopMultiplex.go b/service/medialive/api_op_StopMultiplex.go index a82990ce54e..d368c68046b 100644 --- a/service/medialive/api_op_StopMultiplex.go +++ b/service/medialive/api_op_StopMultiplex.go @@ -66,10 +66,10 @@ type StopMultiplexOutput struct { Name *string // The number of currently healthy pipelines. - PipelinesRunningCount int32 + PipelinesRunningCount *int32 // The number of programs in the multiplex. - ProgramCount int32 + ProgramCount *int32 // The current state of the multiplex. State types.MultiplexState diff --git a/service/medialive/deserializers.go b/service/medialive/deserializers.go index c74374e8bb2..43b4161e751 100644 --- a/service/medialive/deserializers.go +++ b/service/medialive/deserializers.go @@ -2369,7 +2369,7 @@ func awsRestjson1_deserializeOpDocumentDeleteChannelOutput(v **DeleteChannelOutp if err != nil { return err } - sv.PipelinesRunningCount = int32(i64) + sv.PipelinesRunningCount = ptr.Int32(int32(i64)) } case "roleArn": @@ -2820,7 +2820,7 @@ func awsRestjson1_deserializeOpDocumentDeleteMultiplexOutput(v **DeleteMultiplex if err != nil { return err } - sv.PipelinesRunningCount = int32(i64) + sv.PipelinesRunningCount = ptr.Int32(int32(i64)) } case "programCount": @@ -2833,7 +2833,7 @@ func awsRestjson1_deserializeOpDocumentDeleteMultiplexOutput(v **DeleteMultiplex if err != nil { return err } - sv.ProgramCount = int32(i64) + sv.ProgramCount = ptr.Int32(int32(i64)) } case "state": @@ -3228,7 +3228,7 @@ func awsRestjson1_deserializeOpDocumentDeleteReservationOutput(v **DeleteReserva if err != nil { return err } - sv.Count = int32(i64) + sv.Count = ptr.Int32(int32(i64)) } case "currencyCode": @@ -3250,7 +3250,7 @@ func awsRestjson1_deserializeOpDocumentDeleteReservationOutput(v **DeleteReserva if err != nil { return err } - sv.Duration = int32(i64) + sv.Duration = ptr.Int32(int32(i64)) } case "durationUnits": @@ -3279,7 +3279,7 @@ func awsRestjson1_deserializeOpDocumentDeleteReservationOutput(v **DeleteReserva if err != nil { return err } - sv.FixedPrice = f64 + sv.FixedPrice = ptr.Float64(f64) case string: var f64 float64 @@ -3297,7 +3297,7 @@ func awsRestjson1_deserializeOpDocumentDeleteReservationOutput(v **DeleteReserva return fmt.Errorf("unknown JSON number value: %s", jtv) } - sv.FixedPrice = f64 + sv.FixedPrice = ptr.Float64(f64) default: return fmt.Errorf("expected __double to be a JSON Number, got %T instead", value) @@ -3400,7 +3400,7 @@ func awsRestjson1_deserializeOpDocumentDeleteReservationOutput(v **DeleteReserva if err != nil { return err } - sv.UsagePrice = f64 + sv.UsagePrice = ptr.Float64(f64) case string: var f64 float64 @@ -3418,7 +3418,7 @@ func awsRestjson1_deserializeOpDocumentDeleteReservationOutput(v **DeleteReserva return fmt.Errorf("unknown JSON number value: %s", jtv) } - sv.UsagePrice = f64 + sv.UsagePrice = ptr.Float64(f64) default: return fmt.Errorf("expected __double to be a JSON Number, got %T instead", value) @@ -4042,7 +4042,7 @@ func awsRestjson1_deserializeOpDocumentDescribeChannelOutput(v **DescribeChannel if err != nil { return err } - sv.PipelinesRunningCount = int32(i64) + sv.PipelinesRunningCount = ptr.Int32(int32(i64)) } case "roleArn": @@ -4760,7 +4760,7 @@ func awsRestjson1_deserializeOpHttpBindingsDescribeInputDeviceThumbnailOutput(v if err != nil { return err } - v.ContentLength = vv + v.ContentLength = ptr.Int64(vv) } if headerValues := response.Header.Values("Content-Type"); len(headerValues) != 0 { @@ -5198,7 +5198,7 @@ func awsRestjson1_deserializeOpDocumentDescribeMultiplexOutput(v **DescribeMulti if err != nil { return err } - sv.PipelinesRunningCount = int32(i64) + sv.PipelinesRunningCount = ptr.Int32(int32(i64)) } case "programCount": @@ -5211,7 +5211,7 @@ func awsRestjson1_deserializeOpDocumentDescribeMultiplexOutput(v **DescribeMulti if err != nil { return err } - sv.ProgramCount = int32(i64) + sv.ProgramCount = ptr.Int32(int32(i64)) } case "state": @@ -5609,7 +5609,7 @@ func awsRestjson1_deserializeOpDocumentDescribeOfferingOutput(v **DescribeOfferi if err != nil { return err } - sv.Duration = int32(i64) + sv.Duration = ptr.Int32(int32(i64)) } case "durationUnits": @@ -5629,7 +5629,7 @@ func awsRestjson1_deserializeOpDocumentDescribeOfferingOutput(v **DescribeOfferi if err != nil { return err } - sv.FixedPrice = f64 + sv.FixedPrice = ptr.Float64(f64) case string: var f64 float64 @@ -5647,7 +5647,7 @@ func awsRestjson1_deserializeOpDocumentDescribeOfferingOutput(v **DescribeOfferi return fmt.Errorf("unknown JSON number value: %s", jtv) } - sv.FixedPrice = f64 + sv.FixedPrice = ptr.Float64(f64) default: return fmt.Errorf("expected __double to be a JSON Number, got %T instead", value) @@ -5704,7 +5704,7 @@ func awsRestjson1_deserializeOpDocumentDescribeOfferingOutput(v **DescribeOfferi if err != nil { return err } - sv.UsagePrice = f64 + sv.UsagePrice = ptr.Float64(f64) case string: var f64 float64 @@ -5722,7 +5722,7 @@ func awsRestjson1_deserializeOpDocumentDescribeOfferingOutput(v **DescribeOfferi return fmt.Errorf("unknown JSON number value: %s", jtv) } - sv.UsagePrice = f64 + sv.UsagePrice = ptr.Float64(f64) default: return fmt.Errorf("expected __double to be a JSON Number, got %T instead", value) @@ -5909,7 +5909,7 @@ func awsRestjson1_deserializeOpDocumentDescribeReservationOutput(v **DescribeRes if err != nil { return err } - sv.Count = int32(i64) + sv.Count = ptr.Int32(int32(i64)) } case "currencyCode": @@ -5931,7 +5931,7 @@ func awsRestjson1_deserializeOpDocumentDescribeReservationOutput(v **DescribeRes if err != nil { return err } - sv.Duration = int32(i64) + sv.Duration = ptr.Int32(int32(i64)) } case "durationUnits": @@ -5960,7 +5960,7 @@ func awsRestjson1_deserializeOpDocumentDescribeReservationOutput(v **DescribeRes if err != nil { return err } - sv.FixedPrice = f64 + sv.FixedPrice = ptr.Float64(f64) case string: var f64 float64 @@ -5978,7 +5978,7 @@ func awsRestjson1_deserializeOpDocumentDescribeReservationOutput(v **DescribeRes return fmt.Errorf("unknown JSON number value: %s", jtv) } - sv.FixedPrice = f64 + sv.FixedPrice = ptr.Float64(f64) default: return fmt.Errorf("expected __double to be a JSON Number, got %T instead", value) @@ -6081,7 +6081,7 @@ func awsRestjson1_deserializeOpDocumentDescribeReservationOutput(v **DescribeRes if err != nil { return err } - sv.UsagePrice = f64 + sv.UsagePrice = ptr.Float64(f64) case string: var f64 float64 @@ -6099,7 +6099,7 @@ func awsRestjson1_deserializeOpDocumentDescribeReservationOutput(v **DescribeRes return fmt.Errorf("unknown JSON number value: %s", jtv) } - sv.UsagePrice = f64 + sv.UsagePrice = ptr.Float64(f64) default: return fmt.Errorf("expected __double to be a JSON Number, got %T instead", value) @@ -8787,7 +8787,7 @@ func awsRestjson1_deserializeOpDocumentStartChannelOutput(v **StartChannelOutput if err != nil { return err } - sv.PipelinesRunningCount = int32(i64) + sv.PipelinesRunningCount = ptr.Int32(int32(i64)) } case "roleArn": @@ -9241,7 +9241,7 @@ func awsRestjson1_deserializeOpDocumentStartMultiplexOutput(v **StartMultiplexOu if err != nil { return err } - sv.PipelinesRunningCount = int32(i64) + sv.PipelinesRunningCount = ptr.Int32(int32(i64)) } case "programCount": @@ -9254,7 +9254,7 @@ func awsRestjson1_deserializeOpDocumentStartMultiplexOutput(v **StartMultiplexOu if err != nil { return err } - sv.ProgramCount = int32(i64) + sv.ProgramCount = ptr.Int32(int32(i64)) } case "state": @@ -9529,7 +9529,7 @@ func awsRestjson1_deserializeOpDocumentStopChannelOutput(v **StopChannelOutput, if err != nil { return err } - sv.PipelinesRunningCount = int32(i64) + sv.PipelinesRunningCount = ptr.Int32(int32(i64)) } case "roleArn": @@ -9879,7 +9879,7 @@ func awsRestjson1_deserializeOpDocumentStopMultiplexOutput(v **StopMultiplexOutp if err != nil { return err } - sv.PipelinesRunningCount = int32(i64) + sv.PipelinesRunningCount = ptr.Int32(int32(i64)) } case "programCount": @@ -9892,7 +9892,7 @@ func awsRestjson1_deserializeOpDocumentStopMultiplexOutput(v **StopMultiplexOutp if err != nil { return err } - sv.ProgramCount = int32(i64) + sv.ProgramCount = ptr.Int32(int32(i64)) } case "state": @@ -13577,7 +13577,7 @@ func awsRestjson1_deserializeDocumentAacSettings(v **types.AacSettings, value in if err != nil { return err } - sv.Bitrate = f64 + sv.Bitrate = ptr.Float64(f64) case string: var f64 float64 @@ -13595,7 +13595,7 @@ func awsRestjson1_deserializeDocumentAacSettings(v **types.AacSettings, value in return fmt.Errorf("unknown JSON number value: %s", jtv) } - sv.Bitrate = f64 + sv.Bitrate = ptr.Float64(f64) default: return fmt.Errorf("expected __double to be a JSON Number, got %T instead", value) @@ -13656,7 +13656,7 @@ func awsRestjson1_deserializeDocumentAacSettings(v **types.AacSettings, value in if err != nil { return err } - sv.SampleRate = f64 + sv.SampleRate = ptr.Float64(f64) case string: var f64 float64 @@ -13674,7 +13674,7 @@ func awsRestjson1_deserializeDocumentAacSettings(v **types.AacSettings, value in return fmt.Errorf("unknown JSON number value: %s", jtv) } - sv.SampleRate = f64 + sv.SampleRate = ptr.Float64(f64) default: return fmt.Errorf("expected __double to be a JSON Number, got %T instead", value) @@ -13748,7 +13748,7 @@ func awsRestjson1_deserializeDocumentAc3Settings(v **types.Ac3Settings, value in if err != nil { return err } - sv.Bitrate = f64 + sv.Bitrate = ptr.Float64(f64) case string: var f64 float64 @@ -13766,7 +13766,7 @@ func awsRestjson1_deserializeDocumentAc3Settings(v **types.Ac3Settings, value in return fmt.Errorf("unknown JSON number value: %s", jtv) } - sv.Bitrate = f64 + sv.Bitrate = ptr.Float64(f64) default: return fmt.Errorf("expected __double to be a JSON Number, got %T instead", value) @@ -13802,7 +13802,7 @@ func awsRestjson1_deserializeDocumentAc3Settings(v **types.Ac3Settings, value in if err != nil { return err } - sv.Dialnorm = int32(i64) + sv.Dialnorm = ptr.Int32(int32(i64)) } case "drcProfile": @@ -13913,7 +13913,7 @@ func awsRestjson1_deserializeDocumentAncillarySourceSettings(v **types.Ancillary if err != nil { return err } - sv.SourceAncillaryChannelNumber = int32(i64) + sv.SourceAncillaryChannelNumber = ptr.Int32(int32(i64)) } default: @@ -14044,7 +14044,7 @@ func awsRestjson1_deserializeDocumentArchiveGroupSettings(v **types.ArchiveGroup if err != nil { return err } - sv.RolloverInterval = int32(i64) + sv.RolloverInterval = ptr.Int32(int32(i64)) } default: @@ -14249,7 +14249,7 @@ func awsRestjson1_deserializeDocumentAudioChannelMapping(v **types.AudioChannelM if err != nil { return err } - sv.OutputChannel = int32(i64) + sv.OutputChannel = ptr.Int32(int32(i64)) } default: @@ -14627,7 +14627,7 @@ func awsRestjson1_deserializeDocumentAudioNormalizationSettings(v **types.AudioN if err != nil { return err } - sv.TargetLkfs = f64 + sv.TargetLkfs = ptr.Float64(f64) case string: var f64 float64 @@ -14645,7 +14645,7 @@ func awsRestjson1_deserializeDocumentAudioNormalizationSettings(v **types.AudioN return fmt.Errorf("unknown JSON number value: %s", jtv) } - sv.TargetLkfs = f64 + sv.TargetLkfs = ptr.Float64(f64) default: return fmt.Errorf("expected __doubleMinNegative59Max0 to be a JSON Number, got %T instead", value) @@ -14757,7 +14757,7 @@ func awsRestjson1_deserializeDocumentAudioPidSelection(v **types.AudioPidSelecti if err != nil { return err } - sv.Pid = int32(i64) + sv.Pid = ptr.Int32(int32(i64)) } default: @@ -14906,7 +14906,7 @@ func awsRestjson1_deserializeDocumentAudioSilenceFailoverSettings(v **types.Audi if err != nil { return err } - sv.AudioSilenceThresholdMsec = int32(i64) + sv.AudioSilenceThresholdMsec = ptr.Int32(int32(i64)) } default: @@ -14950,7 +14950,7 @@ func awsRestjson1_deserializeDocumentAudioTrack(v **types.AudioTrack, value inte if err != nil { return err } - sv.Track = int32(i64) + sv.Track = ptr.Int32(int32(i64)) } default: @@ -15071,7 +15071,7 @@ func awsRestjson1_deserializeDocumentAutomaticInputFailoverSettings(v **types.Au if err != nil { return err } - sv.ErrorClearTimeMsec = int32(i64) + sv.ErrorClearTimeMsec = ptr.Int32(int32(i64)) } case "failoverConditions": @@ -15628,7 +15628,7 @@ func awsRestjson1_deserializeDocumentBurnInDestinationSettings(v **types.BurnInD if err != nil { return err } - sv.BackgroundOpacity = int32(i64) + sv.BackgroundOpacity = ptr.Int32(int32(i64)) } case "font": @@ -15655,7 +15655,7 @@ func awsRestjson1_deserializeDocumentBurnInDestinationSettings(v **types.BurnInD if err != nil { return err } - sv.FontOpacity = int32(i64) + sv.FontOpacity = ptr.Int32(int32(i64)) } case "fontResolution": @@ -15668,7 +15668,7 @@ func awsRestjson1_deserializeDocumentBurnInDestinationSettings(v **types.BurnInD if err != nil { return err } - sv.FontResolution = int32(i64) + sv.FontResolution = ptr.Int32(int32(i64)) } case "fontSize": @@ -15699,7 +15699,7 @@ func awsRestjson1_deserializeDocumentBurnInDestinationSettings(v **types.BurnInD if err != nil { return err } - sv.OutlineSize = int32(i64) + sv.OutlineSize = ptr.Int32(int32(i64)) } case "shadowColor": @@ -15721,7 +15721,7 @@ func awsRestjson1_deserializeDocumentBurnInDestinationSettings(v **types.BurnInD if err != nil { return err } - sv.ShadowOpacity = int32(i64) + sv.ShadowOpacity = ptr.Int32(int32(i64)) } case "shadowXOffset": @@ -15734,7 +15734,7 @@ func awsRestjson1_deserializeDocumentBurnInDestinationSettings(v **types.BurnInD if err != nil { return err } - sv.ShadowXOffset = int32(i64) + sv.ShadowXOffset = ptr.Int32(int32(i64)) } case "shadowYOffset": @@ -15747,7 +15747,7 @@ func awsRestjson1_deserializeDocumentBurnInDestinationSettings(v **types.BurnInD if err != nil { return err } - sv.ShadowYOffset = int32(i64) + sv.ShadowYOffset = ptr.Int32(int32(i64)) } case "teletextGridControl": @@ -15769,7 +15769,7 @@ func awsRestjson1_deserializeDocumentBurnInDestinationSettings(v **types.BurnInD if err != nil { return err } - sv.XPosition = int32(i64) + sv.XPosition = ptr.Int32(int32(i64)) } case "yPosition": @@ -15782,7 +15782,7 @@ func awsRestjson1_deserializeDocumentBurnInDestinationSettings(v **types.BurnInD if err != nil { return err } - sv.YPosition = int32(i64) + sv.YPosition = ptr.Int32(int32(i64)) } default: @@ -16003,7 +16003,7 @@ func awsRestjson1_deserializeDocumentCaptionLanguageMapping(v **types.CaptionLan if err != nil { return err } - sv.CaptionChannel = int32(i64) + sv.CaptionChannel = ptr.Int32(int32(i64)) } case "languageCode": @@ -16063,7 +16063,7 @@ func awsRestjson1_deserializeDocumentCaptionRectangle(v **types.CaptionRectangle if err != nil { return err } - sv.Height = f64 + sv.Height = ptr.Float64(f64) case string: var f64 float64 @@ -16081,7 +16081,7 @@ func awsRestjson1_deserializeDocumentCaptionRectangle(v **types.CaptionRectangle return fmt.Errorf("unknown JSON number value: %s", jtv) } - sv.Height = f64 + sv.Height = ptr.Float64(f64) default: return fmt.Errorf("expected __doubleMin0Max100 to be a JSON Number, got %T instead", value) @@ -16097,7 +16097,7 @@ func awsRestjson1_deserializeDocumentCaptionRectangle(v **types.CaptionRectangle if err != nil { return err } - sv.LeftOffset = f64 + sv.LeftOffset = ptr.Float64(f64) case string: var f64 float64 @@ -16115,7 +16115,7 @@ func awsRestjson1_deserializeDocumentCaptionRectangle(v **types.CaptionRectangle return fmt.Errorf("unknown JSON number value: %s", jtv) } - sv.LeftOffset = f64 + sv.LeftOffset = ptr.Float64(f64) default: return fmt.Errorf("expected __doubleMin0Max100 to be a JSON Number, got %T instead", value) @@ -16131,7 +16131,7 @@ func awsRestjson1_deserializeDocumentCaptionRectangle(v **types.CaptionRectangle if err != nil { return err } - sv.TopOffset = f64 + sv.TopOffset = ptr.Float64(f64) case string: var f64 float64 @@ -16149,7 +16149,7 @@ func awsRestjson1_deserializeDocumentCaptionRectangle(v **types.CaptionRectangle return fmt.Errorf("unknown JSON number value: %s", jtv) } - sv.TopOffset = f64 + sv.TopOffset = ptr.Float64(f64) default: return fmt.Errorf("expected __doubleMin0Max100 to be a JSON Number, got %T instead", value) @@ -16165,7 +16165,7 @@ func awsRestjson1_deserializeDocumentCaptionRectangle(v **types.CaptionRectangle if err != nil { return err } - sv.Width = f64 + sv.Width = ptr.Float64(f64) case string: var f64 float64 @@ -16183,7 +16183,7 @@ func awsRestjson1_deserializeDocumentCaptionRectangle(v **types.CaptionRectangle return fmt.Errorf("unknown JSON number value: %s", jtv) } - sv.Width = f64 + sv.Width = ptr.Float64(f64) default: return fmt.Errorf("expected __doubleMin0Max100 to be a JSON Number, got %T instead", value) @@ -16477,7 +16477,7 @@ func awsRestjson1_deserializeDocumentChannel(v **types.Channel, value interface{ if err != nil { return err } - sv.PipelinesRunningCount = int32(i64) + sv.PipelinesRunningCount = ptr.Int32(int32(i64)) } case "roleArn": @@ -16664,7 +16664,7 @@ func awsRestjson1_deserializeDocumentChannelSummary(v **types.ChannelSummary, va if err != nil { return err } - sv.PipelinesRunningCount = int32(i64) + sv.PipelinesRunningCount = ptr.Int32(int32(i64)) } case "roleArn": @@ -16838,7 +16838,7 @@ func awsRestjson1_deserializeDocumentDvbNitSettings(v **types.DvbNitSettings, va if err != nil { return err } - sv.NetworkId = int32(i64) + sv.NetworkId = ptr.Int32(int32(i64)) } case "networkName": @@ -16860,7 +16860,7 @@ func awsRestjson1_deserializeDocumentDvbNitSettings(v **types.DvbNitSettings, va if err != nil { return err } - sv.RepInterval = int32(i64) + sv.RepInterval = ptr.Int32(int32(i64)) } default: @@ -16913,7 +16913,7 @@ func awsRestjson1_deserializeDocumentDvbSdtSettings(v **types.DvbSdtSettings, va if err != nil { return err } - sv.RepInterval = int32(i64) + sv.RepInterval = ptr.Int32(int32(i64)) } case "serviceName": @@ -16993,7 +16993,7 @@ func awsRestjson1_deserializeDocumentDvbSubDestinationSettings(v **types.DvbSubD if err != nil { return err } - sv.BackgroundOpacity = int32(i64) + sv.BackgroundOpacity = ptr.Int32(int32(i64)) } case "font": @@ -17020,7 +17020,7 @@ func awsRestjson1_deserializeDocumentDvbSubDestinationSettings(v **types.DvbSubD if err != nil { return err } - sv.FontOpacity = int32(i64) + sv.FontOpacity = ptr.Int32(int32(i64)) } case "fontResolution": @@ -17033,7 +17033,7 @@ func awsRestjson1_deserializeDocumentDvbSubDestinationSettings(v **types.DvbSubD if err != nil { return err } - sv.FontResolution = int32(i64) + sv.FontResolution = ptr.Int32(int32(i64)) } case "fontSize": @@ -17064,7 +17064,7 @@ func awsRestjson1_deserializeDocumentDvbSubDestinationSettings(v **types.DvbSubD if err != nil { return err } - sv.OutlineSize = int32(i64) + sv.OutlineSize = ptr.Int32(int32(i64)) } case "shadowColor": @@ -17086,7 +17086,7 @@ func awsRestjson1_deserializeDocumentDvbSubDestinationSettings(v **types.DvbSubD if err != nil { return err } - sv.ShadowOpacity = int32(i64) + sv.ShadowOpacity = ptr.Int32(int32(i64)) } case "shadowXOffset": @@ -17099,7 +17099,7 @@ func awsRestjson1_deserializeDocumentDvbSubDestinationSettings(v **types.DvbSubD if err != nil { return err } - sv.ShadowXOffset = int32(i64) + sv.ShadowXOffset = ptr.Int32(int32(i64)) } case "shadowYOffset": @@ -17112,7 +17112,7 @@ func awsRestjson1_deserializeDocumentDvbSubDestinationSettings(v **types.DvbSubD if err != nil { return err } - sv.ShadowYOffset = int32(i64) + sv.ShadowYOffset = ptr.Int32(int32(i64)) } case "teletextGridControl": @@ -17134,7 +17134,7 @@ func awsRestjson1_deserializeDocumentDvbSubDestinationSettings(v **types.DvbSubD if err != nil { return err } - sv.XPosition = int32(i64) + sv.XPosition = ptr.Int32(int32(i64)) } case "yPosition": @@ -17147,7 +17147,7 @@ func awsRestjson1_deserializeDocumentDvbSubDestinationSettings(v **types.DvbSubD if err != nil { return err } - sv.YPosition = int32(i64) + sv.YPosition = ptr.Int32(int32(i64)) } default: @@ -17200,7 +17200,7 @@ func awsRestjson1_deserializeDocumentDvbSubSourceSettings(v **types.DvbSubSource if err != nil { return err } - sv.Pid = int32(i64) + sv.Pid = ptr.Int32(int32(i64)) } default: @@ -17244,7 +17244,7 @@ func awsRestjson1_deserializeDocumentDvbTdtSettings(v **types.DvbTdtSettings, va if err != nil { return err } - sv.RepInterval = int32(i64) + sv.RepInterval = ptr.Int32(int32(i64)) } default: @@ -17286,7 +17286,7 @@ func awsRestjson1_deserializeDocumentEac3AtmosSettings(v **types.Eac3AtmosSettin if err != nil { return err } - sv.Bitrate = f64 + sv.Bitrate = ptr.Float64(f64) case string: var f64 float64 @@ -17304,7 +17304,7 @@ func awsRestjson1_deserializeDocumentEac3AtmosSettings(v **types.Eac3AtmosSettin return fmt.Errorf("unknown JSON number value: %s", jtv) } - sv.Bitrate = f64 + sv.Bitrate = ptr.Float64(f64) default: return fmt.Errorf("expected __double to be a JSON Number, got %T instead", value) @@ -17331,7 +17331,7 @@ func awsRestjson1_deserializeDocumentEac3AtmosSettings(v **types.Eac3AtmosSettin if err != nil { return err } - sv.Dialnorm = int32(i64) + sv.Dialnorm = ptr.Int32(int32(i64)) } case "drcLine": @@ -17360,7 +17360,7 @@ func awsRestjson1_deserializeDocumentEac3AtmosSettings(v **types.Eac3AtmosSettin if err != nil { return err } - sv.HeightTrim = f64 + sv.HeightTrim = ptr.Float64(f64) case string: var f64 float64 @@ -17378,7 +17378,7 @@ func awsRestjson1_deserializeDocumentEac3AtmosSettings(v **types.Eac3AtmosSettin return fmt.Errorf("unknown JSON number value: %s", jtv) } - sv.HeightTrim = f64 + sv.HeightTrim = ptr.Float64(f64) default: return fmt.Errorf("expected __double to be a JSON Number, got %T instead", value) @@ -17394,7 +17394,7 @@ func awsRestjson1_deserializeDocumentEac3AtmosSettings(v **types.Eac3AtmosSettin if err != nil { return err } - sv.SurroundTrim = f64 + sv.SurroundTrim = ptr.Float64(f64) case string: var f64 float64 @@ -17412,7 +17412,7 @@ func awsRestjson1_deserializeDocumentEac3AtmosSettings(v **types.Eac3AtmosSettin return fmt.Errorf("unknown JSON number value: %s", jtv) } - sv.SurroundTrim = f64 + sv.SurroundTrim = ptr.Float64(f64) default: return fmt.Errorf("expected __double to be a JSON Number, got %T instead", value) @@ -17468,7 +17468,7 @@ func awsRestjson1_deserializeDocumentEac3Settings(v **types.Eac3Settings, value if err != nil { return err } - sv.Bitrate = f64 + sv.Bitrate = ptr.Float64(f64) case string: var f64 float64 @@ -17486,7 +17486,7 @@ func awsRestjson1_deserializeDocumentEac3Settings(v **types.Eac3Settings, value return fmt.Errorf("unknown JSON number value: %s", jtv) } - sv.Bitrate = f64 + sv.Bitrate = ptr.Float64(f64) default: return fmt.Errorf("expected __double to be a JSON Number, got %T instead", value) @@ -17531,7 +17531,7 @@ func awsRestjson1_deserializeDocumentEac3Settings(v **types.Eac3Settings, value if err != nil { return err } - sv.Dialnorm = int32(i64) + sv.Dialnorm = ptr.Int32(int32(i64)) } case "drcLine": @@ -17578,7 +17578,7 @@ func awsRestjson1_deserializeDocumentEac3Settings(v **types.Eac3Settings, value if err != nil { return err } - sv.LoRoCenterMixLevel = f64 + sv.LoRoCenterMixLevel = ptr.Float64(f64) case string: var f64 float64 @@ -17596,7 +17596,7 @@ func awsRestjson1_deserializeDocumentEac3Settings(v **types.Eac3Settings, value return fmt.Errorf("unknown JSON number value: %s", jtv) } - sv.LoRoCenterMixLevel = f64 + sv.LoRoCenterMixLevel = ptr.Float64(f64) default: return fmt.Errorf("expected __double to be a JSON Number, got %T instead", value) @@ -17612,7 +17612,7 @@ func awsRestjson1_deserializeDocumentEac3Settings(v **types.Eac3Settings, value if err != nil { return err } - sv.LoRoSurroundMixLevel = f64 + sv.LoRoSurroundMixLevel = ptr.Float64(f64) case string: var f64 float64 @@ -17630,7 +17630,7 @@ func awsRestjson1_deserializeDocumentEac3Settings(v **types.Eac3Settings, value return fmt.Errorf("unknown JSON number value: %s", jtv) } - sv.LoRoSurroundMixLevel = f64 + sv.LoRoSurroundMixLevel = ptr.Float64(f64) default: return fmt.Errorf("expected __double to be a JSON Number, got %T instead", value) @@ -17646,7 +17646,7 @@ func awsRestjson1_deserializeDocumentEac3Settings(v **types.Eac3Settings, value if err != nil { return err } - sv.LtRtCenterMixLevel = f64 + sv.LtRtCenterMixLevel = ptr.Float64(f64) case string: var f64 float64 @@ -17664,7 +17664,7 @@ func awsRestjson1_deserializeDocumentEac3Settings(v **types.Eac3Settings, value return fmt.Errorf("unknown JSON number value: %s", jtv) } - sv.LtRtCenterMixLevel = f64 + sv.LtRtCenterMixLevel = ptr.Float64(f64) default: return fmt.Errorf("expected __double to be a JSON Number, got %T instead", value) @@ -17680,7 +17680,7 @@ func awsRestjson1_deserializeDocumentEac3Settings(v **types.Eac3Settings, value if err != nil { return err } - sv.LtRtSurroundMixLevel = f64 + sv.LtRtSurroundMixLevel = ptr.Float64(f64) case string: var f64 float64 @@ -17698,7 +17698,7 @@ func awsRestjson1_deserializeDocumentEac3Settings(v **types.Eac3Settings, value return fmt.Errorf("unknown JSON number value: %s", jtv) } - sv.LtRtSurroundMixLevel = f64 + sv.LtRtSurroundMixLevel = ptr.Float64(f64) default: return fmt.Errorf("expected __double to be a JSON Number, got %T instead", value) @@ -17948,7 +17948,7 @@ func awsRestjson1_deserializeDocumentEmbeddedSourceSettings(v **types.EmbeddedSo if err != nil { return err } - sv.Source608ChannelNumber = int32(i64) + sv.Source608ChannelNumber = ptr.Int32(int32(i64)) } case "source608TrackNumber": @@ -17961,7 +17961,7 @@ func awsRestjson1_deserializeDocumentEmbeddedSourceSettings(v **types.EmbeddedSo if err != nil { return err } - sv.Source608TrackNumber = int32(i64) + sv.Source608TrackNumber = ptr.Int32(int32(i64)) } default: @@ -18159,7 +18159,7 @@ func awsRestjson1_deserializeDocumentEsam(v **types.Esam, value interface{}) err if err != nil { return err } - sv.AdAvailOffset = int32(i64) + sv.AdAvailOffset = ptr.Int32(int32(i64)) } case "passwordParam": @@ -18361,7 +18361,7 @@ func awsRestjson1_deserializeDocumentFecOutputSettings(v **types.FecOutputSettin if err != nil { return err } - sv.ColumnDepth = int32(i64) + sv.ColumnDepth = ptr.Int32(int32(i64)) } case "includeFec": @@ -18383,7 +18383,7 @@ func awsRestjson1_deserializeDocumentFecOutputSettings(v **types.FecOutputSettin if err != nil { return err } - sv.RowLength = int32(i64) + sv.RowLength = ptr.Int32(int32(i64)) } default: @@ -18802,7 +18802,7 @@ func awsRestjson1_deserializeDocumentFrameCaptureSettings(v **types.FrameCapture if err != nil { return err } - sv.CaptureInterval = int32(i64) + sv.CaptureInterval = ptr.Int32(int32(i64)) } case "captureIntervalUnits": @@ -18900,7 +18900,7 @@ func awsRestjson1_deserializeDocumentGlobalConfiguration(v **types.GlobalConfigu if err != nil { return err } - sv.InitialAudioGain = int32(i64) + sv.InitialAudioGain = ptr.Int32(int32(i64)) } case "inputEndAction": @@ -19090,7 +19090,7 @@ func awsRestjson1_deserializeDocumentH264Settings(v **types.H264Settings, value if err != nil { return err } - sv.Bitrate = int32(i64) + sv.Bitrate = ptr.Int32(int32(i64)) } case "bufFillPct": @@ -19103,7 +19103,7 @@ func awsRestjson1_deserializeDocumentH264Settings(v **types.H264Settings, value if err != nil { return err } - sv.BufFillPct = int32(i64) + sv.BufFillPct = ptr.Int32(int32(i64)) } case "bufSize": @@ -19116,7 +19116,7 @@ func awsRestjson1_deserializeDocumentH264Settings(v **types.H264Settings, value if err != nil { return err } - sv.BufSize = int32(i64) + sv.BufSize = ptr.Int32(int32(i64)) } case "colorMetadata": @@ -19193,7 +19193,7 @@ func awsRestjson1_deserializeDocumentH264Settings(v **types.H264Settings, value if err != nil { return err } - sv.FramerateDenominator = int32(i64) + sv.FramerateDenominator = ptr.Int32(int32(i64)) } case "framerateNumerator": @@ -19206,7 +19206,7 @@ func awsRestjson1_deserializeDocumentH264Settings(v **types.H264Settings, value if err != nil { return err } - sv.FramerateNumerator = int32(i64) + sv.FramerateNumerator = ptr.Int32(int32(i64)) } case "gopBReference": @@ -19228,7 +19228,7 @@ func awsRestjson1_deserializeDocumentH264Settings(v **types.H264Settings, value if err != nil { return err } - sv.GopClosedCadence = int32(i64) + sv.GopClosedCadence = ptr.Int32(int32(i64)) } case "gopNumBFrames": @@ -19241,7 +19241,7 @@ func awsRestjson1_deserializeDocumentH264Settings(v **types.H264Settings, value if err != nil { return err } - sv.GopNumBFrames = int32(i64) + sv.GopNumBFrames = ptr.Int32(int32(i64)) } case "gopSize": @@ -19252,7 +19252,7 @@ func awsRestjson1_deserializeDocumentH264Settings(v **types.H264Settings, value if err != nil { return err } - sv.GopSize = f64 + sv.GopSize = ptr.Float64(f64) case string: var f64 float64 @@ -19270,7 +19270,7 @@ func awsRestjson1_deserializeDocumentH264Settings(v **types.H264Settings, value return fmt.Errorf("unknown JSON number value: %s", jtv) } - sv.GopSize = f64 + sv.GopSize = ptr.Float64(f64) default: return fmt.Errorf("expected __double to be a JSON Number, got %T instead", value) @@ -19315,7 +19315,7 @@ func awsRestjson1_deserializeDocumentH264Settings(v **types.H264Settings, value if err != nil { return err } - sv.MaxBitrate = int32(i64) + sv.MaxBitrate = ptr.Int32(int32(i64)) } case "minIInterval": @@ -19328,7 +19328,7 @@ func awsRestjson1_deserializeDocumentH264Settings(v **types.H264Settings, value if err != nil { return err } - sv.MinIInterval = int32(i64) + sv.MinIInterval = ptr.Int32(int32(i64)) } case "numRefFrames": @@ -19341,7 +19341,7 @@ func awsRestjson1_deserializeDocumentH264Settings(v **types.H264Settings, value if err != nil { return err } - sv.NumRefFrames = int32(i64) + sv.NumRefFrames = ptr.Int32(int32(i64)) } case "parControl": @@ -19363,7 +19363,7 @@ func awsRestjson1_deserializeDocumentH264Settings(v **types.H264Settings, value if err != nil { return err } - sv.ParDenominator = int32(i64) + sv.ParDenominator = ptr.Int32(int32(i64)) } case "parNumerator": @@ -19376,7 +19376,7 @@ func awsRestjson1_deserializeDocumentH264Settings(v **types.H264Settings, value if err != nil { return err } - sv.ParNumerator = int32(i64) + sv.ParNumerator = ptr.Int32(int32(i64)) } case "profile": @@ -19407,7 +19407,7 @@ func awsRestjson1_deserializeDocumentH264Settings(v **types.H264Settings, value if err != nil { return err } - sv.QvbrQualityLevel = int32(i64) + sv.QvbrQualityLevel = ptr.Int32(int32(i64)) } case "rateControlMode": @@ -19447,7 +19447,7 @@ func awsRestjson1_deserializeDocumentH264Settings(v **types.H264Settings, value if err != nil { return err } - sv.Slices = int32(i64) + sv.Slices = ptr.Int32(int32(i64)) } case "softness": @@ -19460,7 +19460,7 @@ func awsRestjson1_deserializeDocumentH264Settings(v **types.H264Settings, value if err != nil { return err } - sv.Softness = int32(i64) + sv.Softness = ptr.Int32(int32(i64)) } case "spatialAq": @@ -19673,7 +19673,7 @@ func awsRestjson1_deserializeDocumentH265Settings(v **types.H265Settings, value if err != nil { return err } - sv.Bitrate = int32(i64) + sv.Bitrate = ptr.Int32(int32(i64)) } case "bufSize": @@ -19686,7 +19686,7 @@ func awsRestjson1_deserializeDocumentH265Settings(v **types.H265Settings, value if err != nil { return err } - sv.BufSize = int32(i64) + sv.BufSize = ptr.Int32(int32(i64)) } case "colorMetadata": @@ -19736,7 +19736,7 @@ func awsRestjson1_deserializeDocumentH265Settings(v **types.H265Settings, value if err != nil { return err } - sv.FramerateDenominator = int32(i64) + sv.FramerateDenominator = ptr.Int32(int32(i64)) } case "framerateNumerator": @@ -19749,7 +19749,7 @@ func awsRestjson1_deserializeDocumentH265Settings(v **types.H265Settings, value if err != nil { return err } - sv.FramerateNumerator = int32(i64) + sv.FramerateNumerator = ptr.Int32(int32(i64)) } case "gopClosedCadence": @@ -19762,7 +19762,7 @@ func awsRestjson1_deserializeDocumentH265Settings(v **types.H265Settings, value if err != nil { return err } - sv.GopClosedCadence = int32(i64) + sv.GopClosedCadence = ptr.Int32(int32(i64)) } case "gopSize": @@ -19773,7 +19773,7 @@ func awsRestjson1_deserializeDocumentH265Settings(v **types.H265Settings, value if err != nil { return err } - sv.GopSize = f64 + sv.GopSize = ptr.Float64(f64) case string: var f64 float64 @@ -19791,7 +19791,7 @@ func awsRestjson1_deserializeDocumentH265Settings(v **types.H265Settings, value return fmt.Errorf("unknown JSON number value: %s", jtv) } - sv.GopSize = f64 + sv.GopSize = ptr.Float64(f64) default: return fmt.Errorf("expected __double to be a JSON Number, got %T instead", value) @@ -19836,7 +19836,7 @@ func awsRestjson1_deserializeDocumentH265Settings(v **types.H265Settings, value if err != nil { return err } - sv.MaxBitrate = int32(i64) + sv.MaxBitrate = ptr.Int32(int32(i64)) } case "minIInterval": @@ -19849,7 +19849,7 @@ func awsRestjson1_deserializeDocumentH265Settings(v **types.H265Settings, value if err != nil { return err } - sv.MinIInterval = int32(i64) + sv.MinIInterval = ptr.Int32(int32(i64)) } case "parDenominator": @@ -19862,7 +19862,7 @@ func awsRestjson1_deserializeDocumentH265Settings(v **types.H265Settings, value if err != nil { return err } - sv.ParDenominator = int32(i64) + sv.ParDenominator = ptr.Int32(int32(i64)) } case "parNumerator": @@ -19875,7 +19875,7 @@ func awsRestjson1_deserializeDocumentH265Settings(v **types.H265Settings, value if err != nil { return err } - sv.ParNumerator = int32(i64) + sv.ParNumerator = ptr.Int32(int32(i64)) } case "profile": @@ -19897,7 +19897,7 @@ func awsRestjson1_deserializeDocumentH265Settings(v **types.H265Settings, value if err != nil { return err } - sv.QvbrQualityLevel = int32(i64) + sv.QvbrQualityLevel = ptr.Int32(int32(i64)) } case "rateControlMode": @@ -19937,7 +19937,7 @@ func awsRestjson1_deserializeDocumentH265Settings(v **types.H265Settings, value if err != nil { return err } - sv.Slices = int32(i64) + sv.Slices = ptr.Int32(int32(i64)) } case "tier": @@ -20004,7 +20004,7 @@ func awsRestjson1_deserializeDocumentHdr10Settings(v **types.Hdr10Settings, valu if err != nil { return err } - sv.MaxCll = int32(i64) + sv.MaxCll = ptr.Int32(int32(i64)) } case "maxFall": @@ -20017,7 +20017,7 @@ func awsRestjson1_deserializeDocumentHdr10Settings(v **types.Hdr10Settings, valu if err != nil { return err } - sv.MaxFall = int32(i64) + sv.MaxFall = ptr.Int32(int32(i64)) } default: @@ -20061,7 +20061,7 @@ func awsRestjson1_deserializeDocumentHlsAkamaiSettings(v **types.HlsAkamaiSettin if err != nil { return err } - sv.ConnectionRetryInterval = int32(i64) + sv.ConnectionRetryInterval = ptr.Int32(int32(i64)) } case "filecacheDuration": @@ -20074,7 +20074,7 @@ func awsRestjson1_deserializeDocumentHlsAkamaiSettings(v **types.HlsAkamaiSettin if err != nil { return err } - sv.FilecacheDuration = int32(i64) + sv.FilecacheDuration = ptr.Int32(int32(i64)) } case "httpTransferMode": @@ -20096,7 +20096,7 @@ func awsRestjson1_deserializeDocumentHlsAkamaiSettings(v **types.HlsAkamaiSettin if err != nil { return err } - sv.NumRetries = int32(i64) + sv.NumRetries = ptr.Int32(int32(i64)) } case "restartDelay": @@ -20109,7 +20109,7 @@ func awsRestjson1_deserializeDocumentHlsAkamaiSettings(v **types.HlsAkamaiSettin if err != nil { return err } - sv.RestartDelay = int32(i64) + sv.RestartDelay = ptr.Int32(int32(i64)) } case "salt": @@ -20171,7 +20171,7 @@ func awsRestjson1_deserializeDocumentHlsBasicPutSettings(v **types.HlsBasicPutSe if err != nil { return err } - sv.ConnectionRetryInterval = int32(i64) + sv.ConnectionRetryInterval = ptr.Int32(int32(i64)) } case "filecacheDuration": @@ -20184,7 +20184,7 @@ func awsRestjson1_deserializeDocumentHlsBasicPutSettings(v **types.HlsBasicPutSe if err != nil { return err } - sv.FilecacheDuration = int32(i64) + sv.FilecacheDuration = ptr.Int32(int32(i64)) } case "numRetries": @@ -20197,7 +20197,7 @@ func awsRestjson1_deserializeDocumentHlsBasicPutSettings(v **types.HlsBasicPutSe if err != nil { return err } - sv.NumRetries = int32(i64) + sv.NumRetries = ptr.Int32(int32(i64)) } case "restartDelay": @@ -20210,7 +20210,7 @@ func awsRestjson1_deserializeDocumentHlsBasicPutSettings(v **types.HlsBasicPutSe if err != nil { return err } - sv.RestartDelay = int32(i64) + sv.RestartDelay = ptr.Int32(int32(i64)) } default: @@ -20456,7 +20456,7 @@ func awsRestjson1_deserializeDocumentHlsGroupSettings(v **types.HlsGroupSettings if err != nil { return err } - sv.IndexNSegments = int32(i64) + sv.IndexNSegments = ptr.Int32(int32(i64)) } case "inputLossAction": @@ -20496,7 +20496,7 @@ func awsRestjson1_deserializeDocumentHlsGroupSettings(v **types.HlsGroupSettings if err != nil { return err } - sv.KeepSegments = int32(i64) + sv.KeepSegments = ptr.Int32(int32(i64)) } case "keyFormat": @@ -20550,7 +20550,7 @@ func awsRestjson1_deserializeDocumentHlsGroupSettings(v **types.HlsGroupSettings if err != nil { return err } - sv.MinSegmentLength = int32(i64) + sv.MinSegmentLength = ptr.Int32(int32(i64)) } case "mode": @@ -20599,7 +20599,7 @@ func awsRestjson1_deserializeDocumentHlsGroupSettings(v **types.HlsGroupSettings if err != nil { return err } - sv.ProgramDateTimePeriod = int32(i64) + sv.ProgramDateTimePeriod = ptr.Int32(int32(i64)) } case "redundantManifest": @@ -20630,7 +20630,7 @@ func awsRestjson1_deserializeDocumentHlsGroupSettings(v **types.HlsGroupSettings if err != nil { return err } - sv.SegmentLength = int32(i64) + sv.SegmentLength = ptr.Int32(int32(i64)) } case "segmentsPerSubdirectory": @@ -20643,7 +20643,7 @@ func awsRestjson1_deserializeDocumentHlsGroupSettings(v **types.HlsGroupSettings if err != nil { return err } - sv.SegmentsPerSubdirectory = int32(i64) + sv.SegmentsPerSubdirectory = ptr.Int32(int32(i64)) } case "streamInfResolution": @@ -20674,7 +20674,7 @@ func awsRestjson1_deserializeDocumentHlsGroupSettings(v **types.HlsGroupSettings if err != nil { return err } - sv.TimedMetadataId3Period = int32(i64) + sv.TimedMetadataId3Period = ptr.Int32(int32(i64)) } case "timestampDeltaMilliseconds": @@ -20687,7 +20687,7 @@ func awsRestjson1_deserializeDocumentHlsGroupSettings(v **types.HlsGroupSettings if err != nil { return err } - sv.TimestampDeltaMilliseconds = int32(i64) + sv.TimestampDeltaMilliseconds = ptr.Int32(int32(i64)) } case "tsFileMode": @@ -20789,7 +20789,7 @@ func awsRestjson1_deserializeDocumentHlsInputSettings(v **types.HlsInputSettings if err != nil { return err } - sv.Bandwidth = int32(i64) + sv.Bandwidth = ptr.Int32(int32(i64)) } case "bufferSegments": @@ -20802,7 +20802,7 @@ func awsRestjson1_deserializeDocumentHlsInputSettings(v **types.HlsInputSettings if err != nil { return err } - sv.BufferSegments = int32(i64) + sv.BufferSegments = ptr.Int32(int32(i64)) } case "retries": @@ -20815,7 +20815,7 @@ func awsRestjson1_deserializeDocumentHlsInputSettings(v **types.HlsInputSettings if err != nil { return err } - sv.Retries = int32(i64) + sv.Retries = ptr.Int32(int32(i64)) } case "retryInterval": @@ -20828,7 +20828,7 @@ func awsRestjson1_deserializeDocumentHlsInputSettings(v **types.HlsInputSettings if err != nil { return err } - sv.RetryInterval = int32(i64) + sv.RetryInterval = ptr.Int32(int32(i64)) } case "scte35Source": @@ -20881,7 +20881,7 @@ func awsRestjson1_deserializeDocumentHlsMediaStoreSettings(v **types.HlsMediaSto if err != nil { return err } - sv.ConnectionRetryInterval = int32(i64) + sv.ConnectionRetryInterval = ptr.Int32(int32(i64)) } case "filecacheDuration": @@ -20894,7 +20894,7 @@ func awsRestjson1_deserializeDocumentHlsMediaStoreSettings(v **types.HlsMediaSto if err != nil { return err } - sv.FilecacheDuration = int32(i64) + sv.FilecacheDuration = ptr.Int32(int32(i64)) } case "mediaStoreStorageClass": @@ -20916,7 +20916,7 @@ func awsRestjson1_deserializeDocumentHlsMediaStoreSettings(v **types.HlsMediaSto if err != nil { return err } - sv.NumRetries = int32(i64) + sv.NumRetries = ptr.Int32(int32(i64)) } case "restartDelay": @@ -20929,7 +20929,7 @@ func awsRestjson1_deserializeDocumentHlsMediaStoreSettings(v **types.HlsMediaSto if err != nil { return err } - sv.RestartDelay = int32(i64) + sv.RestartDelay = ptr.Int32(int32(i64)) } default: @@ -21167,7 +21167,7 @@ func awsRestjson1_deserializeDocumentHlsWebdavSettings(v **types.HlsWebdavSettin if err != nil { return err } - sv.ConnectionRetryInterval = int32(i64) + sv.ConnectionRetryInterval = ptr.Int32(int32(i64)) } case "filecacheDuration": @@ -21180,7 +21180,7 @@ func awsRestjson1_deserializeDocumentHlsWebdavSettings(v **types.HlsWebdavSettin if err != nil { return err } - sv.FilecacheDuration = int32(i64) + sv.FilecacheDuration = ptr.Int32(int32(i64)) } case "httpTransferMode": @@ -21202,7 +21202,7 @@ func awsRestjson1_deserializeDocumentHlsWebdavSettings(v **types.HlsWebdavSettin if err != nil { return err } - sv.NumRetries = int32(i64) + sv.NumRetries = ptr.Int32(int32(i64)) } case "restartDelay": @@ -21215,7 +21215,7 @@ func awsRestjson1_deserializeDocumentHlsWebdavSettings(v **types.HlsWebdavSettin if err != nil { return err } - sv.RestartDelay = int32(i64) + sv.RestartDelay = ptr.Int32(int32(i64)) } default: @@ -21523,7 +21523,7 @@ func awsRestjson1_deserializeDocumentInputChannelLevel(v **types.InputChannelLev if err != nil { return err } - sv.Gain = int32(i64) + sv.Gain = ptr.Int32(int32(i64)) } case "inputChannel": @@ -21536,7 +21536,7 @@ func awsRestjson1_deserializeDocumentInputChannelLevel(v **types.InputChannelLev if err != nil { return err } - sv.InputChannel = int32(i64) + sv.InputChannel = ptr.Int32(int32(i64)) } default: @@ -21767,7 +21767,7 @@ func awsRestjson1_deserializeDocumentInputDeviceHdSettings(v **types.InputDevice if err != nil { return err } - sv.Framerate = f64 + sv.Framerate = ptr.Float64(f64) case string: var f64 float64 @@ -21785,7 +21785,7 @@ func awsRestjson1_deserializeDocumentInputDeviceHdSettings(v **types.InputDevice return fmt.Errorf("unknown JSON number value: %s", jtv) } - sv.Framerate = f64 + sv.Framerate = ptr.Float64(f64) default: return fmt.Errorf("expected __double to be a JSON Number, got %T instead", value) @@ -21803,7 +21803,7 @@ func awsRestjson1_deserializeDocumentInputDeviceHdSettings(v **types.InputDevice if err != nil { return err } - sv.Height = int32(i64) + sv.Height = ptr.Int32(int32(i64)) } case "latencyMs": @@ -21816,7 +21816,7 @@ func awsRestjson1_deserializeDocumentInputDeviceHdSettings(v **types.InputDevice if err != nil { return err } - sv.LatencyMs = int32(i64) + sv.LatencyMs = ptr.Int32(int32(i64)) } case "maxBitrate": @@ -21829,7 +21829,7 @@ func awsRestjson1_deserializeDocumentInputDeviceHdSettings(v **types.InputDevice if err != nil { return err } - sv.MaxBitrate = int32(i64) + sv.MaxBitrate = ptr.Int32(int32(i64)) } case "scanType": @@ -21851,7 +21851,7 @@ func awsRestjson1_deserializeDocumentInputDeviceHdSettings(v **types.InputDevice if err != nil { return err } - sv.Width = int32(i64) + sv.Width = ptr.Int32(int32(i64)) } default: @@ -22263,7 +22263,7 @@ func awsRestjson1_deserializeDocumentInputDeviceUhdSettings(v **types.InputDevic if err != nil { return err } - sv.Framerate = f64 + sv.Framerate = ptr.Float64(f64) case string: var f64 float64 @@ -22281,7 +22281,7 @@ func awsRestjson1_deserializeDocumentInputDeviceUhdSettings(v **types.InputDevic return fmt.Errorf("unknown JSON number value: %s", jtv) } - sv.Framerate = f64 + sv.Framerate = ptr.Float64(f64) default: return fmt.Errorf("expected __double to be a JSON Number, got %T instead", value) @@ -22299,7 +22299,7 @@ func awsRestjson1_deserializeDocumentInputDeviceUhdSettings(v **types.InputDevic if err != nil { return err } - sv.Height = int32(i64) + sv.Height = ptr.Int32(int32(i64)) } case "latencyMs": @@ -22312,7 +22312,7 @@ func awsRestjson1_deserializeDocumentInputDeviceUhdSettings(v **types.InputDevic if err != nil { return err } - sv.LatencyMs = int32(i64) + sv.LatencyMs = ptr.Int32(int32(i64)) } case "maxBitrate": @@ -22325,7 +22325,7 @@ func awsRestjson1_deserializeDocumentInputDeviceUhdSettings(v **types.InputDevic if err != nil { return err } - sv.MaxBitrate = int32(i64) + sv.MaxBitrate = ptr.Int32(int32(i64)) } case "mediaconnectSettings": @@ -22352,7 +22352,7 @@ func awsRestjson1_deserializeDocumentInputDeviceUhdSettings(v **types.InputDevic if err != nil { return err } - sv.Width = int32(i64) + sv.Width = ptr.Int32(int32(i64)) } default: @@ -22454,7 +22454,7 @@ func awsRestjson1_deserializeDocumentInputLossBehavior(v **types.InputLossBehavi if err != nil { return err } - sv.BlackFrameMsec = int32(i64) + sv.BlackFrameMsec = ptr.Int32(int32(i64)) } case "inputLossImageColor": @@ -22490,7 +22490,7 @@ func awsRestjson1_deserializeDocumentInputLossBehavior(v **types.InputLossBehavi if err != nil { return err } - sv.RepeatFrameMsec = int32(i64) + sv.RepeatFrameMsec = ptr.Int32(int32(i64)) } default: @@ -22534,7 +22534,7 @@ func awsRestjson1_deserializeDocumentInputLossFailoverSettings(v **types.InputLo if err != nil { return err } - sv.InputLossThresholdMsec = int32(i64) + sv.InputLossThresholdMsec = ptr.Int32(int32(i64)) } default: @@ -22729,7 +22729,7 @@ func awsRestjson1_deserializeDocumentInputSettings(v **types.InputSettings, valu if err != nil { return err } - sv.FilterStrength = int32(i64) + sv.FilterStrength = ptr.Int32(int32(i64)) } case "inputFilter": @@ -22756,7 +22756,7 @@ func awsRestjson1_deserializeDocumentInputSettings(v **types.InputSettings, valu if err != nil { return err } - sv.Scte35Pid = int32(i64) + sv.Scte35Pid = ptr.Int32(int32(i64)) } case "smpte2038DataPreference": @@ -23150,7 +23150,7 @@ func awsRestjson1_deserializeDocumentM2tsSettings(v **types.M2tsSettings, value if err != nil { return err } - sv.AudioFramesPerPes = int32(i64) + sv.AudioFramesPerPes = ptr.Int32(int32(i64)) } case "audioPids": @@ -23181,7 +23181,7 @@ func awsRestjson1_deserializeDocumentM2tsSettings(v **types.M2tsSettings, value if err != nil { return err } - sv.Bitrate = int32(i64) + sv.Bitrate = ptr.Int32(int32(i64)) } case "bufferModel": @@ -23263,7 +23263,7 @@ func awsRestjson1_deserializeDocumentM2tsSettings(v **types.M2tsSettings, value if err != nil { return err } - sv.EbpLookaheadMs = int32(i64) + sv.EbpLookaheadMs = ptr.Int32(int32(i64)) } case "ebpPlacement": @@ -23319,7 +23319,7 @@ func awsRestjson1_deserializeDocumentM2tsSettings(v **types.M2tsSettings, value if err != nil { return err } - sv.FragmentTime = f64 + sv.FragmentTime = ptr.Float64(f64) case string: var f64 float64 @@ -23337,7 +23337,7 @@ func awsRestjson1_deserializeDocumentM2tsSettings(v **types.M2tsSettings, value return fmt.Errorf("unknown JSON number value: %s", jtv) } - sv.FragmentTime = f64 + sv.FragmentTime = ptr.Float64(f64) default: return fmt.Errorf("expected __doubleMin0 to be a JSON Number, got %T instead", value) @@ -23380,7 +23380,7 @@ func awsRestjson1_deserializeDocumentM2tsSettings(v **types.M2tsSettings, value if err != nil { return err } - sv.NullPacketBitrate = f64 + sv.NullPacketBitrate = ptr.Float64(f64) case string: var f64 float64 @@ -23398,7 +23398,7 @@ func awsRestjson1_deserializeDocumentM2tsSettings(v **types.M2tsSettings, value return fmt.Errorf("unknown JSON number value: %s", jtv) } - sv.NullPacketBitrate = f64 + sv.NullPacketBitrate = ptr.Float64(f64) default: return fmt.Errorf("expected __doubleMin0 to be a JSON Number, got %T instead", value) @@ -23416,7 +23416,7 @@ func awsRestjson1_deserializeDocumentM2tsSettings(v **types.M2tsSettings, value if err != nil { return err } - sv.PatInterval = int32(i64) + sv.PatInterval = ptr.Int32(int32(i64)) } case "pcrControl": @@ -23438,7 +23438,7 @@ func awsRestjson1_deserializeDocumentM2tsSettings(v **types.M2tsSettings, value if err != nil { return err } - sv.PcrPeriod = int32(i64) + sv.PcrPeriod = ptr.Int32(int32(i64)) } case "pcrPid": @@ -23460,7 +23460,7 @@ func awsRestjson1_deserializeDocumentM2tsSettings(v **types.M2tsSettings, value if err != nil { return err } - sv.PmtInterval = int32(i64) + sv.PmtInterval = ptr.Int32(int32(i64)) } case "pmtPid": @@ -23482,7 +23482,7 @@ func awsRestjson1_deserializeDocumentM2tsSettings(v **types.M2tsSettings, value if err != nil { return err } - sv.ProgramNum = int32(i64) + sv.ProgramNum = ptr.Int32(int32(i64)) } case "rateMode": @@ -23529,7 +23529,7 @@ func awsRestjson1_deserializeDocumentM2tsSettings(v **types.M2tsSettings, value if err != nil { return err } - sv.Scte35PrerollPullupMilliseconds = f64 + sv.Scte35PrerollPullupMilliseconds = ptr.Float64(f64) case string: var f64 float64 @@ -23547,7 +23547,7 @@ func awsRestjson1_deserializeDocumentM2tsSettings(v **types.M2tsSettings, value return fmt.Errorf("unknown JSON number value: %s", jtv) } - sv.Scte35PrerollPullupMilliseconds = f64 + sv.Scte35PrerollPullupMilliseconds = ptr.Float64(f64) default: return fmt.Errorf("expected __doubleMin0Max5000 to be a JSON Number, got %T instead", value) @@ -23581,7 +23581,7 @@ func awsRestjson1_deserializeDocumentM2tsSettings(v **types.M2tsSettings, value if err != nil { return err } - sv.SegmentationTime = f64 + sv.SegmentationTime = ptr.Float64(f64) case string: var f64 float64 @@ -23599,7 +23599,7 @@ func awsRestjson1_deserializeDocumentM2tsSettings(v **types.M2tsSettings, value return fmt.Errorf("unknown JSON number value: %s", jtv) } - sv.SegmentationTime = f64 + sv.SegmentationTime = ptr.Float64(f64) default: return fmt.Errorf("expected __doubleMin1 to be a JSON Number, got %T instead", value) @@ -23635,7 +23635,7 @@ func awsRestjson1_deserializeDocumentM2tsSettings(v **types.M2tsSettings, value if err != nil { return err } - sv.TransportStreamId = int32(i64) + sv.TransportStreamId = ptr.Int32(int32(i64)) } case "videoPid": @@ -23688,7 +23688,7 @@ func awsRestjson1_deserializeDocumentM3u8Settings(v **types.M3u8Settings, value if err != nil { return err } - sv.AudioFramesPerPes = int32(i64) + sv.AudioFramesPerPes = ptr.Int32(int32(i64)) } case "audioPids": @@ -23746,7 +23746,7 @@ func awsRestjson1_deserializeDocumentM3u8Settings(v **types.M3u8Settings, value if err != nil { return err } - sv.PatInterval = int32(i64) + sv.PatInterval = ptr.Int32(int32(i64)) } case "pcrControl": @@ -23768,7 +23768,7 @@ func awsRestjson1_deserializeDocumentM3u8Settings(v **types.M3u8Settings, value if err != nil { return err } - sv.PcrPeriod = int32(i64) + sv.PcrPeriod = ptr.Int32(int32(i64)) } case "pcrPid": @@ -23790,7 +23790,7 @@ func awsRestjson1_deserializeDocumentM3u8Settings(v **types.M3u8Settings, value if err != nil { return err } - sv.PmtInterval = int32(i64) + sv.PmtInterval = ptr.Int32(int32(i64)) } case "pmtPid": @@ -23812,7 +23812,7 @@ func awsRestjson1_deserializeDocumentM3u8Settings(v **types.M3u8Settings, value if err != nil { return err } - sv.ProgramNum = int32(i64) + sv.ProgramNum = ptr.Int32(int32(i64)) } case "scte35Behavior": @@ -23861,7 +23861,7 @@ func awsRestjson1_deserializeDocumentM3u8Settings(v **types.M3u8Settings, value if err != nil { return err } - sv.TransportStreamId = int32(i64) + sv.TransportStreamId = ptr.Int32(int32(i64)) } case "videoPid": @@ -24128,7 +24128,7 @@ func awsRestjson1_deserializeDocumentMotionGraphicsActivateScheduleActionSetting if err != nil { return err } - sv.Duration = i64 + sv.Duration = ptr.Int64(i64) } case "passwordParam": @@ -24309,7 +24309,7 @@ func awsRestjson1_deserializeDocumentMp2Settings(v **types.Mp2Settings, value in if err != nil { return err } - sv.Bitrate = f64 + sv.Bitrate = ptr.Float64(f64) case string: var f64 float64 @@ -24327,7 +24327,7 @@ func awsRestjson1_deserializeDocumentMp2Settings(v **types.Mp2Settings, value in return fmt.Errorf("unknown JSON number value: %s", jtv) } - sv.Bitrate = f64 + sv.Bitrate = ptr.Float64(f64) default: return fmt.Errorf("expected __double to be a JSON Number, got %T instead", value) @@ -24352,7 +24352,7 @@ func awsRestjson1_deserializeDocumentMp2Settings(v **types.Mp2Settings, value in if err != nil { return err } - sv.SampleRate = f64 + sv.SampleRate = ptr.Float64(f64) case string: var f64 float64 @@ -24370,7 +24370,7 @@ func awsRestjson1_deserializeDocumentMp2Settings(v **types.Mp2Settings, value in return fmt.Errorf("unknown JSON number value: %s", jtv) } - sv.SampleRate = f64 + sv.SampleRate = ptr.Float64(f64) default: return fmt.Errorf("expected __double to be a JSON Number, got %T instead", value) @@ -24514,7 +24514,7 @@ func awsRestjson1_deserializeDocumentMpeg2Settings(v **types.Mpeg2Settings, valu if err != nil { return err } - sv.FramerateDenominator = int32(i64) + sv.FramerateDenominator = ptr.Int32(int32(i64)) } case "framerateNumerator": @@ -24527,7 +24527,7 @@ func awsRestjson1_deserializeDocumentMpeg2Settings(v **types.Mpeg2Settings, valu if err != nil { return err } - sv.FramerateNumerator = int32(i64) + sv.FramerateNumerator = ptr.Int32(int32(i64)) } case "gopClosedCadence": @@ -24540,7 +24540,7 @@ func awsRestjson1_deserializeDocumentMpeg2Settings(v **types.Mpeg2Settings, valu if err != nil { return err } - sv.GopClosedCadence = int32(i64) + sv.GopClosedCadence = ptr.Int32(int32(i64)) } case "gopNumBFrames": @@ -24553,7 +24553,7 @@ func awsRestjson1_deserializeDocumentMpeg2Settings(v **types.Mpeg2Settings, valu if err != nil { return err } - sv.GopNumBFrames = int32(i64) + sv.GopNumBFrames = ptr.Int32(int32(i64)) } case "gopSize": @@ -24564,7 +24564,7 @@ func awsRestjson1_deserializeDocumentMpeg2Settings(v **types.Mpeg2Settings, valu if err != nil { return err } - sv.GopSize = f64 + sv.GopSize = ptr.Float64(f64) case string: var f64 float64 @@ -24582,7 +24582,7 @@ func awsRestjson1_deserializeDocumentMpeg2Settings(v **types.Mpeg2Settings, valu return fmt.Errorf("unknown JSON number value: %s", jtv) } - sv.GopSize = f64 + sv.GopSize = ptr.Float64(f64) default: return fmt.Errorf("expected __double to be a JSON Number, got %T instead", value) @@ -24699,7 +24699,7 @@ func awsRestjson1_deserializeDocumentMsSmoothGroupSettings(v **types.MsSmoothGro if err != nil { return err } - sv.ConnectionRetryInterval = int32(i64) + sv.ConnectionRetryInterval = ptr.Int32(int32(i64)) } case "destination": @@ -24744,7 +24744,7 @@ func awsRestjson1_deserializeDocumentMsSmoothGroupSettings(v **types.MsSmoothGro if err != nil { return err } - sv.FilecacheDuration = int32(i64) + sv.FilecacheDuration = ptr.Int32(int32(i64)) } case "fragmentLength": @@ -24757,7 +24757,7 @@ func awsRestjson1_deserializeDocumentMsSmoothGroupSettings(v **types.MsSmoothGro if err != nil { return err } - sv.FragmentLength = int32(i64) + sv.FragmentLength = ptr.Int32(int32(i64)) } case "inputLossAction": @@ -24779,7 +24779,7 @@ func awsRestjson1_deserializeDocumentMsSmoothGroupSettings(v **types.MsSmoothGro if err != nil { return err } - sv.NumRetries = int32(i64) + sv.NumRetries = ptr.Int32(int32(i64)) } case "restartDelay": @@ -24792,7 +24792,7 @@ func awsRestjson1_deserializeDocumentMsSmoothGroupSettings(v **types.MsSmoothGro if err != nil { return err } - sv.RestartDelay = int32(i64) + sv.RestartDelay = ptr.Int32(int32(i64)) } case "segmentationMode": @@ -24814,7 +24814,7 @@ func awsRestjson1_deserializeDocumentMsSmoothGroupSettings(v **types.MsSmoothGro if err != nil { return err } - sv.SendDelayMs = int32(i64) + sv.SendDelayMs = ptr.Int32(int32(i64)) } case "sparseTrackType": @@ -24985,7 +24985,7 @@ func awsRestjson1_deserializeDocumentMultiplex(v **types.Multiplex, value interf if err != nil { return err } - sv.PipelinesRunningCount = int32(i64) + sv.PipelinesRunningCount = ptr.Int32(int32(i64)) } case "programCount": @@ -24998,7 +24998,7 @@ func awsRestjson1_deserializeDocumentMultiplex(v **types.Multiplex, value interf if err != nil { return err } - sv.ProgramCount = int32(i64) + sv.ProgramCount = ptr.Int32(int32(i64)) } case "state": @@ -25322,7 +25322,7 @@ func awsRestjson1_deserializeDocumentMultiplexProgramPacketIdentifiersMap(v **ty if err != nil { return err } - sv.DvbTeletextPid = int32(i64) + sv.DvbTeletextPid = ptr.Int32(int32(i64)) } case "etvPlatformPid": @@ -25335,7 +25335,7 @@ func awsRestjson1_deserializeDocumentMultiplexProgramPacketIdentifiersMap(v **ty if err != nil { return err } - sv.EtvPlatformPid = int32(i64) + sv.EtvPlatformPid = ptr.Int32(int32(i64)) } case "etvSignalPid": @@ -25348,7 +25348,7 @@ func awsRestjson1_deserializeDocumentMultiplexProgramPacketIdentifiersMap(v **ty if err != nil { return err } - sv.EtvSignalPid = int32(i64) + sv.EtvSignalPid = ptr.Int32(int32(i64)) } case "klvDataPids": @@ -25366,7 +25366,7 @@ func awsRestjson1_deserializeDocumentMultiplexProgramPacketIdentifiersMap(v **ty if err != nil { return err } - sv.PcrPid = int32(i64) + sv.PcrPid = ptr.Int32(int32(i64)) } case "pmtPid": @@ -25379,7 +25379,7 @@ func awsRestjson1_deserializeDocumentMultiplexProgramPacketIdentifiersMap(v **ty if err != nil { return err } - sv.PmtPid = int32(i64) + sv.PmtPid = ptr.Int32(int32(i64)) } case "privateMetadataPid": @@ -25392,7 +25392,7 @@ func awsRestjson1_deserializeDocumentMultiplexProgramPacketIdentifiersMap(v **ty if err != nil { return err } - sv.PrivateMetadataPid = int32(i64) + sv.PrivateMetadataPid = ptr.Int32(int32(i64)) } case "scte27Pids": @@ -25410,7 +25410,7 @@ func awsRestjson1_deserializeDocumentMultiplexProgramPacketIdentifiersMap(v **ty if err != nil { return err } - sv.Scte35Pid = int32(i64) + sv.Scte35Pid = ptr.Int32(int32(i64)) } case "timedMetadataPid": @@ -25423,7 +25423,7 @@ func awsRestjson1_deserializeDocumentMultiplexProgramPacketIdentifiersMap(v **ty if err != nil { return err } - sv.TimedMetadataPid = int32(i64) + sv.TimedMetadataPid = ptr.Int32(int32(i64)) } case "videoPid": @@ -25436,7 +25436,7 @@ func awsRestjson1_deserializeDocumentMultiplexProgramPacketIdentifiersMap(v **ty if err != nil { return err } - sv.VideoPid = int32(i64) + sv.VideoPid = ptr.Int32(int32(i64)) } default: @@ -25587,7 +25587,7 @@ func awsRestjson1_deserializeDocumentMultiplexProgramSettings(v **types.Multiple if err != nil { return err } - sv.ProgramNumber = int32(i64) + sv.ProgramNumber = ptr.Int32(int32(i64)) } case "serviceDescriptor": @@ -25690,7 +25690,7 @@ func awsRestjson1_deserializeDocumentMultiplexSettings(v **types.MultiplexSettin if err != nil { return err } - sv.MaximumVideoBufferDelayMilliseconds = int32(i64) + sv.MaximumVideoBufferDelayMilliseconds = ptr.Int32(int32(i64)) } case "transportStreamBitrate": @@ -25703,7 +25703,7 @@ func awsRestjson1_deserializeDocumentMultiplexSettings(v **types.MultiplexSettin if err != nil { return err } - sv.TransportStreamBitrate = int32(i64) + sv.TransportStreamBitrate = ptr.Int32(int32(i64)) } case "transportStreamId": @@ -25716,7 +25716,7 @@ func awsRestjson1_deserializeDocumentMultiplexSettings(v **types.MultiplexSettin if err != nil { return err } - sv.TransportStreamId = int32(i64) + sv.TransportStreamId = ptr.Int32(int32(i64)) } case "transportStreamReservedBitrate": @@ -25729,7 +25729,7 @@ func awsRestjson1_deserializeDocumentMultiplexSettings(v **types.MultiplexSettin if err != nil { return err } - sv.TransportStreamReservedBitrate = int32(i64) + sv.TransportStreamReservedBitrate = ptr.Int32(int32(i64)) } default: @@ -25773,7 +25773,7 @@ func awsRestjson1_deserializeDocumentMultiplexSettingsSummary(v **types.Multiple if err != nil { return err } - sv.TransportStreamBitrate = int32(i64) + sv.TransportStreamBitrate = ptr.Int32(int32(i64)) } default: @@ -25817,7 +25817,7 @@ func awsRestjson1_deserializeDocumentMultiplexStatmuxVideoSettings(v **types.Mul if err != nil { return err } - sv.MaximumBitrate = int32(i64) + sv.MaximumBitrate = ptr.Int32(int32(i64)) } case "minimumBitrate": @@ -25830,7 +25830,7 @@ func awsRestjson1_deserializeDocumentMultiplexStatmuxVideoSettings(v **types.Mul if err != nil { return err } - sv.MinimumBitrate = int32(i64) + sv.MinimumBitrate = ptr.Int32(int32(i64)) } case "priority": @@ -25843,7 +25843,7 @@ func awsRestjson1_deserializeDocumentMultiplexStatmuxVideoSettings(v **types.Mul if err != nil { return err } - sv.Priority = int32(i64) + sv.Priority = ptr.Int32(int32(i64)) } default: @@ -25924,7 +25924,7 @@ func awsRestjson1_deserializeDocumentMultiplexSummary(v **types.MultiplexSummary if err != nil { return err } - sv.PipelinesRunningCount = int32(i64) + sv.PipelinesRunningCount = ptr.Int32(int32(i64)) } case "programCount": @@ -25937,7 +25937,7 @@ func awsRestjson1_deserializeDocumentMultiplexSummary(v **types.MultiplexSummary if err != nil { return err } - sv.ProgramCount = int32(i64) + sv.ProgramCount = ptr.Int32(int32(i64)) } case "state": @@ -25995,7 +25995,7 @@ func awsRestjson1_deserializeDocumentMultiplexVideoSettings(v **types.MultiplexV if err != nil { return err } - sv.ConstantBitrate = int32(i64) + sv.ConstantBitrate = ptr.Int32(int32(i64)) } case "statmuxSettings": @@ -26203,7 +26203,7 @@ func awsRestjson1_deserializeDocumentNielsenNaesIiNw(v **types.NielsenNaesIiNw, if err != nil { return err } - sv.Sid = f64 + sv.Sid = ptr.Float64(f64) case string: var f64 float64 @@ -26221,7 +26221,7 @@ func awsRestjson1_deserializeDocumentNielsenNaesIiNw(v **types.NielsenNaesIiNw, return fmt.Errorf("unknown JSON number value: %s", jtv) } - sv.Sid = f64 + sv.Sid = ptr.Float64(f64) default: return fmt.Errorf("expected __doubleMin1Max65535 to be a JSON Number, got %T instead", value) @@ -26387,7 +26387,7 @@ func awsRestjson1_deserializeDocumentOffering(v **types.Offering, value interfac if err != nil { return err } - sv.Duration = int32(i64) + sv.Duration = ptr.Int32(int32(i64)) } case "durationUnits": @@ -26407,7 +26407,7 @@ func awsRestjson1_deserializeDocumentOffering(v **types.Offering, value interfac if err != nil { return err } - sv.FixedPrice = f64 + sv.FixedPrice = ptr.Float64(f64) case string: var f64 float64 @@ -26425,7 +26425,7 @@ func awsRestjson1_deserializeDocumentOffering(v **types.Offering, value interfac return fmt.Errorf("unknown JSON number value: %s", jtv) } - sv.FixedPrice = f64 + sv.FixedPrice = ptr.Float64(f64) default: return fmt.Errorf("expected __double to be a JSON Number, got %T instead", value) @@ -26482,7 +26482,7 @@ func awsRestjson1_deserializeDocumentOffering(v **types.Offering, value interfac if err != nil { return err } - sv.UsagePrice = f64 + sv.UsagePrice = ptr.Float64(f64) case string: var f64 float64 @@ -26500,7 +26500,7 @@ func awsRestjson1_deserializeDocumentOffering(v **types.Offering, value interfac return fmt.Errorf("unknown JSON number value: %s", jtv) } - sv.UsagePrice = f64 + sv.UsagePrice = ptr.Float64(f64) default: return fmt.Errorf("expected __double to be a JSON Number, got %T instead", value) @@ -27320,7 +27320,7 @@ func awsRestjson1_deserializeDocumentRemixSettings(v **types.RemixSettings, valu if err != nil { return err } - sv.ChannelsIn = int32(i64) + sv.ChannelsIn = ptr.Int32(int32(i64)) } case "channelsOut": @@ -27333,7 +27333,7 @@ func awsRestjson1_deserializeDocumentRemixSettings(v **types.RemixSettings, valu if err != nil { return err } - sv.ChannelsOut = int32(i64) + sv.ChannelsOut = ptr.Int32(int32(i64)) } default: @@ -27386,7 +27386,7 @@ func awsRestjson1_deserializeDocumentRenewalSettings(v **types.RenewalSettings, if err != nil { return err } - sv.RenewalCount = int32(i64) + sv.RenewalCount = ptr.Int32(int32(i64)) } default: @@ -27439,7 +27439,7 @@ func awsRestjson1_deserializeDocumentReservation(v **types.Reservation, value in if err != nil { return err } - sv.Count = int32(i64) + sv.Count = ptr.Int32(int32(i64)) } case "currencyCode": @@ -27461,7 +27461,7 @@ func awsRestjson1_deserializeDocumentReservation(v **types.Reservation, value in if err != nil { return err } - sv.Duration = int32(i64) + sv.Duration = ptr.Int32(int32(i64)) } case "durationUnits": @@ -27490,7 +27490,7 @@ func awsRestjson1_deserializeDocumentReservation(v **types.Reservation, value in if err != nil { return err } - sv.FixedPrice = f64 + sv.FixedPrice = ptr.Float64(f64) case string: var f64 float64 @@ -27508,7 +27508,7 @@ func awsRestjson1_deserializeDocumentReservation(v **types.Reservation, value in return fmt.Errorf("unknown JSON number value: %s", jtv) } - sv.FixedPrice = f64 + sv.FixedPrice = ptr.Float64(f64) default: return fmt.Errorf("expected __double to be a JSON Number, got %T instead", value) @@ -27611,7 +27611,7 @@ func awsRestjson1_deserializeDocumentReservation(v **types.Reservation, value in if err != nil { return err } - sv.UsagePrice = f64 + sv.UsagePrice = ptr.Float64(f64) case string: var f64 float64 @@ -27629,7 +27629,7 @@ func awsRestjson1_deserializeDocumentReservation(v **types.Reservation, value in return fmt.Errorf("unknown JSON number value: %s", jtv) } - sv.UsagePrice = f64 + sv.UsagePrice = ptr.Float64(f64) default: return fmt.Errorf("expected __double to be a JSON Number, got %T instead", value) @@ -27835,7 +27835,7 @@ func awsRestjson1_deserializeDocumentRtmpGroupSettings(v **types.RtmpGroupSettin if err != nil { return err } - sv.CacheLength = int32(i64) + sv.CacheLength = ptr.Int32(int32(i64)) } case "captionData": @@ -27875,7 +27875,7 @@ func awsRestjson1_deserializeDocumentRtmpGroupSettings(v **types.RtmpGroupSettin if err != nil { return err } - sv.RestartDelay = int32(i64) + sv.RestartDelay = ptr.Int32(int32(i64)) } default: @@ -27928,7 +27928,7 @@ func awsRestjson1_deserializeDocumentRtmpOutputSettings(v **types.RtmpOutputSett if err != nil { return err } - sv.ConnectionRetryInterval = int32(i64) + sv.ConnectionRetryInterval = ptr.Int32(int32(i64)) } case "destination": @@ -27946,7 +27946,7 @@ func awsRestjson1_deserializeDocumentRtmpOutputSettings(v **types.RtmpOutputSett if err != nil { return err } - sv.NumRetries = int32(i64) + sv.NumRetries = ptr.Int32(int32(i64)) } default: @@ -28222,7 +28222,7 @@ func awsRestjson1_deserializeDocumentScte20SourceSettings(v **types.Scte20Source if err != nil { return err } - sv.Source608ChannelNumber = int32(i64) + sv.Source608ChannelNumber = ptr.Int32(int32(i64)) } default: @@ -28306,7 +28306,7 @@ func awsRestjson1_deserializeDocumentScte27SourceSettings(v **types.Scte27Source if err != nil { return err } - sv.Pid = int32(i64) + sv.Pid = ptr.Int32(int32(i64)) } default: @@ -28538,7 +28538,7 @@ func awsRestjson1_deserializeDocumentScte35ReturnToNetworkScheduleActionSettings if err != nil { return err } - sv.SpliceEventId = i64 + sv.SpliceEventId = ptr.Int64(i64) } default: @@ -28596,7 +28596,7 @@ func awsRestjson1_deserializeDocumentScte35SegmentationDescriptor(v **types.Scte if err != nil { return err } - sv.SegmentationDuration = i64 + sv.SegmentationDuration = ptr.Int64(i64) } case "segmentationEventId": @@ -28609,7 +28609,7 @@ func awsRestjson1_deserializeDocumentScte35SegmentationDescriptor(v **types.Scte if err != nil { return err } - sv.SegmentationEventId = i64 + sv.SegmentationEventId = ptr.Int64(i64) } case "segmentationTypeId": @@ -28622,7 +28622,7 @@ func awsRestjson1_deserializeDocumentScte35SegmentationDescriptor(v **types.Scte if err != nil { return err } - sv.SegmentationTypeId = int32(i64) + sv.SegmentationTypeId = ptr.Int32(int32(i64)) } case "segmentationUpid": @@ -28644,7 +28644,7 @@ func awsRestjson1_deserializeDocumentScte35SegmentationDescriptor(v **types.Scte if err != nil { return err } - sv.SegmentationUpidType = int32(i64) + sv.SegmentationUpidType = ptr.Int32(int32(i64)) } case "segmentNum": @@ -28657,7 +28657,7 @@ func awsRestjson1_deserializeDocumentScte35SegmentationDescriptor(v **types.Scte if err != nil { return err } - sv.SegmentNum = int32(i64) + sv.SegmentNum = ptr.Int32(int32(i64)) } case "segmentsExpected": @@ -28670,7 +28670,7 @@ func awsRestjson1_deserializeDocumentScte35SegmentationDescriptor(v **types.Scte if err != nil { return err } - sv.SegmentsExpected = int32(i64) + sv.SegmentsExpected = ptr.Int32(int32(i64)) } case "subSegmentNum": @@ -28683,7 +28683,7 @@ func awsRestjson1_deserializeDocumentScte35SegmentationDescriptor(v **types.Scte if err != nil { return err } - sv.SubSegmentNum = int32(i64) + sv.SubSegmentNum = ptr.Int32(int32(i64)) } case "subSegmentsExpected": @@ -28696,7 +28696,7 @@ func awsRestjson1_deserializeDocumentScte35SegmentationDescriptor(v **types.Scte if err != nil { return err } - sv.SubSegmentsExpected = int32(i64) + sv.SubSegmentsExpected = ptr.Int32(int32(i64)) } default: @@ -28740,7 +28740,7 @@ func awsRestjson1_deserializeDocumentScte35SpliceInsert(v **types.Scte35SpliceIn if err != nil { return err } - sv.AdAvailOffset = int32(i64) + sv.AdAvailOffset = ptr.Int32(int32(i64)) } case "noRegionalBlackoutFlag": @@ -28802,7 +28802,7 @@ func awsRestjson1_deserializeDocumentScte35SpliceInsertScheduleActionSettings(v if err != nil { return err } - sv.Duration = i64 + sv.Duration = ptr.Int64(i64) } case "spliceEventId": @@ -28815,7 +28815,7 @@ func awsRestjson1_deserializeDocumentScte35SpliceInsertScheduleActionSettings(v if err != nil { return err } - sv.SpliceEventId = i64 + sv.SpliceEventId = ptr.Int64(i64) } default: @@ -28859,7 +28859,7 @@ func awsRestjson1_deserializeDocumentScte35TimeSignalApos(v **types.Scte35TimeSi if err != nil { return err } - sv.AdAvailOffset = int32(i64) + sv.AdAvailOffset = ptr.Int32(int32(i64)) } case "noRegionalBlackoutFlag": @@ -29073,7 +29073,7 @@ func awsRestjson1_deserializeDocumentStaticImageActivateScheduleActionSettings(v if err != nil { return err } - sv.Duration = int32(i64) + sv.Duration = ptr.Int32(int32(i64)) } case "fadeIn": @@ -29086,7 +29086,7 @@ func awsRestjson1_deserializeDocumentStaticImageActivateScheduleActionSettings(v if err != nil { return err } - sv.FadeIn = int32(i64) + sv.FadeIn = ptr.Int32(int32(i64)) } case "fadeOut": @@ -29099,7 +29099,7 @@ func awsRestjson1_deserializeDocumentStaticImageActivateScheduleActionSettings(v if err != nil { return err } - sv.FadeOut = int32(i64) + sv.FadeOut = ptr.Int32(int32(i64)) } case "height": @@ -29112,7 +29112,7 @@ func awsRestjson1_deserializeDocumentStaticImageActivateScheduleActionSettings(v if err != nil { return err } - sv.Height = int32(i64) + sv.Height = ptr.Int32(int32(i64)) } case "image": @@ -29130,7 +29130,7 @@ func awsRestjson1_deserializeDocumentStaticImageActivateScheduleActionSettings(v if err != nil { return err } - sv.ImageX = int32(i64) + sv.ImageX = ptr.Int32(int32(i64)) } case "imageY": @@ -29143,7 +29143,7 @@ func awsRestjson1_deserializeDocumentStaticImageActivateScheduleActionSettings(v if err != nil { return err } - sv.ImageY = int32(i64) + sv.ImageY = ptr.Int32(int32(i64)) } case "layer": @@ -29156,7 +29156,7 @@ func awsRestjson1_deserializeDocumentStaticImageActivateScheduleActionSettings(v if err != nil { return err } - sv.Layer = int32(i64) + sv.Layer = ptr.Int32(int32(i64)) } case "opacity": @@ -29169,7 +29169,7 @@ func awsRestjson1_deserializeDocumentStaticImageActivateScheduleActionSettings(v if err != nil { return err } - sv.Opacity = int32(i64) + sv.Opacity = ptr.Int32(int32(i64)) } case "width": @@ -29182,7 +29182,7 @@ func awsRestjson1_deserializeDocumentStaticImageActivateScheduleActionSettings(v if err != nil { return err } - sv.Width = int32(i64) + sv.Width = ptr.Int32(int32(i64)) } default: @@ -29226,7 +29226,7 @@ func awsRestjson1_deserializeDocumentStaticImageDeactivateScheduleActionSettings if err != nil { return err } - sv.FadeOut = int32(i64) + sv.FadeOut = ptr.Int32(int32(i64)) } case "layer": @@ -29239,7 +29239,7 @@ func awsRestjson1_deserializeDocumentStaticImageDeactivateScheduleActionSettings if err != nil { return err } - sv.Layer = int32(i64) + sv.Layer = ptr.Int32(int32(i64)) } default: @@ -29761,7 +29761,7 @@ func awsRestjson1_deserializeDocumentTimecodeConfig(v **types.TimecodeConfig, va if err != nil { return err } - sv.SyncThreshold = int32(i64) + sv.SyncThreshold = ptr.Int32(int32(i64)) } default: @@ -30006,7 +30006,7 @@ func awsRestjson1_deserializeDocumentUdpGroupSettings(v **types.UdpGroupSettings if err != nil { return err } - sv.TimedMetadataId3Period = int32(i64) + sv.TimedMetadataId3Period = ptr.Int32(int32(i64)) } default: @@ -30050,7 +30050,7 @@ func awsRestjson1_deserializeDocumentUdpOutputSettings(v **types.UdpOutputSettin if err != nil { return err } - sv.BufferMsec = int32(i64) + sv.BufferMsec = ptr.Int32(int32(i64)) } case "containerSettings": @@ -30201,7 +30201,7 @@ func awsRestjson1_deserializeDocumentVideoBlackFailoverSettings(v **types.VideoB if err != nil { return err } - sv.BlackDetectThreshold = f64 + sv.BlackDetectThreshold = ptr.Float64(f64) case string: var f64 float64 @@ -30219,7 +30219,7 @@ func awsRestjson1_deserializeDocumentVideoBlackFailoverSettings(v **types.VideoB return fmt.Errorf("unknown JSON number value: %s", jtv) } - sv.BlackDetectThreshold = f64 + sv.BlackDetectThreshold = ptr.Float64(f64) default: return fmt.Errorf("expected __doubleMin0Max1 to be a JSON Number, got %T instead", value) @@ -30237,7 +30237,7 @@ func awsRestjson1_deserializeDocumentVideoBlackFailoverSettings(v **types.VideoB if err != nil { return err } - sv.VideoBlackThresholdMsec = int32(i64) + sv.VideoBlackThresholdMsec = ptr.Int32(int32(i64)) } default: @@ -30337,7 +30337,7 @@ func awsRestjson1_deserializeDocumentVideoDescription(v **types.VideoDescription if err != nil { return err } - sv.Height = int32(i64) + sv.Height = ptr.Int32(int32(i64)) } case "name": @@ -30377,7 +30377,7 @@ func awsRestjson1_deserializeDocumentVideoDescription(v **types.VideoDescription if err != nil { return err } - sv.Sharpness = int32(i64) + sv.Sharpness = ptr.Int32(int32(i64)) } case "width": @@ -30390,7 +30390,7 @@ func awsRestjson1_deserializeDocumentVideoDescription(v **types.VideoDescription if err != nil { return err } - sv.Width = int32(i64) + sv.Width = ptr.Int32(int32(i64)) } default: @@ -30529,7 +30529,7 @@ func awsRestjson1_deserializeDocumentVideoSelectorPid(v **types.VideoSelectorPid if err != nil { return err } - sv.Pid = int32(i64) + sv.Pid = ptr.Int32(int32(i64)) } default: @@ -30573,7 +30573,7 @@ func awsRestjson1_deserializeDocumentVideoSelectorProgramId(v **types.VideoSelec if err != nil { return err } - sv.ProgramId = int32(i64) + sv.ProgramId = ptr.Int32(int32(i64)) } default: @@ -30707,7 +30707,7 @@ func awsRestjson1_deserializeDocumentWavSettings(v **types.WavSettings, value in if err != nil { return err } - sv.BitDepth = f64 + sv.BitDepth = ptr.Float64(f64) case string: var f64 float64 @@ -30725,7 +30725,7 @@ func awsRestjson1_deserializeDocumentWavSettings(v **types.WavSettings, value in return fmt.Errorf("unknown JSON number value: %s", jtv) } - sv.BitDepth = f64 + sv.BitDepth = ptr.Float64(f64) default: return fmt.Errorf("expected __double to be a JSON Number, got %T instead", value) @@ -30750,7 +30750,7 @@ func awsRestjson1_deserializeDocumentWavSettings(v **types.WavSettings, value in if err != nil { return err } - sv.SampleRate = f64 + sv.SampleRate = ptr.Float64(f64) case string: var f64 float64 @@ -30768,7 +30768,7 @@ func awsRestjson1_deserializeDocumentWavSettings(v **types.WavSettings, value in return fmt.Errorf("unknown JSON number value: %s", jtv) } - sv.SampleRate = f64 + sv.SampleRate = ptr.Float64(f64) default: return fmt.Errorf("expected __double to be a JSON Number, got %T instead", value) diff --git a/service/medialive/serializers.go b/service/medialive/serializers.go index 1919e0291f4..70cb0ec9bba 100644 --- a/service/medialive/serializers.go +++ b/service/medialive/serializers.go @@ -2596,8 +2596,8 @@ func awsRestjson1_serializeOpHttpBindingsDescribeScheduleInput(v *DescribeSchedu } } - if v.MaxResults != 0 { - encoder.SetQuery("maxResults").Integer(v.MaxResults) + if v.MaxResults != nil { + encoder.SetQuery("maxResults").Integer(*v.MaxResults) } if v.NextToken != nil { @@ -2733,8 +2733,8 @@ func awsRestjson1_serializeOpHttpBindingsListChannelsInput(v *ListChannelsInput, return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.MaxResults != 0 { - encoder.SetQuery("maxResults").Integer(v.MaxResults) + if v.MaxResults != nil { + encoder.SetQuery("maxResults").Integer(*v.MaxResults) } if v.NextToken != nil { @@ -2797,8 +2797,8 @@ func awsRestjson1_serializeOpHttpBindingsListInputDevicesInput(v *ListInputDevic return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.MaxResults != 0 { - encoder.SetQuery("maxResults").Integer(v.MaxResults) + if v.MaxResults != nil { + encoder.SetQuery("maxResults").Integer(*v.MaxResults) } if v.NextToken != nil { @@ -2861,8 +2861,8 @@ func awsRestjson1_serializeOpHttpBindingsListInputDeviceTransfersInput(v *ListIn return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.MaxResults != 0 { - encoder.SetQuery("maxResults").Integer(v.MaxResults) + if v.MaxResults != nil { + encoder.SetQuery("maxResults").Integer(*v.MaxResults) } if v.NextToken != nil { @@ -2929,8 +2929,8 @@ func awsRestjson1_serializeOpHttpBindingsListInputsInput(v *ListInputsInput, enc return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.MaxResults != 0 { - encoder.SetQuery("maxResults").Integer(v.MaxResults) + if v.MaxResults != nil { + encoder.SetQuery("maxResults").Integer(*v.MaxResults) } if v.NextToken != nil { @@ -2993,8 +2993,8 @@ func awsRestjson1_serializeOpHttpBindingsListInputSecurityGroupsInput(v *ListInp return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.MaxResults != 0 { - encoder.SetQuery("maxResults").Integer(v.MaxResults) + if v.MaxResults != nil { + encoder.SetQuery("maxResults").Integer(*v.MaxResults) } if v.NextToken != nil { @@ -3057,8 +3057,8 @@ func awsRestjson1_serializeOpHttpBindingsListMultiplexesInput(v *ListMultiplexes return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.MaxResults != 0 { - encoder.SetQuery("maxResults").Integer(v.MaxResults) + if v.MaxResults != nil { + encoder.SetQuery("maxResults").Integer(*v.MaxResults) } if v.NextToken != nil { @@ -3121,8 +3121,8 @@ func awsRestjson1_serializeOpHttpBindingsListMultiplexProgramsInput(v *ListMulti return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.MaxResults != 0 { - encoder.SetQuery("maxResults").Integer(v.MaxResults) + if v.MaxResults != nil { + encoder.SetQuery("maxResults").Integer(*v.MaxResults) } if v.MultiplexId == nil || len(*v.MultiplexId) == 0 { @@ -3218,8 +3218,8 @@ func awsRestjson1_serializeOpHttpBindingsListOfferingsInput(v *ListOfferingsInpu encoder.SetQuery("maximumFramerate").String(*v.MaximumFramerate) } - if v.MaxResults != 0 { - encoder.SetQuery("maxResults").Integer(v.MaxResults) + if v.MaxResults != nil { + encoder.SetQuery("maxResults").Integer(*v.MaxResults) } if v.NextToken != nil { @@ -3314,8 +3314,8 @@ func awsRestjson1_serializeOpHttpBindingsListReservationsInput(v *ListReservatio encoder.SetQuery("maximumFramerate").String(*v.MaximumFramerate) } - if v.MaxResults != 0 { - encoder.SetQuery("maxResults").Integer(v.MaxResults) + if v.MaxResults != nil { + encoder.SetQuery("maxResults").Integer(*v.MaxResults) } if v.NextToken != nil { @@ -3486,9 +3486,9 @@ func awsRestjson1_serializeOpDocumentPurchaseOfferingInput(v *PurchaseOfferingIn object := value.Object() defer object.Close() - { + if v.Count != nil { ok := object.Key("count") - ok.Integer(v.Count) + ok.Integer(*v.Count) } if v.Name != nil { @@ -5524,20 +5524,20 @@ func awsRestjson1_serializeDocumentAacSettings(v *types.AacSettings, value smith object := value.Object() defer object.Close() - if v.Bitrate != 0 { + if v.Bitrate != nil { ok := object.Key("bitrate") switch { - case math.IsNaN(v.Bitrate): + case math.IsNaN(*v.Bitrate): ok.String("NaN") - case math.IsInf(v.Bitrate, 1): + case math.IsInf(*v.Bitrate, 1): ok.String("Infinity") - case math.IsInf(v.Bitrate, -1): + case math.IsInf(*v.Bitrate, -1): ok.String("-Infinity") default: - ok.Double(v.Bitrate) + ok.Double(*v.Bitrate) } } @@ -5567,20 +5567,20 @@ func awsRestjson1_serializeDocumentAacSettings(v *types.AacSettings, value smith ok.String(string(v.RawFormat)) } - if v.SampleRate != 0 { + if v.SampleRate != nil { ok := object.Key("sampleRate") switch { - case math.IsNaN(v.SampleRate): + case math.IsNaN(*v.SampleRate): ok.String("NaN") - case math.IsInf(v.SampleRate, 1): + case math.IsInf(*v.SampleRate, 1): ok.String("Infinity") - case math.IsInf(v.SampleRate, -1): + case math.IsInf(*v.SampleRate, -1): ok.String("-Infinity") default: - ok.Double(v.SampleRate) + ok.Double(*v.SampleRate) } } @@ -5607,20 +5607,20 @@ func awsRestjson1_serializeDocumentAc3Settings(v *types.Ac3Settings, value smith ok.String(string(v.AttenuationControl)) } - if v.Bitrate != 0 { + if v.Bitrate != nil { ok := object.Key("bitrate") switch { - case math.IsNaN(v.Bitrate): + case math.IsNaN(*v.Bitrate): ok.String("NaN") - case math.IsInf(v.Bitrate, 1): + case math.IsInf(*v.Bitrate, 1): ok.String("Infinity") - case math.IsInf(v.Bitrate, -1): + case math.IsInf(*v.Bitrate, -1): ok.String("-Infinity") default: - ok.Double(v.Bitrate) + ok.Double(*v.Bitrate) } } @@ -5635,9 +5635,9 @@ func awsRestjson1_serializeDocumentAc3Settings(v *types.Ac3Settings, value smith ok.String(string(v.CodingMode)) } - if v.Dialnorm != 0 { + if v.Dialnorm != nil { ok := object.Key("dialnorm") - ok.Integer(v.Dialnorm) + ok.Integer(*v.Dialnorm) } if len(v.DrcProfile) > 0 { @@ -5674,9 +5674,9 @@ func awsRestjson1_serializeDocumentAncillarySourceSettings(v *types.AncillarySou object := value.Object() defer object.Close() - if v.SourceAncillaryChannelNumber != 0 { + if v.SourceAncillaryChannelNumber != nil { ok := object.Key("sourceAncillaryChannelNumber") - ok.Integer(v.SourceAncillaryChannelNumber) + ok.Integer(*v.SourceAncillaryChannelNumber) } return nil @@ -5735,9 +5735,9 @@ func awsRestjson1_serializeDocumentArchiveGroupSettings(v *types.ArchiveGroupSet } } - if v.RolloverInterval != 0 { + if v.RolloverInterval != nil { ok := object.Key("rolloverInterval") - ok.Integer(v.RolloverInterval) + ok.Integer(*v.RolloverInterval) } return nil @@ -5804,9 +5804,9 @@ func awsRestjson1_serializeDocumentAudioChannelMapping(v *types.AudioChannelMapp } } - { + if v.OutputChannel != nil { ok := object.Key("outputChannel") - ok.Integer(v.OutputChannel) + ok.Integer(*v.OutputChannel) } return nil @@ -5998,20 +5998,20 @@ func awsRestjson1_serializeDocumentAudioNormalizationSettings(v *types.AudioNorm ok.String(string(v.AlgorithmControl)) } - if v.TargetLkfs != 0 { + if v.TargetLkfs != nil { ok := object.Key("targetLkfs") switch { - case math.IsNaN(v.TargetLkfs): + case math.IsNaN(*v.TargetLkfs): ok.String("NaN") - case math.IsInf(v.TargetLkfs, 1): + case math.IsInf(*v.TargetLkfs, 1): ok.String("Infinity") - case math.IsInf(v.TargetLkfs, -1): + case math.IsInf(*v.TargetLkfs, -1): ok.String("-Infinity") default: - ok.Double(v.TargetLkfs) + ok.Double(*v.TargetLkfs) } } @@ -6052,9 +6052,9 @@ func awsRestjson1_serializeDocumentAudioPidSelection(v *types.AudioPidSelection, object := value.Object() defer object.Close() - { + if v.Pid != nil { ok := object.Key("pid") - ok.Integer(v.Pid) + ok.Integer(*v.Pid) } return nil @@ -6123,9 +6123,9 @@ func awsRestjson1_serializeDocumentAudioSilenceFailoverSettings(v *types.AudioSi ok.String(*v.AudioSelectorName) } - if v.AudioSilenceThresholdMsec != 0 { + if v.AudioSilenceThresholdMsec != nil { ok := object.Key("audioSilenceThresholdMsec") - ok.Integer(v.AudioSilenceThresholdMsec) + ok.Integer(*v.AudioSilenceThresholdMsec) } return nil @@ -6135,9 +6135,9 @@ func awsRestjson1_serializeDocumentAudioTrack(v *types.AudioTrack, value smithyj object := value.Object() defer object.Close() - { + if v.Track != nil { ok := object.Key("track") - ok.Integer(v.Track) + ok.Integer(*v.Track) } return nil @@ -6182,9 +6182,9 @@ func awsRestjson1_serializeDocumentAutomaticInputFailoverSettings(v *types.Autom object := value.Object() defer object.Close() - if v.ErrorClearTimeMsec != 0 { + if v.ErrorClearTimeMsec != nil { ok := object.Key("errorClearTimeMsec") - ok.Integer(v.ErrorClearTimeMsec) + ok.Integer(*v.ErrorClearTimeMsec) } if v.FailoverConditions != nil { @@ -6346,9 +6346,9 @@ func awsRestjson1_serializeDocumentBurnInDestinationSettings(v *types.BurnInDest ok.String(string(v.BackgroundColor)) } - if v.BackgroundOpacity != 0 { + if v.BackgroundOpacity != nil { ok := object.Key("backgroundOpacity") - ok.Integer(v.BackgroundOpacity) + ok.Integer(*v.BackgroundOpacity) } if v.Font != nil { @@ -6363,14 +6363,14 @@ func awsRestjson1_serializeDocumentBurnInDestinationSettings(v *types.BurnInDest ok.String(string(v.FontColor)) } - if v.FontOpacity != 0 { + if v.FontOpacity != nil { ok := object.Key("fontOpacity") - ok.Integer(v.FontOpacity) + ok.Integer(*v.FontOpacity) } - if v.FontResolution != 0 { + if v.FontResolution != nil { ok := object.Key("fontResolution") - ok.Integer(v.FontResolution) + ok.Integer(*v.FontResolution) } if v.FontSize != nil { @@ -6383,9 +6383,9 @@ func awsRestjson1_serializeDocumentBurnInDestinationSettings(v *types.BurnInDest ok.String(string(v.OutlineColor)) } - if v.OutlineSize != 0 { + if v.OutlineSize != nil { ok := object.Key("outlineSize") - ok.Integer(v.OutlineSize) + ok.Integer(*v.OutlineSize) } if len(v.ShadowColor) > 0 { @@ -6393,19 +6393,19 @@ func awsRestjson1_serializeDocumentBurnInDestinationSettings(v *types.BurnInDest ok.String(string(v.ShadowColor)) } - if v.ShadowOpacity != 0 { + if v.ShadowOpacity != nil { ok := object.Key("shadowOpacity") - ok.Integer(v.ShadowOpacity) + ok.Integer(*v.ShadowOpacity) } - if v.ShadowXOffset != 0 { + if v.ShadowXOffset != nil { ok := object.Key("shadowXOffset") - ok.Integer(v.ShadowXOffset) + ok.Integer(*v.ShadowXOffset) } - if v.ShadowYOffset != 0 { + if v.ShadowYOffset != nil { ok := object.Key("shadowYOffset") - ok.Integer(v.ShadowYOffset) + ok.Integer(*v.ShadowYOffset) } if len(v.TeletextGridControl) > 0 { @@ -6413,14 +6413,14 @@ func awsRestjson1_serializeDocumentBurnInDestinationSettings(v *types.BurnInDest ok.String(string(v.TeletextGridControl)) } - if v.XPosition != 0 { + if v.XPosition != nil { ok := object.Key("xPosition") - ok.Integer(v.XPosition) + ok.Integer(*v.XPosition) } - if v.YPosition != 0 { + if v.YPosition != nil { ok := object.Key("yPosition") - ok.Integer(v.YPosition) + ok.Integer(*v.YPosition) } return nil @@ -6567,9 +6567,9 @@ func awsRestjson1_serializeDocumentCaptionLanguageMapping(v *types.CaptionLangua object := value.Object() defer object.Close() - { + if v.CaptionChannel != nil { ok := object.Key("captionChannel") - ok.Integer(v.CaptionChannel) + ok.Integer(*v.CaptionChannel) } if v.LanguageCode != nil { @@ -6589,74 +6589,74 @@ func awsRestjson1_serializeDocumentCaptionRectangle(v *types.CaptionRectangle, v object := value.Object() defer object.Close() - { + if v.Height != nil { ok := object.Key("height") switch { - case math.IsNaN(v.Height): + case math.IsNaN(*v.Height): ok.String("NaN") - case math.IsInf(v.Height, 1): + case math.IsInf(*v.Height, 1): ok.String("Infinity") - case math.IsInf(v.Height, -1): + case math.IsInf(*v.Height, -1): ok.String("-Infinity") default: - ok.Double(v.Height) + ok.Double(*v.Height) } } - { + if v.LeftOffset != nil { ok := object.Key("leftOffset") switch { - case math.IsNaN(v.LeftOffset): + case math.IsNaN(*v.LeftOffset): ok.String("NaN") - case math.IsInf(v.LeftOffset, 1): + case math.IsInf(*v.LeftOffset, 1): ok.String("Infinity") - case math.IsInf(v.LeftOffset, -1): + case math.IsInf(*v.LeftOffset, -1): ok.String("-Infinity") default: - ok.Double(v.LeftOffset) + ok.Double(*v.LeftOffset) } } - { + if v.TopOffset != nil { ok := object.Key("topOffset") switch { - case math.IsNaN(v.TopOffset): + case math.IsNaN(*v.TopOffset): ok.String("NaN") - case math.IsInf(v.TopOffset, 1): + case math.IsInf(*v.TopOffset, 1): ok.String("Infinity") - case math.IsInf(v.TopOffset, -1): + case math.IsInf(*v.TopOffset, -1): ok.String("-Infinity") default: - ok.Double(v.TopOffset) + ok.Double(*v.TopOffset) } } - { + if v.Width != nil { ok := object.Key("width") switch { - case math.IsNaN(v.Width): + case math.IsNaN(*v.Width): ok.String("NaN") - case math.IsInf(v.Width, 1): + case math.IsInf(*v.Width, 1): ok.String("Infinity") - case math.IsInf(v.Width, -1): + case math.IsInf(*v.Width, -1): ok.String("-Infinity") default: - ok.Double(v.Width) + ok.Double(*v.Width) } } @@ -6774,9 +6774,9 @@ func awsRestjson1_serializeDocumentDvbNitSettings(v *types.DvbNitSettings, value object := value.Object() defer object.Close() - { + if v.NetworkId != nil { ok := object.Key("networkId") - ok.Integer(v.NetworkId) + ok.Integer(*v.NetworkId) } if v.NetworkName != nil { @@ -6784,9 +6784,9 @@ func awsRestjson1_serializeDocumentDvbNitSettings(v *types.DvbNitSettings, value ok.String(*v.NetworkName) } - if v.RepInterval != 0 { + if v.RepInterval != nil { ok := object.Key("repInterval") - ok.Integer(v.RepInterval) + ok.Integer(*v.RepInterval) } return nil @@ -6801,9 +6801,9 @@ func awsRestjson1_serializeDocumentDvbSdtSettings(v *types.DvbSdtSettings, value ok.String(string(v.OutputSdt)) } - if v.RepInterval != 0 { + if v.RepInterval != nil { ok := object.Key("repInterval") - ok.Integer(v.RepInterval) + ok.Integer(*v.RepInterval) } if v.ServiceName != nil { @@ -6833,9 +6833,9 @@ func awsRestjson1_serializeDocumentDvbSubDestinationSettings(v *types.DvbSubDest ok.String(string(v.BackgroundColor)) } - if v.BackgroundOpacity != 0 { + if v.BackgroundOpacity != nil { ok := object.Key("backgroundOpacity") - ok.Integer(v.BackgroundOpacity) + ok.Integer(*v.BackgroundOpacity) } if v.Font != nil { @@ -6850,14 +6850,14 @@ func awsRestjson1_serializeDocumentDvbSubDestinationSettings(v *types.DvbSubDest ok.String(string(v.FontColor)) } - if v.FontOpacity != 0 { + if v.FontOpacity != nil { ok := object.Key("fontOpacity") - ok.Integer(v.FontOpacity) + ok.Integer(*v.FontOpacity) } - if v.FontResolution != 0 { + if v.FontResolution != nil { ok := object.Key("fontResolution") - ok.Integer(v.FontResolution) + ok.Integer(*v.FontResolution) } if v.FontSize != nil { @@ -6870,9 +6870,9 @@ func awsRestjson1_serializeDocumentDvbSubDestinationSettings(v *types.DvbSubDest ok.String(string(v.OutlineColor)) } - if v.OutlineSize != 0 { + if v.OutlineSize != nil { ok := object.Key("outlineSize") - ok.Integer(v.OutlineSize) + ok.Integer(*v.OutlineSize) } if len(v.ShadowColor) > 0 { @@ -6880,19 +6880,19 @@ func awsRestjson1_serializeDocumentDvbSubDestinationSettings(v *types.DvbSubDest ok.String(string(v.ShadowColor)) } - if v.ShadowOpacity != 0 { + if v.ShadowOpacity != nil { ok := object.Key("shadowOpacity") - ok.Integer(v.ShadowOpacity) + ok.Integer(*v.ShadowOpacity) } - if v.ShadowXOffset != 0 { + if v.ShadowXOffset != nil { ok := object.Key("shadowXOffset") - ok.Integer(v.ShadowXOffset) + ok.Integer(*v.ShadowXOffset) } - if v.ShadowYOffset != 0 { + if v.ShadowYOffset != nil { ok := object.Key("shadowYOffset") - ok.Integer(v.ShadowYOffset) + ok.Integer(*v.ShadowYOffset) } if len(v.TeletextGridControl) > 0 { @@ -6900,14 +6900,14 @@ func awsRestjson1_serializeDocumentDvbSubDestinationSettings(v *types.DvbSubDest ok.String(string(v.TeletextGridControl)) } - if v.XPosition != 0 { + if v.XPosition != nil { ok := object.Key("xPosition") - ok.Integer(v.XPosition) + ok.Integer(*v.XPosition) } - if v.YPosition != 0 { + if v.YPosition != nil { ok := object.Key("yPosition") - ok.Integer(v.YPosition) + ok.Integer(*v.YPosition) } return nil @@ -6922,9 +6922,9 @@ func awsRestjson1_serializeDocumentDvbSubSourceSettings(v *types.DvbSubSourceSet ok.String(string(v.OcrLanguage)) } - if v.Pid != 0 { + if v.Pid != nil { ok := object.Key("pid") - ok.Integer(v.Pid) + ok.Integer(*v.Pid) } return nil @@ -6934,9 +6934,9 @@ func awsRestjson1_serializeDocumentDvbTdtSettings(v *types.DvbTdtSettings, value object := value.Object() defer object.Close() - if v.RepInterval != 0 { + if v.RepInterval != nil { ok := object.Key("repInterval") - ok.Integer(v.RepInterval) + ok.Integer(*v.RepInterval) } return nil @@ -6946,20 +6946,20 @@ func awsRestjson1_serializeDocumentEac3AtmosSettings(v *types.Eac3AtmosSettings, object := value.Object() defer object.Close() - if v.Bitrate != 0 { + if v.Bitrate != nil { ok := object.Key("bitrate") switch { - case math.IsNaN(v.Bitrate): + case math.IsNaN(*v.Bitrate): ok.String("NaN") - case math.IsInf(v.Bitrate, 1): + case math.IsInf(*v.Bitrate, 1): ok.String("Infinity") - case math.IsInf(v.Bitrate, -1): + case math.IsInf(*v.Bitrate, -1): ok.String("-Infinity") default: - ok.Double(v.Bitrate) + ok.Double(*v.Bitrate) } } @@ -6969,9 +6969,9 @@ func awsRestjson1_serializeDocumentEac3AtmosSettings(v *types.Eac3AtmosSettings, ok.String(string(v.CodingMode)) } - if v.Dialnorm != 0 { + if v.Dialnorm != nil { ok := object.Key("dialnorm") - ok.Integer(v.Dialnorm) + ok.Integer(*v.Dialnorm) } if len(v.DrcLine) > 0 { @@ -6984,38 +6984,38 @@ func awsRestjson1_serializeDocumentEac3AtmosSettings(v *types.Eac3AtmosSettings, ok.String(string(v.DrcRf)) } - if v.HeightTrim != 0 { + if v.HeightTrim != nil { ok := object.Key("heightTrim") switch { - case math.IsNaN(v.HeightTrim): + case math.IsNaN(*v.HeightTrim): ok.String("NaN") - case math.IsInf(v.HeightTrim, 1): + case math.IsInf(*v.HeightTrim, 1): ok.String("Infinity") - case math.IsInf(v.HeightTrim, -1): + case math.IsInf(*v.HeightTrim, -1): ok.String("-Infinity") default: - ok.Double(v.HeightTrim) + ok.Double(*v.HeightTrim) } } - if v.SurroundTrim != 0 { + if v.SurroundTrim != nil { ok := object.Key("surroundTrim") switch { - case math.IsNaN(v.SurroundTrim): + case math.IsNaN(*v.SurroundTrim): ok.String("NaN") - case math.IsInf(v.SurroundTrim, 1): + case math.IsInf(*v.SurroundTrim, 1): ok.String("Infinity") - case math.IsInf(v.SurroundTrim, -1): + case math.IsInf(*v.SurroundTrim, -1): ok.String("-Infinity") default: - ok.Double(v.SurroundTrim) + ok.Double(*v.SurroundTrim) } } @@ -7032,20 +7032,20 @@ func awsRestjson1_serializeDocumentEac3Settings(v *types.Eac3Settings, value smi ok.String(string(v.AttenuationControl)) } - if v.Bitrate != 0 { + if v.Bitrate != nil { ok := object.Key("bitrate") switch { - case math.IsNaN(v.Bitrate): + case math.IsNaN(*v.Bitrate): ok.String("NaN") - case math.IsInf(v.Bitrate, 1): + case math.IsInf(*v.Bitrate, 1): ok.String("Infinity") - case math.IsInf(v.Bitrate, -1): + case math.IsInf(*v.Bitrate, -1): ok.String("-Infinity") default: - ok.Double(v.Bitrate) + ok.Double(*v.Bitrate) } } @@ -7065,9 +7065,9 @@ func awsRestjson1_serializeDocumentEac3Settings(v *types.Eac3Settings, value smi ok.String(string(v.DcFilter)) } - if v.Dialnorm != 0 { + if v.Dialnorm != nil { ok := object.Key("dialnorm") - ok.Integer(v.Dialnorm) + ok.Integer(*v.Dialnorm) } if len(v.DrcLine) > 0 { @@ -7090,74 +7090,74 @@ func awsRestjson1_serializeDocumentEac3Settings(v *types.Eac3Settings, value smi ok.String(string(v.LfeFilter)) } - if v.LoRoCenterMixLevel != 0 { + if v.LoRoCenterMixLevel != nil { ok := object.Key("loRoCenterMixLevel") switch { - case math.IsNaN(v.LoRoCenterMixLevel): + case math.IsNaN(*v.LoRoCenterMixLevel): ok.String("NaN") - case math.IsInf(v.LoRoCenterMixLevel, 1): + case math.IsInf(*v.LoRoCenterMixLevel, 1): ok.String("Infinity") - case math.IsInf(v.LoRoCenterMixLevel, -1): + case math.IsInf(*v.LoRoCenterMixLevel, -1): ok.String("-Infinity") default: - ok.Double(v.LoRoCenterMixLevel) + ok.Double(*v.LoRoCenterMixLevel) } } - if v.LoRoSurroundMixLevel != 0 { + if v.LoRoSurroundMixLevel != nil { ok := object.Key("loRoSurroundMixLevel") switch { - case math.IsNaN(v.LoRoSurroundMixLevel): + case math.IsNaN(*v.LoRoSurroundMixLevel): ok.String("NaN") - case math.IsInf(v.LoRoSurroundMixLevel, 1): + case math.IsInf(*v.LoRoSurroundMixLevel, 1): ok.String("Infinity") - case math.IsInf(v.LoRoSurroundMixLevel, -1): + case math.IsInf(*v.LoRoSurroundMixLevel, -1): ok.String("-Infinity") default: - ok.Double(v.LoRoSurroundMixLevel) + ok.Double(*v.LoRoSurroundMixLevel) } } - if v.LtRtCenterMixLevel != 0 { + if v.LtRtCenterMixLevel != nil { ok := object.Key("ltRtCenterMixLevel") switch { - case math.IsNaN(v.LtRtCenterMixLevel): + case math.IsNaN(*v.LtRtCenterMixLevel): ok.String("NaN") - case math.IsInf(v.LtRtCenterMixLevel, 1): + case math.IsInf(*v.LtRtCenterMixLevel, 1): ok.String("Infinity") - case math.IsInf(v.LtRtCenterMixLevel, -1): + case math.IsInf(*v.LtRtCenterMixLevel, -1): ok.String("-Infinity") default: - ok.Double(v.LtRtCenterMixLevel) + ok.Double(*v.LtRtCenterMixLevel) } } - if v.LtRtSurroundMixLevel != 0 { + if v.LtRtSurroundMixLevel != nil { ok := object.Key("ltRtSurroundMixLevel") switch { - case math.IsNaN(v.LtRtSurroundMixLevel): + case math.IsNaN(*v.LtRtSurroundMixLevel): ok.String("NaN") - case math.IsInf(v.LtRtSurroundMixLevel, 1): + case math.IsInf(*v.LtRtSurroundMixLevel, 1): ok.String("Infinity") - case math.IsInf(v.LtRtSurroundMixLevel, -1): + case math.IsInf(*v.LtRtSurroundMixLevel, -1): ok.String("-Infinity") default: - ok.Double(v.LtRtSurroundMixLevel) + ok.Double(*v.LtRtSurroundMixLevel) } } @@ -7250,14 +7250,14 @@ func awsRestjson1_serializeDocumentEmbeddedSourceSettings(v *types.EmbeddedSourc ok.String(string(v.Scte20Detection)) } - if v.Source608ChannelNumber != 0 { + if v.Source608ChannelNumber != nil { ok := object.Key("source608ChannelNumber") - ok.Integer(v.Source608ChannelNumber) + ok.Integer(*v.Source608ChannelNumber) } - if v.Source608TrackNumber != 0 { + if v.Source608TrackNumber != nil { ok := object.Key("source608TrackNumber") - ok.Integer(v.Source608TrackNumber) + ok.Integer(*v.Source608TrackNumber) } return nil @@ -7387,9 +7387,9 @@ func awsRestjson1_serializeDocumentEsam(v *types.Esam, value smithyjson.Value) e ok.String(*v.AcquisitionPointId) } - if v.AdAvailOffset != 0 { + if v.AdAvailOffset != nil { ok := object.Key("adAvailOffset") - ok.Integer(v.AdAvailOffset) + ok.Integer(*v.AdAvailOffset) } if v.PasswordParam != nil { @@ -7473,9 +7473,9 @@ func awsRestjson1_serializeDocumentFecOutputSettings(v *types.FecOutputSettings, object := value.Object() defer object.Close() - if v.ColumnDepth != 0 { + if v.ColumnDepth != nil { ok := object.Key("columnDepth") - ok.Integer(v.ColumnDepth) + ok.Integer(*v.ColumnDepth) } if len(v.IncludeFec) > 0 { @@ -7483,9 +7483,9 @@ func awsRestjson1_serializeDocumentFecOutputSettings(v *types.FecOutputSettings, ok.String(string(v.IncludeFec)) } - if v.RowLength != 0 { + if v.RowLength != nil { ok := object.Key("rowLength") - ok.Integer(v.RowLength) + ok.Integer(*v.RowLength) } return nil @@ -7612,9 +7612,9 @@ func awsRestjson1_serializeDocumentFrameCaptureSettings(v *types.FrameCaptureSet object := value.Object() defer object.Close() - if v.CaptureInterval != 0 { + if v.CaptureInterval != nil { ok := object.Key("captureInterval") - ok.Integer(v.CaptureInterval) + ok.Integer(*v.CaptureInterval) } if len(v.CaptureIntervalUnits) > 0 { @@ -7636,9 +7636,9 @@ func awsRestjson1_serializeDocumentGlobalConfiguration(v *types.GlobalConfigurat object := value.Object() defer object.Close() - if v.InitialAudioGain != 0 { + if v.InitialAudioGain != nil { ok := object.Key("initialAudioGain") - ok.Integer(v.InitialAudioGain) + ok.Integer(*v.InitialAudioGain) } if len(v.InputEndAction) > 0 { @@ -7734,19 +7734,19 @@ func awsRestjson1_serializeDocumentH264Settings(v *types.H264Settings, value smi ok.String(string(v.AfdSignaling)) } - if v.Bitrate != 0 { + if v.Bitrate != nil { ok := object.Key("bitrate") - ok.Integer(v.Bitrate) + ok.Integer(*v.Bitrate) } - if v.BufFillPct != 0 { + if v.BufFillPct != nil { ok := object.Key("bufFillPct") - ok.Integer(v.BufFillPct) + ok.Integer(*v.BufFillPct) } - if v.BufSize != 0 { + if v.BufSize != nil { ok := object.Key("bufSize") - ok.Integer(v.BufSize) + ok.Integer(*v.BufSize) } if len(v.ColorMetadata) > 0 { @@ -7793,14 +7793,14 @@ func awsRestjson1_serializeDocumentH264Settings(v *types.H264Settings, value smi ok.String(string(v.FramerateControl)) } - if v.FramerateDenominator != 0 { + if v.FramerateDenominator != nil { ok := object.Key("framerateDenominator") - ok.Integer(v.FramerateDenominator) + ok.Integer(*v.FramerateDenominator) } - if v.FramerateNumerator != 0 { + if v.FramerateNumerator != nil { ok := object.Key("framerateNumerator") - ok.Integer(v.FramerateNumerator) + ok.Integer(*v.FramerateNumerator) } if len(v.GopBReference) > 0 { @@ -7808,30 +7808,30 @@ func awsRestjson1_serializeDocumentH264Settings(v *types.H264Settings, value smi ok.String(string(v.GopBReference)) } - if v.GopClosedCadence != 0 { + if v.GopClosedCadence != nil { ok := object.Key("gopClosedCadence") - ok.Integer(v.GopClosedCadence) + ok.Integer(*v.GopClosedCadence) } - if v.GopNumBFrames != 0 { + if v.GopNumBFrames != nil { ok := object.Key("gopNumBFrames") - ok.Integer(v.GopNumBFrames) + ok.Integer(*v.GopNumBFrames) } - if v.GopSize != 0 { + if v.GopSize != nil { ok := object.Key("gopSize") switch { - case math.IsNaN(v.GopSize): + case math.IsNaN(*v.GopSize): ok.String("NaN") - case math.IsInf(v.GopSize, 1): + case math.IsInf(*v.GopSize, 1): ok.String("Infinity") - case math.IsInf(v.GopSize, -1): + case math.IsInf(*v.GopSize, -1): ok.String("-Infinity") default: - ok.Double(v.GopSize) + ok.Double(*v.GopSize) } } @@ -7851,19 +7851,19 @@ func awsRestjson1_serializeDocumentH264Settings(v *types.H264Settings, value smi ok.String(string(v.LookAheadRateControl)) } - if v.MaxBitrate != 0 { + if v.MaxBitrate != nil { ok := object.Key("maxBitrate") - ok.Integer(v.MaxBitrate) + ok.Integer(*v.MaxBitrate) } - if v.MinIInterval != 0 { + if v.MinIInterval != nil { ok := object.Key("minIInterval") - ok.Integer(v.MinIInterval) + ok.Integer(*v.MinIInterval) } - if v.NumRefFrames != 0 { + if v.NumRefFrames != nil { ok := object.Key("numRefFrames") - ok.Integer(v.NumRefFrames) + ok.Integer(*v.NumRefFrames) } if len(v.ParControl) > 0 { @@ -7871,14 +7871,14 @@ func awsRestjson1_serializeDocumentH264Settings(v *types.H264Settings, value smi ok.String(string(v.ParControl)) } - if v.ParDenominator != 0 { + if v.ParDenominator != nil { ok := object.Key("parDenominator") - ok.Integer(v.ParDenominator) + ok.Integer(*v.ParDenominator) } - if v.ParNumerator != 0 { + if v.ParNumerator != nil { ok := object.Key("parNumerator") - ok.Integer(v.ParNumerator) + ok.Integer(*v.ParNumerator) } if len(v.Profile) > 0 { @@ -7891,9 +7891,9 @@ func awsRestjson1_serializeDocumentH264Settings(v *types.H264Settings, value smi ok.String(string(v.QualityLevel)) } - if v.QvbrQualityLevel != 0 { + if v.QvbrQualityLevel != nil { ok := object.Key("qvbrQualityLevel") - ok.Integer(v.QvbrQualityLevel) + ok.Integer(*v.QvbrQualityLevel) } if len(v.RateControlMode) > 0 { @@ -7911,14 +7911,14 @@ func awsRestjson1_serializeDocumentH264Settings(v *types.H264Settings, value smi ok.String(string(v.SceneChangeDetect)) } - if v.Slices != 0 { + if v.Slices != nil { ok := object.Key("slices") - ok.Integer(v.Slices) + ok.Integer(*v.Slices) } - if v.Softness != 0 { + if v.Softness != nil { ok := object.Key("softness") - ok.Integer(v.Softness) + ok.Integer(*v.Softness) } if len(v.SpatialAq) > 0 { @@ -8031,14 +8031,14 @@ func awsRestjson1_serializeDocumentH265Settings(v *types.H265Settings, value smi ok.String(string(v.AlternativeTransferFunction)) } - if v.Bitrate != 0 { + if v.Bitrate != nil { ok := object.Key("bitrate") - ok.Integer(v.Bitrate) + ok.Integer(*v.Bitrate) } - if v.BufSize != 0 { + if v.BufSize != nil { ok := object.Key("bufSize") - ok.Integer(v.BufSize) + ok.Integer(*v.BufSize) } if len(v.ColorMetadata) > 0 { @@ -8070,35 +8070,35 @@ func awsRestjson1_serializeDocumentH265Settings(v *types.H265Settings, value smi ok.String(string(v.FlickerAq)) } - { + if v.FramerateDenominator != nil { ok := object.Key("framerateDenominator") - ok.Integer(v.FramerateDenominator) + ok.Integer(*v.FramerateDenominator) } - { + if v.FramerateNumerator != nil { ok := object.Key("framerateNumerator") - ok.Integer(v.FramerateNumerator) + ok.Integer(*v.FramerateNumerator) } - if v.GopClosedCadence != 0 { + if v.GopClosedCadence != nil { ok := object.Key("gopClosedCadence") - ok.Integer(v.GopClosedCadence) + ok.Integer(*v.GopClosedCadence) } - if v.GopSize != 0 { + if v.GopSize != nil { ok := object.Key("gopSize") switch { - case math.IsNaN(v.GopSize): + case math.IsNaN(*v.GopSize): ok.String("NaN") - case math.IsInf(v.GopSize, 1): + case math.IsInf(*v.GopSize, 1): ok.String("Infinity") - case math.IsInf(v.GopSize, -1): + case math.IsInf(*v.GopSize, -1): ok.String("-Infinity") default: - ok.Double(v.GopSize) + ok.Double(*v.GopSize) } } @@ -8118,24 +8118,24 @@ func awsRestjson1_serializeDocumentH265Settings(v *types.H265Settings, value smi ok.String(string(v.LookAheadRateControl)) } - if v.MaxBitrate != 0 { + if v.MaxBitrate != nil { ok := object.Key("maxBitrate") - ok.Integer(v.MaxBitrate) + ok.Integer(*v.MaxBitrate) } - if v.MinIInterval != 0 { + if v.MinIInterval != nil { ok := object.Key("minIInterval") - ok.Integer(v.MinIInterval) + ok.Integer(*v.MinIInterval) } - if v.ParDenominator != 0 { + if v.ParDenominator != nil { ok := object.Key("parDenominator") - ok.Integer(v.ParDenominator) + ok.Integer(*v.ParDenominator) } - if v.ParNumerator != 0 { + if v.ParNumerator != nil { ok := object.Key("parNumerator") - ok.Integer(v.ParNumerator) + ok.Integer(*v.ParNumerator) } if len(v.Profile) > 0 { @@ -8143,9 +8143,9 @@ func awsRestjson1_serializeDocumentH265Settings(v *types.H265Settings, value smi ok.String(string(v.Profile)) } - if v.QvbrQualityLevel != 0 { + if v.QvbrQualityLevel != nil { ok := object.Key("qvbrQualityLevel") - ok.Integer(v.QvbrQualityLevel) + ok.Integer(*v.QvbrQualityLevel) } if len(v.RateControlMode) > 0 { @@ -8163,9 +8163,9 @@ func awsRestjson1_serializeDocumentH265Settings(v *types.H265Settings, value smi ok.String(string(v.SceneChangeDetect)) } - if v.Slices != 0 { + if v.Slices != nil { ok := object.Key("slices") - ok.Integer(v.Slices) + ok.Integer(*v.Slices) } if len(v.Tier) > 0 { @@ -8192,14 +8192,14 @@ func awsRestjson1_serializeDocumentHdr10Settings(v *types.Hdr10Settings, value s object := value.Object() defer object.Close() - if v.MaxCll != 0 { + if v.MaxCll != nil { ok := object.Key("maxCll") - ok.Integer(v.MaxCll) + ok.Integer(*v.MaxCll) } - if v.MaxFall != 0 { + if v.MaxFall != nil { ok := object.Key("maxFall") - ok.Integer(v.MaxFall) + ok.Integer(*v.MaxFall) } return nil @@ -8209,14 +8209,14 @@ func awsRestjson1_serializeDocumentHlsAkamaiSettings(v *types.HlsAkamaiSettings, object := value.Object() defer object.Close() - if v.ConnectionRetryInterval != 0 { + if v.ConnectionRetryInterval != nil { ok := object.Key("connectionRetryInterval") - ok.Integer(v.ConnectionRetryInterval) + ok.Integer(*v.ConnectionRetryInterval) } - if v.FilecacheDuration != 0 { + if v.FilecacheDuration != nil { ok := object.Key("filecacheDuration") - ok.Integer(v.FilecacheDuration) + ok.Integer(*v.FilecacheDuration) } if len(v.HttpTransferMode) > 0 { @@ -8224,14 +8224,14 @@ func awsRestjson1_serializeDocumentHlsAkamaiSettings(v *types.HlsAkamaiSettings, ok.String(string(v.HttpTransferMode)) } - if v.NumRetries != 0 { + if v.NumRetries != nil { ok := object.Key("numRetries") - ok.Integer(v.NumRetries) + ok.Integer(*v.NumRetries) } - if v.RestartDelay != 0 { + if v.RestartDelay != nil { ok := object.Key("restartDelay") - ok.Integer(v.RestartDelay) + ok.Integer(*v.RestartDelay) } if v.Salt != nil { @@ -8251,24 +8251,24 @@ func awsRestjson1_serializeDocumentHlsBasicPutSettings(v *types.HlsBasicPutSetti object := value.Object() defer object.Close() - if v.ConnectionRetryInterval != 0 { + if v.ConnectionRetryInterval != nil { ok := object.Key("connectionRetryInterval") - ok.Integer(v.ConnectionRetryInterval) + ok.Integer(*v.ConnectionRetryInterval) } - if v.FilecacheDuration != 0 { + if v.FilecacheDuration != nil { ok := object.Key("filecacheDuration") - ok.Integer(v.FilecacheDuration) + ok.Integer(*v.FilecacheDuration) } - if v.NumRetries != 0 { + if v.NumRetries != nil { ok := object.Key("numRetries") - ok.Integer(v.NumRetries) + ok.Integer(*v.NumRetries) } - if v.RestartDelay != 0 { + if v.RestartDelay != nil { ok := object.Key("restartDelay") - ok.Integer(v.RestartDelay) + ok.Integer(*v.RestartDelay) } return nil @@ -8418,9 +8418,9 @@ func awsRestjson1_serializeDocumentHlsGroupSettings(v *types.HlsGroupSettings, v ok.String(string(v.IncompleteSegmentBehavior)) } - if v.IndexNSegments != 0 { + if v.IndexNSegments != nil { ok := object.Key("indexNSegments") - ok.Integer(v.IndexNSegments) + ok.Integer(*v.IndexNSegments) } if len(v.InputLossAction) > 0 { @@ -8438,9 +8438,9 @@ func awsRestjson1_serializeDocumentHlsGroupSettings(v *types.HlsGroupSettings, v ok.String(string(v.IvSource)) } - if v.KeepSegments != 0 { + if v.KeepSegments != nil { ok := object.Key("keepSegments") - ok.Integer(v.KeepSegments) + ok.Integer(*v.KeepSegments) } if v.KeyFormat != nil { @@ -8470,9 +8470,9 @@ func awsRestjson1_serializeDocumentHlsGroupSettings(v *types.HlsGroupSettings, v ok.String(string(v.ManifestDurationFormat)) } - if v.MinSegmentLength != 0 { + if v.MinSegmentLength != nil { ok := object.Key("minSegmentLength") - ok.Integer(v.MinSegmentLength) + ok.Integer(*v.MinSegmentLength) } if len(v.Mode) > 0 { @@ -8495,9 +8495,9 @@ func awsRestjson1_serializeDocumentHlsGroupSettings(v *types.HlsGroupSettings, v ok.String(string(v.ProgramDateTimeClock)) } - if v.ProgramDateTimePeriod != 0 { + if v.ProgramDateTimePeriod != nil { ok := object.Key("programDateTimePeriod") - ok.Integer(v.ProgramDateTimePeriod) + ok.Integer(*v.ProgramDateTimePeriod) } if len(v.RedundantManifest) > 0 { @@ -8510,14 +8510,14 @@ func awsRestjson1_serializeDocumentHlsGroupSettings(v *types.HlsGroupSettings, v ok.String(string(v.SegmentationMode)) } - if v.SegmentLength != 0 { + if v.SegmentLength != nil { ok := object.Key("segmentLength") - ok.Integer(v.SegmentLength) + ok.Integer(*v.SegmentLength) } - if v.SegmentsPerSubdirectory != 0 { + if v.SegmentsPerSubdirectory != nil { ok := object.Key("segmentsPerSubdirectory") - ok.Integer(v.SegmentsPerSubdirectory) + ok.Integer(*v.SegmentsPerSubdirectory) } if len(v.StreamInfResolution) > 0 { @@ -8530,14 +8530,14 @@ func awsRestjson1_serializeDocumentHlsGroupSettings(v *types.HlsGroupSettings, v ok.String(string(v.TimedMetadataId3Frame)) } - if v.TimedMetadataId3Period != 0 { + if v.TimedMetadataId3Period != nil { ok := object.Key("timedMetadataId3Period") - ok.Integer(v.TimedMetadataId3Period) + ok.Integer(*v.TimedMetadataId3Period) } - if v.TimestampDeltaMilliseconds != 0 { + if v.TimestampDeltaMilliseconds != nil { ok := object.Key("timestampDeltaMilliseconds") - ok.Integer(v.TimestampDeltaMilliseconds) + ok.Integer(*v.TimestampDeltaMilliseconds) } if len(v.TsFileMode) > 0 { @@ -8569,24 +8569,24 @@ func awsRestjson1_serializeDocumentHlsInputSettings(v *types.HlsInputSettings, v object := value.Object() defer object.Close() - if v.Bandwidth != 0 { + if v.Bandwidth != nil { ok := object.Key("bandwidth") - ok.Integer(v.Bandwidth) + ok.Integer(*v.Bandwidth) } - if v.BufferSegments != 0 { + if v.BufferSegments != nil { ok := object.Key("bufferSegments") - ok.Integer(v.BufferSegments) + ok.Integer(*v.BufferSegments) } - if v.Retries != 0 { + if v.Retries != nil { ok := object.Key("retries") - ok.Integer(v.Retries) + ok.Integer(*v.Retries) } - if v.RetryInterval != 0 { + if v.RetryInterval != nil { ok := object.Key("retryInterval") - ok.Integer(v.RetryInterval) + ok.Integer(*v.RetryInterval) } if len(v.Scte35Source) > 0 { @@ -8601,14 +8601,14 @@ func awsRestjson1_serializeDocumentHlsMediaStoreSettings(v *types.HlsMediaStoreS object := value.Object() defer object.Close() - if v.ConnectionRetryInterval != 0 { + if v.ConnectionRetryInterval != nil { ok := object.Key("connectionRetryInterval") - ok.Integer(v.ConnectionRetryInterval) + ok.Integer(*v.ConnectionRetryInterval) } - if v.FilecacheDuration != 0 { + if v.FilecacheDuration != nil { ok := object.Key("filecacheDuration") - ok.Integer(v.FilecacheDuration) + ok.Integer(*v.FilecacheDuration) } if len(v.MediaStoreStorageClass) > 0 { @@ -8616,14 +8616,14 @@ func awsRestjson1_serializeDocumentHlsMediaStoreSettings(v *types.HlsMediaStoreS ok.String(string(v.MediaStoreStorageClass)) } - if v.NumRetries != 0 { + if v.NumRetries != nil { ok := object.Key("numRetries") - ok.Integer(v.NumRetries) + ok.Integer(*v.NumRetries) } - if v.RestartDelay != 0 { + if v.RestartDelay != nil { ok := object.Key("restartDelay") - ok.Integer(v.RestartDelay) + ok.Integer(*v.RestartDelay) } return nil @@ -8721,14 +8721,14 @@ func awsRestjson1_serializeDocumentHlsWebdavSettings(v *types.HlsWebdavSettings, object := value.Object() defer object.Close() - if v.ConnectionRetryInterval != 0 { + if v.ConnectionRetryInterval != nil { ok := object.Key("connectionRetryInterval") - ok.Integer(v.ConnectionRetryInterval) + ok.Integer(*v.ConnectionRetryInterval) } - if v.FilecacheDuration != 0 { + if v.FilecacheDuration != nil { ok := object.Key("filecacheDuration") - ok.Integer(v.FilecacheDuration) + ok.Integer(*v.FilecacheDuration) } if len(v.HttpTransferMode) > 0 { @@ -8736,14 +8736,14 @@ func awsRestjson1_serializeDocumentHlsWebdavSettings(v *types.HlsWebdavSettings, ok.String(string(v.HttpTransferMode)) } - if v.NumRetries != 0 { + if v.NumRetries != nil { ok := object.Key("numRetries") - ok.Integer(v.NumRetries) + ok.Integer(*v.NumRetries) } - if v.RestartDelay != 0 { + if v.RestartDelay != nil { ok := object.Key("restartDelay") - ok.Integer(v.RestartDelay) + ok.Integer(*v.RestartDelay) } return nil @@ -8798,14 +8798,14 @@ func awsRestjson1_serializeDocumentInputChannelLevel(v *types.InputChannelLevel, object := value.Object() defer object.Close() - { + if v.Gain != nil { ok := object.Key("gain") - ok.Integer(v.Gain) + ok.Integer(*v.Gain) } - { + if v.InputChannel != nil { ok := object.Key("inputChannel") - ok.Integer(v.InputChannel) + ok.Integer(*v.InputChannel) } return nil @@ -8863,14 +8863,14 @@ func awsRestjson1_serializeDocumentInputDeviceConfigurableSettings(v *types.Inpu ok.String(string(v.ConfiguredInput)) } - if v.LatencyMs != 0 { + if v.LatencyMs != nil { ok := object.Key("latencyMs") - ok.Integer(v.LatencyMs) + ok.Integer(*v.LatencyMs) } - if v.MaxBitrate != 0 { + if v.MaxBitrate != nil { ok := object.Key("maxBitrate") - ok.Integer(v.MaxBitrate) + ok.Integer(*v.MaxBitrate) } if v.MediaconnectSettings != nil { @@ -8960,9 +8960,9 @@ func awsRestjson1_serializeDocumentInputLossBehavior(v *types.InputLossBehavior, object := value.Object() defer object.Close() - if v.BlackFrameMsec != 0 { + if v.BlackFrameMsec != nil { ok := object.Key("blackFrameMsec") - ok.Integer(v.BlackFrameMsec) + ok.Integer(*v.BlackFrameMsec) } if v.InputLossImageColor != nil { @@ -8982,9 +8982,9 @@ func awsRestjson1_serializeDocumentInputLossBehavior(v *types.InputLossBehavior, ok.String(string(v.InputLossImageType)) } - if v.RepeatFrameMsec != 0 { + if v.RepeatFrameMsec != nil { ok := object.Key("repeatFrameMsec") - ok.Integer(v.RepeatFrameMsec) + ok.Integer(*v.RepeatFrameMsec) } return nil @@ -8994,9 +8994,9 @@ func awsRestjson1_serializeDocumentInputLossFailoverSettings(v *types.InputLossF object := value.Object() defer object.Close() - if v.InputLossThresholdMsec != 0 { + if v.InputLossThresholdMsec != nil { ok := object.Key("inputLossThresholdMsec") - ok.Integer(v.InputLossThresholdMsec) + ok.Integer(*v.InputLossThresholdMsec) } return nil @@ -9056,9 +9056,9 @@ func awsRestjson1_serializeDocumentInputSettings(v *types.InputSettings, value s ok.String(string(v.DenoiseFilter)) } - if v.FilterStrength != 0 { + if v.FilterStrength != nil { ok := object.Key("filterStrength") - ok.Integer(v.FilterStrength) + ok.Integer(*v.FilterStrength) } if len(v.InputFilter) > 0 { @@ -9073,9 +9073,9 @@ func awsRestjson1_serializeDocumentInputSettings(v *types.InputSettings, value s } } - if v.Scte35Pid != 0 { + if v.Scte35Pid != nil { ok := object.Key("scte35Pid") - ok.Integer(v.Scte35Pid) + ok.Integer(*v.Scte35Pid) } if len(v.Smpte2038DataPreference) > 0 { @@ -9244,9 +9244,9 @@ func awsRestjson1_serializeDocumentM2tsSettings(v *types.M2tsSettings, value smi ok.String(string(v.AudioBufferModel)) } - if v.AudioFramesPerPes != 0 { + if v.AudioFramesPerPes != nil { ok := object.Key("audioFramesPerPes") - ok.Integer(v.AudioFramesPerPes) + ok.Integer(*v.AudioFramesPerPes) } if v.AudioPids != nil { @@ -9259,9 +9259,9 @@ func awsRestjson1_serializeDocumentM2tsSettings(v *types.M2tsSettings, value smi ok.String(string(v.AudioStreamType)) } - if v.Bitrate != 0 { + if v.Bitrate != nil { ok := object.Key("bitrate") - ok.Integer(v.Bitrate) + ok.Integer(*v.Bitrate) } if len(v.BufferModel) > 0 { @@ -9315,9 +9315,9 @@ func awsRestjson1_serializeDocumentM2tsSettings(v *types.M2tsSettings, value smi ok.String(string(v.EbpAudioInterval)) } - if v.EbpLookaheadMs != 0 { + if v.EbpLookaheadMs != nil { ok := object.Key("ebpLookaheadMs") - ok.Integer(v.EbpLookaheadMs) + ok.Integer(*v.EbpLookaheadMs) } if len(v.EbpPlacement) > 0 { @@ -9345,20 +9345,20 @@ func awsRestjson1_serializeDocumentM2tsSettings(v *types.M2tsSettings, value smi ok.String(*v.EtvSignalPid) } - if v.FragmentTime != 0 { + if v.FragmentTime != nil { ok := object.Key("fragmentTime") switch { - case math.IsNaN(v.FragmentTime): + case math.IsNaN(*v.FragmentTime): ok.String("NaN") - case math.IsInf(v.FragmentTime, 1): + case math.IsInf(*v.FragmentTime, 1): ok.String("Infinity") - case math.IsInf(v.FragmentTime, -1): + case math.IsInf(*v.FragmentTime, -1): ok.String("-Infinity") default: - ok.Double(v.FragmentTime) + ok.Double(*v.FragmentTime) } } @@ -9378,27 +9378,27 @@ func awsRestjson1_serializeDocumentM2tsSettings(v *types.M2tsSettings, value smi ok.String(string(v.NielsenId3Behavior)) } - if v.NullPacketBitrate != 0 { + if v.NullPacketBitrate != nil { ok := object.Key("nullPacketBitrate") switch { - case math.IsNaN(v.NullPacketBitrate): + case math.IsNaN(*v.NullPacketBitrate): ok.String("NaN") - case math.IsInf(v.NullPacketBitrate, 1): + case math.IsInf(*v.NullPacketBitrate, 1): ok.String("Infinity") - case math.IsInf(v.NullPacketBitrate, -1): + case math.IsInf(*v.NullPacketBitrate, -1): ok.String("-Infinity") default: - ok.Double(v.NullPacketBitrate) + ok.Double(*v.NullPacketBitrate) } } - if v.PatInterval != 0 { + if v.PatInterval != nil { ok := object.Key("patInterval") - ok.Integer(v.PatInterval) + ok.Integer(*v.PatInterval) } if len(v.PcrControl) > 0 { @@ -9406,9 +9406,9 @@ func awsRestjson1_serializeDocumentM2tsSettings(v *types.M2tsSettings, value smi ok.String(string(v.PcrControl)) } - if v.PcrPeriod != 0 { + if v.PcrPeriod != nil { ok := object.Key("pcrPeriod") - ok.Integer(v.PcrPeriod) + ok.Integer(*v.PcrPeriod) } if v.PcrPid != nil { @@ -9416,9 +9416,9 @@ func awsRestjson1_serializeDocumentM2tsSettings(v *types.M2tsSettings, value smi ok.String(*v.PcrPid) } - if v.PmtInterval != 0 { + if v.PmtInterval != nil { ok := object.Key("pmtInterval") - ok.Integer(v.PmtInterval) + ok.Integer(*v.PmtInterval) } if v.PmtPid != nil { @@ -9426,9 +9426,9 @@ func awsRestjson1_serializeDocumentM2tsSettings(v *types.M2tsSettings, value smi ok.String(*v.PmtPid) } - if v.ProgramNum != 0 { + if v.ProgramNum != nil { ok := object.Key("programNum") - ok.Integer(v.ProgramNum) + ok.Integer(*v.ProgramNum) } if len(v.RateMode) > 0 { @@ -9451,20 +9451,20 @@ func awsRestjson1_serializeDocumentM2tsSettings(v *types.M2tsSettings, value smi ok.String(*v.Scte35Pid) } - if v.Scte35PrerollPullupMilliseconds != 0 { + if v.Scte35PrerollPullupMilliseconds != nil { ok := object.Key("scte35PrerollPullupMilliseconds") switch { - case math.IsNaN(v.Scte35PrerollPullupMilliseconds): + case math.IsNaN(*v.Scte35PrerollPullupMilliseconds): ok.String("NaN") - case math.IsInf(v.Scte35PrerollPullupMilliseconds, 1): + case math.IsInf(*v.Scte35PrerollPullupMilliseconds, 1): ok.String("Infinity") - case math.IsInf(v.Scte35PrerollPullupMilliseconds, -1): + case math.IsInf(*v.Scte35PrerollPullupMilliseconds, -1): ok.String("-Infinity") default: - ok.Double(v.Scte35PrerollPullupMilliseconds) + ok.Double(*v.Scte35PrerollPullupMilliseconds) } } @@ -9479,20 +9479,20 @@ func awsRestjson1_serializeDocumentM2tsSettings(v *types.M2tsSettings, value smi ok.String(string(v.SegmentationStyle)) } - if v.SegmentationTime != 0 { + if v.SegmentationTime != nil { ok := object.Key("segmentationTime") switch { - case math.IsNaN(v.SegmentationTime): + case math.IsNaN(*v.SegmentationTime): ok.String("NaN") - case math.IsInf(v.SegmentationTime, 1): + case math.IsInf(*v.SegmentationTime, 1): ok.String("Infinity") - case math.IsInf(v.SegmentationTime, -1): + case math.IsInf(*v.SegmentationTime, -1): ok.String("-Infinity") default: - ok.Double(v.SegmentationTime) + ok.Double(*v.SegmentationTime) } } @@ -9507,9 +9507,9 @@ func awsRestjson1_serializeDocumentM2tsSettings(v *types.M2tsSettings, value smi ok.String(*v.TimedMetadataPid) } - if v.TransportStreamId != 0 { + if v.TransportStreamId != nil { ok := object.Key("transportStreamId") - ok.Integer(v.TransportStreamId) + ok.Integer(*v.TransportStreamId) } if v.VideoPid != nil { @@ -9524,9 +9524,9 @@ func awsRestjson1_serializeDocumentM3u8Settings(v *types.M3u8Settings, value smi object := value.Object() defer object.Close() - if v.AudioFramesPerPes != 0 { + if v.AudioFramesPerPes != nil { ok := object.Key("audioFramesPerPes") - ok.Integer(v.AudioFramesPerPes) + ok.Integer(*v.AudioFramesPerPes) } if v.AudioPids != nil { @@ -9554,9 +9554,9 @@ func awsRestjson1_serializeDocumentM3u8Settings(v *types.M3u8Settings, value smi ok.String(string(v.NielsenId3Behavior)) } - if v.PatInterval != 0 { + if v.PatInterval != nil { ok := object.Key("patInterval") - ok.Integer(v.PatInterval) + ok.Integer(*v.PatInterval) } if len(v.PcrControl) > 0 { @@ -9564,9 +9564,9 @@ func awsRestjson1_serializeDocumentM3u8Settings(v *types.M3u8Settings, value smi ok.String(string(v.PcrControl)) } - if v.PcrPeriod != 0 { + if v.PcrPeriod != nil { ok := object.Key("pcrPeriod") - ok.Integer(v.PcrPeriod) + ok.Integer(*v.PcrPeriod) } if v.PcrPid != nil { @@ -9574,9 +9574,9 @@ func awsRestjson1_serializeDocumentM3u8Settings(v *types.M3u8Settings, value smi ok.String(*v.PcrPid) } - if v.PmtInterval != 0 { + if v.PmtInterval != nil { ok := object.Key("pmtInterval") - ok.Integer(v.PmtInterval) + ok.Integer(*v.PmtInterval) } if v.PmtPid != nil { @@ -9584,9 +9584,9 @@ func awsRestjson1_serializeDocumentM3u8Settings(v *types.M3u8Settings, value smi ok.String(*v.PmtPid) } - if v.ProgramNum != 0 { + if v.ProgramNum != nil { ok := object.Key("programNum") - ok.Integer(v.ProgramNum) + ok.Integer(*v.ProgramNum) } if len(v.Scte35Behavior) > 0 { @@ -9609,9 +9609,9 @@ func awsRestjson1_serializeDocumentM3u8Settings(v *types.M3u8Settings, value smi ok.String(*v.TimedMetadataPid) } - if v.TransportStreamId != 0 { + if v.TransportStreamId != nil { ok := object.Key("transportStreamId") - ok.Integer(v.TransportStreamId) + ok.Integer(*v.TransportStreamId) } if v.VideoPid != nil { @@ -9710,9 +9710,9 @@ func awsRestjson1_serializeDocumentMotionGraphicsActivateScheduleActionSettings( object := value.Object() defer object.Close() - if v.Duration != 0 { + if v.Duration != nil { ok := object.Key("duration") - ok.Long(v.Duration) + ok.Long(*v.Duration) } if v.PasswordParam != nil { @@ -9777,20 +9777,20 @@ func awsRestjson1_serializeDocumentMp2Settings(v *types.Mp2Settings, value smith object := value.Object() defer object.Close() - if v.Bitrate != 0 { + if v.Bitrate != nil { ok := object.Key("bitrate") switch { - case math.IsNaN(v.Bitrate): + case math.IsNaN(*v.Bitrate): ok.String("NaN") - case math.IsInf(v.Bitrate, 1): + case math.IsInf(*v.Bitrate, 1): ok.String("Infinity") - case math.IsInf(v.Bitrate, -1): + case math.IsInf(*v.Bitrate, -1): ok.String("-Infinity") default: - ok.Double(v.Bitrate) + ok.Double(*v.Bitrate) } } @@ -9800,20 +9800,20 @@ func awsRestjson1_serializeDocumentMp2Settings(v *types.Mp2Settings, value smith ok.String(string(v.CodingMode)) } - if v.SampleRate != 0 { + if v.SampleRate != nil { ok := object.Key("sampleRate") switch { - case math.IsNaN(v.SampleRate): + case math.IsNaN(*v.SampleRate): ok.String("NaN") - case math.IsInf(v.SampleRate, 1): + case math.IsInf(*v.SampleRate, 1): ok.String("Infinity") - case math.IsInf(v.SampleRate, -1): + case math.IsInf(*v.SampleRate, -1): ok.String("-Infinity") default: - ok.Double(v.SampleRate) + ok.Double(*v.SampleRate) } } @@ -9876,40 +9876,40 @@ func awsRestjson1_serializeDocumentMpeg2Settings(v *types.Mpeg2Settings, value s ok.String(string(v.FixedAfd)) } - { + if v.FramerateDenominator != nil { ok := object.Key("framerateDenominator") - ok.Integer(v.FramerateDenominator) + ok.Integer(*v.FramerateDenominator) } - { + if v.FramerateNumerator != nil { ok := object.Key("framerateNumerator") - ok.Integer(v.FramerateNumerator) + ok.Integer(*v.FramerateNumerator) } - if v.GopClosedCadence != 0 { + if v.GopClosedCadence != nil { ok := object.Key("gopClosedCadence") - ok.Integer(v.GopClosedCadence) + ok.Integer(*v.GopClosedCadence) } - if v.GopNumBFrames != 0 { + if v.GopNumBFrames != nil { ok := object.Key("gopNumBFrames") - ok.Integer(v.GopNumBFrames) + ok.Integer(*v.GopNumBFrames) } - if v.GopSize != 0 { + if v.GopSize != nil { ok := object.Key("gopSize") switch { - case math.IsNaN(v.GopSize): + case math.IsNaN(*v.GopSize): ok.String("NaN") - case math.IsInf(v.GopSize, 1): + case math.IsInf(*v.GopSize, 1): ok.String("Infinity") - case math.IsInf(v.GopSize, -1): + case math.IsInf(*v.GopSize, -1): ok.String("-Infinity") default: - ok.Double(v.GopSize) + ok.Double(*v.GopSize) } } @@ -9963,9 +9963,9 @@ func awsRestjson1_serializeDocumentMsSmoothGroupSettings(v *types.MsSmoothGroupS ok.String(string(v.CertificateMode)) } - if v.ConnectionRetryInterval != 0 { + if v.ConnectionRetryInterval != nil { ok := object.Key("connectionRetryInterval") - ok.Integer(v.ConnectionRetryInterval) + ok.Integer(*v.ConnectionRetryInterval) } if v.Destination != nil { @@ -9990,14 +9990,14 @@ func awsRestjson1_serializeDocumentMsSmoothGroupSettings(v *types.MsSmoothGroupS ok.String(string(v.EventStopBehavior)) } - if v.FilecacheDuration != 0 { + if v.FilecacheDuration != nil { ok := object.Key("filecacheDuration") - ok.Integer(v.FilecacheDuration) + ok.Integer(*v.FilecacheDuration) } - if v.FragmentLength != 0 { + if v.FragmentLength != nil { ok := object.Key("fragmentLength") - ok.Integer(v.FragmentLength) + ok.Integer(*v.FragmentLength) } if len(v.InputLossAction) > 0 { @@ -10005,14 +10005,14 @@ func awsRestjson1_serializeDocumentMsSmoothGroupSettings(v *types.MsSmoothGroupS ok.String(string(v.InputLossAction)) } - if v.NumRetries != 0 { + if v.NumRetries != nil { ok := object.Key("numRetries") - ok.Integer(v.NumRetries) + ok.Integer(*v.NumRetries) } - if v.RestartDelay != 0 { + if v.RestartDelay != nil { ok := object.Key("restartDelay") - ok.Integer(v.RestartDelay) + ok.Integer(*v.RestartDelay) } if len(v.SegmentationMode) > 0 { @@ -10020,9 +10020,9 @@ func awsRestjson1_serializeDocumentMsSmoothGroupSettings(v *types.MsSmoothGroupS ok.String(string(v.SegmentationMode)) } - if v.SendDelayMs != 0 { + if v.SendDelayMs != nil { ok := object.Key("sendDelayMs") - ok.Integer(v.SendDelayMs) + ok.Integer(*v.SendDelayMs) } if len(v.SparseTrackType) > 0 { @@ -10129,9 +10129,9 @@ func awsRestjson1_serializeDocumentMultiplexProgramSettings(v *types.MultiplexPr ok.String(string(v.PreferredChannelPipeline)) } - { + if v.ProgramNumber != nil { ok := object.Key("programNumber") - ok.Integer(v.ProgramNumber) + ok.Integer(*v.ProgramNumber) } if v.ServiceDescriptor != nil { @@ -10155,24 +10155,24 @@ func awsRestjson1_serializeDocumentMultiplexSettings(v *types.MultiplexSettings, object := value.Object() defer object.Close() - if v.MaximumVideoBufferDelayMilliseconds != 0 { + if v.MaximumVideoBufferDelayMilliseconds != nil { ok := object.Key("maximumVideoBufferDelayMilliseconds") - ok.Integer(v.MaximumVideoBufferDelayMilliseconds) + ok.Integer(*v.MaximumVideoBufferDelayMilliseconds) } - { + if v.TransportStreamBitrate != nil { ok := object.Key("transportStreamBitrate") - ok.Integer(v.TransportStreamBitrate) + ok.Integer(*v.TransportStreamBitrate) } - { + if v.TransportStreamId != nil { ok := object.Key("transportStreamId") - ok.Integer(v.TransportStreamId) + ok.Integer(*v.TransportStreamId) } - if v.TransportStreamReservedBitrate != 0 { + if v.TransportStreamReservedBitrate != nil { ok := object.Key("transportStreamReservedBitrate") - ok.Integer(v.TransportStreamReservedBitrate) + ok.Integer(*v.TransportStreamReservedBitrate) } return nil @@ -10182,19 +10182,19 @@ func awsRestjson1_serializeDocumentMultiplexStatmuxVideoSettings(v *types.Multip object := value.Object() defer object.Close() - if v.MaximumBitrate != 0 { + if v.MaximumBitrate != nil { ok := object.Key("maximumBitrate") - ok.Integer(v.MaximumBitrate) + ok.Integer(*v.MaximumBitrate) } - if v.MinimumBitrate != 0 { + if v.MinimumBitrate != nil { ok := object.Key("minimumBitrate") - ok.Integer(v.MinimumBitrate) + ok.Integer(*v.MinimumBitrate) } - if v.Priority != 0 { + if v.Priority != nil { ok := object.Key("priority") - ok.Integer(v.Priority) + ok.Integer(*v.Priority) } return nil @@ -10204,9 +10204,9 @@ func awsRestjson1_serializeDocumentMultiplexVideoSettings(v *types.MultiplexVide object := value.Object() defer object.Close() - if v.ConstantBitrate != 0 { + if v.ConstantBitrate != nil { ok := object.Key("constantBitrate") - ok.Integer(v.ConstantBitrate) + ok.Integer(*v.ConstantBitrate) } if v.StatmuxSettings != nil { @@ -10286,20 +10286,20 @@ func awsRestjson1_serializeDocumentNielsenNaesIiNw(v *types.NielsenNaesIiNw, val ok.String(*v.CheckDigitString) } - { + if v.Sid != nil { ok := object.Key("sid") switch { - case math.IsNaN(v.Sid): + case math.IsNaN(*v.Sid): ok.String("NaN") - case math.IsInf(v.Sid, 1): + case math.IsInf(*v.Sid, 1): ok.String("Infinity") - case math.IsInf(v.Sid, -1): + case math.IsInf(*v.Sid, -1): ok.String("-Infinity") default: - ok.Double(v.Sid) + ok.Double(*v.Sid) } } @@ -10693,14 +10693,14 @@ func awsRestjson1_serializeDocumentRemixSettings(v *types.RemixSettings, value s } } - if v.ChannelsIn != 0 { + if v.ChannelsIn != nil { ok := object.Key("channelsIn") - ok.Integer(v.ChannelsIn) + ok.Integer(*v.ChannelsIn) } - if v.ChannelsOut != 0 { + if v.ChannelsOut != nil { ok := object.Key("channelsOut") - ok.Integer(v.ChannelsOut) + ok.Integer(*v.ChannelsOut) } return nil @@ -10715,9 +10715,9 @@ func awsRestjson1_serializeDocumentRenewalSettings(v *types.RenewalSettings, val ok.String(string(v.AutomaticRenewal)) } - if v.RenewalCount != 0 { + if v.RenewalCount != nil { ok := object.Key("renewalCount") - ok.Integer(v.RenewalCount) + ok.Integer(*v.RenewalCount) } return nil @@ -10751,9 +10751,9 @@ func awsRestjson1_serializeDocumentRtmpGroupSettings(v *types.RtmpGroupSettings, ok.String(string(v.CacheFullBehavior)) } - if v.CacheLength != 0 { + if v.CacheLength != nil { ok := object.Key("cacheLength") - ok.Integer(v.CacheLength) + ok.Integer(*v.CacheLength) } if len(v.CaptionData) > 0 { @@ -10771,9 +10771,9 @@ func awsRestjson1_serializeDocumentRtmpGroupSettings(v *types.RtmpGroupSettings, ok.String(string(v.InputLossAction)) } - if v.RestartDelay != 0 { + if v.RestartDelay != nil { ok := object.Key("restartDelay") - ok.Integer(v.RestartDelay) + ok.Integer(*v.RestartDelay) } return nil @@ -10788,9 +10788,9 @@ func awsRestjson1_serializeDocumentRtmpOutputSettings(v *types.RtmpOutputSetting ok.String(string(v.CertificateMode)) } - if v.ConnectionRetryInterval != 0 { + if v.ConnectionRetryInterval != nil { ok := object.Key("connectionRetryInterval") - ok.Integer(v.ConnectionRetryInterval) + ok.Integer(*v.ConnectionRetryInterval) } if v.Destination != nil { @@ -10800,9 +10800,9 @@ func awsRestjson1_serializeDocumentRtmpOutputSettings(v *types.RtmpOutputSetting } } - if v.NumRetries != 0 { + if v.NumRetries != nil { ok := object.Key("numRetries") - ok.Integer(v.NumRetries) + ok.Integer(*v.NumRetries) } return nil @@ -10976,9 +10976,9 @@ func awsRestjson1_serializeDocumentScte20SourceSettings(v *types.Scte20SourceSet ok.String(string(v.Convert608To708)) } - if v.Source608ChannelNumber != 0 { + if v.Source608ChannelNumber != nil { ok := object.Key("source608ChannelNumber") - ok.Integer(v.Source608ChannelNumber) + ok.Integer(*v.Source608ChannelNumber) } return nil @@ -11000,9 +11000,9 @@ func awsRestjson1_serializeDocumentScte27SourceSettings(v *types.Scte27SourceSet ok.String(string(v.OcrLanguage)) } - if v.Pid != 0 { + if v.Pid != nil { ok := object.Key("pid") - ok.Integer(v.Pid) + ok.Integer(*v.Pid) } return nil @@ -11084,9 +11084,9 @@ func awsRestjson1_serializeDocumentScte35ReturnToNetworkScheduleActionSettings(v object := value.Object() defer object.Close() - { + if v.SpliceEventId != nil { ok := object.Key("spliceEventId") - ok.Long(v.SpliceEventId) + ok.Long(*v.SpliceEventId) } return nil @@ -11108,19 +11108,19 @@ func awsRestjson1_serializeDocumentScte35SegmentationDescriptor(v *types.Scte35S ok.String(string(v.SegmentationCancelIndicator)) } - if v.SegmentationDuration != 0 { + if v.SegmentationDuration != nil { ok := object.Key("segmentationDuration") - ok.Long(v.SegmentationDuration) + ok.Long(*v.SegmentationDuration) } - { + if v.SegmentationEventId != nil { ok := object.Key("segmentationEventId") - ok.Long(v.SegmentationEventId) + ok.Long(*v.SegmentationEventId) } - if v.SegmentationTypeId != 0 { + if v.SegmentationTypeId != nil { ok := object.Key("segmentationTypeId") - ok.Integer(v.SegmentationTypeId) + ok.Integer(*v.SegmentationTypeId) } if v.SegmentationUpid != nil { @@ -11128,29 +11128,29 @@ func awsRestjson1_serializeDocumentScte35SegmentationDescriptor(v *types.Scte35S ok.String(*v.SegmentationUpid) } - if v.SegmentationUpidType != 0 { + if v.SegmentationUpidType != nil { ok := object.Key("segmentationUpidType") - ok.Integer(v.SegmentationUpidType) + ok.Integer(*v.SegmentationUpidType) } - if v.SegmentNum != 0 { + if v.SegmentNum != nil { ok := object.Key("segmentNum") - ok.Integer(v.SegmentNum) + ok.Integer(*v.SegmentNum) } - if v.SegmentsExpected != 0 { + if v.SegmentsExpected != nil { ok := object.Key("segmentsExpected") - ok.Integer(v.SegmentsExpected) + ok.Integer(*v.SegmentsExpected) } - if v.SubSegmentNum != 0 { + if v.SubSegmentNum != nil { ok := object.Key("subSegmentNum") - ok.Integer(v.SubSegmentNum) + ok.Integer(*v.SubSegmentNum) } - if v.SubSegmentsExpected != 0 { + if v.SubSegmentsExpected != nil { ok := object.Key("subSegmentsExpected") - ok.Integer(v.SubSegmentsExpected) + ok.Integer(*v.SubSegmentsExpected) } return nil @@ -11160,9 +11160,9 @@ func awsRestjson1_serializeDocumentScte35SpliceInsert(v *types.Scte35SpliceInser object := value.Object() defer object.Close() - if v.AdAvailOffset != 0 { + if v.AdAvailOffset != nil { ok := object.Key("adAvailOffset") - ok.Integer(v.AdAvailOffset) + ok.Integer(*v.AdAvailOffset) } if len(v.NoRegionalBlackoutFlag) > 0 { @@ -11182,14 +11182,14 @@ func awsRestjson1_serializeDocumentScte35SpliceInsertScheduleActionSettings(v *t object := value.Object() defer object.Close() - if v.Duration != 0 { + if v.Duration != nil { ok := object.Key("duration") - ok.Long(v.Duration) + ok.Long(*v.Duration) } - { + if v.SpliceEventId != nil { ok := object.Key("spliceEventId") - ok.Long(v.SpliceEventId) + ok.Long(*v.SpliceEventId) } return nil @@ -11199,9 +11199,9 @@ func awsRestjson1_serializeDocumentScte35TimeSignalApos(v *types.Scte35TimeSigna object := value.Object() defer object.Close() - if v.AdAvailOffset != 0 { + if v.AdAvailOffset != nil { ok := object.Key("adAvailOffset") - ok.Integer(v.AdAvailOffset) + ok.Integer(*v.AdAvailOffset) } if len(v.NoRegionalBlackoutFlag) > 0 { @@ -11273,24 +11273,24 @@ func awsRestjson1_serializeDocumentStaticImageActivateScheduleActionSettings(v * object := value.Object() defer object.Close() - if v.Duration != 0 { + if v.Duration != nil { ok := object.Key("duration") - ok.Integer(v.Duration) + ok.Integer(*v.Duration) } - if v.FadeIn != 0 { + if v.FadeIn != nil { ok := object.Key("fadeIn") - ok.Integer(v.FadeIn) + ok.Integer(*v.FadeIn) } - if v.FadeOut != 0 { + if v.FadeOut != nil { ok := object.Key("fadeOut") - ok.Integer(v.FadeOut) + ok.Integer(*v.FadeOut) } - if v.Height != 0 { + if v.Height != nil { ok := object.Key("height") - ok.Integer(v.Height) + ok.Integer(*v.Height) } if v.Image != nil { @@ -11300,29 +11300,29 @@ func awsRestjson1_serializeDocumentStaticImageActivateScheduleActionSettings(v * } } - if v.ImageX != 0 { + if v.ImageX != nil { ok := object.Key("imageX") - ok.Integer(v.ImageX) + ok.Integer(*v.ImageX) } - if v.ImageY != 0 { + if v.ImageY != nil { ok := object.Key("imageY") - ok.Integer(v.ImageY) + ok.Integer(*v.ImageY) } - if v.Layer != 0 { + if v.Layer != nil { ok := object.Key("layer") - ok.Integer(v.Layer) + ok.Integer(*v.Layer) } - if v.Opacity != 0 { + if v.Opacity != nil { ok := object.Key("opacity") - ok.Integer(v.Opacity) + ok.Integer(*v.Opacity) } - if v.Width != 0 { + if v.Width != nil { ok := object.Key("width") - ok.Integer(v.Width) + ok.Integer(*v.Width) } return nil @@ -11332,14 +11332,14 @@ func awsRestjson1_serializeDocumentStaticImageDeactivateScheduleActionSettings(v object := value.Object() defer object.Close() - if v.FadeOut != 0 { + if v.FadeOut != nil { ok := object.Key("fadeOut") - ok.Integer(v.FadeOut) + ok.Integer(*v.FadeOut) } - if v.Layer != 0 { + if v.Layer != nil { ok := object.Key("layer") - ok.Integer(v.Layer) + ok.Integer(*v.Layer) } return nil @@ -11478,9 +11478,9 @@ func awsRestjson1_serializeDocumentTimecodeConfig(v *types.TimecodeConfig, value ok.String(string(v.Source)) } - if v.SyncThreshold != 0 { + if v.SyncThreshold != nil { ok := object.Key("syncThreshold") - ok.Integer(v.SyncThreshold) + ok.Integer(*v.SyncThreshold) } return nil @@ -11526,9 +11526,9 @@ func awsRestjson1_serializeDocumentUdpGroupSettings(v *types.UdpGroupSettings, v ok.String(string(v.TimedMetadataId3Frame)) } - if v.TimedMetadataId3Period != 0 { + if v.TimedMetadataId3Period != nil { ok := object.Key("timedMetadataId3Period") - ok.Integer(v.TimedMetadataId3Period) + ok.Integer(*v.TimedMetadataId3Period) } return nil @@ -11538,9 +11538,9 @@ func awsRestjson1_serializeDocumentUdpOutputSettings(v *types.UdpOutputSettings, object := value.Object() defer object.Close() - if v.BufferMsec != 0 { + if v.BufferMsec != nil { ok := object.Key("bufferMsec") - ok.Integer(v.BufferMsec) + ok.Integer(*v.BufferMsec) } if v.ContainerSettings != nil { @@ -11571,27 +11571,27 @@ func awsRestjson1_serializeDocumentVideoBlackFailoverSettings(v *types.VideoBlac object := value.Object() defer object.Close() - if v.BlackDetectThreshold != 0 { + if v.BlackDetectThreshold != nil { ok := object.Key("blackDetectThreshold") switch { - case math.IsNaN(v.BlackDetectThreshold): + case math.IsNaN(*v.BlackDetectThreshold): ok.String("NaN") - case math.IsInf(v.BlackDetectThreshold, 1): + case math.IsInf(*v.BlackDetectThreshold, 1): ok.String("Infinity") - case math.IsInf(v.BlackDetectThreshold, -1): + case math.IsInf(*v.BlackDetectThreshold, -1): ok.String("-Infinity") default: - ok.Double(v.BlackDetectThreshold) + ok.Double(*v.BlackDetectThreshold) } } - if v.VideoBlackThresholdMsec != 0 { + if v.VideoBlackThresholdMsec != nil { ok := object.Key("videoBlackThresholdMsec") - ok.Integer(v.VideoBlackThresholdMsec) + ok.Integer(*v.VideoBlackThresholdMsec) } return nil @@ -11643,9 +11643,9 @@ func awsRestjson1_serializeDocumentVideoDescription(v *types.VideoDescription, v } } - if v.Height != 0 { + if v.Height != nil { ok := object.Key("height") - ok.Integer(v.Height) + ok.Integer(*v.Height) } if v.Name != nil { @@ -11663,14 +11663,14 @@ func awsRestjson1_serializeDocumentVideoDescription(v *types.VideoDescription, v ok.String(string(v.ScalingBehavior)) } - if v.Sharpness != 0 { + if v.Sharpness != nil { ok := object.Key("sharpness") - ok.Integer(v.Sharpness) + ok.Integer(*v.Sharpness) } - if v.Width != 0 { + if v.Width != nil { ok := object.Key("width") - ok.Integer(v.Width) + ok.Integer(*v.Width) } return nil @@ -11725,9 +11725,9 @@ func awsRestjson1_serializeDocumentVideoSelectorPid(v *types.VideoSelectorPid, v object := value.Object() defer object.Close() - if v.Pid != 0 { + if v.Pid != nil { ok := object.Key("pid") - ok.Integer(v.Pid) + ok.Integer(*v.Pid) } return nil @@ -11737,9 +11737,9 @@ func awsRestjson1_serializeDocumentVideoSelectorProgramId(v *types.VideoSelector object := value.Object() defer object.Close() - if v.ProgramId != 0 { + if v.ProgramId != nil { ok := object.Key("programId") - ok.Integer(v.ProgramId) + ok.Integer(*v.ProgramId) } return nil @@ -11798,20 +11798,20 @@ func awsRestjson1_serializeDocumentWavSettings(v *types.WavSettings, value smith object := value.Object() defer object.Close() - if v.BitDepth != 0 { + if v.BitDepth != nil { ok := object.Key("bitDepth") switch { - case math.IsNaN(v.BitDepth): + case math.IsNaN(*v.BitDepth): ok.String("NaN") - case math.IsInf(v.BitDepth, 1): + case math.IsInf(*v.BitDepth, 1): ok.String("Infinity") - case math.IsInf(v.BitDepth, -1): + case math.IsInf(*v.BitDepth, -1): ok.String("-Infinity") default: - ok.Double(v.BitDepth) + ok.Double(*v.BitDepth) } } @@ -11821,20 +11821,20 @@ func awsRestjson1_serializeDocumentWavSettings(v *types.WavSettings, value smith ok.String(string(v.CodingMode)) } - if v.SampleRate != 0 { + if v.SampleRate != nil { ok := object.Key("sampleRate") switch { - case math.IsNaN(v.SampleRate): + case math.IsNaN(*v.SampleRate): ok.String("NaN") - case math.IsInf(v.SampleRate, 1): + case math.IsInf(*v.SampleRate, 1): ok.String("Infinity") - case math.IsInf(v.SampleRate, -1): + case math.IsInf(*v.SampleRate, -1): ok.String("-Infinity") default: - ok.Double(v.SampleRate) + ok.Double(*v.SampleRate) } } diff --git a/service/medialive/types/types.go b/service/medialive/types/types.go index d5aea16b108..9e320f6d822 100644 --- a/service/medialive/types/types.go +++ b/service/medialive/types/types.go @@ -12,7 +12,7 @@ type AacSettings struct { // Average bitrate in bits/second. Valid values depend on rate control mode and // profile. - Bitrate float64 + Bitrate *float64 // Mono, Stereo, or 5.1 channel layout. Valid values depend on rate control mode // and profile. The adReceiverMix setting receives a stereo description plus @@ -39,7 +39,7 @@ type AacSettings struct { RawFormat AacRawFormat // Sample rate in Hz. Valid values depend on rate control mode and profile. - SampleRate float64 + SampleRate *float64 // Use MPEG-2 AAC audio instead of MPEG-4 AAC audio for raw or MPEG-2 Transport // Stream containers. @@ -59,7 +59,7 @@ type Ac3Settings struct { AttenuationControl Ac3AttenuationControl // Average bitrate in bits/second. Valid bitrates depend on the coding mode. - Bitrate float64 + Bitrate *float64 // Specifies the bitstream mode (bsmod) for the emitted AC-3 stream. See ATSC // A/52-2012 for background on these values. @@ -70,7 +70,7 @@ type Ac3Settings struct { // Sets the dialnorm for the output. If excluded and input audio is Dolby Digital, // dialnorm will be passed through. - Dialnorm int32 + Dialnorm *int32 // If set to filmStandard, adds dynamic range compression signaling to the output // bitstream as defined in the Dolby Digital specification. @@ -107,7 +107,7 @@ type AncillarySourceSettings struct { // format, complete this field. If you plan to choose Embedded as the captions // destination in the output (to pass through all the channels in the ancillary // captions), leave this field blank because MediaLive ignores the field. - SourceAncillaryChannelNumber int32 + SourceAncillaryChannelNumber *int32 noSmithyDocumentSerde } @@ -146,7 +146,7 @@ type ArchiveGroupSettings struct { // Number of seconds to write to archive file before closing and starting a new // one. - RolloverInterval int32 + RolloverInterval *int32 noSmithyDocumentSerde } @@ -201,7 +201,7 @@ type AudioChannelMapping struct { // The index of the output channel being produced. // // This member is required. - OutputChannel int32 + OutputChannel *int32 noSmithyDocumentSerde } @@ -359,7 +359,7 @@ type AudioNormalizationSettings struct { // value will be used according to the chosen algorithm. The CALM Act (1770-1) // recommends a target of -24 LKFS. The EBU R-128 specification (1770-2) recommends // a target of -23 LKFS. - TargetLkfs float64 + TargetLkfs *float64 noSmithyDocumentSerde } @@ -402,7 +402,7 @@ type AudioPidSelection struct { // Selects a specific PID from within a source. // // This member is required. - Pid int32 + Pid *int32 noSmithyDocumentSerde } @@ -453,7 +453,7 @@ type AudioSilenceFailoverSettings struct { // The amount of time (in milliseconds) that the active input must be silent // before automatic input failover occurs. Silence is defined as audio loss or // audio quieter than -50 dBFS. - AudioSilenceThresholdMsec int32 + AudioSilenceThresholdMsec *int32 noSmithyDocumentSerde } @@ -464,7 +464,7 @@ type AudioTrack struct { // 1-based integer value that maps to a specific audio track // // This member is required. - Track int32 + Track *int32 noSmithyDocumentSerde } @@ -506,7 +506,7 @@ type AutomaticInputFailoverSettings struct { // of time. Enter a time in milliseconds. This value is particularly important if // the input_preference for the failover pair is set to PRIMARY_INPUT_PREFERRED, // because after this time, MediaLive will switch back to the primary input. - ErrorClearTimeMsec int32 + ErrorClearTimeMsec *int32 // A list of failover conditions. If any of these conditions occur, MediaLive will // perform a failover to the other input. @@ -690,7 +690,7 @@ type BurnInDestinationSettings struct { // Specifies the opacity of the background rectangle. 255 is opaque; 0 is // transparent. Leaving this parameter out is equivalent to setting it to 0 // (transparent). All burn-in and DVB-Sub font settings must match. - BackgroundOpacity int32 + BackgroundOpacity *int32 // External font file used for caption burn-in. File extension must be 'ttf' or // 'tte'. Although the user can select output fonts for many different types of @@ -707,11 +707,11 @@ type BurnInDestinationSettings struct { // Specifies the opacity of the burned-in captions. 255 is opaque; 0 is // transparent. All burn-in and DVB-Sub font settings must match. - FontOpacity int32 + FontOpacity *int32 // Font resolution in DPI (dots per inch); default is 96 dpi. All burn-in and // DVB-Sub font settings must match. - FontResolution int32 + FontResolution *int32 // When set to 'auto' fontSize will scale depending on the size of the output. // Giving a positive integer will specify the exact font size in points. All @@ -728,7 +728,7 @@ type BurnInDestinationSettings struct { // captions that are either 608/embedded or teletext. These source settings are // already pre-defined by the caption stream. All burn-in and DVB-Sub font settings // must match. - OutlineSize int32 + OutlineSize *int32 // Specifies the color of the shadow cast by the captions. All burn-in and DVB-Sub // font settings must match. @@ -737,17 +737,17 @@ type BurnInDestinationSettings struct { // Specifies the opacity of the shadow. 255 is opaque; 0 is transparent. Leaving // this parameter out is equivalent to setting it to 0 (transparent). All burn-in // and DVB-Sub font settings must match. - ShadowOpacity int32 + ShadowOpacity *int32 // Specifies the horizontal offset of the shadow relative to the captions in // pixels. A value of -2 would result in a shadow offset 2 pixels to the left. All // burn-in and DVB-Sub font settings must match. - ShadowXOffset int32 + ShadowXOffset *int32 // Specifies the vertical offset of the shadow relative to the captions in pixels. // A value of -2 would result in a shadow offset 2 pixels above the text. All // burn-in and DVB-Sub font settings must match. - ShadowYOffset int32 + ShadowYOffset *int32 // Controls whether a fixed grid size will be used to generate the output // subtitles bitmap. Only applicable for Teletext inputs and DVB-Sub/Burn-in @@ -759,14 +759,14 @@ type BurnInDestinationSettings struct { // pixels from the left of the output. If no explicit xPosition is provided, the // horizontal caption position will be determined by the alignment parameter. All // burn-in and DVB-Sub font settings must match. - XPosition int32 + XPosition *int32 // Specifies the vertical position of the caption relative to the top of the // output in pixels. A value of 10 would result in the captions starting 10 pixels // from the top of the output. If no explicit yPosition is provided, the caption // will be positioned towards the bottom of the output. All burn-in and DVB-Sub // font settings must match. - YPosition int32 + YPosition *int32 noSmithyDocumentSerde } @@ -857,7 +857,7 @@ type CaptionLanguageMapping struct { // channel mapping must have a unique channel number (maximum of 4) // // This member is required. - CaptionChannel int32 + CaptionChannel *int32 // Three character ISO 639-2 language code (see // http://www.loc.gov/standards/iso639-2) @@ -883,7 +883,7 @@ type CaptionRectangle struct { // tts:extent - Y in the TTML standard. // // This member is required. - Height float64 + Height *float64 // Applies only if you plan to convert these source captions to EBU-TT-D or TTML // in an output. (Make sure to leave the default if you don't have either of these @@ -900,7 +900,7 @@ type CaptionRectangle struct { // tts:origin - X in the TTML standard. // // This member is required. - LeftOffset float64 + LeftOffset *float64 // See the description in leftOffset. For topOffset, specify the position of the // top edge of the rectangle, as a percentage of the underlying frame height, and @@ -910,7 +910,7 @@ type CaptionRectangle struct { // Y in the TTML standard. // // This member is required. - TopOffset float64 + TopOffset *float64 // See the description in leftOffset. For width, specify the entire width of the // rectangle as a percentage of the underlying frame width. For example, "80" means @@ -919,7 +919,7 @@ type CaptionRectangle struct { // - X in the TTML standard. // // This member is required. - Width float64 + Width *float64 noSmithyDocumentSerde } @@ -1026,7 +1026,7 @@ type Channel struct { PipelineDetails []PipelineDetail // The number of currently healthy pipelines. - PipelinesRunningCount int32 + PipelinesRunningCount *int32 // The Amazon Resource Name (ARN) of the role assumed when running the Channel. RoleArn *string @@ -1092,7 +1092,7 @@ type ChannelSummary struct { Name *string // The number of currently healthy pipelines. - PipelinesRunningCount int32 + PipelinesRunningCount *int32 // The Amazon Resource Name (ARN) of the role assumed when running the Channel. RoleArn *string @@ -1125,7 +1125,7 @@ type DvbNitSettings struct { // The numeric value placed in the Network Information Table (NIT). // // This member is required. - NetworkId int32 + NetworkId *int32 // The network name text placed in the networkNameDescriptor inside the Network // Information Table. Maximum length is 256 characters. @@ -1135,7 +1135,7 @@ type DvbNitSettings struct { // The number of milliseconds between instances of this table in the output // transport stream. - RepInterval int32 + RepInterval *int32 noSmithyDocumentSerde } @@ -1154,7 +1154,7 @@ type DvbSdtSettings struct { // The number of milliseconds between instances of this table in the output // transport stream. - RepInterval int32 + RepInterval *int32 // The service name placed in the serviceDescriptor in the Service Description // Table. Maximum length is 256 characters. @@ -1189,7 +1189,7 @@ type DvbSubDestinationSettings struct { // Specifies the opacity of the background rectangle. 255 is opaque; 0 is // transparent. Leaving this parameter blank is equivalent to setting it to 0 // (transparent). All burn-in and DVB-Sub font settings must match. - BackgroundOpacity int32 + BackgroundOpacity *int32 // External font file used for caption burn-in. File extension must be 'ttf' or // 'tte'. Although the user can select output fonts for many different types of @@ -1206,11 +1206,11 @@ type DvbSubDestinationSettings struct { // Specifies the opacity of the burned-in captions. 255 is opaque; 0 is // transparent. All burn-in and DVB-Sub font settings must match. - FontOpacity int32 + FontOpacity *int32 // Font resolution in DPI (dots per inch); default is 96 dpi. All burn-in and // DVB-Sub font settings must match. - FontResolution int32 + FontResolution *int32 // When set to auto fontSize will scale depending on the size of the output. // Giving a positive integer will specify the exact font size in points. All @@ -1227,7 +1227,7 @@ type DvbSubDestinationSettings struct { // captions that are either 608/embedded or teletext. These source settings are // already pre-defined by the caption stream. All burn-in and DVB-Sub font settings // must match. - OutlineSize int32 + OutlineSize *int32 // Specifies the color of the shadow cast by the captions. All burn-in and DVB-Sub // font settings must match. @@ -1236,17 +1236,17 @@ type DvbSubDestinationSettings struct { // Specifies the opacity of the shadow. 255 is opaque; 0 is transparent. Leaving // this parameter blank is equivalent to setting it to 0 (transparent). All burn-in // and DVB-Sub font settings must match. - ShadowOpacity int32 + ShadowOpacity *int32 // Specifies the horizontal offset of the shadow relative to the captions in // pixels. A value of -2 would result in a shadow offset 2 pixels to the left. All // burn-in and DVB-Sub font settings must match. - ShadowXOffset int32 + ShadowXOffset *int32 // Specifies the vertical offset of the shadow relative to the captions in pixels. // A value of -2 would result in a shadow offset 2 pixels above the text. All // burn-in and DVB-Sub font settings must match. - ShadowYOffset int32 + ShadowYOffset *int32 // Controls whether a fixed grid size will be used to generate the output // subtitles bitmap. Only applicable for Teletext inputs and DVB-Sub/Burn-in @@ -1260,7 +1260,7 @@ type DvbSubDestinationSettings struct { // option is not valid for source captions that are STL, 608/embedded or teletext. // These source settings are already pre-defined by the caption stream. All burn-in // and DVB-Sub font settings must match. - XPosition int32 + XPosition *int32 // Specifies the vertical position of the caption relative to the top of the // output in pixels. A value of 10 would result in the captions starting 10 pixels @@ -1269,7 +1269,7 @@ type DvbSubDestinationSettings struct { // for source captions that are STL, 608/embedded or teletext. These source // settings are already pre-defined by the caption stream. All burn-in and DVB-Sub // font settings must match. - YPosition int32 + YPosition *int32 noSmithyDocumentSerde } @@ -1285,7 +1285,7 @@ type DvbSubSourceSettings struct { // When using DVB-Sub with Burn-In or SMPTE-TT, use this PID for the source // content. Unused for DVB-Sub passthrough. All DVB-Sub content is passed through, // regardless of selectors. - Pid int32 + Pid *int32 noSmithyDocumentSerde } @@ -1295,7 +1295,7 @@ type DvbTdtSettings struct { // The number of milliseconds between instances of this table in the output // transport stream. - RepInterval int32 + RepInterval *int32 noSmithyDocumentSerde } @@ -1305,13 +1305,13 @@ type Eac3AtmosSettings struct { // Average bitrate in bits/second. Valid bitrates depend on the coding mode. // * // @affectsRightSizing true - Bitrate float64 + Bitrate *float64 // Dolby Digital Plus with Dolby Atmos coding mode. Determines number of channels. CodingMode Eac3AtmosCodingMode // Sets the dialnorm for the output. Default 23. - Dialnorm int32 + Dialnorm *int32 // Sets the Dolby dynamic range compression profile. DrcLine Eac3AtmosDrcLine @@ -1323,12 +1323,12 @@ type Eac3AtmosSettings struct { // Height dimensional trim. Sets the maximum amount to attenuate the height // channels when the downstream player isn??t configured to handle Dolby Digital // Plus with Dolby Atmos and must remix the channels. - HeightTrim float64 + HeightTrim *float64 // Surround dimensional trim. Sets the maximum amount to attenuate the surround // channels when the downstream player isn't configured to handle Dolby Digital // Plus with Dolby Atmos and must remix the channels. - SurroundTrim float64 + SurroundTrim *float64 noSmithyDocumentSerde } @@ -1341,7 +1341,7 @@ type Eac3Settings struct { AttenuationControl Eac3AttenuationControl // Average bitrate in bits/second. Valid bitrates depend on the coding mode. - Bitrate float64 + Bitrate *float64 // Specifies the bitstream mode (bsmod) for the emitted E-AC-3 stream. See ATSC // A/52-2012 (Annex E) for background on these values. @@ -1355,7 +1355,7 @@ type Eac3Settings struct { // Sets the dialnorm for the output. If blank and input audio is Dolby Digital // Plus, dialnorm will be passed through. - Dialnorm int32 + Dialnorm *int32 // Sets the Dolby dynamic range compression profile. DrcLine Eac3DrcLine @@ -1372,16 +1372,16 @@ type Eac3Settings struct { LfeFilter Eac3LfeFilter // Left only/Right only center mix level. Only used for 3/2 coding mode. - LoRoCenterMixLevel float64 + LoRoCenterMixLevel *float64 // Left only/Right only surround mix level. Only used for 3/2 coding mode. - LoRoSurroundMixLevel float64 + LoRoSurroundMixLevel *float64 // Left total/Right total center mix level. Only used for 3/2 coding mode. - LtRtCenterMixLevel float64 + LtRtCenterMixLevel *float64 // Left total/Right total surround mix level. Only used for 3/2 coding mode. - LtRtSurroundMixLevel float64 + LtRtSurroundMixLevel *float64 // When set to followInput, encoder metadata will be sourced from the DD, DD+, or // DolbyE decoder that supplied this audio data. If audio was not supplied from one @@ -1476,10 +1476,10 @@ type EmbeddedSourceSettings struct { // Specifies the 608/708 channel number within the video track from which to // extract captions. Unused for passthrough. - Source608ChannelNumber int32 + Source608ChannelNumber *int32 // This field is unused and deprecated. - Source608TrackNumber int32 + Source608TrackNumber *int32 noSmithyDocumentSerde } @@ -1574,7 +1574,7 @@ type Esam struct { // When specified, this offset (in milliseconds) is added to the input Ad Avail // PTS time. This only applies to embedded SCTE 104/35 messages and does not apply // to OOB messages. - AdAvailOffset int32 + AdAvailOffset *int32 // Documentation update needed PasswordParam *string @@ -1635,7 +1635,7 @@ type FecOutputSettings struct { // Parameter D from SMPTE 2022-1. The height of the FEC protection matrix. The // number of transport stream packets per column error correction packet. Must be // between 4 and 20, inclusive. - ColumnDepth int32 + ColumnDepth *int32 // Enables column only or column and row based FEC IncludeFec FecOutputIncludeFec @@ -1646,7 +1646,7 @@ type FecOutputSettings struct { // stream packets per row error correction packet, and the value must be between 4 // and 20, inclusive, if includeFec is columnAndRow. If includeFec is column, this // value must be 1 to 20, inclusive. - RowLength int32 + RowLength *int32 noSmithyDocumentSerde } @@ -1761,7 +1761,7 @@ type FrameCaptureSettings struct { // The frequency at which to capture frames for inclusion in the output. May be // specified in either seconds or milliseconds, as specified by // captureIntervalUnits. - CaptureInterval int32 + CaptureInterval *int32 // Unit for the frame capture interval. CaptureIntervalUnits FrameCaptureIntervalUnit @@ -1776,7 +1776,7 @@ type FrameCaptureSettings struct { type GlobalConfiguration struct { // Value to set the initial audio gain for the Live Event. - InitialAudioGain int32 + InitialAudioGain *int32 // Indicates the action to take when the current input completes (e.g. // end-of-file). When switchAndLoopInputs is configured the encoder will restart at @@ -1858,13 +1858,13 @@ type H264Settings struct { // Average bitrate in bits/second. Required when the rate control mode is VBR or // CBR. Not used for QVBR. In an MS Smooth output group, each output must have a // unique value when its bitrate is rounded down to the nearest multiple of 1000. - Bitrate int32 + Bitrate *int32 // Percentage of the buffer that should initially be filled (HRD buffer model). - BufFillPct int32 + BufFillPct *int32 // Size of buffer (HRD buffer model) in bits. - BufSize int32 + BufSize *int32 // Includes colorspace metadata in the output. ColorMetadata H264ColorMetadata @@ -1911,10 +1911,10 @@ type H264Settings struct { FramerateControl H264FramerateControl // Framerate denominator. - FramerateDenominator int32 + FramerateDenominator *int32 // Framerate numerator - framerate is a fraction, e.g. 24000 / 1001 = 23.976 fps. - FramerateNumerator int32 + FramerateNumerator *int32 // Documentation update needed GopBReference H264GopBReference @@ -1922,16 +1922,16 @@ type H264Settings struct { // Frequency of closed GOPs. In streaming applications, it is recommended that // this be set to 1 so a decoder joining mid-stream will receive an IDR frame as // quickly as possible. Setting this value to 0 will break output segmenting. - GopClosedCadence int32 + GopClosedCadence *int32 // Number of B-frames between reference frames. - GopNumBFrames int32 + GopNumBFrames *int32 // GOP size (keyframe interval) in units of either frames or seconds per // gopSizeUnits. If gopSizeUnits is frames, gopSize must be an integer and must be // greater than or equal to 1. If gopSizeUnits is seconds, gopSize must be greater // than 0, but need not be an integer. - GopSize float64 + GopSize *float64 // Indicates if the gopSize is specified in frames or seconds. If seconds the // system will convert the gopSize into a frame count at run time. @@ -1946,7 +1946,7 @@ type H264Settings struct { // For QVBR: See the tooltip for Quality level For VBR: Set the maximum bitrate in // order to accommodate expected spikes in the complexity of the video. - MaxBitrate int32 + MaxBitrate *int32 // Only meaningful if sceneChangeDetect is set to enabled. Defaults to 5 if // multiplex rate control is used. Enforces separation between repeated (cadence) @@ -1955,11 +1955,11 @@ type H264Settings struct { // and/or stretched to the scene change I-frame. GOP stretch requires enabling // lookahead as well as setting I-interval. The normal cadence resumes for the next // GOP. Note: Maximum GOP stretch = GOP size + Min-I-interval - 1 - MinIInterval int32 + MinIInterval *int32 // Number of reference frames to use. The encoder may use more than requested if // using B-frames and/or interlaced encoding. - NumRefFrames int32 + NumRefFrames *int32 // This field indicates how the output pixel aspect ratio is specified. If // "specified" is selected then the output video pixel aspect ratio is determined @@ -1969,10 +1969,10 @@ type H264Settings struct { ParControl H264ParControl // Pixel Aspect Ratio denominator. - ParDenominator int32 + ParDenominator *int32 // Pixel Aspect Ratio numerator. - ParNumerator int32 + ParNumerator *int32 // H.264 Profile. Profile H264Profile @@ -1997,7 +1997,7 @@ type H264Settings struct { // decide, leave the QVBR quality level field empty, and in Max bitrate enter the // maximum rate you want in the video. For more information, see the section called // "Video - rate control mode" in the MediaLive user guide - QvbrQualityLevel int32 + QvbrQualityLevel *int32 // Rate control mode. QVBR: Quality will match the specified quality level except // when it is constrained by the maximum bitrate. Recommended if you or your @@ -2024,11 +2024,11 @@ type H264Settings struct { // number of macroblock rows for interlaced pictures. This field is optional; when // no value is specified the encoder will choose the number of slices based on // encode resolution. - Slices int32 + Slices *int32 // Softness. Selects quantizer matrix, larger values reduce high-frequency content // in the encoded image. If not set to zero, must be greater than 15. - Softness int32 + Softness *int32 // Spatial AQ makes adjustments within each frame based on spatial variation of // content complexity. The value to enter in this field depends on the value in the @@ -2109,12 +2109,12 @@ type H265Settings struct { // Framerate denominator. // // This member is required. - FramerateDenominator int32 + FramerateDenominator *int32 // Framerate numerator - framerate is a fraction, e.g. 24000 / 1001 = 23.976 fps. // // This member is required. - FramerateNumerator int32 + FramerateNumerator *int32 // Adaptive quantization. Allows intra-frame quantizers to vary to improve visual // quality. @@ -2133,10 +2133,10 @@ type H265Settings struct { // Average bitrate in bits/second. Required when the rate control mode is VBR or // CBR. Not used for QVBR. In an MS Smooth output group, each output must have a // unique value when its bitrate is rounded down to the nearest multiple of 1000. - Bitrate int32 + Bitrate *int32 // Size of buffer (HRD buffer model) in bits. - BufSize int32 + BufSize *int32 // Includes colorspace metadata in the output. ColorMetadata H265ColorMetadata @@ -2158,13 +2158,13 @@ type H265Settings struct { // Frequency of closed GOPs. In streaming applications, it is recommended that // this be set to 1 so a decoder joining mid-stream will receive an IDR frame as // quickly as possible. Setting this value to 0 will break output segmenting. - GopClosedCadence int32 + GopClosedCadence *int32 // GOP size (keyframe interval) in units of either frames or seconds per // gopSizeUnits. If gopSizeUnits is frames, gopSize must be an integer and must be // greater than or equal to 1. If gopSizeUnits is seconds, gopSize must be greater // than 0, but need not be an integer. - GopSize float64 + GopSize *float64 // Indicates if the gopSize is specified in frames or seconds. If seconds the // system will convert the gopSize into a frame count at run time. @@ -2178,7 +2178,7 @@ type H265Settings struct { LookAheadRateControl H265LookAheadRateControl // For QVBR: See the tooltip for Quality level - MaxBitrate int32 + MaxBitrate *int32 // Only meaningful if sceneChangeDetect is set to enabled. Defaults to 5 if // multiplex rate control is used. Enforces separation between repeated (cadence) @@ -2187,13 +2187,13 @@ type H265Settings struct { // and/or stretched to the scene change I-frame. GOP stretch requires enabling // lookahead as well as setting I-interval. The normal cadence resumes for the next // GOP. Note: Maximum GOP stretch = GOP size + Min-I-interval - 1 - MinIInterval int32 + MinIInterval *int32 // Pixel Aspect Ratio denominator. - ParDenominator int32 + ParDenominator *int32 // Pixel Aspect Ratio numerator. - ParNumerator int32 + ParNumerator *int32 // H.265 Profile. Profile H265Profile @@ -2205,7 +2205,7 @@ type H265Settings struct { // - Primary screen: Quality level: 8 to 10. Max bitrate: 4M // - PC or tablet: Quality level: 7. Max bitrate: 1.5M to 3M // - Smartphone: Quality level: 6. Max bitrate: 1M to 1.5M - QvbrQualityLevel int32 + QvbrQualityLevel *int32 // Rate control mode. QVBR: Quality will match the specified quality level except // when it is constrained by the maximum bitrate. Recommended if you or your @@ -2228,7 +2228,7 @@ type H265Settings struct { // number of macroblock rows for interlaced pictures. This field is optional; when // no value is specified the encoder will choose the number of slices based on // encode resolution. - Slices int32 + Slices *int32 // H.265 Tier. Tier H265Tier @@ -2251,12 +2251,12 @@ type Hdr10Settings struct { // Maximum Content Light Level An integer metadata value defining the maximum // light level, in nits, of any single pixel within an encoded HDR video stream or // file. - MaxCll int32 + MaxCll *int32 // Maximum Frame Average Light Level An integer metadata value defining the // maximum average light level, in nits, for any single frame within an encoded HDR // video stream or file. - MaxFall int32 + MaxFall *int32 noSmithyDocumentSerde } @@ -2266,10 +2266,10 @@ type HlsAkamaiSettings struct { // Number of seconds to wait before retrying connection to the CDN if the // connection is lost. - ConnectionRetryInterval int32 + ConnectionRetryInterval *int32 // Size in seconds of file cache for streaming outputs. - FilecacheDuration int32 + FilecacheDuration *int32 // Specify whether or not to use chunked transfer encoding to Akamai. User should // contact Akamai to enable this feature. @@ -2278,11 +2278,11 @@ type HlsAkamaiSettings struct { // Number of retry attempts that will be made before the Live Event is put into an // error state. Applies only if the CDN destination URI begins with "s3" or // "mediastore". For other URIs, the value is always 3. - NumRetries int32 + NumRetries *int32 // If a streaming output fails, number of seconds to wait until a restart is // initiated. A value of 0 means never restart. - RestartDelay int32 + RestartDelay *int32 // Salt for authenticated Akamai. Salt *string @@ -2298,19 +2298,19 @@ type HlsBasicPutSettings struct { // Number of seconds to wait before retrying connection to the CDN if the // connection is lost. - ConnectionRetryInterval int32 + ConnectionRetryInterval *int32 // Size in seconds of file cache for streaming outputs. - FilecacheDuration int32 + FilecacheDuration *int32 // Number of retry attempts that will be made before the Live Event is put into an // error state. Applies only if the CDN destination URI begins with "s3" or // "mediastore". For other URIs, the value is always 3. - NumRetries int32 + NumRetries *int32 // If a streaming output fails, number of seconds to wait until a restart is // initiated. A value of 0 means never restart. - RestartDelay int32 + RestartDelay *int32 noSmithyDocumentSerde } @@ -2441,7 +2441,7 @@ type HlsGroupSettings struct { // the media manifest file. After this maximum, older segments are removed from the // media manifest. This number must be smaller than the number in the Keep Segments // field. - IndexNSegments int32 + IndexNSegments *int32 // Parameter that control output group behavior on input loss. InputLossAction InputLossActionForHlsOut @@ -2465,7 +2465,7 @@ type HlsGroupSettings struct { // player is still reading a media manifest file that lists this segment, but that // segment has been removed from the destination directory (as directed by // indexNSegments). This situation would result in a 404 HTTP error on the player. - KeepSegments int32 + KeepSegments *int32 // The value specifies how the key is represented in the resource identified by // the URI. If parameter is absent, an implicit value of "identity" is used. A @@ -2489,7 +2489,7 @@ type HlsGroupSettings struct { // Minimum length of MPEG-2 Transport Stream segments in seconds. When set, // minimum segment length is enforced by looking ahead and back within the // specified range for a nearby avail and extending the segment size if needed. - MinSegmentLength int32 + MinSegmentLength *int32 // If "vod", all segments are indexed and kept permanently in the destination and // manifest. If "live", only the number segments specified in keepSegments and @@ -2519,7 +2519,7 @@ type HlsGroupSettings struct { ProgramDateTimeClock HlsProgramDateTimeClock // Period of insertion of EXT-X-PROGRAM-DATE-TIME entry, in seconds. - ProgramDateTimePeriod int32 + ProgramDateTimePeriod *int32 // ENABLED: The master manifest (.m3u8 file) for each pipeline includes // information about both pipelines: first its own media files, then the media @@ -2537,7 +2537,7 @@ type HlsGroupSettings struct { // Length of MPEG-2 Transport Stream segments to create in seconds. Note that // segments will end on the next keyframe after this duration, so actual segment // length may be longer. - SegmentLength int32 + SegmentLength *int32 // useInputSegmentation has been deprecated. The configured segment size is always // used. @@ -2546,7 +2546,7 @@ type HlsGroupSettings struct { // Number of segments to write to a subdirectory before starting a new one. // directoryStructure must be subdirectoryPerStream for this setting to have an // effect. - SegmentsPerSubdirectory int32 + SegmentsPerSubdirectory *int32 // Include or exclude RESOLUTION attribute for video in EXT-X-STREAM-INF tag of // variant manifest. @@ -2556,10 +2556,10 @@ type HlsGroupSettings struct { TimedMetadataId3Frame HlsTimedMetadataId3Frame // Timed Metadata interval in seconds. - TimedMetadataId3Period int32 + TimedMetadataId3Period *int32 // Provides an extra millisecond delta offset to fine tune the timestamps. - TimestampDeltaMilliseconds int32 + TimestampDeltaMilliseconds *int32 // SEGMENTED_FILES: Emit the program as segments - multiple .ts media files. // SINGLE_FILE: Applies only if Mode field is VOD. Emit the program as a single .ts @@ -2594,20 +2594,20 @@ type HlsInputSettings struct { // this value will be chosen, otherwise the highest bandwidth stream in the m3u8 // will be chosen. The bitrate is specified in bits per second, as in an HLS // manifest. - Bandwidth int32 + Bandwidth *int32 // When specified, reading of the HLS input will begin this many buffer segments // from the end (most recently written segment). When not specified, the HLS input // will begin with the first segment specified in the m3u8. - BufferSegments int32 + BufferSegments *int32 // The number of consecutive times that attempts to read a manifest or segment // must fail before the input is considered unavailable. - Retries int32 + Retries *int32 // The number of seconds between retries when an attempt to read a manifest or // segment fails. - RetryInterval int32 + RetryInterval *int32 // Identifies the source for the SCTE-35 messages that MediaLive will ingest. // Messages can be ingested from the content segments (in the stream) or from tags @@ -2623,10 +2623,10 @@ type HlsMediaStoreSettings struct { // Number of seconds to wait before retrying connection to the CDN if the // connection is lost. - ConnectionRetryInterval int32 + ConnectionRetryInterval *int32 // Size in seconds of file cache for streaming outputs. - FilecacheDuration int32 + FilecacheDuration *int32 // When set to temporal, output files are stored in non-persistent memory for // faster reading and writing. @@ -2635,11 +2635,11 @@ type HlsMediaStoreSettings struct { // Number of retry attempts that will be made before the Live Event is put into an // error state. Applies only if the CDN destination URI begins with "s3" or // "mediastore". For other URIs, the value is always 3. - NumRetries int32 + NumRetries *int32 // If a streaming output fails, number of seconds to wait until a restart is // initiated. A value of 0 means never restart. - RestartDelay int32 + RestartDelay *int32 noSmithyDocumentSerde } @@ -2711,10 +2711,10 @@ type HlsWebdavSettings struct { // Number of seconds to wait before retrying connection to the CDN if the // connection is lost. - ConnectionRetryInterval int32 + ConnectionRetryInterval *int32 // Size in seconds of file cache for streaming outputs. - FilecacheDuration int32 + FilecacheDuration *int32 // Specify whether or not to use chunked transfer encoding to WebDAV. HttpTransferMode HlsWebdavHttpTransferMode @@ -2722,11 +2722,11 @@ type HlsWebdavSettings struct { // Number of retry attempts that will be made before the Live Event is put into an // error state. Applies only if the CDN destination URI begins with "s3" or // "mediastore". For other URIs, the value is always 3. - NumRetries int32 + NumRetries *int32 // If a streaming output fails, number of seconds to wait until a restart is // initiated. A value of 0 means never restart. - RestartDelay int32 + RestartDelay *int32 noSmithyDocumentSerde } @@ -2832,12 +2832,12 @@ type InputChannelLevel struct { // -60 (mute) and 6 dB. // // This member is required. - Gain int32 + Gain *int32 // The index of the input channel used as a source. // // This member is required. - InputChannel int32 + InputChannel *int32 noSmithyDocumentSerde } @@ -2914,11 +2914,11 @@ type InputDeviceConfigurableSettings struct { ConfiguredInput InputDeviceConfiguredInput // The Link device's buffer size (latency) in milliseconds (ms). - LatencyMs int32 + LatencyMs *int32 // The maximum bitrate in bits per second. Set a value here to throttle the // bitrate of the source video. - MaxBitrate int32 + MaxBitrate *int32 // To attach this device to a MediaConnect flow, specify these parameters. To // detach an existing flow, enter {} for the value of mediaconnectSettings. Only @@ -2944,24 +2944,24 @@ type InputDeviceHdSettings struct { DeviceState InputDeviceState // The frame rate of the video source. - Framerate float64 + Framerate *float64 // The height of the video source, in pixels. - Height int32 + Height *int32 // The Link device's buffer size (latency) in milliseconds (ms). You can specify // this value. - LatencyMs int32 + LatencyMs *int32 // The current maximum bitrate for ingesting this source, in bits per second. You // can specify this maximum. - MaxBitrate int32 + MaxBitrate *int32 // The scan type of the video source. ScanType InputDeviceScanType // The width of the video source, in pixels. - Width int32 + Width *int32 noSmithyDocumentSerde } @@ -3126,18 +3126,18 @@ type InputDeviceUhdSettings struct { DeviceState InputDeviceState // The frame rate of the video source. - Framerate float64 + Framerate *float64 // The height of the video source, in pixels. - Height int32 + Height *int32 // The Link device's buffer size (latency) in milliseconds (ms). You can specify // this value. - LatencyMs int32 + LatencyMs *int32 // The current maximum bitrate for ingesting this source, in bits per second. You // can specify this maximum. - MaxBitrate int32 + MaxBitrate *int32 // Information about the MediaConnect flow attached to the device. Returned only // if the outputType is MEDIACONNECT_FLOW. @@ -3147,7 +3147,7 @@ type InputDeviceUhdSettings struct { ScanType InputDeviceScanType // The width of the video source, in pixels. - Width int32 + Width *int32 noSmithyDocumentSerde } @@ -3175,7 +3175,7 @@ type InputLocation struct { type InputLossBehavior struct { // Documentation update needed - BlackFrameMsec int32 + BlackFrameMsec *int32 // When input loss image type is "color" this field specifies the color to use. // Value: 6 hex characters representing the values of RGB. @@ -3190,7 +3190,7 @@ type InputLossBehavior struct { InputLossImageType InputLossImageType // Documentation update needed - RepeatFrameMsec int32 + RepeatFrameMsec *int32 noSmithyDocumentSerde } @@ -3201,7 +3201,7 @@ type InputLossFailoverSettings struct { // The amount of time (in milliseconds) that no input is detected. After that // time, an input failover will occur. - InputLossThresholdMsec int32 + InputLossThresholdMsec *int32 noSmithyDocumentSerde } @@ -3269,7 +3269,7 @@ type InputSettings struct { DenoiseFilter InputDenoiseFilter // Adjusts the magnitude of filtering from 1 (minimal) to 5 (strongest). - FilterStrength int32 + FilterStrength *int32 // Turns on the filter for this input. MPEG-2 inputs have the deblocking filter // enabled by default. @@ -3283,7 +3283,7 @@ type InputSettings struct { // PID from which to read SCTE-35 messages. If left undefined, EML will select the // first SCTE-35 PID found in the input. - Scte35Pid int32 + Scte35Pid *int32 // Specifies whether to extract applicable ancillary data from a SMPTE-2038 source // in this input. Applicable data types are captions, timecode, AFD, and SCTE-104 @@ -3448,7 +3448,7 @@ type M2tsSettings struct { AudioBufferModel M2tsAudioBufferModel // The number of audio frames to insert for each PES packet. - AudioFramesPerPes int32 + AudioFramesPerPes *int32 // Packet Identifier (PID) of the elementary audio stream(s) in the transport // stream. Multiple values are accepted, and can be entered in ranges and/or by @@ -3462,7 +3462,7 @@ type M2tsSettings struct { // The output bitrate of the transport stream in bits per second. Setting to 0 // lets the muxer automatically determine the appropriate bitrate. - Bitrate int32 + Bitrate *int32 // Controls the timing accuracy for output network traffic. Leave as MULTIPLEX to // ensure accurate network packet timing. Or set to NONE, which might result in @@ -3515,7 +3515,7 @@ type M2tsSettings struct { // lookahead value does not add latency to the system. The Live Event must be // configured elsewhere to create sufficient latency to make the lookahead // accurate. - EbpLookaheadMs int32 + EbpLookaheadMs *int32 // Controls placement of EBP on Audio PIDs. If set to videoAndAudioPids, EBP // markers will be placed on the video PID and all audio PIDs. If set to videoPid, @@ -3539,7 +3539,7 @@ type M2tsSettings struct { EtvSignalPid *string // The length in seconds of each fragment. Only used with EBP markers. - FragmentTime float64 + FragmentTime *float64 // If set to passthrough, passes any KLV data from the input source to this output. Klv M2tsKlv @@ -3558,11 +3558,11 @@ type M2tsSettings struct { // Value in bits per second of extra null packets to insert into the transport // stream. This can be used if a downstream encryption system requires periodic // null packets. - NullPacketBitrate float64 + NullPacketBitrate *float64 // The number of milliseconds between instances of this table in the output // transport stream. Valid values are 0, 10..1000. - PatInterval int32 + PatInterval *int32 // When set to pcrEveryPesPacket, a Program Clock Reference value is inserted for // every Packetized Elementary Stream (PES) header. This parameter is effective @@ -3571,7 +3571,7 @@ type M2tsSettings struct { // Maximum time in milliseconds between Program Clock Reference (PCRs) inserted // into the transport stream. - PcrPeriod int32 + PcrPeriod *int32 // Packet Identifier (PID) of the Program Clock Reference (PCR) in the transport // stream. When no value is given, the encoder will assign the same value as the @@ -3581,7 +3581,7 @@ type M2tsSettings struct { // The number of milliseconds between instances of this table in the output // transport stream. Valid values are 0, 10..1000. - PmtInterval int32 + PmtInterval *int32 // Packet Identifier (PID) for the Program Map Table (PMT) in the transport // stream. Can be entered as a decimal or hexadecimal value. Valid values are 32 @@ -3589,7 +3589,7 @@ type M2tsSettings struct { PmtPid *string // The value of the program number field in the Program Map Table. - ProgramNum int32 + ProgramNum *int32 // When vbr, does not insert null packets into transport stream to fill specified // bitrate. The bitrate setting acts as the maximum bitrate when vbr is set. @@ -3615,7 +3615,7 @@ type M2tsSettings struct { // Zero means don't add pullup (it doesn't mean set the preroll to zero). Negative // pullup is not supported, which means that you can't make the preroll shorter. Be // aware that latency in the output will increase by the pullup amount. - Scte35PrerollPullupMilliseconds float64 + Scte35PrerollPullupMilliseconds *float64 // Inserts segmentation markers at each segmentationTime period. raiSegstart sets // the Random Access Indicator bit in the adaptation field. raiAdapt sets the RAI @@ -3640,7 +3640,7 @@ type M2tsSettings struct { SegmentationStyle M2tsSegmentationStyle // The length in seconds of each segment. Required unless markers is set to none. - SegmentationTime float64 + SegmentationTime *float64 // When set to passthrough, timed metadata will be passed through from input to // output. @@ -3652,7 +3652,7 @@ type M2tsSettings struct { TimedMetadataPid *string // The value of the transport stream ID field in the Program Map Table. - TransportStreamId int32 + TransportStreamId *int32 // Packet Identifier (PID) of the elementary video stream in the transport stream. // Can be entered as a decimal or hexadecimal value. Valid values are 32 (or @@ -3666,7 +3666,7 @@ type M2tsSettings struct { type M3u8Settings struct { // The number of audio frames to insert for each PES packet. - AudioFramesPerPes int32 + AudioFramesPerPes *int32 // Packet Identifier (PID) of the elementary audio stream(s) in the transport // stream. Multiple values are accepted, and can be entered in ranges and/or by @@ -3692,7 +3692,7 @@ type M3u8Settings struct { // The number of milliseconds between instances of this table in the output // transport stream. A value of "0" writes out the PMT once per segment file. - PatInterval int32 + PatInterval *int32 // When set to pcrEveryPesPacket, a Program Clock Reference value is inserted for // every Packetized Elementary Stream (PES) header. This parameter is effective @@ -3701,7 +3701,7 @@ type M3u8Settings struct { // Maximum time in milliseconds between Program Clock References (PCRs) inserted // into the transport stream. - PcrPeriod int32 + PcrPeriod *int32 // Packet Identifier (PID) of the Program Clock Reference (PCR) in the transport // stream. When no value is given, the encoder will assign the same value as the @@ -3710,14 +3710,14 @@ type M3u8Settings struct { // The number of milliseconds between instances of this table in the output // transport stream. A value of "0" writes out the PMT once per segment file. - PmtInterval int32 + PmtInterval *int32 // Packet Identifier (PID) for the Program Map Table (PMT) in the transport // stream. Can be entered as a decimal or hexadecimal value. PmtPid *string // The value of the program number field in the Program Map Table. - ProgramNum int32 + ProgramNum *int32 // If set to passthrough, passes any SCTE-35 signals from the input source to this // output. @@ -3736,7 +3736,7 @@ type M3u8Settings struct { TimedMetadataPid *string // The value of the transport stream ID field in the Program Map Table. - TransportStreamId int32 + TransportStreamId *int32 // Packet Identifier (PID) of the elementary video stream in the transport stream. // Can be entered as a decimal or hexadecimal value. @@ -3848,7 +3848,7 @@ type MotionGraphicsActivateScheduleActionSettings struct { // Duration (in milliseconds) that motion graphics should render on to the video // stream. Leaving out this property or setting to 0 will result in rendering // continuing until a deactivate action is processed. - Duration int64 + Duration *int64 // Key used to extract the password from EC2 Parameter store PasswordParam *string @@ -3895,14 +3895,14 @@ type MotionGraphicsSettings struct { type Mp2Settings struct { // Average bitrate in bits/second. - Bitrate float64 + Bitrate *float64 // The MPEG2 Audio coding mode. Valid values are codingMode10 (for mono) or // codingMode20 (for stereo). CodingMode Mp2CodingMode // Sample rate in Hz. - SampleRate float64 + SampleRate *float64 noSmithyDocumentSerde } @@ -3924,13 +3924,13 @@ type Mpeg2Settings struct { // FPS. // // This member is required. - FramerateDenominator int32 + FramerateDenominator *int32 // The framerate numerator. For example, 24000. The framerate is the numerator // divided by the denominator. For example, 24000 / 1001 = 23.976 FPS. // // This member is required. - FramerateNumerator int32 + FramerateNumerator *int32 // Choose Off to disable adaptive quantization. Or choose another value to enable // the quantizer and set its strength. The strengths are: Auto, Off, Low, Medium, @@ -3977,18 +3977,18 @@ type Mpeg2Settings struct { FixedAfd FixedAfd // MPEG2: default is open GOP. - GopClosedCadence int32 + GopClosedCadence *int32 // Relates to the GOP structure. The number of B-frames between reference frames. // If you do not know what a B-frame is, use the default. - GopNumBFrames int32 + GopNumBFrames *int32 // Relates to the GOP structure. The GOP size (keyframe interval) in the units // specified in gopSizeUnits. If you do not know what GOP is, use the default. If // gopSizeUnits is frames, then the gopSize must be an integer and must be greater // than or equal to 1. If gopSizeUnits is seconds, the gopSize must be greater than // 0, but does not need to be an integer. - GopSize float64 + GopSize *float64 // Relates to the GOP structure. Specifies whether the gopSize is specified in // frames or seconds. If you do not plan to change the default gopSize, leave the @@ -4044,7 +4044,7 @@ type MsSmoothGroupSettings struct { // Number of seconds to wait before retrying connection to the IIS server if the // connection is lost. Content will be cached during this time and the cache will // be be delivered to the IIS server once the connection is re-established. - ConnectionRetryInterval int32 + ConnectionRetryInterval *int32 // MS Smooth event ID to be sent to the IIS server. Should only be specified if // eventIdMode is set to useConfigured. @@ -4063,28 +4063,28 @@ type MsSmoothGroupSettings struct { EventStopBehavior SmoothGroupEventStopBehavior // Size in seconds of file cache for streaming outputs. - FilecacheDuration int32 + FilecacheDuration *int32 // Length of mp4 fragments to generate (in seconds). Fragment length must be // compatible with GOP size and framerate. - FragmentLength int32 + FragmentLength *int32 // Parameter that control output group behavior on input loss. InputLossAction InputLossActionForMsSmoothOut // Number of retry attempts. - NumRetries int32 + NumRetries *int32 // Number of seconds before initiating a restart due to output failure, due to // exhausting the numRetries on one segment, or exceeding filecacheDuration. - RestartDelay int32 + RestartDelay *int32 // useInputSegmentation has been deprecated. The configured segment size is always // used. SegmentationMode SmoothGroupSegmentationMode // Number of milliseconds to delay the output from the second pipeline. - SendDelayMs int32 + SendDelayMs *int32 // Identifies the type of data to place in the sparse track: // - SCTE35: Insert SCTE-35 messages from the source content. With each message, @@ -4146,10 +4146,10 @@ type Multiplex struct { Name *string // The number of currently healthy pipelines. - PipelinesRunningCount int32 + PipelinesRunningCount *int32 // The number of programs in the multiplex. - ProgramCount int32 + ProgramCount *int32 // The current state of the multiplex. State MultiplexState @@ -4245,37 +4245,37 @@ type MultiplexProgramPacketIdentifiersMap struct { DvbSubPids []int32 // Placeholder documentation for __integer - DvbTeletextPid int32 + DvbTeletextPid *int32 // Placeholder documentation for __integer - EtvPlatformPid int32 + EtvPlatformPid *int32 // Placeholder documentation for __integer - EtvSignalPid int32 + EtvSignalPid *int32 // Placeholder documentation for __listOf__integer KlvDataPids []int32 // Placeholder documentation for __integer - PcrPid int32 + PcrPid *int32 // Placeholder documentation for __integer - PmtPid int32 + PmtPid *int32 // Placeholder documentation for __integer - PrivateMetadataPid int32 + PrivateMetadataPid *int32 // Placeholder documentation for __listOf__integer Scte27Pids []int32 // Placeholder documentation for __integer - Scte35Pid int32 + Scte35Pid *int32 // Placeholder documentation for __integer - TimedMetadataPid int32 + TimedMetadataPid *int32 // Placeholder documentation for __integer - VideoPid int32 + VideoPid *int32 noSmithyDocumentSerde } @@ -4315,7 +4315,7 @@ type MultiplexProgramSettings struct { // Unique program number. // // This member is required. - ProgramNumber int32 + ProgramNumber *int32 // Indicates which pipeline is preferred by the multiplex for program ingest. PreferredChannelPipeline PreferredChannelPipeline @@ -4347,18 +4347,18 @@ type MultiplexSettings struct { // Transport stream bit rate. // // This member is required. - TransportStreamBitrate int32 + TransportStreamBitrate *int32 // Transport stream ID. // // This member is required. - TransportStreamId int32 + TransportStreamId *int32 // Maximum video buffer delay in milliseconds. - MaximumVideoBufferDelayMilliseconds int32 + MaximumVideoBufferDelayMilliseconds *int32 // Transport stream reserved bit rate. - TransportStreamReservedBitrate int32 + TransportStreamReservedBitrate *int32 noSmithyDocumentSerde } @@ -4367,7 +4367,7 @@ type MultiplexSettings struct { type MultiplexSettingsSummary struct { // Transport stream bit rate. - TransportStreamBitrate int32 + TransportStreamBitrate *int32 noSmithyDocumentSerde } @@ -4376,17 +4376,17 @@ type MultiplexSettingsSummary struct { type MultiplexStatmuxVideoSettings struct { // Maximum statmux bitrate. - MaximumBitrate int32 + MaximumBitrate *int32 // Minimum statmux bitrate. - MinimumBitrate int32 + MinimumBitrate *int32 // The purpose of the priority is to use a combination of the\nmultiplex rate // control algorithm and the QVBR capability of the\nencoder to prioritize the // video quality of some channels in a\nmultiplex over others. Channels that have a // higher priority will\nget higher video quality at the expense of the video // quality of\nother channels in the multiplex with lower priority. - Priority int32 + Priority *int32 noSmithyDocumentSerde } @@ -4410,10 +4410,10 @@ type MultiplexSummary struct { Name *string // The number of currently healthy pipelines. - PipelinesRunningCount int32 + PipelinesRunningCount *int32 // The number of programs in the multiplex. - ProgramCount int32 + ProgramCount *int32 // The current state of the multiplex. State MultiplexState @@ -4429,7 +4429,7 @@ type MultiplexVideoSettings struct { // The constant bitrate configuration for the video encode. When this field is // defined, StatmuxSettings must be undefined. - ConstantBitrate int32 + ConstantBitrate *int32 // Statmux rate control settings. When this field is defined, ConstantBitrate must // be undefined. @@ -4501,7 +4501,7 @@ type NielsenNaesIiNw struct { // Enter the Nielsen Source ID (SID) to include in the watermark // // This member is required. - Sid float64 + Sid *float64 // Choose the timezone for the time stamps in the watermark. If not provided, the // timestamps will be in Coordinated Universal Time (UTC) @@ -4539,13 +4539,13 @@ type Offering struct { CurrencyCode *string // Lease duration, e.g. '12' - Duration int32 + Duration *int32 // Units for duration, e.g. 'MONTHS' DurationUnits OfferingDurationUnits // One-time charge for each reserved resource, e.g. '0.0' for a NO_UPFRONT offering - FixedPrice float64 + FixedPrice *float64 // Offering description, e.g. 'HD AVC output at 10-20 Mbps, 30 fps, and standard // VQ in US West (Oregon)' @@ -4564,7 +4564,7 @@ type Offering struct { ResourceSpecification *ReservationResourceSpecification // Recurring usage charge for each reserved resource, e.g. '157.0' - UsagePrice float64 + UsagePrice *float64 noSmithyDocumentSerde } @@ -4809,10 +4809,10 @@ type RemixSettings struct { ChannelMappings []AudioChannelMapping // Number of input channels to be used. - ChannelsIn int32 + ChannelsIn *int32 // Number of output channels to be produced. Valid values: 1, 2, 4, 6, 8 - ChannelsOut int32 + ChannelsOut *int32 noSmithyDocumentSerde } @@ -4824,7 +4824,7 @@ type RenewalSettings struct { AutomaticRenewal ReservationAutomaticRenewal // Count for the reservation renewal - RenewalCount int32 + RenewalCount *int32 noSmithyDocumentSerde } @@ -4837,13 +4837,13 @@ type Reservation struct { Arn *string // Number of reserved resources - Count int32 + Count *int32 // Currency code for usagePrice and fixedPrice in ISO-4217 format, e.g. 'USD' CurrencyCode *string // Lease duration, e.g. '12' - Duration int32 + Duration *int32 // Units for duration, e.g. 'MONTHS' DurationUnits OfferingDurationUnits @@ -4852,7 +4852,7 @@ type Reservation struct { End *string // One-time charge for each reserved resource, e.g. '0.0' for a NO_UPFRONT offering - FixedPrice float64 + FixedPrice *float64 // User specified reservation name Name *string @@ -4890,7 +4890,7 @@ type Reservation struct { Tags map[string]string // Recurring usage charge for each reserved resource, e.g. '157.0' - UsagePrice float64 + UsagePrice *float64 noSmithyDocumentSerde } @@ -4951,7 +4951,7 @@ type RtmpGroupSettings struct { CacheFullBehavior RtmpCacheFullBehavior // Cache length, in seconds, is used to calculate buffer size. - CacheLength int32 + CacheLength *int32 // Controls the types of data that passes to onCaptionInfo outputs. If set to // 'all' then 608 and 708 carried DTVCC data will be passed. If set to @@ -4975,7 +4975,7 @@ type RtmpGroupSettings struct { // If a streaming output fails, number of seconds to wait until a restart is // initiated. A value of 0 means never restart. - RestartDelay int32 + RestartDelay *int32 noSmithyDocumentSerde } @@ -4997,10 +4997,10 @@ type RtmpOutputSettings struct { // Number of seconds to wait before retrying a connection to the Flash Media // server if the connection is lost. - ConnectionRetryInterval int32 + ConnectionRetryInterval *int32 // Number of retry attempts. - NumRetries int32 + NumRetries *int32 noSmithyDocumentSerde } @@ -5106,7 +5106,7 @@ type Scte20SourceSettings struct { // Specifies the 608/708 channel number within the video track from which to // extract captions. Unused for passthrough. - Source608ChannelNumber int32 + Source608ChannelNumber *int32 noSmithyDocumentSerde } @@ -5133,7 +5133,7 @@ type Scte27SourceSettings struct { // PID that happens to be. // - Omit PID and omit Language: Valid only if source is DVB-Sub that is being // passed through; all languages will be passed through. - Pid int32 + Pid *int32 noSmithyDocumentSerde } @@ -5209,7 +5209,7 @@ type Scte35ReturnToNetworkScheduleActionSettings struct { // The splice_event_id for the SCTE-35 splice_insert, as defined in SCTE-35. // // This member is required. - SpliceEventId int64 + SpliceEventId *int64 noSmithyDocumentSerde } @@ -5225,26 +5225,26 @@ type Scte35SegmentationDescriptor struct { // Corresponds to SCTE-35 segmentation_event_id. // // This member is required. - SegmentationEventId int64 + SegmentationEventId *int64 // Holds the four SCTE-35 delivery restriction parameters. DeliveryRestrictions *Scte35DeliveryRestrictions // Corresponds to SCTE-35 segment_num. A value that is valid for the specified // segmentation_type_id. - SegmentNum int32 + SegmentNum *int32 // Corresponds to SCTE-35 segmentation_duration. Optional. The duration for the // time_signal, in 90 KHz ticks. To convert seconds to ticks, multiple the seconds // by 90,000. Enter time in 90 KHz clock ticks. If you do not enter a duration, the // time_signal will continue until you insert a cancellation message. - SegmentationDuration int64 + SegmentationDuration *int64 // Corresponds to SCTE-35 segmentation_type_id. One of the segmentation_type_id // values listed in the SCTE-35 specification. On the console, enter the ID in // decimal (for example, "52"). In the CLI, API, or an SDK, enter the ID in hex // (for example, "0x34") or decimal (for example, "52"). - SegmentationTypeId int32 + SegmentationTypeId *int32 // Corresponds to SCTE-35 segmentation_upid. Enter a string containing the // hexadecimal representation of the characters that make up the SCTE-35 @@ -5258,19 +5258,19 @@ type Scte35SegmentationDescriptor struct { // "0x0C" hex from the specification is "12" in decimal. In the CLI, API, or an // SDK, enter one of the types listed in the SCTE-35 specification, in either hex // (for example, "0x0C" ) or in decimal (for example, "12"). - SegmentationUpidType int32 + SegmentationUpidType *int32 // Corresponds to SCTE-35 segments_expected. A value that is valid for the // specified segmentation_type_id. - SegmentsExpected int32 + SegmentsExpected *int32 // Corresponds to SCTE-35 sub_segment_num. A value that is valid for the specified // segmentation_type_id. - SubSegmentNum int32 + SubSegmentNum *int32 // Corresponds to SCTE-35 sub_segments_expected. A value that is valid for the // specified segmentation_type_id. - SubSegmentsExpected int32 + SubSegmentsExpected *int32 noSmithyDocumentSerde } @@ -5282,7 +5282,7 @@ type Scte35SpliceInsert struct { // When specified, this offset (in milliseconds) is added to the input Ad Avail // PTS time. This only applies to embedded SCTE 104/35 messages and does not apply // to OOB messages. - AdAvailOffset int32 + AdAvailOffset *int32 // When set to ignore, Segment Descriptors with noRegionalBlackoutFlag set to 0 // will no longer trigger blackouts or Ad Avail slates @@ -5301,7 +5301,7 @@ type Scte35SpliceInsertScheduleActionSettings struct { // The splice_event_id for the SCTE-35 splice_insert, as defined in SCTE-35. // // This member is required. - SpliceEventId int64 + SpliceEventId *int64 // Optional, the duration for the splice_insert, in 90 KHz ticks. To convert // seconds to ticks, multiple the seconds by 90,000. If you enter a duration, there @@ -5309,7 +5309,7 @@ type Scte35SpliceInsertScheduleActionSettings struct { // that time. If you do not enter a duration, the splice_insert will continue // indefinitely and there is an expectation that you will enter a return_to_network // to end the splice_insert at the appropriate time. - Duration int64 + Duration *int64 noSmithyDocumentSerde } @@ -5321,7 +5321,7 @@ type Scte35TimeSignalApos struct { // When specified, this offset (in milliseconds) is added to the input Ad Avail // PTS time. This only applies to embedded SCTE 104/35 messages and does not apply // to OOB messages. - AdAvailOffset int32 + AdAvailOffset *int32 // When set to ignore, Segment Descriptors with noRegionalBlackoutFlag set to 0 // will no longer trigger blackouts or Ad Avail slates @@ -5389,47 +5389,47 @@ type StaticImageActivateScheduleActionSettings struct { // The duration in milliseconds for the image to remain on the video. If omitted // or set to 0 the duration is unlimited and the image will remain until it is // explicitly deactivated. - Duration int32 + Duration *int32 // The time in milliseconds for the image to fade in. The fade-in starts at the // start time of the overlay. Default is 0 (no fade-in). - FadeIn int32 + FadeIn *int32 // Applies only if a duration is specified. The time in milliseconds for the image // to fade out. The fade-out starts when the duration time is hit, so it // effectively extends the duration. Default is 0 (no fade-out). - FadeOut int32 + FadeOut *int32 // The height of the image when inserted into the video, in pixels. The overlay // will be scaled up or down to the specified height. Leave blank to use the native // height of the overlay. - Height int32 + Height *int32 // Placement of the left edge of the overlay relative to the left edge of the // video frame, in pixels. 0 (the default) is the left edge of the frame. If the // placement causes the overlay to extend beyond the right edge of the underlying // video, then the overlay is cropped on the right. - ImageX int32 + ImageX *int32 // Placement of the top edge of the overlay relative to the top edge of the video // frame, in pixels. 0 (the default) is the top edge of the frame. If the placement // causes the overlay to extend beyond the bottom edge of the underlying video, // then the overlay is cropped on the bottom. - ImageY int32 + ImageY *int32 // The number of the layer, 0 to 7. There are 8 layers that can be overlaid on the // video, each layer with a different image. The layers are in Z order, which means // that overlays with higher values of layer are inserted on top of overlays with // lower values of layer. Default is 0. - Layer int32 + Layer *int32 // Opacity of image where 0 is transparent and 100 is fully opaque. Default is 100. - Opacity int32 + Opacity *int32 // The width of the image when inserted into the video, in pixels. The overlay // will be scaled up or down to the specified width. Leave blank to use the native // width of the overlay. - Width int32 + Width *int32 noSmithyDocumentSerde } @@ -5438,10 +5438,10 @@ type StaticImageActivateScheduleActionSettings struct { type StaticImageDeactivateScheduleActionSettings struct { // The time in milliseconds for the image to fade out. Default is 0 (no fade-out). - FadeOut int32 + FadeOut *int32 // The image overlay layer to deactivate, 0 to 7. Default is 0. - Layer int32 + Layer *int32 noSmithyDocumentSerde } @@ -5589,7 +5589,7 @@ type TimecodeConfig struct { // timecode. Discrepancies below this threshold are permitted to avoid unnecessary // discontinuities in the output timecode. No timecode sync when this is not // specified. - SyncThreshold int32 + SyncThreshold *int32 noSmithyDocumentSerde } @@ -5647,7 +5647,7 @@ type UdpGroupSettings struct { TimedMetadataId3Frame UdpTimedMetadataId3Frame // Timed Metadata interval in seconds. - TimedMetadataId3Period int32 + TimedMetadataId3Period *int32 noSmithyDocumentSerde } @@ -5670,7 +5670,7 @@ type UdpOutputSettings struct { // the transcoder but simultaneously assist the transcoder in maintaining a // constant, low-jitter UDP/RTP output while accommodating clock recovery, input // switching, input disruptions, picture reordering, etc. - BufferMsec int32 + BufferMsec *int32 // Settings for enabling and adjusting Forward Error Correction on UDP outputs. FecOutputSettings *FecOutputSettings @@ -5702,11 +5702,11 @@ type VideoBlackFailoverSettings struct { // of 102 or less is 'black'. If you set this field to .1 in an 8-bit color depth: // (2550.1=25.5), which means a pixel value of 25 or less is 'black'. The range is // 0.0 to 1.0, with any number of decimal places. - BlackDetectThreshold float64 + BlackDetectThreshold *float64 // The amount of time (in milliseconds) that the active input must be black before // automatic input failover occurs. - VideoBlackThresholdMsec int32 + VideoBlackThresholdMsec *int32 noSmithyDocumentSerde } @@ -5746,7 +5746,7 @@ type VideoDescription struct { // can leave this field and width blank in order to use the height and width // (resolution) from the source. Note, however, that leaving blank is not // recommended. For the Frame Capture codec, height and width are required. - Height int32 + Height *int32 // Indicates how MediaLive will respond to the AFD values that might be in the // input video. If you do not know what AFD signaling is, or if your downstream @@ -5769,13 +5769,13 @@ type VideoDescription struct { // Changes the strength of the anti-alias filter used for scaling. 0 is the // softest setting, 100 is the sharpest. A setting of 50 is recommended for most // content. - Sharpness int32 + Sharpness *int32 // Output video width, in pixels. Must be an even number. For most codecs, you can // leave this field and height blank in order to use the height and width // (resolution) from the source. Note, however, that leaving blank is not // recommended. For the Frame Capture codec, height and width are required. - Width int32 + Width *int32 noSmithyDocumentSerde } @@ -5821,7 +5821,7 @@ type VideoSelectorColorSpaceSettings struct { type VideoSelectorPid struct { // Selects a specific PID from within a video source. - Pid int32 + Pid *int32 noSmithyDocumentSerde } @@ -5832,7 +5832,7 @@ type VideoSelectorProgramId struct { // Selects a specific program from within a multi-program transport stream. If the // program doesn't exist, the first program within the transport stream will be // selected by default. - ProgramId int32 + ProgramId *int32 noSmithyDocumentSerde } @@ -5898,14 +5898,14 @@ type VpcOutputSettingsDescription struct { type WavSettings struct { // Bits per sample. - BitDepth float64 + BitDepth *float64 // The audio coding mode for the WAV audio. The mode determines the number of // channels in the audio. CodingMode WavCodingMode // Sample rate in Hz. - SampleRate float64 + SampleRate *float64 noSmithyDocumentSerde } diff --git a/service/medialive/validators.go b/service/medialive/validators.go index 388a6216858..719359fdf15 100644 --- a/service/medialive/validators.go +++ b/service/medialive/validators.go @@ -1545,6 +1545,9 @@ func validateAudioChannelMapping(v *types.AudioChannelMapping) error { invalidParams.AddNested("InputChannelLevels", err.(smithy.InvalidParamsError)) } } + if v.OutputChannel == nil { + invalidParams.Add(smithy.NewErrParamRequired("OutputChannel")) + } if invalidParams.Len() > 0 { return invalidParams } else { @@ -1650,6 +1653,9 @@ func validateAudioPidSelection(v *types.AudioPidSelection) error { return nil } invalidParams := smithy.InvalidParamsError{Context: "AudioPidSelection"} + if v.Pid == nil { + invalidParams.Add(smithy.NewErrParamRequired("Pid")) + } if invalidParams.Len() > 0 { return invalidParams } else { @@ -1729,6 +1735,9 @@ func validateAudioTrack(v *types.AudioTrack) error { return nil } invalidParams := smithy.InvalidParamsError{Context: "AudioTrack"} + if v.Track == nil { + invalidParams.Add(smithy.NewErrParamRequired("Track")) + } if invalidParams.Len() > 0 { return invalidParams } else { @@ -1971,6 +1980,9 @@ func validateCaptionLanguageMapping(v *types.CaptionLanguageMapping) error { return nil } invalidParams := smithy.InvalidParamsError{Context: "CaptionLanguageMapping"} + if v.CaptionChannel == nil { + invalidParams.Add(smithy.NewErrParamRequired("CaptionChannel")) + } if v.LanguageCode == nil { invalidParams.Add(smithy.NewErrParamRequired("LanguageCode")) } @@ -1989,6 +2001,18 @@ func validateCaptionRectangle(v *types.CaptionRectangle) error { return nil } invalidParams := smithy.InvalidParamsError{Context: "CaptionRectangle"} + if v.Height == nil { + invalidParams.Add(smithy.NewErrParamRequired("Height")) + } + if v.LeftOffset == nil { + invalidParams.Add(smithy.NewErrParamRequired("LeftOffset")) + } + if v.TopOffset == nil { + invalidParams.Add(smithy.NewErrParamRequired("TopOffset")) + } + if v.Width == nil { + invalidParams.Add(smithy.NewErrParamRequired("Width")) + } if invalidParams.Len() > 0 { return invalidParams } else { @@ -2038,6 +2062,9 @@ func validateDvbNitSettings(v *types.DvbNitSettings) error { return nil } invalidParams := smithy.InvalidParamsError{Context: "DvbNitSettings"} + if v.NetworkId == nil { + invalidParams.Add(smithy.NewErrParamRequired("NetworkId")) + } if v.NetworkName == nil { invalidParams.Add(smithy.NewErrParamRequired("NetworkName")) } @@ -2296,6 +2323,12 @@ func validateH265Settings(v *types.H265Settings) error { return nil } invalidParams := smithy.InvalidParamsError{Context: "H265Settings"} + if v.FramerateDenominator == nil { + invalidParams.Add(smithy.NewErrParamRequired("FramerateDenominator")) + } + if v.FramerateNumerator == nil { + invalidParams.Add(smithy.NewErrParamRequired("FramerateNumerator")) + } if v.TimecodeBurninSettings != nil { if err := validateTimecodeBurninSettings(v.TimecodeBurninSettings); err != nil { invalidParams.AddNested("TimecodeBurninSettings", err.(smithy.InvalidParamsError)) @@ -2416,6 +2449,12 @@ func validateInputChannelLevel(v *types.InputChannelLevel) error { return nil } invalidParams := smithy.InvalidParamsError{Context: "InputChannelLevel"} + if v.Gain == nil { + invalidParams.Add(smithy.NewErrParamRequired("Gain")) + } + if v.InputChannel == nil { + invalidParams.Add(smithy.NewErrParamRequired("InputChannel")) + } if invalidParams.Len() > 0 { return invalidParams } else { @@ -2613,6 +2652,12 @@ func validateMpeg2Settings(v *types.Mpeg2Settings) error { return nil } invalidParams := smithy.InvalidParamsError{Context: "Mpeg2Settings"} + if v.FramerateDenominator == nil { + invalidParams.Add(smithy.NewErrParamRequired("FramerateDenominator")) + } + if v.FramerateNumerator == nil { + invalidParams.Add(smithy.NewErrParamRequired("FramerateNumerator")) + } if v.TimecodeBurninSettings != nil { if err := validateTimecodeBurninSettings(v.TimecodeBurninSettings); err != nil { invalidParams.AddNested("TimecodeBurninSettings", err.(smithy.InvalidParamsError)) @@ -2678,6 +2723,9 @@ func validateMultiplexProgramSettings(v *types.MultiplexProgramSettings) error { return nil } invalidParams := smithy.InvalidParamsError{Context: "MultiplexProgramSettings"} + if v.ProgramNumber == nil { + invalidParams.Add(smithy.NewErrParamRequired("ProgramNumber")) + } if v.ServiceDescriptor != nil { if err := validateMultiplexProgramServiceDescriptor(v.ServiceDescriptor); err != nil { invalidParams.AddNested("ServiceDescriptor", err.(smithy.InvalidParamsError)) @@ -2695,6 +2743,12 @@ func validateMultiplexSettings(v *types.MultiplexSettings) error { return nil } invalidParams := smithy.InvalidParamsError{Context: "MultiplexSettings"} + if v.TransportStreamBitrate == nil { + invalidParams.Add(smithy.NewErrParamRequired("TransportStreamBitrate")) + } + if v.TransportStreamId == nil { + invalidParams.Add(smithy.NewErrParamRequired("TransportStreamId")) + } if invalidParams.Len() > 0 { return invalidParams } else { @@ -2731,6 +2785,9 @@ func validateNielsenNaesIiNw(v *types.NielsenNaesIiNw) error { if v.CheckDigitString == nil { invalidParams.Add(smithy.NewErrParamRequired("CheckDigitString")) } + if v.Sid == nil { + invalidParams.Add(smithy.NewErrParamRequired("Sid")) + } if invalidParams.Len() > 0 { return invalidParams } else { @@ -3135,6 +3192,9 @@ func validateScte35ReturnToNetworkScheduleActionSettings(v *types.Scte35ReturnTo return nil } invalidParams := smithy.InvalidParamsError{Context: "Scte35ReturnToNetworkScheduleActionSettings"} + if v.SpliceEventId == nil { + invalidParams.Add(smithy.NewErrParamRequired("SpliceEventId")) + } if invalidParams.Len() > 0 { return invalidParams } else { @@ -3155,6 +3215,9 @@ func validateScte35SegmentationDescriptor(v *types.Scte35SegmentationDescriptor) if len(v.SegmentationCancelIndicator) == 0 { invalidParams.Add(smithy.NewErrParamRequired("SegmentationCancelIndicator")) } + if v.SegmentationEventId == nil { + invalidParams.Add(smithy.NewErrParamRequired("SegmentationEventId")) + } if invalidParams.Len() > 0 { return invalidParams } else { @@ -3167,6 +3230,9 @@ func validateScte35SpliceInsertScheduleActionSettings(v *types.Scte35SpliceInser return nil } invalidParams := smithy.InvalidParamsError{Context: "Scte35SpliceInsertScheduleActionSettings"} + if v.SpliceEventId == nil { + invalidParams.Add(smithy.NewErrParamRequired("SpliceEventId")) + } if invalidParams.Len() > 0 { return invalidParams } else { @@ -3956,6 +4022,9 @@ func validateOpPurchaseOfferingInput(v *PurchaseOfferingInput) error { return nil } invalidParams := smithy.InvalidParamsError{Context: "PurchaseOfferingInput"} + if v.Count == nil { + invalidParams.Add(smithy.NewErrParamRequired("Count")) + } if v.OfferingId == nil { invalidParams.Add(smithy.NewErrParamRequired("OfferingId")) } diff --git a/service/mediapackage/api_op_CreateOriginEndpoint.go b/service/mediapackage/api_op_CreateOriginEndpoint.go index da4d185f1e4..3cbd64439c2 100644 --- a/service/mediapackage/api_op_CreateOriginEndpoint.go +++ b/service/mediapackage/api_op_CreateOriginEndpoint.go @@ -78,14 +78,14 @@ type CreateOriginEndpointInput struct { // Maximum duration (seconds) of content to retain for startover playback. If not // specified, startover playback will be disabled for the OriginEndpoint. - StartoverWindowSeconds int32 + StartoverWindowSeconds *int32 // A collection of tags associated with a resource Tags map[string]string // Amount of delay (seconds) to enforce on the playback of live content. If not // specified, there will be no time delay in effect for the OriginEndpoint. - TimeDelaySeconds int32 + TimeDelaySeconds *int32 // A list of source IP CIDR blocks that will be allowed to access the // OriginEndpoint. @@ -138,14 +138,14 @@ type CreateOriginEndpointOutput struct { // Maximum duration (seconds) of content to retain for startover playback. If not // specified, startover playback will be disabled for the OriginEndpoint. - StartoverWindowSeconds int32 + StartoverWindowSeconds *int32 // A collection of tags associated with a resource Tags map[string]string // Amount of delay (seconds) to enforce on the playback of live content. If not // specified, there will be no time delay in effect for the OriginEndpoint. - TimeDelaySeconds int32 + TimeDelaySeconds *int32 // The URL of the packaged OriginEndpoint for consumption. Url *string diff --git a/service/mediapackage/api_op_DescribeOriginEndpoint.go b/service/mediapackage/api_op_DescribeOriginEndpoint.go index ab3ee3f3ba3..ec7fbd42f40 100644 --- a/service/mediapackage/api_op_DescribeOriginEndpoint.go +++ b/service/mediapackage/api_op_DescribeOriginEndpoint.go @@ -86,14 +86,14 @@ type DescribeOriginEndpointOutput struct { // Maximum duration (seconds) of content to retain for startover playback. If not // specified, startover playback will be disabled for the OriginEndpoint. - StartoverWindowSeconds int32 + StartoverWindowSeconds *int32 // A collection of tags associated with a resource Tags map[string]string // Amount of delay (seconds) to enforce on the playback of live content. If not // specified, there will be no time delay in effect for the OriginEndpoint. - TimeDelaySeconds int32 + TimeDelaySeconds *int32 // The URL of the packaged OriginEndpoint for consumption. Url *string diff --git a/service/mediapackage/api_op_ListChannels.go b/service/mediapackage/api_op_ListChannels.go index 51aa82bdbf0..036782fa7b1 100644 --- a/service/mediapackage/api_op_ListChannels.go +++ b/service/mediapackage/api_op_ListChannels.go @@ -35,7 +35,7 @@ func (c *Client) ListChannels(ctx context.Context, params *ListChannelsInput, op type ListChannelsInput struct { // Upper bound on number of records to return. - MaxResults int32 + MaxResults *int32 // A token used to resume pagination from the end of a previous request. NextToken *string @@ -162,8 +162,8 @@ func NewListChannelsPaginator(client ListChannelsAPIClient, params *ListChannels } options := ListChannelsPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults + if params.MaxResults != nil { + options.Limit = *params.MaxResults } for _, fn := range optFns { @@ -193,7 +193,11 @@ func (p *ListChannelsPaginator) 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.ListChannels(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/mediapackage/api_op_ListHarvestJobs.go b/service/mediapackage/api_op_ListHarvestJobs.go index 1fb840ddb20..08f39e72f99 100644 --- a/service/mediapackage/api_op_ListHarvestJobs.go +++ b/service/mediapackage/api_op_ListHarvestJobs.go @@ -42,7 +42,7 @@ type ListHarvestJobsInput struct { IncludeStatus *string // The upper bound on the number of records to return. - MaxResults int32 + MaxResults *int32 // A token used to resume pagination from the end of a previous request. NextToken *string @@ -170,8 +170,8 @@ func NewListHarvestJobsPaginator(client ListHarvestJobsAPIClient, params *ListHa } options := ListHarvestJobsPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults + if params.MaxResults != nil { + options.Limit = *params.MaxResults } for _, fn := range optFns { @@ -201,7 +201,11 @@ func (p *ListHarvestJobsPaginator) 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.ListHarvestJobs(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/mediapackage/api_op_ListOriginEndpoints.go b/service/mediapackage/api_op_ListOriginEndpoints.go index 1b785e6c27c..a7271c13d10 100644 --- a/service/mediapackage/api_op_ListOriginEndpoints.go +++ b/service/mediapackage/api_op_ListOriginEndpoints.go @@ -39,7 +39,7 @@ type ListOriginEndpointsInput struct { ChannelId *string // The upper bound on the number of records to return. - MaxResults int32 + MaxResults *int32 // A token used to resume pagination from the end of a previous request. NextToken *string @@ -168,8 +168,8 @@ func NewListOriginEndpointsPaginator(client ListOriginEndpointsAPIClient, params } options := ListOriginEndpointsPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults + if params.MaxResults != nil { + options.Limit = *params.MaxResults } for _, fn := range optFns { @@ -199,7 +199,11 @@ func (p *ListOriginEndpointsPaginator) 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.ListOriginEndpoints(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/mediapackage/api_op_UpdateOriginEndpoint.go b/service/mediapackage/api_op_UpdateOriginEndpoint.go index 78f07f6849c..221d6d2fb65 100644 --- a/service/mediapackage/api_op_UpdateOriginEndpoint.go +++ b/service/mediapackage/api_op_UpdateOriginEndpoint.go @@ -70,11 +70,11 @@ type UpdateOriginEndpointInput struct { // Maximum duration (in seconds) of content to retain for startover playback. If // not specified, startover playback will be disabled for the OriginEndpoint. - StartoverWindowSeconds int32 + StartoverWindowSeconds *int32 // Amount of delay (in seconds) to enforce on the playback of live content. If not // specified, there will be no time delay in effect for the OriginEndpoint. - TimeDelaySeconds int32 + TimeDelaySeconds *int32 // A list of source IP CIDR blocks that will be allowed to access the // OriginEndpoint. @@ -127,14 +127,14 @@ type UpdateOriginEndpointOutput struct { // Maximum duration (seconds) of content to retain for startover playback. If not // specified, startover playback will be disabled for the OriginEndpoint. - StartoverWindowSeconds int32 + StartoverWindowSeconds *int32 // A collection of tags associated with a resource Tags map[string]string // Amount of delay (seconds) to enforce on the playback of live content. If not // specified, there will be no time delay in effect for the OriginEndpoint. - TimeDelaySeconds int32 + TimeDelaySeconds *int32 // The URL of the packaged OriginEndpoint for consumption. Url *string diff --git a/service/mediapackage/deserializers.go b/service/mediapackage/deserializers.go index 24d1085ea64..54086706362 100644 --- a/service/mediapackage/deserializers.go +++ b/service/mediapackage/deserializers.go @@ -925,7 +925,7 @@ func awsRestjson1_deserializeOpDocumentCreateOriginEndpointOutput(v **CreateOrig if err != nil { return err } - sv.StartoverWindowSeconds = int32(i64) + sv.StartoverWindowSeconds = ptr.Int32(int32(i64)) } case "tags": @@ -943,7 +943,7 @@ func awsRestjson1_deserializeOpDocumentCreateOriginEndpointOutput(v **CreateOrig if err != nil { return err } - sv.TimeDelaySeconds = int32(i64) + sv.TimeDelaySeconds = ptr.Int32(int32(i64)) } case "url": @@ -1858,7 +1858,7 @@ func awsRestjson1_deserializeOpDocumentDescribeOriginEndpointOutput(v **Describe if err != nil { return err } - sv.StartoverWindowSeconds = int32(i64) + sv.StartoverWindowSeconds = ptr.Int32(int32(i64)) } case "tags": @@ -1876,7 +1876,7 @@ func awsRestjson1_deserializeOpDocumentDescribeOriginEndpointOutput(v **Describe if err != nil { return err } - sv.TimeDelaySeconds = int32(i64) + sv.TimeDelaySeconds = ptr.Int32(int32(i64)) } case "url": @@ -3616,7 +3616,7 @@ func awsRestjson1_deserializeOpDocumentUpdateOriginEndpointOutput(v **UpdateOrig if err != nil { return err } - sv.StartoverWindowSeconds = int32(i64) + sv.StartoverWindowSeconds = ptr.Int32(int32(i64)) } case "tags": @@ -3634,7 +3634,7 @@ func awsRestjson1_deserializeOpDocumentUpdateOriginEndpointOutput(v **UpdateOrig if err != nil { return err } - sv.TimeDelaySeconds = int32(i64) + sv.TimeDelaySeconds = ptr.Int32(int32(i64)) } case "url": @@ -4376,7 +4376,7 @@ func awsRestjson1_deserializeDocumentCmafEncryption(v **types.CmafEncryption, va if err != nil { return err } - sv.KeyRotationIntervalSeconds = int32(i64) + sv.KeyRotationIntervalSeconds = ptr.Int32(int32(i64)) } case "spekeKeyProvider": @@ -4435,7 +4435,7 @@ func awsRestjson1_deserializeDocumentCmafPackage(v **types.CmafPackage, value in if err != nil { return err } - sv.SegmentDurationSeconds = int32(i64) + sv.SegmentDurationSeconds = ptr.Int32(int32(i64)) } case "segmentPrefix": @@ -4493,7 +4493,7 @@ func awsRestjson1_deserializeDocumentDashEncryption(v **types.DashEncryption, va if err != nil { return err } - sv.KeyRotationIntervalSeconds = int32(i64) + sv.KeyRotationIntervalSeconds = ptr.Int32(int32(i64)) } case "spekeKeyProvider": @@ -4557,7 +4557,7 @@ func awsRestjson1_deserializeDocumentDashPackage(v **types.DashPackage, value in if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.IncludeIframeOnlyStream = jtv + sv.IncludeIframeOnlyStream = ptr.Bool(jtv) } case "manifestLayout": @@ -4579,7 +4579,7 @@ func awsRestjson1_deserializeDocumentDashPackage(v **types.DashPackage, value in if err != nil { return err } - sv.ManifestWindowSeconds = int32(i64) + sv.ManifestWindowSeconds = ptr.Int32(int32(i64)) } case "minBufferTimeSeconds": @@ -4592,7 +4592,7 @@ func awsRestjson1_deserializeDocumentDashPackage(v **types.DashPackage, value in if err != nil { return err } - sv.MinBufferTimeSeconds = int32(i64) + sv.MinBufferTimeSeconds = ptr.Int32(int32(i64)) } case "minUpdatePeriodSeconds": @@ -4605,7 +4605,7 @@ func awsRestjson1_deserializeDocumentDashPackage(v **types.DashPackage, value in if err != nil { return err } - sv.MinUpdatePeriodSeconds = int32(i64) + sv.MinUpdatePeriodSeconds = ptr.Int32(int32(i64)) } case "periodTriggers": @@ -4632,7 +4632,7 @@ func awsRestjson1_deserializeDocumentDashPackage(v **types.DashPackage, value in if err != nil { return err } - sv.SegmentDurationSeconds = int32(i64) + sv.SegmentDurationSeconds = ptr.Int32(int32(i64)) } case "segmentTemplateFormat": @@ -4659,7 +4659,7 @@ func awsRestjson1_deserializeDocumentDashPackage(v **types.DashPackage, value in if err != nil { return err } - sv.SuggestedPresentationDelaySeconds = int32(i64) + sv.SuggestedPresentationDelaySeconds = ptr.Int32(int32(i64)) } case "utcTiming": @@ -4976,7 +4976,7 @@ func awsRestjson1_deserializeDocumentHlsEncryption(v **types.HlsEncryption, valu if err != nil { return err } - sv.KeyRotationIntervalSeconds = int32(i64) + sv.KeyRotationIntervalSeconds = ptr.Int32(int32(i64)) } case "repeatExtXKey": @@ -4985,7 +4985,7 @@ func awsRestjson1_deserializeDocumentHlsEncryption(v **types.HlsEncryption, valu if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.RepeatExtXKey = jtv + sv.RepeatExtXKey = ptr.Bool(jtv) } case "spekeKeyProvider": @@ -5098,7 +5098,7 @@ func awsRestjson1_deserializeDocumentHlsManifest(v **types.HlsManifest, value in if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.IncludeIframeOnlyStream = jtv + sv.IncludeIframeOnlyStream = ptr.Bool(jtv) } case "manifestName": @@ -5129,7 +5129,7 @@ func awsRestjson1_deserializeDocumentHlsManifest(v **types.HlsManifest, value in if err != nil { return err } - sv.PlaylistWindowSeconds = int32(i64) + sv.PlaylistWindowSeconds = ptr.Int32(int32(i64)) } case "programDateTimeIntervalSeconds": @@ -5142,7 +5142,7 @@ func awsRestjson1_deserializeDocumentHlsManifest(v **types.HlsManifest, value in if err != nil { return err } - sv.ProgramDateTimeIntervalSeconds = int32(i64) + sv.ProgramDateTimeIntervalSeconds = ptr.Int32(int32(i64)) } case "url": @@ -5219,7 +5219,7 @@ func awsRestjson1_deserializeDocumentHlsPackage(v **types.HlsPackage, value inte if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.IncludeDvbSubtitles = jtv + sv.IncludeDvbSubtitles = ptr.Bool(jtv) } case "includeIframeOnlyStream": @@ -5228,7 +5228,7 @@ func awsRestjson1_deserializeDocumentHlsPackage(v **types.HlsPackage, value inte if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.IncludeIframeOnlyStream = jtv + sv.IncludeIframeOnlyStream = ptr.Bool(jtv) } case "playlistType": @@ -5250,7 +5250,7 @@ func awsRestjson1_deserializeDocumentHlsPackage(v **types.HlsPackage, value inte if err != nil { return err } - sv.PlaylistWindowSeconds = int32(i64) + sv.PlaylistWindowSeconds = ptr.Int32(int32(i64)) } case "programDateTimeIntervalSeconds": @@ -5263,7 +5263,7 @@ func awsRestjson1_deserializeDocumentHlsPackage(v **types.HlsPackage, value inte if err != nil { return err } - sv.ProgramDateTimeIntervalSeconds = int32(i64) + sv.ProgramDateTimeIntervalSeconds = ptr.Int32(int32(i64)) } case "segmentDurationSeconds": @@ -5276,7 +5276,7 @@ func awsRestjson1_deserializeDocumentHlsPackage(v **types.HlsPackage, value inte if err != nil { return err } - sv.SegmentDurationSeconds = int32(i64) + sv.SegmentDurationSeconds = ptr.Int32(int32(i64)) } case "streamSelection": @@ -5290,7 +5290,7 @@ func awsRestjson1_deserializeDocumentHlsPackage(v **types.HlsPackage, value inte if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.UseAudioRenditionGroup = jtv + sv.UseAudioRenditionGroup = ptr.Bool(jtv) } default: @@ -5522,7 +5522,7 @@ func awsRestjson1_deserializeDocumentMssPackage(v **types.MssPackage, value inte if err != nil { return err } - sv.ManifestWindowSeconds = int32(i64) + sv.ManifestWindowSeconds = ptr.Int32(int32(i64)) } case "segmentDurationSeconds": @@ -5535,7 +5535,7 @@ func awsRestjson1_deserializeDocumentMssPackage(v **types.MssPackage, value inte if err != nil { return err } - sv.SegmentDurationSeconds = int32(i64) + sv.SegmentDurationSeconds = ptr.Int32(int32(i64)) } case "streamSelection": @@ -5712,7 +5712,7 @@ func awsRestjson1_deserializeDocumentOriginEndpoint(v **types.OriginEndpoint, va if err != nil { return err } - sv.StartoverWindowSeconds = int32(i64) + sv.StartoverWindowSeconds = ptr.Int32(int32(i64)) } case "tags": @@ -5730,7 +5730,7 @@ func awsRestjson1_deserializeDocumentOriginEndpoint(v **types.OriginEndpoint, va if err != nil { return err } - sv.TimeDelaySeconds = int32(i64) + sv.TimeDelaySeconds = ptr.Int32(int32(i64)) } case "url": @@ -5963,7 +5963,7 @@ func awsRestjson1_deserializeDocumentStreamSelection(v **types.StreamSelection, if err != nil { return err } - sv.MaxVideoBitsPerSecond = int32(i64) + sv.MaxVideoBitsPerSecond = ptr.Int32(int32(i64)) } case "minVideoBitsPerSecond": @@ -5976,7 +5976,7 @@ func awsRestjson1_deserializeDocumentStreamSelection(v **types.StreamSelection, if err != nil { return err } - sv.MinVideoBitsPerSecond = int32(i64) + sv.MinVideoBitsPerSecond = ptr.Int32(int32(i64)) } case "streamOrder": diff --git a/service/mediapackage/serializers.go b/service/mediapackage/serializers.go index 3355dbcae7c..f4e180c7954 100644 --- a/service/mediapackage/serializers.go +++ b/service/mediapackage/serializers.go @@ -422,9 +422,9 @@ func awsRestjson1_serializeOpDocumentCreateOriginEndpointInput(v *CreateOriginEn ok.String(string(v.Origination)) } - if v.StartoverWindowSeconds != 0 { + if v.StartoverWindowSeconds != nil { ok := object.Key("startoverWindowSeconds") - ok.Integer(v.StartoverWindowSeconds) + ok.Integer(*v.StartoverWindowSeconds) } if v.Tags != nil { @@ -434,9 +434,9 @@ func awsRestjson1_serializeOpDocumentCreateOriginEndpointInput(v *CreateOriginEn } } - if v.TimeDelaySeconds != 0 { + if v.TimeDelaySeconds != nil { ok := object.Key("timeDelaySeconds") - ok.Integer(v.TimeDelaySeconds) + ok.Integer(*v.TimeDelaySeconds) } if v.Whitelist != nil { @@ -827,8 +827,8 @@ func awsRestjson1_serializeOpHttpBindingsListChannelsInput(v *ListChannelsInput, return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.MaxResults != 0 { - encoder.SetQuery("maxResults").Integer(v.MaxResults) + if v.MaxResults != nil { + encoder.SetQuery("maxResults").Integer(*v.MaxResults) } if v.NextToken != nil { @@ -899,8 +899,8 @@ func awsRestjson1_serializeOpHttpBindingsListHarvestJobsInput(v *ListHarvestJobs encoder.SetQuery("includeStatus").String(*v.IncludeStatus) } - if v.MaxResults != 0 { - encoder.SetQuery("maxResults").Integer(v.MaxResults) + if v.MaxResults != nil { + encoder.SetQuery("maxResults").Integer(*v.MaxResults) } if v.NextToken != nil { @@ -967,8 +967,8 @@ func awsRestjson1_serializeOpHttpBindingsListOriginEndpointsInput(v *ListOriginE encoder.SetQuery("channelId").String(*v.ChannelId) } - if v.MaxResults != 0 { - encoder.SetQuery("maxResults").Integer(v.MaxResults) + if v.MaxResults != nil { + encoder.SetQuery("maxResults").Integer(*v.MaxResults) } if v.NextToken != nil { @@ -1561,14 +1561,14 @@ func awsRestjson1_serializeOpDocumentUpdateOriginEndpointInput(v *UpdateOriginEn ok.String(string(v.Origination)) } - if v.StartoverWindowSeconds != 0 { + if v.StartoverWindowSeconds != nil { ok := object.Key("startoverWindowSeconds") - ok.Integer(v.StartoverWindowSeconds) + ok.Integer(*v.StartoverWindowSeconds) } - if v.TimeDelaySeconds != 0 { + if v.TimeDelaySeconds != nil { ok := object.Key("timeDelaySeconds") - ok.Integer(v.TimeDelaySeconds) + ok.Integer(*v.TimeDelaySeconds) } if v.Whitelist != nil { @@ -1669,9 +1669,9 @@ func awsRestjson1_serializeDocumentCmafEncryption(v *types.CmafEncryption, value ok.String(string(v.EncryptionMethod)) } - if v.KeyRotationIntervalSeconds != 0 { + if v.KeyRotationIntervalSeconds != nil { ok := object.Key("keyRotationIntervalSeconds") - ok.Integer(v.KeyRotationIntervalSeconds) + ok.Integer(*v.KeyRotationIntervalSeconds) } if v.SpekeKeyProvider != nil { @@ -1702,9 +1702,9 @@ func awsRestjson1_serializeDocumentCmafPackageCreateOrUpdateParameters(v *types. } } - if v.SegmentDurationSeconds != 0 { + if v.SegmentDurationSeconds != nil { ok := object.Key("segmentDurationSeconds") - ok.Integer(v.SegmentDurationSeconds) + ok.Integer(*v.SegmentDurationSeconds) } if v.SegmentPrefix != nil { @@ -1726,9 +1726,9 @@ func awsRestjson1_serializeDocumentDashEncryption(v *types.DashEncryption, value object := value.Object() defer object.Close() - if v.KeyRotationIntervalSeconds != 0 { + if v.KeyRotationIntervalSeconds != nil { ok := object.Key("keyRotationIntervalSeconds") - ok.Integer(v.KeyRotationIntervalSeconds) + ok.Integer(*v.KeyRotationIntervalSeconds) } if v.SpekeKeyProvider != nil { @@ -1764,9 +1764,9 @@ func awsRestjson1_serializeDocumentDashPackage(v *types.DashPackage, value smith } } - if v.IncludeIframeOnlyStream { + if v.IncludeIframeOnlyStream != nil { ok := object.Key("includeIframeOnlyStream") - ok.Boolean(v.IncludeIframeOnlyStream) + ok.Boolean(*v.IncludeIframeOnlyStream) } if len(v.ManifestLayout) > 0 { @@ -1774,19 +1774,19 @@ func awsRestjson1_serializeDocumentDashPackage(v *types.DashPackage, value smith ok.String(string(v.ManifestLayout)) } - if v.ManifestWindowSeconds != 0 { + if v.ManifestWindowSeconds != nil { ok := object.Key("manifestWindowSeconds") - ok.Integer(v.ManifestWindowSeconds) + ok.Integer(*v.ManifestWindowSeconds) } - if v.MinBufferTimeSeconds != 0 { + if v.MinBufferTimeSeconds != nil { ok := object.Key("minBufferTimeSeconds") - ok.Integer(v.MinBufferTimeSeconds) + ok.Integer(*v.MinBufferTimeSeconds) } - if v.MinUpdatePeriodSeconds != 0 { + if v.MinUpdatePeriodSeconds != nil { ok := object.Key("minUpdatePeriodSeconds") - ok.Integer(v.MinUpdatePeriodSeconds) + ok.Integer(*v.MinUpdatePeriodSeconds) } if v.PeriodTriggers != nil { @@ -1801,9 +1801,9 @@ func awsRestjson1_serializeDocumentDashPackage(v *types.DashPackage, value smith ok.String(string(v.Profile)) } - if v.SegmentDurationSeconds != 0 { + if v.SegmentDurationSeconds != nil { ok := object.Key("segmentDurationSeconds") - ok.Integer(v.SegmentDurationSeconds) + ok.Integer(*v.SegmentDurationSeconds) } if len(v.SegmentTemplateFormat) > 0 { @@ -1818,9 +1818,9 @@ func awsRestjson1_serializeDocumentDashPackage(v *types.DashPackage, value smith } } - if v.SuggestedPresentationDelaySeconds != 0 { + if v.SuggestedPresentationDelaySeconds != nil { ok := object.Key("suggestedPresentationDelaySeconds") - ok.Integer(v.SuggestedPresentationDelaySeconds) + ok.Integer(*v.SuggestedPresentationDelaySeconds) } if len(v.UtcTiming) > 0 { @@ -1879,14 +1879,14 @@ func awsRestjson1_serializeDocumentHlsEncryption(v *types.HlsEncryption, value s ok.String(string(v.EncryptionMethod)) } - if v.KeyRotationIntervalSeconds != 0 { + if v.KeyRotationIntervalSeconds != nil { ok := object.Key("keyRotationIntervalSeconds") - ok.Integer(v.KeyRotationIntervalSeconds) + ok.Integer(*v.KeyRotationIntervalSeconds) } - if v.RepeatExtXKey { + if v.RepeatExtXKey != nil { ok := object.Key("repeatExtXKey") - ok.Boolean(v.RepeatExtXKey) + ok.Boolean(*v.RepeatExtXKey) } if v.SpekeKeyProvider != nil { @@ -1925,9 +1925,9 @@ func awsRestjson1_serializeDocumentHlsManifestCreateOrUpdateParameters(v *types. ok.String(*v.Id) } - if v.IncludeIframeOnlyStream { + if v.IncludeIframeOnlyStream != nil { ok := object.Key("includeIframeOnlyStream") - ok.Boolean(v.IncludeIframeOnlyStream) + ok.Boolean(*v.IncludeIframeOnlyStream) } if v.ManifestName != nil { @@ -1940,14 +1940,14 @@ func awsRestjson1_serializeDocumentHlsManifestCreateOrUpdateParameters(v *types. ok.String(string(v.PlaylistType)) } - if v.PlaylistWindowSeconds != 0 { + if v.PlaylistWindowSeconds != nil { ok := object.Key("playlistWindowSeconds") - ok.Integer(v.PlaylistWindowSeconds) + ok.Integer(*v.PlaylistWindowSeconds) } - if v.ProgramDateTimeIntervalSeconds != 0 { + if v.ProgramDateTimeIntervalSeconds != nil { ok := object.Key("programDateTimeIntervalSeconds") - ok.Integer(v.ProgramDateTimeIntervalSeconds) + ok.Integer(*v.ProgramDateTimeIntervalSeconds) } return nil @@ -1981,14 +1981,14 @@ func awsRestjson1_serializeDocumentHlsPackage(v *types.HlsPackage, value smithyj } } - if v.IncludeDvbSubtitles { + if v.IncludeDvbSubtitles != nil { ok := object.Key("includeDvbSubtitles") - ok.Boolean(v.IncludeDvbSubtitles) + ok.Boolean(*v.IncludeDvbSubtitles) } - if v.IncludeIframeOnlyStream { + if v.IncludeIframeOnlyStream != nil { ok := object.Key("includeIframeOnlyStream") - ok.Boolean(v.IncludeIframeOnlyStream) + ok.Boolean(*v.IncludeIframeOnlyStream) } if len(v.PlaylistType) > 0 { @@ -1996,19 +1996,19 @@ func awsRestjson1_serializeDocumentHlsPackage(v *types.HlsPackage, value smithyj ok.String(string(v.PlaylistType)) } - if v.PlaylistWindowSeconds != 0 { + if v.PlaylistWindowSeconds != nil { ok := object.Key("playlistWindowSeconds") - ok.Integer(v.PlaylistWindowSeconds) + ok.Integer(*v.PlaylistWindowSeconds) } - if v.ProgramDateTimeIntervalSeconds != 0 { + if v.ProgramDateTimeIntervalSeconds != nil { ok := object.Key("programDateTimeIntervalSeconds") - ok.Integer(v.ProgramDateTimeIntervalSeconds) + ok.Integer(*v.ProgramDateTimeIntervalSeconds) } - if v.SegmentDurationSeconds != 0 { + if v.SegmentDurationSeconds != nil { ok := object.Key("segmentDurationSeconds") - ok.Integer(v.SegmentDurationSeconds) + ok.Integer(*v.SegmentDurationSeconds) } if v.StreamSelection != nil { @@ -2018,9 +2018,9 @@ func awsRestjson1_serializeDocumentHlsPackage(v *types.HlsPackage, value smithyj } } - if v.UseAudioRenditionGroup { + if v.UseAudioRenditionGroup != nil { ok := object.Key("useAudioRenditionGroup") - ok.Boolean(v.UseAudioRenditionGroup) + ok.Boolean(*v.UseAudioRenditionGroup) } return nil @@ -2063,14 +2063,14 @@ func awsRestjson1_serializeDocumentMssPackage(v *types.MssPackage, value smithyj } } - if v.ManifestWindowSeconds != 0 { + if v.ManifestWindowSeconds != nil { ok := object.Key("manifestWindowSeconds") - ok.Integer(v.ManifestWindowSeconds) + ok.Integer(*v.ManifestWindowSeconds) } - if v.SegmentDurationSeconds != 0 { + if v.SegmentDurationSeconds != nil { ok := object.Key("segmentDurationSeconds") - ok.Integer(v.SegmentDurationSeconds) + ok.Integer(*v.SegmentDurationSeconds) } if v.StreamSelection != nil { @@ -2150,14 +2150,14 @@ func awsRestjson1_serializeDocumentStreamSelection(v *types.StreamSelection, val object := value.Object() defer object.Close() - if v.MaxVideoBitsPerSecond != 0 { + if v.MaxVideoBitsPerSecond != nil { ok := object.Key("maxVideoBitsPerSecond") - ok.Integer(v.MaxVideoBitsPerSecond) + ok.Integer(*v.MaxVideoBitsPerSecond) } - if v.MinVideoBitsPerSecond != 0 { + if v.MinVideoBitsPerSecond != nil { ok := object.Key("minVideoBitsPerSecond") - ok.Integer(v.MinVideoBitsPerSecond) + ok.Integer(*v.MinVideoBitsPerSecond) } if len(v.StreamOrder) > 0 { diff --git a/service/mediapackage/types/types.go b/service/mediapackage/types/types.go index 81a90a305f1..0095a0deed6 100644 --- a/service/mediapackage/types/types.go +++ b/service/mediapackage/types/types.go @@ -73,7 +73,7 @@ type CmafEncryption struct { EncryptionMethod CmafEncryptionMethod // Time (in seconds) between each encryption key rotation. - KeyRotationIntervalSeconds int32 + KeyRotationIntervalSeconds *int32 noSmithyDocumentSerde } @@ -89,7 +89,7 @@ type CmafPackage struct { // Duration (in seconds) of each segment. Actual segments will be rounded to the // nearest multiple of the source segment duration. - SegmentDurationSeconds int32 + SegmentDurationSeconds *int32 // An optional custom string that is prepended to the name of each segment. If not // specified, it defaults to the ChannelId. @@ -112,7 +112,7 @@ type CmafPackageCreateOrUpdateParameters struct { // Duration (in seconds) of each segment. Actual segments will be rounded to the // nearest multiple of the source segment duration. - SegmentDurationSeconds int32 + SegmentDurationSeconds *int32 // An optional custom string that is prepended to the name of each segment. If not // specified, it defaults to the ChannelId. @@ -134,7 +134,7 @@ type DashEncryption struct { SpekeKeyProvider *SpekeKeyProvider // Time (in seconds) between each encryption key rotation. - KeyRotationIntervalSeconds int32 + KeyRotationIntervalSeconds *int32 noSmithyDocumentSerde } @@ -163,7 +163,7 @@ type DashPackage struct { Encryption *DashEncryption // When enabled, an I-Frame only stream will be included in the output. - IncludeIframeOnlyStream bool + IncludeIframeOnlyStream *bool // Determines the position of some tags in the Media Presentation Description // (MPD). When set to FULL, elements like SegmentTemplate and ContentProtection are @@ -172,15 +172,15 @@ type DashPackage struct { ManifestLayout ManifestLayout // Time window (in seconds) contained in each manifest. - ManifestWindowSeconds int32 + ManifestWindowSeconds *int32 // Minimum duration (in seconds) that a player will buffer media before starting // the presentation. - MinBufferTimeSeconds int32 + MinBufferTimeSeconds *int32 // Minimum duration (in seconds) between potential changes to the Dynamic Adaptive // Streaming over HTTP (DASH) Media Presentation Description (MPD). - MinUpdatePeriodSeconds int32 + MinUpdatePeriodSeconds *int32 // A list of triggers that controls when the outgoing Dynamic Adaptive Streaming // over HTTP (DASH) Media Presentation Description (MPD) will be partitioned into @@ -196,7 +196,7 @@ type DashPackage struct { // Duration (in seconds) of each segment. Actual segments will be rounded to the // nearest multiple of the source segment duration. - SegmentDurationSeconds int32 + SegmentDurationSeconds *int32 // Determines the type of SegmentTemplate included in the Media Presentation // Description (MPD). When set to NUMBER_WITH_TIMELINE, a full timeline is @@ -210,7 +210,7 @@ type DashPackage struct { StreamSelection *StreamSelection // Duration (in seconds) to delay live content before presentation. - SuggestedPresentationDelaySeconds int32 + SuggestedPresentationDelaySeconds *int32 // Determines the type of UTCTiming included in the Media Presentation Description // (MPD) @@ -311,10 +311,10 @@ type HlsEncryption struct { EncryptionMethod EncryptionMethod // Interval (in seconds) between each encryption key rotation. - KeyRotationIntervalSeconds int32 + KeyRotationIntervalSeconds *int32 // When enabled, the EXT-X-KEY tag will be repeated in output manifests. - RepeatExtXKey bool + RepeatExtXKey *bool noSmithyDocumentSerde } @@ -365,7 +365,7 @@ type HlsManifest struct { AdsOnDeliveryRestrictions AdsOnDeliveryRestrictions // When enabled, an I-Frame only stream will be included in the output. - IncludeIframeOnlyStream bool + IncludeIframeOnlyStream *bool // An optional short string appended to the end of the OriginEndpoint URL. If not // specified, defaults to the manifestName for the OriginEndpoint. @@ -377,7 +377,7 @@ type HlsManifest struct { PlaylistType PlaylistType // Time window (in seconds) contained in each parent manifest. - PlaylistWindowSeconds int32 + PlaylistWindowSeconds *int32 // The interval (in seconds) between each EXT-X-PROGRAM-DATE-TIME tag inserted // into manifests. Additionally, when an interval is specified ID3Timed Metadata @@ -387,7 +387,7 @@ type HlsManifest struct { // generated. Note that irrespective of this parameter, if any ID3 Timed Metadata // is found in HTTP Live Streaming (HLS) input, it will be passed through to HLS // output. - ProgramDateTimeIntervalSeconds int32 + ProgramDateTimeIntervalSeconds *int32 // The URL of the packaged OriginEndpoint for consumption. Url *string @@ -432,7 +432,7 @@ type HlsManifestCreateOrUpdateParameters struct { AdsOnDeliveryRestrictions AdsOnDeliveryRestrictions // When enabled, an I-Frame only stream will be included in the output. - IncludeIframeOnlyStream bool + IncludeIframeOnlyStream *bool // An optional short string appended to the end of the OriginEndpoint URL. If not // specified, defaults to the manifestName for the OriginEndpoint. @@ -444,7 +444,7 @@ type HlsManifestCreateOrUpdateParameters struct { PlaylistType PlaylistType // Time window (in seconds) contained in each parent manifest. - PlaylistWindowSeconds int32 + PlaylistWindowSeconds *int32 // The interval (in seconds) between each EXT-X-PROGRAM-DATE-TIME tag inserted // into manifests. Additionally, when an interval is specified ID3Timed Metadata @@ -454,7 +454,7 @@ type HlsManifestCreateOrUpdateParameters struct { // generated. Note that irrespective of this parameter, if any ID3 Timed Metadata // is found in HTTP Live Streaming (HLS) input, it will be passed through to HLS // output. - ProgramDateTimeIntervalSeconds int32 + ProgramDateTimeIntervalSeconds *int32 noSmithyDocumentSerde } @@ -494,10 +494,10 @@ type HlsPackage struct { // When enabled, MediaPackage passes through digital video broadcasting (DVB) // subtitles into the output. - IncludeDvbSubtitles bool + IncludeDvbSubtitles *bool // When enabled, an I-Frame only stream will be included in the output. - IncludeIframeOnlyStream bool + IncludeIframeOnlyStream *bool // The HTTP Live Streaming (HLS) playlist type. When either "EVENT" or "VOD" is // specified, a corresponding EXT-X-PLAYLIST-TYPE entry will be included in the @@ -505,7 +505,7 @@ type HlsPackage struct { PlaylistType PlaylistType // Time window (in seconds) contained in each parent manifest. - PlaylistWindowSeconds int32 + PlaylistWindowSeconds *int32 // The interval (in seconds) between each EXT-X-PROGRAM-DATE-TIME tag inserted // into manifests. Additionally, when an interval is specified ID3Timed Metadata @@ -515,17 +515,17 @@ type HlsPackage struct { // generated. Note that irrespective of this parameter, if any ID3 Timed Metadata // is found in HTTP Live Streaming (HLS) input, it will be passed through to HLS // output. - ProgramDateTimeIntervalSeconds int32 + ProgramDateTimeIntervalSeconds *int32 // Duration (in seconds) of each fragment. Actual fragments will be rounded to the // nearest multiple of the source fragment duration. - SegmentDurationSeconds int32 + SegmentDurationSeconds *int32 // A StreamSelection configuration. StreamSelection *StreamSelection // When enabled, audio streams will be placed in rendition groups in the output. - UseAudioRenditionGroup bool + UseAudioRenditionGroup *bool noSmithyDocumentSerde } @@ -576,10 +576,10 @@ type MssPackage struct { Encryption *MssEncryption // The time window (in seconds) contained in each manifest. - ManifestWindowSeconds int32 + ManifestWindowSeconds *int32 // The duration (in seconds) of each segment. - SegmentDurationSeconds int32 + SegmentDurationSeconds *int32 // A StreamSelection configuration. StreamSelection *StreamSelection @@ -632,14 +632,14 @@ type OriginEndpoint struct { // Maximum duration (seconds) of content to retain for startover playback. If not // specified, startover playback will be disabled for the OriginEndpoint. - StartoverWindowSeconds int32 + StartoverWindowSeconds *int32 // A collection of tags associated with a resource Tags map[string]string // Amount of delay (seconds) to enforce on the playback of live content. If not // specified, there will be no time delay in effect for the OriginEndpoint. - TimeDelaySeconds int32 + TimeDelaySeconds *int32 // The URL of the packaged OriginEndpoint for consumption. Url *string @@ -722,10 +722,10 @@ type SpekeKeyProvider struct { type StreamSelection struct { // The maximum video bitrate (bps) to include in output. - MaxVideoBitsPerSecond int32 + MaxVideoBitsPerSecond *int32 // The minimum video bitrate (bps) to include in output. - MinVideoBitsPerSecond int32 + MinVideoBitsPerSecond *int32 // A directive that determines the order of streams in the output. StreamOrder StreamOrder diff --git a/service/mediapackagevod/api_op_DescribePackagingGroup.go b/service/mediapackagevod/api_op_DescribePackagingGroup.go index ac74f0d6d42..8100e38c524 100644 --- a/service/mediapackagevod/api_op_DescribePackagingGroup.go +++ b/service/mediapackagevod/api_op_DescribePackagingGroup.go @@ -45,7 +45,7 @@ type DescribePackagingGroupInput struct { type DescribePackagingGroupOutput struct { // The approximate asset count of the PackagingGroup. - ApproximateAssetCount int32 + ApproximateAssetCount *int32 // The ARN of the PackagingGroup. Arn *string diff --git a/service/mediapackagevod/api_op_ListAssets.go b/service/mediapackagevod/api_op_ListAssets.go index f3ba020b413..8831f328c6e 100644 --- a/service/mediapackagevod/api_op_ListAssets.go +++ b/service/mediapackagevod/api_op_ListAssets.go @@ -35,7 +35,7 @@ func (c *Client) ListAssets(ctx context.Context, params *ListAssetsInput, optFns type ListAssetsInput struct { // Upper bound on number of records to return. - MaxResults int32 + MaxResults *int32 // A token used to resume pagination from the end of a previous request. NextToken *string @@ -165,8 +165,8 @@ func NewListAssetsPaginator(client ListAssetsAPIClient, params *ListAssetsInput, } options := ListAssetsPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults + if params.MaxResults != nil { + options.Limit = *params.MaxResults } for _, fn := range optFns { @@ -196,7 +196,11 @@ func (p *ListAssetsPaginator) NextPage(ctx context.Context, optFns ...func(*Opti 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.ListAssets(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/mediapackagevod/api_op_ListPackagingConfigurations.go b/service/mediapackagevod/api_op_ListPackagingConfigurations.go index 3d553b14ca0..54e17a5f72e 100644 --- a/service/mediapackagevod/api_op_ListPackagingConfigurations.go +++ b/service/mediapackagevod/api_op_ListPackagingConfigurations.go @@ -35,7 +35,7 @@ func (c *Client) ListPackagingConfigurations(ctx context.Context, params *ListPa type ListPackagingConfigurationsInput struct { // Upper bound on number of records to return. - MaxResults int32 + MaxResults *int32 // A token used to resume pagination from the end of a previous request. NextToken *string @@ -170,8 +170,8 @@ func NewListPackagingConfigurationsPaginator(client ListPackagingConfigurationsA } options := ListPackagingConfigurationsPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults + if params.MaxResults != nil { + options.Limit = *params.MaxResults } for _, fn := range optFns { @@ -201,7 +201,11 @@ func (p *ListPackagingConfigurationsPaginator) 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.ListPackagingConfigurations(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/mediapackagevod/api_op_ListPackagingGroups.go b/service/mediapackagevod/api_op_ListPackagingGroups.go index 96fd01f5c22..60adf64c7ae 100644 --- a/service/mediapackagevod/api_op_ListPackagingGroups.go +++ b/service/mediapackagevod/api_op_ListPackagingGroups.go @@ -35,7 +35,7 @@ func (c *Client) ListPackagingGroups(ctx context.Context, params *ListPackagingG type ListPackagingGroupsInput struct { // Upper bound on number of records to return. - MaxResults int32 + MaxResults *int32 // A token used to resume pagination from the end of a previous request. NextToken *string @@ -164,8 +164,8 @@ func NewListPackagingGroupsPaginator(client ListPackagingGroupsAPIClient, params } options := ListPackagingGroupsPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults + if params.MaxResults != nil { + options.Limit = *params.MaxResults } for _, fn := range optFns { @@ -195,7 +195,11 @@ func (p *ListPackagingGroupsPaginator) 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.ListPackagingGroups(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/mediapackagevod/api_op_UpdatePackagingGroup.go b/service/mediapackagevod/api_op_UpdatePackagingGroup.go index 1dfda297392..4768fc8419a 100644 --- a/service/mediapackagevod/api_op_UpdatePackagingGroup.go +++ b/service/mediapackagevod/api_op_UpdatePackagingGroup.go @@ -50,7 +50,7 @@ type UpdatePackagingGroupInput struct { type UpdatePackagingGroupOutput struct { // The approximate asset count of the PackagingGroup. - ApproximateAssetCount int32 + ApproximateAssetCount *int32 // The ARN of the PackagingGroup. Arn *string diff --git a/service/mediapackagevod/deserializers.go b/service/mediapackagevod/deserializers.go index 0d10f8b12c9..e1d20764839 100644 --- a/service/mediapackagevod/deserializers.go +++ b/service/mediapackagevod/deserializers.go @@ -1783,7 +1783,7 @@ func awsRestjson1_deserializeOpDocumentDescribePackagingGroupOutput(v **Describe if err != nil { return err } - sv.ApproximateAssetCount = int32(i64) + sv.ApproximateAssetCount = ptr.Int32(int32(i64)) } case "arn": @@ -2833,7 +2833,7 @@ func awsRestjson1_deserializeOpDocumentUpdatePackagingGroupOutput(v **UpdatePack if err != nil { return err } - sv.ApproximateAssetCount = int32(i64) + sv.ApproximateAssetCount = ptr.Int32(int32(i64)) } case "arn": @@ -3689,7 +3689,7 @@ func awsRestjson1_deserializeDocumentCmafPackage(v **types.CmafPackage, value in if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.IncludeEncoderConfigurationInSegments = jtv + sv.IncludeEncoderConfigurationInSegments = ptr.Bool(jtv) } case "segmentDurationSeconds": @@ -3702,7 +3702,7 @@ func awsRestjson1_deserializeDocumentCmafPackage(v **types.CmafPackage, value in if err != nil { return err } - sv.SegmentDurationSeconds = int32(i64) + sv.SegmentDurationSeconds = ptr.Int32(int32(i64)) } default: @@ -3800,7 +3800,7 @@ func awsRestjson1_deserializeDocumentDashManifest(v **types.DashManifest, value if err != nil { return err } - sv.MinBufferTimeSeconds = int32(i64) + sv.MinBufferTimeSeconds = ptr.Int32(int32(i64)) } case "profile": @@ -3873,7 +3873,7 @@ func awsRestjson1_deserializeDocumentDashPackage(v **types.DashPackage, value in if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.IncludeEncoderConfigurationInSegments = jtv + sv.IncludeEncoderConfigurationInSegments = ptr.Bool(jtv) } case "includeIframeOnlyStream": @@ -3882,7 +3882,7 @@ func awsRestjson1_deserializeDocumentDashPackage(v **types.DashPackage, value in if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.IncludeIframeOnlyStream = jtv + sv.IncludeIframeOnlyStream = ptr.Bool(jtv) } case "periodTriggers": @@ -3900,7 +3900,7 @@ func awsRestjson1_deserializeDocumentDashPackage(v **types.DashPackage, value in if err != nil { return err } - sv.SegmentDurationSeconds = int32(i64) + sv.SegmentDurationSeconds = ptr.Int32(int32(i64)) } case "segmentTemplateFormat": @@ -4199,7 +4199,7 @@ func awsRestjson1_deserializeDocumentHlsManifest(v **types.HlsManifest, value in if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.IncludeIframeOnlyStream = jtv + sv.IncludeIframeOnlyStream = ptr.Bool(jtv) } case "manifestName": @@ -4221,7 +4221,7 @@ func awsRestjson1_deserializeDocumentHlsManifest(v **types.HlsManifest, value in if err != nil { return err } - sv.ProgramDateTimeIntervalSeconds = int32(i64) + sv.ProgramDateTimeIntervalSeconds = ptr.Int32(int32(i64)) } case "repeatExtXKey": @@ -4230,7 +4230,7 @@ func awsRestjson1_deserializeDocumentHlsManifest(v **types.HlsManifest, value in if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.RepeatExtXKey = jtv + sv.RepeatExtXKey = ptr.Bool(jtv) } case "streamSelection": @@ -4285,7 +4285,7 @@ func awsRestjson1_deserializeDocumentHlsPackage(v **types.HlsPackage, value inte if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.IncludeDvbSubtitles = jtv + sv.IncludeDvbSubtitles = ptr.Bool(jtv) } case "segmentDurationSeconds": @@ -4298,7 +4298,7 @@ func awsRestjson1_deserializeDocumentHlsPackage(v **types.HlsPackage, value inte if err != nil { return err } - sv.SegmentDurationSeconds = int32(i64) + sv.SegmentDurationSeconds = ptr.Int32(int32(i64)) } case "useAudioRenditionGroup": @@ -4307,7 +4307,7 @@ func awsRestjson1_deserializeDocumentHlsPackage(v **types.HlsPackage, value inte if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.UseAudioRenditionGroup = jtv + sv.UseAudioRenditionGroup = ptr.Bool(jtv) } default: @@ -4482,7 +4482,7 @@ func awsRestjson1_deserializeDocumentMssPackage(v **types.MssPackage, value inte if err != nil { return err } - sv.SegmentDurationSeconds = int32(i64) + sv.SegmentDurationSeconds = ptr.Int32(int32(i64)) } default: @@ -4658,7 +4658,7 @@ func awsRestjson1_deserializeDocumentPackagingGroup(v **types.PackagingGroup, va if err != nil { return err } - sv.ApproximateAssetCount = int32(i64) + sv.ApproximateAssetCount = ptr.Int32(int32(i64)) } case "arn": @@ -4852,7 +4852,7 @@ func awsRestjson1_deserializeDocumentStreamSelection(v **types.StreamSelection, if err != nil { return err } - sv.MaxVideoBitsPerSecond = int32(i64) + sv.MaxVideoBitsPerSecond = ptr.Int32(int32(i64)) } case "minVideoBitsPerSecond": @@ -4865,7 +4865,7 @@ func awsRestjson1_deserializeDocumentStreamSelection(v **types.StreamSelection, if err != nil { return err } - sv.MinVideoBitsPerSecond = int32(i64) + sv.MinVideoBitsPerSecond = ptr.Int32(int32(i64)) } case "streamOrder": diff --git a/service/mediapackagevod/serializers.go b/service/mediapackagevod/serializers.go index e155a682e82..e9430a38789 100644 --- a/service/mediapackagevod/serializers.go +++ b/service/mediapackagevod/serializers.go @@ -860,8 +860,8 @@ func awsRestjson1_serializeOpHttpBindingsListAssetsInput(v *ListAssetsInput, enc return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.MaxResults != 0 { - encoder.SetQuery("maxResults").Integer(v.MaxResults) + if v.MaxResults != nil { + encoder.SetQuery("maxResults").Integer(*v.MaxResults) } if v.NextToken != nil { @@ -928,8 +928,8 @@ func awsRestjson1_serializeOpHttpBindingsListPackagingConfigurationsInput(v *Lis return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.MaxResults != 0 { - encoder.SetQuery("maxResults").Integer(v.MaxResults) + if v.MaxResults != nil { + encoder.SetQuery("maxResults").Integer(*v.MaxResults) } if v.NextToken != nil { @@ -996,8 +996,8 @@ func awsRestjson1_serializeOpHttpBindingsListPackagingGroupsInput(v *ListPackagi return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.MaxResults != 0 { - encoder.SetQuery("maxResults").Integer(v.MaxResults) + if v.MaxResults != nil { + encoder.SetQuery("maxResults").Integer(*v.MaxResults) } if v.NextToken != nil { @@ -1449,14 +1449,14 @@ func awsRestjson1_serializeDocumentCmafPackage(v *types.CmafPackage, value smith } } - if v.IncludeEncoderConfigurationInSegments { + if v.IncludeEncoderConfigurationInSegments != nil { ok := object.Key("includeEncoderConfigurationInSegments") - ok.Boolean(v.IncludeEncoderConfigurationInSegments) + ok.Boolean(*v.IncludeEncoderConfigurationInSegments) } - if v.SegmentDurationSeconds != 0 { + if v.SegmentDurationSeconds != nil { ok := object.Key("segmentDurationSeconds") - ok.Integer(v.SegmentDurationSeconds) + ok.Integer(*v.SegmentDurationSeconds) } return nil @@ -1490,9 +1490,9 @@ func awsRestjson1_serializeDocumentDashManifest(v *types.DashManifest, value smi ok.String(*v.ManifestName) } - if v.MinBufferTimeSeconds != 0 { + if v.MinBufferTimeSeconds != nil { ok := object.Key("minBufferTimeSeconds") - ok.Integer(v.MinBufferTimeSeconds) + ok.Integer(*v.MinBufferTimeSeconds) } if len(v.Profile) > 0 { @@ -1533,14 +1533,14 @@ func awsRestjson1_serializeDocumentDashPackage(v *types.DashPackage, value smith } } - if v.IncludeEncoderConfigurationInSegments { + if v.IncludeEncoderConfigurationInSegments != nil { ok := object.Key("includeEncoderConfigurationInSegments") - ok.Boolean(v.IncludeEncoderConfigurationInSegments) + ok.Boolean(*v.IncludeEncoderConfigurationInSegments) } - if v.IncludeIframeOnlyStream { + if v.IncludeIframeOnlyStream != nil { ok := object.Key("includeIframeOnlyStream") - ok.Boolean(v.IncludeIframeOnlyStream) + ok.Boolean(*v.IncludeIframeOnlyStream) } if v.PeriodTriggers != nil { @@ -1550,9 +1550,9 @@ func awsRestjson1_serializeDocumentDashPackage(v *types.DashPackage, value smith } } - if v.SegmentDurationSeconds != 0 { + if v.SegmentDurationSeconds != nil { ok := object.Key("segmentDurationSeconds") - ok.Integer(v.SegmentDurationSeconds) + ok.Integer(*v.SegmentDurationSeconds) } if len(v.SegmentTemplateFormat) > 0 { @@ -1625,9 +1625,9 @@ func awsRestjson1_serializeDocumentHlsManifest(v *types.HlsManifest, value smith ok.String(string(v.AdMarkers)) } - if v.IncludeIframeOnlyStream { + if v.IncludeIframeOnlyStream != nil { ok := object.Key("includeIframeOnlyStream") - ok.Boolean(v.IncludeIframeOnlyStream) + ok.Boolean(*v.IncludeIframeOnlyStream) } if v.ManifestName != nil { @@ -1635,14 +1635,14 @@ func awsRestjson1_serializeDocumentHlsManifest(v *types.HlsManifest, value smith ok.String(*v.ManifestName) } - if v.ProgramDateTimeIntervalSeconds != 0 { + if v.ProgramDateTimeIntervalSeconds != nil { ok := object.Key("programDateTimeIntervalSeconds") - ok.Integer(v.ProgramDateTimeIntervalSeconds) + ok.Integer(*v.ProgramDateTimeIntervalSeconds) } - if v.RepeatExtXKey { + if v.RepeatExtXKey != nil { ok := object.Key("repeatExtXKey") - ok.Boolean(v.RepeatExtXKey) + ok.Boolean(*v.RepeatExtXKey) } if v.StreamSelection != nil { @@ -1673,19 +1673,19 @@ func awsRestjson1_serializeDocumentHlsPackage(v *types.HlsPackage, value smithyj } } - if v.IncludeDvbSubtitles { + if v.IncludeDvbSubtitles != nil { ok := object.Key("includeDvbSubtitles") - ok.Boolean(v.IncludeDvbSubtitles) + ok.Boolean(*v.IncludeDvbSubtitles) } - if v.SegmentDurationSeconds != 0 { + if v.SegmentDurationSeconds != nil { ok := object.Key("segmentDurationSeconds") - ok.Integer(v.SegmentDurationSeconds) + ok.Integer(*v.SegmentDurationSeconds) } - if v.UseAudioRenditionGroup { + if v.UseAudioRenditionGroup != nil { ok := object.Key("useAudioRenditionGroup") - ok.Boolean(v.UseAudioRenditionGroup) + ok.Boolean(*v.UseAudioRenditionGroup) } return nil @@ -1742,9 +1742,9 @@ func awsRestjson1_serializeDocumentMssPackage(v *types.MssPackage, value smithyj } } - if v.SegmentDurationSeconds != 0 { + if v.SegmentDurationSeconds != nil { ok := object.Key("segmentDurationSeconds") - ok.Integer(v.SegmentDurationSeconds) + ok.Integer(*v.SegmentDurationSeconds) } return nil @@ -1785,14 +1785,14 @@ func awsRestjson1_serializeDocumentStreamSelection(v *types.StreamSelection, val object := value.Object() defer object.Close() - if v.MaxVideoBitsPerSecond != 0 { + if v.MaxVideoBitsPerSecond != nil { ok := object.Key("maxVideoBitsPerSecond") - ok.Integer(v.MaxVideoBitsPerSecond) + ok.Integer(*v.MaxVideoBitsPerSecond) } - if v.MinVideoBitsPerSecond != 0 { + if v.MinVideoBitsPerSecond != nil { ok := object.Key("minVideoBitsPerSecond") - ok.Integer(v.MinVideoBitsPerSecond) + ok.Integer(*v.MinVideoBitsPerSecond) } if len(v.StreamOrder) > 0 { diff --git a/service/mediapackagevod/types/types.go b/service/mediapackagevod/types/types.go index 243418ba1c9..c11a8b4d726 100644 --- a/service/mediapackagevod/types/types.go +++ b/service/mediapackagevod/types/types.go @@ -87,11 +87,11 @@ type CmafPackage struct { // Video Parameter Set (VPS) metadata in every video segment instead of in the init // fragment. This lets you use different SPS/PPS/VPS settings for your assets // during content playback. - IncludeEncoderConfigurationInSegments bool + IncludeEncoderConfigurationInSegments *bool // Duration (in seconds) of each fragment. Actual fragments will be rounded to the // nearest multiple of the source fragment duration. - SegmentDurationSeconds int32 + SegmentDurationSeconds *int32 noSmithyDocumentSerde } @@ -122,7 +122,7 @@ type DashManifest struct { // Minimum duration (in seconds) that a player will buffer media before starting // the presentation. - MinBufferTimeSeconds int32 + MinBufferTimeSeconds *int32 // The Dynamic Adaptive Streaming over HTTP (DASH) profile type. When set to // "HBBTV_1_5", HbbTV 1.5 compliant output is enabled. @@ -155,10 +155,10 @@ type DashPackage struct { // Video Parameter Set (VPS) metadata in every video segment instead of in the init // fragment. This lets you use different SPS/PPS/VPS settings for your assets // during content playback. - IncludeEncoderConfigurationInSegments bool + IncludeEncoderConfigurationInSegments *bool // When enabled, an I-Frame only stream will be included in the output. - IncludeIframeOnlyStream bool + IncludeIframeOnlyStream *bool // A list of triggers that controls when the outgoing Dynamic Adaptive Streaming // over HTTP (DASH) Media Presentation Description (MPD) will be partitioned into @@ -169,7 +169,7 @@ type DashPackage struct { // Duration (in seconds) of each segment. Actual segments will be rounded to the // nearest multiple of the source segment duration. - SegmentDurationSeconds int32 + SegmentDurationSeconds *int32 // Determines the type of SegmentTemplate included in the Media Presentation // Description (MPD). When set to NUMBER_WITH_TIMELINE, a full timeline is @@ -264,7 +264,7 @@ type HlsManifest struct { AdMarkers AdMarkers // When enabled, an I-Frame only stream will be included in the output. - IncludeIframeOnlyStream bool + IncludeIframeOnlyStream *bool // An optional string to include in the name of the manifest. ManifestName *string @@ -277,10 +277,10 @@ type HlsManifest struct { // generated. Note that irrespective of this parameter, if any ID3 Timed Metadata // is found in HTTP Live Streaming (HLS) input, it will be passed through to HLS // output. - ProgramDateTimeIntervalSeconds int32 + ProgramDateTimeIntervalSeconds *int32 // When enabled, the EXT-X-KEY tag will be repeated in output manifests. - RepeatExtXKey bool + RepeatExtXKey *bool // A StreamSelection configuration. StreamSelection *StreamSelection @@ -301,14 +301,14 @@ type HlsPackage struct { // When enabled, MediaPackage passes through digital video broadcasting (DVB) // subtitles into the output. - IncludeDvbSubtitles bool + IncludeDvbSubtitles *bool // Duration (in seconds) of each fragment. Actual fragments will be rounded to the // nearest multiple of the source fragment duration. - SegmentDurationSeconds int32 + SegmentDurationSeconds *int32 // When enabled, audio streams will be placed in rendition groups in the output. - UseAudioRenditionGroup bool + UseAudioRenditionGroup *bool noSmithyDocumentSerde } @@ -349,7 +349,7 @@ type MssPackage struct { Encryption *MssEncryption // The duration (in seconds) of each segment. - SegmentDurationSeconds int32 + SegmentDurationSeconds *int32 noSmithyDocumentSerde } @@ -391,7 +391,7 @@ type PackagingConfiguration struct { type PackagingGroup struct { // The approximate asset count of the PackagingGroup. - ApproximateAssetCount int32 + ApproximateAssetCount *int32 // The ARN of the PackagingGroup. Arn *string @@ -455,10 +455,10 @@ type SpekeKeyProvider struct { type StreamSelection struct { // The maximum video bitrate (bps) to include in output. - MaxVideoBitsPerSecond int32 + MaxVideoBitsPerSecond *int32 // The minimum video bitrate (bps) to include in output. - MinVideoBitsPerSecond int32 + MinVideoBitsPerSecond *int32 // A directive that determines the order of streams in the output. StreamOrder StreamOrder diff --git a/service/mq/api_op_CreateBroker.go b/service/mq/api_op_CreateBroker.go index 7ea0574372f..320b7e5f212 100644 --- a/service/mq/api_op_CreateBroker.go +++ b/service/mq/api_op_CreateBroker.go @@ -62,7 +62,7 @@ type CreateBrokerInput struct { // to true by default, if no value is specified. // // This member is required. - AutoMinorVersionUpgrade bool + AutoMinorVersionUpgrade *bool // Required. The broker's name. This value must be unique in your Amazon Web // Services account, 1-50 characters long, must contain only letters, numbers, @@ -103,7 +103,7 @@ type CreateBrokerInput struct { // broker's subnets. Set to false by default, if no value is provided. // // This member is required. - PubliclyAccessible bool + PubliclyAccessible *bool // The list of broker users (persons or applications) who can access queues and // topics. For Amazon MQ for RabbitMQ brokers, one and only one administrative user diff --git a/service/mq/api_op_CreateUser.go b/service/mq/api_op_CreateUser.go index 3fbd45545ef..f62c105250c 100644 --- a/service/mq/api_op_CreateUser.go +++ b/service/mq/api_op_CreateUser.go @@ -58,7 +58,7 @@ type CreateUserInput struct { Username *string // Enables access to the ActiveMQ Web Console for the ActiveMQ user. - ConsoleAccess bool + ConsoleAccess *bool // The list of groups (20 maximum) to which the ActiveMQ user belongs. This value // can contain only alphanumeric characters, dashes, periods, underscores, and @@ -66,7 +66,7 @@ type CreateUserInput struct { Groups []string // Defines if this user is intended for CRDR replication purposes. - ReplicationUser bool + ReplicationUser *bool noSmithyDocumentSerde } diff --git a/service/mq/api_op_DescribeBroker.go b/service/mq/api_op_DescribeBroker.go index 47c7a05eabe..89b42ec955b 100644 --- a/service/mq/api_op_DescribeBroker.go +++ b/service/mq/api_op_DescribeBroker.go @@ -54,7 +54,7 @@ type DescribeBrokerOutput struct { // Enables automatic upgrades to new minor versions for brokers, as new versions // are released and supported by Amazon MQ. Automatic upgrades occur during the // scheduled maintenance window of the broker or after a manual broker reboot. - AutoMinorVersionUpgrade bool + AutoMinorVersionUpgrade *bool // The broker's Amazon Resource Name (ARN). BrokerArn *string @@ -146,7 +146,7 @@ type DescribeBrokerOutput struct { // Enables connections from applications outside of the VPC that hosts the // broker's subnets. - PubliclyAccessible bool + PubliclyAccessible *bool // The list of rules (1 minimum, 125 maximum) that authorize connections to // brokers. diff --git a/service/mq/api_op_DescribeBrokerEngineTypes.go b/service/mq/api_op_DescribeBrokerEngineTypes.go index ce01a074f3c..0a5430282a4 100644 --- a/service/mq/api_op_DescribeBrokerEngineTypes.go +++ b/service/mq/api_op_DescribeBrokerEngineTypes.go @@ -39,7 +39,7 @@ type DescribeBrokerEngineTypesInput struct { // The maximum number of brokers that Amazon MQ can return per page (20 by // default). This value must be an integer from 5 to 100. - MaxResults int32 + MaxResults *int32 // The token that specifies the next page of results Amazon MQ should return. To // request the first page, leave nextToken empty. @@ -55,7 +55,7 @@ type DescribeBrokerEngineTypesOutput struct { // Required. The maximum number of engine types that can be returned per page (20 // by default). This value must be an integer from 5 to 100. - MaxResults int32 + MaxResults *int32 // The token that specifies the next page of results Amazon MQ should return. To // request the first page, leave nextToken empty. diff --git a/service/mq/api_op_DescribeBrokerInstanceOptions.go b/service/mq/api_op_DescribeBrokerInstanceOptions.go index 8c35f6d66f9..c3fc83d2392 100644 --- a/service/mq/api_op_DescribeBrokerInstanceOptions.go +++ b/service/mq/api_op_DescribeBrokerInstanceOptions.go @@ -42,7 +42,7 @@ type DescribeBrokerInstanceOptionsInput struct { // The maximum number of brokers that Amazon MQ can return per page (20 by // default). This value must be an integer from 5 to 100. - MaxResults int32 + MaxResults *int32 // The token that specifies the next page of results Amazon MQ should return. To // request the first page, leave nextToken empty. @@ -61,7 +61,7 @@ type DescribeBrokerInstanceOptionsOutput struct { // Required. The maximum number of instance options that can be returned per page // (20 by default). This value must be an integer from 5 to 100. - MaxResults int32 + MaxResults *int32 // The token that specifies the next page of results Amazon MQ should return. To // request the first page, leave nextToken empty. diff --git a/service/mq/api_op_DescribeUser.go b/service/mq/api_op_DescribeUser.go index fd944dbfe14..020d9885899 100644 --- a/service/mq/api_op_DescribeUser.go +++ b/service/mq/api_op_DescribeUser.go @@ -55,7 +55,7 @@ type DescribeUserOutput struct { BrokerId *string // Enables access to the the ActiveMQ Web Console for the ActiveMQ user. - ConsoleAccess bool + ConsoleAccess *bool // The list of groups (20 maximum) to which the ActiveMQ user belongs. This value // can contain only alphanumeric characters, dashes, periods, underscores, and @@ -66,7 +66,7 @@ type DescribeUserOutput struct { Pending *types.UserPendingChanges // Describes whether the user is intended for data replication - ReplicationUser bool + ReplicationUser *bool // Required. The username of the ActiveMQ user. This value can contain only // alphanumeric characters, dashes, periods, underscores, and tildes (- . _ ~). diff --git a/service/mq/api_op_ListBrokers.go b/service/mq/api_op_ListBrokers.go index b89601cf21a..3fa115b1ae1 100644 --- a/service/mq/api_op_ListBrokers.go +++ b/service/mq/api_op_ListBrokers.go @@ -36,7 +36,7 @@ type ListBrokersInput struct { // The maximum number of brokers that Amazon MQ can return per page (20 by // default). This value must be an integer from 5 to 100. - MaxResults int32 + MaxResults *int32 // The token that specifies the next page of results Amazon MQ should return. To // request the first page, leave nextToken empty. @@ -166,8 +166,8 @@ func NewListBrokersPaginator(client ListBrokersAPIClient, params *ListBrokersInp } options := ListBrokersPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults + if params.MaxResults != nil { + options.Limit = *params.MaxResults } for _, fn := range optFns { @@ -197,7 +197,11 @@ func (p *ListBrokersPaginator) NextPage(ctx context.Context, optFns ...func(*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.ListBrokers(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/mq/api_op_ListConfigurationRevisions.go b/service/mq/api_op_ListConfigurationRevisions.go index f863bde07da..42e7a268beb 100644 --- a/service/mq/api_op_ListConfigurationRevisions.go +++ b/service/mq/api_op_ListConfigurationRevisions.go @@ -41,7 +41,7 @@ type ListConfigurationRevisionsInput struct { // The maximum number of brokers that Amazon MQ can return per page (20 by // default). This value must be an integer from 5 to 100. - MaxResults int32 + MaxResults *int32 // The token that specifies the next page of results Amazon MQ should return. To // request the first page, leave nextToken empty. @@ -57,7 +57,7 @@ type ListConfigurationRevisionsOutput struct { // The maximum number of configuration revisions that can be returned per page (20 // by default). This value must be an integer from 5 to 100. - MaxResults int32 + MaxResults *int32 // The token that specifies the next page of results Amazon MQ should return. To // request the first page, leave nextToken empty. diff --git a/service/mq/api_op_ListConfigurations.go b/service/mq/api_op_ListConfigurations.go index a3c43f93cc8..7e26d3c73f8 100644 --- a/service/mq/api_op_ListConfigurations.go +++ b/service/mq/api_op_ListConfigurations.go @@ -36,7 +36,7 @@ type ListConfigurationsInput struct { // The maximum number of brokers that Amazon MQ can return per page (20 by // default). This value must be an integer from 5 to 100. - MaxResults int32 + MaxResults *int32 // The token that specifies the next page of results Amazon MQ should return. To // request the first page, leave nextToken empty. @@ -52,7 +52,7 @@ type ListConfigurationsOutput struct { // The maximum number of configurations that Amazon MQ can return per page (20 by // default). This value must be an integer from 5 to 100. - MaxResults int32 + MaxResults *int32 // The token that specifies the next page of results Amazon MQ should return. To // request the first page, leave nextToken empty. diff --git a/service/mq/api_op_ListUsers.go b/service/mq/api_op_ListUsers.go index e1e868cf19b..38a64938ba7 100644 --- a/service/mq/api_op_ListUsers.go +++ b/service/mq/api_op_ListUsers.go @@ -41,7 +41,7 @@ type ListUsersInput struct { // The maximum number of brokers that Amazon MQ can return per page (20 by // default). This value must be an integer from 5 to 100. - MaxResults int32 + MaxResults *int32 // The token that specifies the next page of results Amazon MQ should return. To // request the first page, leave nextToken empty. @@ -57,7 +57,7 @@ type ListUsersOutput struct { // Required. The maximum number of ActiveMQ users that can be returned per page // (20 by default). This value must be an integer from 5 to 100. - MaxResults int32 + MaxResults *int32 // The token that specifies the next page of results Amazon MQ should return. To // request the first page, leave nextToken empty. diff --git a/service/mq/api_op_UpdateBroker.go b/service/mq/api_op_UpdateBroker.go index 3389577072c..c0f21c8d47f 100644 --- a/service/mq/api_op_UpdateBroker.go +++ b/service/mq/api_op_UpdateBroker.go @@ -47,7 +47,7 @@ type UpdateBrokerInput struct { // Enables automatic upgrades to new minor versions for brokers, as new versions // are released and supported by Amazon MQ. Automatic upgrades occur during the // scheduled maintenance window of the broker or after a manual broker reboot. - AutoMinorVersionUpgrade bool + AutoMinorVersionUpgrade *bool // A list of information about the configuration. Configuration *types.ConfigurationId @@ -91,7 +91,7 @@ type UpdateBrokerOutput struct { // The new boolean value that specifies whether broker engines automatically // upgrade to new minor versions as new versions are released and supported by // Amazon MQ. - AutoMinorVersionUpgrade bool + AutoMinorVersionUpgrade *bool // Required. The unique ID that Amazon MQ generates for the broker. BrokerId *string diff --git a/service/mq/api_op_UpdateUser.go b/service/mq/api_op_UpdateUser.go index 980f3df6702..4993b822a06 100644 --- a/service/mq/api_op_UpdateUser.go +++ b/service/mq/api_op_UpdateUser.go @@ -47,7 +47,7 @@ type UpdateUserInput struct { Username *string // Enables access to the the ActiveMQ Web Console for the ActiveMQ user. - ConsoleAccess bool + ConsoleAccess *bool // The list of groups (20 maximum) to which the ActiveMQ user belongs. This value // can contain only alphanumeric characters, dashes, periods, underscores, and @@ -60,7 +60,7 @@ type UpdateUserInput struct { Password *string // Defines whether the user is intended for data replication. - ReplicationUser bool + ReplicationUser *bool noSmithyDocumentSerde } diff --git a/service/mq/deserializers.go b/service/mq/deserializers.go index ae1d6bea04e..7caf9eda902 100644 --- a/service/mq/deserializers.go +++ b/service/mq/deserializers.go @@ -1102,7 +1102,7 @@ func awsRestjson1_deserializeOpDocumentDescribeBrokerOutput(v **DescribeBrokerOu if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.AutoMinorVersionUpgrade = jtv + sv.AutoMinorVersionUpgrade = ptr.Bool(jtv) } case "brokerArn": @@ -1291,7 +1291,7 @@ func awsRestjson1_deserializeOpDocumentDescribeBrokerOutput(v **DescribeBrokerOu if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.PubliclyAccessible = jtv + sv.PubliclyAccessible = ptr.Bool(jtv) } case "securityGroups": @@ -1486,7 +1486,7 @@ func awsRestjson1_deserializeOpDocumentDescribeBrokerEngineTypesOutput(v **Descr if err != nil { return err } - sv.MaxResults = int32(i64) + sv.MaxResults = ptr.Int32(int32(i64)) } case "nextToken": @@ -1661,7 +1661,7 @@ func awsRestjson1_deserializeOpDocumentDescribeBrokerInstanceOptionsOutput(v **D if err != nil { return err } - sv.MaxResults = int32(i64) + sv.MaxResults = ptr.Int32(int32(i64)) } case "nextToken": @@ -2267,7 +2267,7 @@ func awsRestjson1_deserializeOpDocumentDescribeUserOutput(v **DescribeUserOutput if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.ConsoleAccess = jtv + sv.ConsoleAccess = ptr.Bool(jtv) } case "groups": @@ -2286,7 +2286,7 @@ func awsRestjson1_deserializeOpDocumentDescribeUserOutput(v **DescribeUserOutput if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.ReplicationUser = jtv + sv.ReplicationUser = ptr.Bool(jtv) } case "username": @@ -2630,7 +2630,7 @@ func awsRestjson1_deserializeOpDocumentListConfigurationRevisionsOutput(v **List if err != nil { return err } - sv.MaxResults = int32(i64) + sv.MaxResults = ptr.Int32(int32(i64)) } case "nextToken": @@ -2810,7 +2810,7 @@ func awsRestjson1_deserializeOpDocumentListConfigurationsOutput(v **ListConfigur if err != nil { return err } - sv.MaxResults = int32(i64) + sv.MaxResults = ptr.Int32(int32(i64)) } case "nextToken": @@ -3148,7 +3148,7 @@ func awsRestjson1_deserializeOpDocumentListUsersOutput(v **ListUsersOutput, valu if err != nil { return err } - sv.MaxResults = int32(i64) + sv.MaxResults = ptr.Int32(int32(i64)) } case "nextToken": @@ -3586,7 +3586,7 @@ func awsRestjson1_deserializeOpDocumentUpdateBrokerOutput(v **UpdateBrokerOutput if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.AutoMinorVersionUpgrade = jtv + sv.AutoMinorVersionUpgrade = ptr.Bool(jtv) } case "brokerId": @@ -5284,7 +5284,7 @@ func awsRestjson1_deserializeDocumentConfigurationId(v **types.ConfigurationId, if err != nil { return err } - sv.Revision = int32(i64) + sv.Revision = ptr.Int32(int32(i64)) } default: @@ -5350,7 +5350,7 @@ func awsRestjson1_deserializeDocumentConfigurationRevision(v **types.Configurati if err != nil { return err } - sv.Revision = int32(i64) + sv.Revision = ptr.Int32(int32(i64)) } default: @@ -5588,7 +5588,7 @@ func awsRestjson1_deserializeDocumentEncryptionOptions(v **types.EncryptionOptio if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.UseAwsOwnedKey = jtv + sv.UseAwsOwnedKey = ptr.Bool(jtv) } default: @@ -5798,7 +5798,7 @@ func awsRestjson1_deserializeDocumentLdapServerMetadataOutput(v **types.LdapServ if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.RoleSearchSubtree = jtv + sv.RoleSearchSubtree = ptr.Bool(jtv) } case "serviceAccountUsername": @@ -5843,7 +5843,7 @@ func awsRestjson1_deserializeDocumentLdapServerMetadataOutput(v **types.LdapServ if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.UserSearchSubtree = jtv + sv.UserSearchSubtree = ptr.Bool(jtv) } default: @@ -5883,7 +5883,7 @@ func awsRestjson1_deserializeDocumentLogs(v **types.Logs, value interface{}) err if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.Audit = jtv + sv.Audit = ptr.Bool(jtv) } case "general": @@ -5892,7 +5892,7 @@ func awsRestjson1_deserializeDocumentLogs(v **types.Logs, value interface{}) err if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.General = jtv + sv.General = ptr.Bool(jtv) } default: @@ -5932,7 +5932,7 @@ func awsRestjson1_deserializeDocumentLogsSummary(v **types.LogsSummary, value in if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.Audit = jtv + sv.Audit = ptr.Bool(jtv) } case "auditLogGroup": @@ -5950,7 +5950,7 @@ func awsRestjson1_deserializeDocumentLogsSummary(v **types.LogsSummary, value in if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.General = jtv + sv.General = ptr.Bool(jtv) } case "generalLogGroup": @@ -6053,7 +6053,7 @@ func awsRestjson1_deserializeDocumentPendingLogs(v **types.PendingLogs, value in if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.Audit = jtv + sv.Audit = ptr.Bool(jtv) } case "general": @@ -6062,7 +6062,7 @@ func awsRestjson1_deserializeDocumentPendingLogs(v **types.PendingLogs, value in if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.General = jtv + sv.General = ptr.Bool(jtv) } default: @@ -6209,7 +6209,7 @@ func awsRestjson1_deserializeDocumentUserPendingChanges(v **types.UserPendingCha if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.ConsoleAccess = jtv + sv.ConsoleAccess = ptr.Bool(jtv) } case "groups": diff --git a/service/mq/serializers.go b/service/mq/serializers.go index 905ef81de79..fe6f3bc272c 100644 --- a/service/mq/serializers.go +++ b/service/mq/serializers.go @@ -86,9 +86,9 @@ func awsRestjson1_serializeOpDocumentCreateBrokerInput(v *CreateBrokerInput, val ok.String(string(v.AuthenticationStrategy)) } - { + if v.AutoMinorVersionUpgrade != nil { ok := object.Key("autoMinorVersionUpgrade") - ok.Boolean(v.AutoMinorVersionUpgrade) + ok.Boolean(*v.AutoMinorVersionUpgrade) } if v.BrokerName != nil { @@ -166,9 +166,9 @@ func awsRestjson1_serializeOpDocumentCreateBrokerInput(v *CreateBrokerInput, val } } - { + if v.PubliclyAccessible != nil { ok := object.Key("publiclyAccessible") - ok.Boolean(v.PubliclyAccessible) + ok.Boolean(*v.PubliclyAccessible) } if v.SecurityGroups != nil { @@ -483,9 +483,9 @@ func awsRestjson1_serializeOpDocumentCreateUserInput(v *CreateUserInput, value s object := value.Object() defer object.Close() - if v.ConsoleAccess { + if v.ConsoleAccess != nil { ok := object.Key("consoleAccess") - ok.Boolean(v.ConsoleAccess) + ok.Boolean(*v.ConsoleAccess) } if v.Groups != nil { @@ -500,9 +500,9 @@ func awsRestjson1_serializeOpDocumentCreateUserInput(v *CreateUserInput, value s ok.String(*v.Password) } - if v.ReplicationUser { + if v.ReplicationUser != nil { ok := object.Key("replicationUser") - ok.Boolean(v.ReplicationUser) + ok.Boolean(*v.ReplicationUser) } return nil @@ -840,8 +840,8 @@ func awsRestjson1_serializeOpHttpBindingsDescribeBrokerEngineTypesInput(v *Descr encoder.SetQuery("engineType").String(*v.EngineType) } - if v.MaxResults != 0 { - encoder.SetQuery("maxResults").Integer(v.MaxResults) + if v.MaxResults != nil { + encoder.SetQuery("maxResults").Integer(*v.MaxResults) } if v.NextToken != nil { @@ -912,8 +912,8 @@ func awsRestjson1_serializeOpHttpBindingsDescribeBrokerInstanceOptionsInput(v *D encoder.SetQuery("hostInstanceType").String(*v.HostInstanceType) } - if v.MaxResults != 0 { - encoder.SetQuery("maxResults").Integer(v.MaxResults) + if v.MaxResults != nil { + encoder.SetQuery("maxResults").Integer(*v.MaxResults) } if v.NextToken != nil { @@ -1193,8 +1193,8 @@ func awsRestjson1_serializeOpHttpBindingsListBrokersInput(v *ListBrokersInput, e return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.MaxResults != 0 { - encoder.SetQuery("maxResults").Integer(v.MaxResults) + if v.MaxResults != nil { + encoder.SetQuery("maxResults").Integer(*v.MaxResults) } if v.NextToken != nil { @@ -1266,8 +1266,8 @@ func awsRestjson1_serializeOpHttpBindingsListConfigurationRevisionsInput(v *List } } - if v.MaxResults != 0 { - encoder.SetQuery("maxResults").Integer(v.MaxResults) + if v.MaxResults != nil { + encoder.SetQuery("maxResults").Integer(*v.MaxResults) } if v.NextToken != nil { @@ -1330,8 +1330,8 @@ func awsRestjson1_serializeOpHttpBindingsListConfigurationsInput(v *ListConfigur return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.MaxResults != 0 { - encoder.SetQuery("maxResults").Integer(v.MaxResults) + if v.MaxResults != nil { + encoder.SetQuery("maxResults").Integer(*v.MaxResults) } if v.NextToken != nil { @@ -1468,8 +1468,8 @@ func awsRestjson1_serializeOpHttpBindingsListUsersInput(v *ListUsersInput, encod } } - if v.MaxResults != 0 { - encoder.SetQuery("maxResults").Integer(v.MaxResults) + if v.MaxResults != nil { + encoder.SetQuery("maxResults").Integer(*v.MaxResults) } if v.NextToken != nil { @@ -1717,9 +1717,9 @@ func awsRestjson1_serializeOpDocumentUpdateBrokerInput(v *UpdateBrokerInput, val ok.String(string(v.AuthenticationStrategy)) } - if v.AutoMinorVersionUpgrade { + if v.AutoMinorVersionUpgrade != nil { ok := object.Key("autoMinorVersionUpgrade") - ok.Boolean(v.AutoMinorVersionUpgrade) + ok.Boolean(*v.AutoMinorVersionUpgrade) } if v.Configuration != nil { @@ -1957,9 +1957,9 @@ func awsRestjson1_serializeOpDocumentUpdateUserInput(v *UpdateUserInput, value s object := value.Object() defer object.Close() - if v.ConsoleAccess { + if v.ConsoleAccess != nil { ok := object.Key("consoleAccess") - ok.Boolean(v.ConsoleAccess) + ok.Boolean(*v.ConsoleAccess) } if v.Groups != nil { @@ -1974,9 +1974,9 @@ func awsRestjson1_serializeOpDocumentUpdateUserInput(v *UpdateUserInput, value s ok.String(*v.Password) } - if v.ReplicationUser { + if v.ReplicationUser != nil { ok := object.Key("replicationUser") - ok.Boolean(v.ReplicationUser) + ok.Boolean(*v.ReplicationUser) } return nil @@ -2026,9 +2026,9 @@ func awsRestjson1_serializeDocumentConfigurationId(v *types.ConfigurationId, val ok.String(*v.Id) } - if v.Revision != 0 { + if v.Revision != nil { ok := object.Key("revision") - ok.Integer(v.Revision) + ok.Integer(*v.Revision) } return nil @@ -2043,9 +2043,9 @@ func awsRestjson1_serializeDocumentEncryptionOptions(v *types.EncryptionOptions, ok.String(*v.KmsKeyId) } - { + if v.UseAwsOwnedKey != nil { ok := object.Key("useAwsOwnedKey") - ok.Boolean(v.UseAwsOwnedKey) + ok.Boolean(*v.UseAwsOwnedKey) } return nil @@ -2077,9 +2077,9 @@ func awsRestjson1_serializeDocumentLdapServerMetadataInput(v *types.LdapServerMe ok.String(*v.RoleSearchMatching) } - if v.RoleSearchSubtree { + if v.RoleSearchSubtree != nil { ok := object.Key("roleSearchSubtree") - ok.Boolean(v.RoleSearchSubtree) + ok.Boolean(*v.RoleSearchSubtree) } if v.ServiceAccountPassword != nil { @@ -2107,9 +2107,9 @@ func awsRestjson1_serializeDocumentLdapServerMetadataInput(v *types.LdapServerMe ok.String(*v.UserSearchMatching) } - if v.UserSearchSubtree { + if v.UserSearchSubtree != nil { ok := object.Key("userSearchSubtree") - ok.Boolean(v.UserSearchSubtree) + ok.Boolean(*v.UserSearchSubtree) } return nil @@ -2119,14 +2119,14 @@ func awsRestjson1_serializeDocumentLogs(v *types.Logs, value smithyjson.Value) e object := value.Object() defer object.Close() - if v.Audit { + if v.Audit != nil { ok := object.Key("audit") - ok.Boolean(v.Audit) + ok.Boolean(*v.Audit) } - if v.General { + if v.General != nil { ok := object.Key("general") - ok.Boolean(v.General) + ok.Boolean(*v.General) } return nil @@ -2136,9 +2136,9 @@ func awsRestjson1_serializeDocumentUser(v *types.User, value smithyjson.Value) e object := value.Object() defer object.Close() - if v.ConsoleAccess { + if v.ConsoleAccess != nil { ok := object.Key("consoleAccess") - ok.Boolean(v.ConsoleAccess) + ok.Boolean(*v.ConsoleAccess) } if v.Groups != nil { @@ -2153,9 +2153,9 @@ func awsRestjson1_serializeDocumentUser(v *types.User, value smithyjson.Value) e ok.String(*v.Password) } - if v.ReplicationUser { + if v.ReplicationUser != nil { ok := object.Key("replicationUser") - ok.Boolean(v.ReplicationUser) + ok.Boolean(*v.ReplicationUser) } if v.Username != nil { diff --git a/service/mq/types/types.go b/service/mq/types/types.go index c37cb2e504b..1d43325d879 100644 --- a/service/mq/types/types.go +++ b/service/mq/types/types.go @@ -187,7 +187,7 @@ type ConfigurationId struct { Id *string // The revision number of the configuration. - Revision int32 + Revision *int32 noSmithyDocumentSerde } @@ -203,7 +203,7 @@ type ConfigurationRevision struct { // Required. The revision number of the configuration. // // This member is required. - Revision int32 + Revision *int32 // The description of the configuration revision. Description *string @@ -266,7 +266,7 @@ type EncryptionOptions struct { // true by default, if no value is provided, for example, for RabbitMQ brokers. // // This member is required. - UseAwsOwnedKey bool + UseAwsOwnedKey *bool // The customer master key (CMK) to use for the A KMS (KMS). This key is used to // encrypt your data at rest. If not provided, Amazon MQ will use a default CMK to @@ -353,14 +353,14 @@ type LdapServerMetadataInput struct { // The directory search scope for the role. If set to true, scope is to search the // entire subtree. - RoleSearchSubtree bool + RoleSearchSubtree *bool // Specifies the name of the LDAP attribute for the user group membership. UserRoleName *string // The directory search scope for the user. If set to true, scope is to search the // entire subtree. - UserSearchSubtree bool + UserSearchSubtree *bool noSmithyDocumentSerde } @@ -426,14 +426,14 @@ type LdapServerMetadataOutput struct { // The directory search scope for the role. If set to true, scope is to search the // entire subtree. - RoleSearchSubtree bool + RoleSearchSubtree *bool // Specifies the name of the LDAP attribute for the user group membership. UserRoleName *string // The directory search scope for the user. If set to true, scope is to search the // entire subtree. - UserSearchSubtree bool + UserSearchSubtree *bool noSmithyDocumentSerde } @@ -443,10 +443,10 @@ type Logs struct { // Enables audit logging. Every user management action made using JMX or the // ActiveMQ Web Console is logged. Does not apply to RabbitMQ brokers. - Audit bool + Audit *bool // Enables general logging. - General bool + General *bool noSmithyDocumentSerde } @@ -458,7 +458,7 @@ type LogsSummary struct { // Enables general logging. // // This member is required. - General bool + General *bool // The location of the CloudWatch Logs log group where general logs are sent. // @@ -467,7 +467,7 @@ type LogsSummary struct { // Enables audit logging. Every user management action made using JMX or the // ActiveMQ Web Console is logged. - Audit bool + Audit *bool // The location of the CloudWatch Logs log group where audit logs are sent. AuditLogGroup *string @@ -484,10 +484,10 @@ type PendingLogs struct { // Enables audit logging. Every user management action made using JMX or the // ActiveMQ Web Console is logged. - Audit bool + Audit *bool // Enables general logging. - General bool + General *bool noSmithyDocumentSerde } @@ -542,7 +542,7 @@ type User struct { // Enables access to the ActiveMQ Web Console for the ActiveMQ user. Does not // apply to RabbitMQ brokers. - ConsoleAccess bool + ConsoleAccess *bool // The list of groups (20 maximum) to which the ActiveMQ user belongs. This value // can contain only alphanumeric characters, dashes, periods, underscores, and @@ -551,7 +551,7 @@ type User struct { Groups []string // Defines if this user is intended for CRDR replication purposes. - ReplicationUser bool + ReplicationUser *bool noSmithyDocumentSerde } @@ -566,7 +566,7 @@ type UserPendingChanges struct { PendingChange ChangeType // Enables access to the the ActiveMQ Web Console for the ActiveMQ user. - ConsoleAccess bool + ConsoleAccess *bool // The list of groups (20 maximum) to which the ActiveMQ user belongs. This value // can contain only alphanumeric characters, dashes, periods, underscores, and diff --git a/service/mq/validators.go b/service/mq/validators.go index 72fd803f1c6..fdf663f94d3 100644 --- a/service/mq/validators.go +++ b/service/mq/validators.go @@ -503,6 +503,9 @@ func validateEncryptionOptions(v *types.EncryptionOptions) error { return nil } invalidParams := smithy.InvalidParamsError{Context: "EncryptionOptions"} + if v.UseAwsOwnedKey == nil { + invalidParams.Add(smithy.NewErrParamRequired("UseAwsOwnedKey")) + } if invalidParams.Len() > 0 { return invalidParams } else { @@ -584,6 +587,9 @@ func validateOpCreateBrokerInput(v *CreateBrokerInput) error { return nil } invalidParams := smithy.InvalidParamsError{Context: "CreateBrokerInput"} + if v.AutoMinorVersionUpgrade == nil { + invalidParams.Add(smithy.NewErrParamRequired("AutoMinorVersionUpgrade")) + } if v.BrokerName == nil { invalidParams.Add(smithy.NewErrParamRequired("BrokerName")) } @@ -619,6 +625,9 @@ func validateOpCreateBrokerInput(v *CreateBrokerInput) error { invalidParams.AddNested("MaintenanceWindowStartTime", err.(smithy.InvalidParamsError)) } } + if v.PubliclyAccessible == nil { + invalidParams.Add(smithy.NewErrParamRequired("PubliclyAccessible")) + } if v.Users == nil { invalidParams.Add(smithy.NewErrParamRequired("Users")) } else if v.Users != nil { diff --git a/service/pinpoint/api_op_UpdateEmailTemplate.go b/service/pinpoint/api_op_UpdateEmailTemplate.go index d4c9d8ece41..94f944825e3 100644 --- a/service/pinpoint/api_op_UpdateEmailTemplate.go +++ b/service/pinpoint/api_op_UpdateEmailTemplate.go @@ -56,7 +56,7 @@ type UpdateEmailTemplateInput struct { // (overwrites) the latest existing version of the template. If you specify a value // of true for this parameter, don't specify a value for the version parameter. // Otherwise, an error will occur. - CreateNewVersion bool + CreateNewVersion *bool // The unique identifier for the version of the message template to update, // retrieve information about, or delete. To retrieve identifiers and other diff --git a/service/pinpoint/api_op_UpdateInAppTemplate.go b/service/pinpoint/api_op_UpdateInAppTemplate.go index aa46b2e1dfd..98394b4d5d1 100644 --- a/service/pinpoint/api_op_UpdateInAppTemplate.go +++ b/service/pinpoint/api_op_UpdateInAppTemplate.go @@ -55,7 +55,7 @@ type UpdateInAppTemplateInput struct { // (overwrites) the latest existing version of the template. If you specify a value // of true for this parameter, don't specify a value for the version parameter. // Otherwise, an error will occur. - CreateNewVersion bool + CreateNewVersion *bool // The unique identifier for the version of the message template to update, // retrieve information about, or delete. To retrieve identifiers and other diff --git a/service/pinpoint/api_op_UpdatePushTemplate.go b/service/pinpoint/api_op_UpdatePushTemplate.go index 9d6d21c5d87..82ffd1ce887 100644 --- a/service/pinpoint/api_op_UpdatePushTemplate.go +++ b/service/pinpoint/api_op_UpdatePushTemplate.go @@ -56,7 +56,7 @@ type UpdatePushTemplateInput struct { // (overwrites) the latest existing version of the template. If you specify a value // of true for this parameter, don't specify a value for the version parameter. // Otherwise, an error will occur. - CreateNewVersion bool + CreateNewVersion *bool // The unique identifier for the version of the message template to update, // retrieve information about, or delete. To retrieve identifiers and other diff --git a/service/pinpoint/api_op_UpdateSmsTemplate.go b/service/pinpoint/api_op_UpdateSmsTemplate.go index 4d2c235e559..296293259ed 100644 --- a/service/pinpoint/api_op_UpdateSmsTemplate.go +++ b/service/pinpoint/api_op_UpdateSmsTemplate.go @@ -56,7 +56,7 @@ type UpdateSmsTemplateInput struct { // (overwrites) the latest existing version of the template. If you specify a value // of true for this parameter, don't specify a value for the version parameter. // Otherwise, an error will occur. - CreateNewVersion bool + CreateNewVersion *bool // The unique identifier for the version of the message template to update, // retrieve information about, or delete. To retrieve identifiers and other diff --git a/service/pinpoint/api_op_UpdateVoiceTemplate.go b/service/pinpoint/api_op_UpdateVoiceTemplate.go index bb671ff314f..6a5092e9b62 100644 --- a/service/pinpoint/api_op_UpdateVoiceTemplate.go +++ b/service/pinpoint/api_op_UpdateVoiceTemplate.go @@ -56,7 +56,7 @@ type UpdateVoiceTemplateInput struct { // (overwrites) the latest existing version of the template. If you specify a value // of true for this parameter, don't specify a value for the version parameter. // Otherwise, an error will occur. - CreateNewVersion bool + CreateNewVersion *bool // The unique identifier for the version of the message template to update, // retrieve information about, or delete. To retrieve identifiers and other diff --git a/service/pinpoint/deserializers.go b/service/pinpoint/deserializers.go index ac76586b7dd..6783f2cfb33 100644 --- a/service/pinpoint/deserializers.go +++ b/service/pinpoint/deserializers.go @@ -20471,7 +20471,7 @@ func awsRestjson1_deserializeDocumentActivityResponse(v **types.ActivityResponse if err != nil { return err } - sv.SuccessfulEndpointCount = int32(i64) + sv.SuccessfulEndpointCount = ptr.Int32(int32(i64)) } case "TimezonesCompletedCount": @@ -20484,7 +20484,7 @@ func awsRestjson1_deserializeDocumentActivityResponse(v **types.ActivityResponse if err != nil { return err } - sv.TimezonesCompletedCount = int32(i64) + sv.TimezonesCompletedCount = ptr.Int32(int32(i64)) } case "TimezonesTotalCount": @@ -20497,7 +20497,7 @@ func awsRestjson1_deserializeDocumentActivityResponse(v **types.ActivityResponse if err != nil { return err } - sv.TimezonesTotalCount = int32(i64) + sv.TimezonesTotalCount = ptr.Int32(int32(i64)) } case "TotalEndpointCount": @@ -20510,7 +20510,7 @@ func awsRestjson1_deserializeDocumentActivityResponse(v **types.ActivityResponse if err != nil { return err } - sv.TotalEndpointCount = int32(i64) + sv.TotalEndpointCount = ptr.Int32(int32(i64)) } case "TreatmentId": @@ -20577,7 +20577,7 @@ func awsRestjson1_deserializeDocumentADMChannelResponse(v **types.ADMChannelResp if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.Enabled = jtv + sv.Enabled = ptr.Bool(jtv) } case "HasCredential": @@ -20586,7 +20586,7 @@ func awsRestjson1_deserializeDocumentADMChannelResponse(v **types.ADMChannelResp if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.HasCredential = jtv + sv.HasCredential = ptr.Bool(jtv) } case "Id": @@ -20604,7 +20604,7 @@ func awsRestjson1_deserializeDocumentADMChannelResponse(v **types.ADMChannelResp if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.IsArchived = jtv + sv.IsArchived = ptr.Bool(jtv) } case "LastModifiedBy": @@ -20644,7 +20644,7 @@ func awsRestjson1_deserializeDocumentADMChannelResponse(v **types.ADMChannelResp if err != nil { return err } - sv.Version = int32(i64) + sv.Version = ptr.Int32(int32(i64)) } default: @@ -20823,7 +20823,7 @@ func awsRestjson1_deserializeDocumentAPNSChannelResponse(v **types.APNSChannelRe if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.Enabled = jtv + sv.Enabled = ptr.Bool(jtv) } case "HasCredential": @@ -20832,7 +20832,7 @@ func awsRestjson1_deserializeDocumentAPNSChannelResponse(v **types.APNSChannelRe if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.HasCredential = jtv + sv.HasCredential = ptr.Bool(jtv) } case "HasTokenKey": @@ -20841,7 +20841,7 @@ func awsRestjson1_deserializeDocumentAPNSChannelResponse(v **types.APNSChannelRe if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.HasTokenKey = jtv + sv.HasTokenKey = ptr.Bool(jtv) } case "Id": @@ -20859,7 +20859,7 @@ func awsRestjson1_deserializeDocumentAPNSChannelResponse(v **types.APNSChannelRe if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.IsArchived = jtv + sv.IsArchived = ptr.Bool(jtv) } case "LastModifiedBy": @@ -20899,7 +20899,7 @@ func awsRestjson1_deserializeDocumentAPNSChannelResponse(v **types.APNSChannelRe if err != nil { return err } - sv.Version = int32(i64) + sv.Version = ptr.Int32(int32(i64)) } default: @@ -21060,7 +21060,7 @@ func awsRestjson1_deserializeDocumentAPNSSandboxChannelResponse(v **types.APNSSa if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.Enabled = jtv + sv.Enabled = ptr.Bool(jtv) } case "HasCredential": @@ -21069,7 +21069,7 @@ func awsRestjson1_deserializeDocumentAPNSSandboxChannelResponse(v **types.APNSSa if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.HasCredential = jtv + sv.HasCredential = ptr.Bool(jtv) } case "HasTokenKey": @@ -21078,7 +21078,7 @@ func awsRestjson1_deserializeDocumentAPNSSandboxChannelResponse(v **types.APNSSa if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.HasTokenKey = jtv + sv.HasTokenKey = ptr.Bool(jtv) } case "Id": @@ -21096,7 +21096,7 @@ func awsRestjson1_deserializeDocumentAPNSSandboxChannelResponse(v **types.APNSSa if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.IsArchived = jtv + sv.IsArchived = ptr.Bool(jtv) } case "LastModifiedBy": @@ -21136,7 +21136,7 @@ func awsRestjson1_deserializeDocumentAPNSSandboxChannelResponse(v **types.APNSSa if err != nil { return err } - sv.Version = int32(i64) + sv.Version = ptr.Int32(int32(i64)) } default: @@ -21203,7 +21203,7 @@ func awsRestjson1_deserializeDocumentAPNSVoipChannelResponse(v **types.APNSVoipC if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.Enabled = jtv + sv.Enabled = ptr.Bool(jtv) } case "HasCredential": @@ -21212,7 +21212,7 @@ func awsRestjson1_deserializeDocumentAPNSVoipChannelResponse(v **types.APNSVoipC if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.HasCredential = jtv + sv.HasCredential = ptr.Bool(jtv) } case "HasTokenKey": @@ -21221,7 +21221,7 @@ func awsRestjson1_deserializeDocumentAPNSVoipChannelResponse(v **types.APNSVoipC if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.HasTokenKey = jtv + sv.HasTokenKey = ptr.Bool(jtv) } case "Id": @@ -21239,7 +21239,7 @@ func awsRestjson1_deserializeDocumentAPNSVoipChannelResponse(v **types.APNSVoipC if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.IsArchived = jtv + sv.IsArchived = ptr.Bool(jtv) } case "LastModifiedBy": @@ -21279,7 +21279,7 @@ func awsRestjson1_deserializeDocumentAPNSVoipChannelResponse(v **types.APNSVoipC if err != nil { return err } - sv.Version = int32(i64) + sv.Version = ptr.Int32(int32(i64)) } default: @@ -21346,7 +21346,7 @@ func awsRestjson1_deserializeDocumentAPNSVoipSandboxChannelResponse(v **types.AP if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.Enabled = jtv + sv.Enabled = ptr.Bool(jtv) } case "HasCredential": @@ -21355,7 +21355,7 @@ func awsRestjson1_deserializeDocumentAPNSVoipSandboxChannelResponse(v **types.AP if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.HasCredential = jtv + sv.HasCredential = ptr.Bool(jtv) } case "HasTokenKey": @@ -21364,7 +21364,7 @@ func awsRestjson1_deserializeDocumentAPNSVoipSandboxChannelResponse(v **types.AP if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.HasTokenKey = jtv + sv.HasTokenKey = ptr.Bool(jtv) } case "Id": @@ -21382,7 +21382,7 @@ func awsRestjson1_deserializeDocumentAPNSVoipSandboxChannelResponse(v **types.AP if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.IsArchived = jtv + sv.IsArchived = ptr.Bool(jtv) } case "LastModifiedBy": @@ -21422,7 +21422,7 @@ func awsRestjson1_deserializeDocumentAPNSVoipSandboxChannelResponse(v **types.AP if err != nil { return err } - sv.Version = int32(i64) + sv.Version = ptr.Int32(int32(i64)) } default: @@ -21627,7 +21627,7 @@ func awsRestjson1_deserializeDocumentApplicationSettingsJourneyLimits(v **types. if err != nil { return err } - sv.DailyCap = int32(i64) + sv.DailyCap = ptr.Int32(int32(i64)) } case "TimeframeCap": @@ -21645,7 +21645,7 @@ func awsRestjson1_deserializeDocumentApplicationSettingsJourneyLimits(v **types. if err != nil { return err } - sv.TotalCap = int32(i64) + sv.TotalCap = ptr.Int32(int32(i64)) } default: @@ -21974,7 +21974,7 @@ func awsRestjson1_deserializeDocumentBaiduChannelResponse(v **types.BaiduChannel if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.Enabled = jtv + sv.Enabled = ptr.Bool(jtv) } case "HasCredential": @@ -21983,7 +21983,7 @@ func awsRestjson1_deserializeDocumentBaiduChannelResponse(v **types.BaiduChannel if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.HasCredential = jtv + sv.HasCredential = ptr.Bool(jtv) } case "Id": @@ -22001,7 +22001,7 @@ func awsRestjson1_deserializeDocumentBaiduChannelResponse(v **types.BaiduChannel if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.IsArchived = jtv + sv.IsArchived = ptr.Bool(jtv) } case "LastModifiedBy": @@ -22041,7 +22041,7 @@ func awsRestjson1_deserializeDocumentBaiduChannelResponse(v **types.BaiduChannel if err != nil { return err } - sv.Version = int32(i64) + sv.Version = ptr.Int32(int32(i64)) } default: @@ -22488,7 +22488,7 @@ func awsRestjson1_deserializeDocumentCampaignLimits(v **types.CampaignLimits, va if err != nil { return err } - sv.Daily = int32(i64) + sv.Daily = ptr.Int32(int32(i64)) } case "MaximumDuration": @@ -22501,7 +22501,7 @@ func awsRestjson1_deserializeDocumentCampaignLimits(v **types.CampaignLimits, va if err != nil { return err } - sv.MaximumDuration = int32(i64) + sv.MaximumDuration = ptr.Int32(int32(i64)) } case "MessagesPerSecond": @@ -22514,7 +22514,7 @@ func awsRestjson1_deserializeDocumentCampaignLimits(v **types.CampaignLimits, va if err != nil { return err } - sv.MessagesPerSecond = int32(i64) + sv.MessagesPerSecond = ptr.Int32(int32(i64)) } case "Session": @@ -22527,7 +22527,7 @@ func awsRestjson1_deserializeDocumentCampaignLimits(v **types.CampaignLimits, va if err != nil { return err } - sv.Session = int32(i64) + sv.Session = ptr.Int32(int32(i64)) } case "Total": @@ -22540,7 +22540,7 @@ func awsRestjson1_deserializeDocumentCampaignLimits(v **types.CampaignLimits, va if err != nil { return err } - sv.Total = int32(i64) + sv.Total = ptr.Int32(int32(i64)) } default: @@ -22635,7 +22635,7 @@ func awsRestjson1_deserializeDocumentCampaignResponse(v **types.CampaignResponse if err != nil { return err } - sv.HoldoutPercent = int32(i64) + sv.HoldoutPercent = ptr.Int32(int32(i64)) } case "Hook": @@ -22658,7 +22658,7 @@ func awsRestjson1_deserializeDocumentCampaignResponse(v **types.CampaignResponse if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.IsPaused = jtv + sv.IsPaused = ptr.Bool(jtv) } case "LastModifiedDate": @@ -22699,7 +22699,7 @@ func awsRestjson1_deserializeDocumentCampaignResponse(v **types.CampaignResponse if err != nil { return err } - sv.Priority = int32(i64) + sv.Priority = ptr.Int32(int32(i64)) } case "Schedule": @@ -22726,7 +22726,7 @@ func awsRestjson1_deserializeDocumentCampaignResponse(v **types.CampaignResponse if err != nil { return err } - sv.SegmentVersion = int32(i64) + sv.SegmentVersion = ptr.Int32(int32(i64)) } case "State": @@ -22772,7 +22772,7 @@ func awsRestjson1_deserializeDocumentCampaignResponse(v **types.CampaignResponse if err != nil { return err } - sv.Version = int32(i64) + sv.Version = ptr.Int32(int32(i64)) } default: @@ -23000,7 +23000,7 @@ func awsRestjson1_deserializeDocumentChannelResponse(v **types.ChannelResponse, if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.Enabled = jtv + sv.Enabled = ptr.Bool(jtv) } case "HasCredential": @@ -23009,7 +23009,7 @@ func awsRestjson1_deserializeDocumentChannelResponse(v **types.ChannelResponse, if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.HasCredential = jtv + sv.HasCredential = ptr.Bool(jtv) } case "Id": @@ -23027,7 +23027,7 @@ func awsRestjson1_deserializeDocumentChannelResponse(v **types.ChannelResponse, if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.IsArchived = jtv + sv.IsArchived = ptr.Bool(jtv) } case "LastModifiedBy": @@ -23058,7 +23058,7 @@ func awsRestjson1_deserializeDocumentChannelResponse(v **types.ChannelResponse, if err != nil { return err } - sv.Version = int32(i64) + sv.Version = ptr.Int32(int32(i64)) } default: @@ -23634,7 +23634,7 @@ func awsRestjson1_deserializeDocumentDefaultButtonConfiguration(v **types.Defaul if err != nil { return err } - sv.BorderRadius = int32(i64) + sv.BorderRadius = ptr.Int32(int32(i64)) } case "ButtonAction": @@ -23813,7 +23813,7 @@ func awsRestjson1_deserializeDocumentEmailChannelResponse(v **types.EmailChannel if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.Enabled = jtv + sv.Enabled = ptr.Bool(jtv) } case "FromAddress": @@ -23831,7 +23831,7 @@ func awsRestjson1_deserializeDocumentEmailChannelResponse(v **types.EmailChannel if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.HasCredential = jtv + sv.HasCredential = ptr.Bool(jtv) } case "Id": @@ -23858,7 +23858,7 @@ func awsRestjson1_deserializeDocumentEmailChannelResponse(v **types.EmailChannel if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.IsArchived = jtv + sv.IsArchived = ptr.Bool(jtv) } case "LastModifiedBy": @@ -23889,7 +23889,7 @@ func awsRestjson1_deserializeDocumentEmailChannelResponse(v **types.EmailChannel if err != nil { return err } - sv.MessagesPerSecond = int32(i64) + sv.MessagesPerSecond = ptr.Int32(int32(i64)) } case "Platform": @@ -23920,7 +23920,7 @@ func awsRestjson1_deserializeDocumentEmailChannelResponse(v **types.EmailChannel if err != nil { return err } - sv.Version = int32(i64) + sv.Version = ptr.Int32(int32(i64)) } default: @@ -24283,7 +24283,7 @@ func awsRestjson1_deserializeDocumentEndpointItemResponse(v **types.EndpointItem if err != nil { return err } - sv.StatusCode = int32(i64) + sv.StatusCode = ptr.Int32(int32(i64)) } default: @@ -24343,7 +24343,7 @@ func awsRestjson1_deserializeDocumentEndpointLocation(v **types.EndpointLocation if err != nil { return err } - sv.Latitude = f64 + sv.Latitude = ptr.Float64(f64) case string: var f64 float64 @@ -24361,7 +24361,7 @@ func awsRestjson1_deserializeDocumentEndpointLocation(v **types.EndpointLocation return fmt.Errorf("unknown JSON number value: %s", jtv) } - sv.Latitude = f64 + sv.Latitude = ptr.Float64(f64) default: return fmt.Errorf("expected __double to be a JSON Number, got %T instead", value) @@ -24377,7 +24377,7 @@ func awsRestjson1_deserializeDocumentEndpointLocation(v **types.EndpointLocation if err != nil { return err } - sv.Longitude = f64 + sv.Longitude = ptr.Float64(f64) case string: var f64 float64 @@ -24395,7 +24395,7 @@ func awsRestjson1_deserializeDocumentEndpointLocation(v **types.EndpointLocation return fmt.Errorf("unknown JSON number value: %s", jtv) } - sv.Longitude = f64 + sv.Longitude = ptr.Float64(f64) default: return fmt.Errorf("expected __double to be a JSON Number, got %T instead", value) @@ -24489,7 +24489,7 @@ func awsRestjson1_deserializeDocumentEndpointMessageResult(v **types.EndpointMes if err != nil { return err } - sv.StatusCode = int32(i64) + sv.StatusCode = ptr.Int32(int32(i64)) } case "StatusMessage": @@ -24923,7 +24923,7 @@ func awsRestjson1_deserializeDocumentEventItemResponse(v **types.EventItemRespon if err != nil { return err } - sv.StatusCode = int32(i64) + sv.StatusCode = ptr.Int32(int32(i64)) } default: @@ -25160,7 +25160,7 @@ func awsRestjson1_deserializeDocumentExportJobResource(v **types.ExportJobResour if err != nil { return err } - sv.SegmentVersion = int32(i64) + sv.SegmentVersion = ptr.Int32(int32(i64)) } default: @@ -25213,7 +25213,7 @@ func awsRestjson1_deserializeDocumentExportJobResponse(v **types.ExportJobRespon if err != nil { return err } - sv.CompletedPieces = int32(i64) + sv.CompletedPieces = ptr.Int32(int32(i64)) } case "CompletionDate": @@ -25249,7 +25249,7 @@ func awsRestjson1_deserializeDocumentExportJobResponse(v **types.ExportJobRespon if err != nil { return err } - sv.FailedPieces = int32(i64) + sv.FailedPieces = ptr.Int32(int32(i64)) } case "Failures": @@ -25285,7 +25285,7 @@ func awsRestjson1_deserializeDocumentExportJobResponse(v **types.ExportJobRespon if err != nil { return err } - sv.TotalFailures = int32(i64) + sv.TotalFailures = ptr.Int32(int32(i64)) } case "TotalPieces": @@ -25298,7 +25298,7 @@ func awsRestjson1_deserializeDocumentExportJobResponse(v **types.ExportJobRespon if err != nil { return err } - sv.TotalPieces = int32(i64) + sv.TotalPieces = ptr.Int32(int32(i64)) } case "TotalProcessed": @@ -25311,7 +25311,7 @@ func awsRestjson1_deserializeDocumentExportJobResponse(v **types.ExportJobRespon if err != nil { return err } - sv.TotalProcessed = int32(i64) + sv.TotalProcessed = ptr.Int32(int32(i64)) } case "Type": @@ -25490,7 +25490,7 @@ func awsRestjson1_deserializeDocumentGCMChannelResponse(v **types.GCMChannelResp if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.Enabled = jtv + sv.Enabled = ptr.Bool(jtv) } case "HasCredential": @@ -25499,7 +25499,7 @@ func awsRestjson1_deserializeDocumentGCMChannelResponse(v **types.GCMChannelResp if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.HasCredential = jtv + sv.HasCredential = ptr.Bool(jtv) } case "HasFcmServiceCredentials": @@ -25508,7 +25508,7 @@ func awsRestjson1_deserializeDocumentGCMChannelResponse(v **types.GCMChannelResp if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.HasFcmServiceCredentials = jtv + sv.HasFcmServiceCredentials = ptr.Bool(jtv) } case "Id": @@ -25526,7 +25526,7 @@ func awsRestjson1_deserializeDocumentGCMChannelResponse(v **types.GCMChannelResp if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.IsArchived = jtv + sv.IsArchived = ptr.Bool(jtv) } case "LastModifiedBy": @@ -25566,7 +25566,7 @@ func awsRestjson1_deserializeDocumentGCMChannelResponse(v **types.GCMChannelResp if err != nil { return err } - sv.Version = int32(i64) + sv.Version = ptr.Int32(int32(i64)) } default: @@ -25608,7 +25608,7 @@ func awsRestjson1_deserializeDocumentGPSCoordinates(v **types.GPSCoordinates, va if err != nil { return err } - sv.Latitude = f64 + sv.Latitude = ptr.Float64(f64) case string: var f64 float64 @@ -25626,7 +25626,7 @@ func awsRestjson1_deserializeDocumentGPSCoordinates(v **types.GPSCoordinates, va return fmt.Errorf("unknown JSON number value: %s", jtv) } - sv.Latitude = f64 + sv.Latitude = ptr.Float64(f64) default: return fmt.Errorf("expected __double to be a JSON Number, got %T instead", value) @@ -25642,7 +25642,7 @@ func awsRestjson1_deserializeDocumentGPSCoordinates(v **types.GPSCoordinates, va if err != nil { return err } - sv.Longitude = f64 + sv.Longitude = ptr.Float64(f64) case string: var f64 float64 @@ -25660,7 +25660,7 @@ func awsRestjson1_deserializeDocumentGPSCoordinates(v **types.GPSCoordinates, va return fmt.Errorf("unknown JSON number value: %s", jtv) } - sv.Longitude = f64 + sv.Longitude = ptr.Float64(f64) default: return fmt.Errorf("expected __double to be a JSON Number, got %T instead", value) @@ -25712,7 +25712,7 @@ func awsRestjson1_deserializeDocumentGPSPointDimension(v **types.GPSPointDimensi if err != nil { return err } - sv.RangeInKilometers = f64 + sv.RangeInKilometers = ptr.Float64(f64) case string: var f64 float64 @@ -25730,7 +25730,7 @@ func awsRestjson1_deserializeDocumentGPSPointDimension(v **types.GPSPointDimensi return fmt.Errorf("unknown JSON number value: %s", jtv) } - sv.RangeInKilometers = f64 + sv.RangeInKilometers = ptr.Float64(f64) default: return fmt.Errorf("expected __double to be a JSON Number, got %T instead", value) @@ -25788,7 +25788,7 @@ func awsRestjson1_deserializeDocumentHoldoutActivity(v **types.HoldoutActivity, if err != nil { return err } - sv.Percentage = int32(i64) + sv.Percentage = ptr.Int32(int32(i64)) } default: @@ -25828,7 +25828,7 @@ func awsRestjson1_deserializeDocumentImportJobResource(v **types.ImportJobResour if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.DefineSegment = jtv + sv.DefineSegment = ptr.Bool(jtv) } case "ExternalId": @@ -25855,7 +25855,7 @@ func awsRestjson1_deserializeDocumentImportJobResource(v **types.ImportJobResour if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.RegisterEndpoints = jtv + sv.RegisterEndpoints = ptr.Bool(jtv) } case "RoleArn": @@ -25944,7 +25944,7 @@ func awsRestjson1_deserializeDocumentImportJobResponse(v **types.ImportJobRespon if err != nil { return err } - sv.CompletedPieces = int32(i64) + sv.CompletedPieces = ptr.Int32(int32(i64)) } case "CompletionDate": @@ -25980,7 +25980,7 @@ func awsRestjson1_deserializeDocumentImportJobResponse(v **types.ImportJobRespon if err != nil { return err } - sv.FailedPieces = int32(i64) + sv.FailedPieces = ptr.Int32(int32(i64)) } case "Failures": @@ -26016,7 +26016,7 @@ func awsRestjson1_deserializeDocumentImportJobResponse(v **types.ImportJobRespon if err != nil { return err } - sv.TotalFailures = int32(i64) + sv.TotalFailures = ptr.Int32(int32(i64)) } case "TotalPieces": @@ -26029,7 +26029,7 @@ func awsRestjson1_deserializeDocumentImportJobResponse(v **types.ImportJobRespon if err != nil { return err } - sv.TotalPieces = int32(i64) + sv.TotalPieces = ptr.Int32(int32(i64)) } case "TotalProcessed": @@ -26042,7 +26042,7 @@ func awsRestjson1_deserializeDocumentImportJobResponse(v **types.ImportJobRespon if err != nil { return err } - sv.TotalProcessed = int32(i64) + sv.TotalProcessed = ptr.Int32(int32(i64)) } case "Type": @@ -26358,7 +26358,7 @@ func awsRestjson1_deserializeDocumentInAppMessageCampaign(v **types.InAppMessage if err != nil { return err } - sv.DailyCap = int32(i64) + sv.DailyCap = ptr.Int32(int32(i64)) } case "InAppMessage": @@ -26376,7 +26376,7 @@ func awsRestjson1_deserializeDocumentInAppMessageCampaign(v **types.InAppMessage if err != nil { return err } - sv.Priority = int32(i64) + sv.Priority = ptr.Int32(int32(i64)) } case "Schedule": @@ -26394,7 +26394,7 @@ func awsRestjson1_deserializeDocumentInAppMessageCampaign(v **types.InAppMessage if err != nil { return err } - sv.SessionCap = int32(i64) + sv.SessionCap = ptr.Int32(int32(i64)) } case "TotalCap": @@ -26407,7 +26407,7 @@ func awsRestjson1_deserializeDocumentInAppMessageCampaign(v **types.InAppMessage if err != nil { return err } - sv.TotalCap = int32(i64) + sv.TotalCap = ptr.Int32(int32(i64)) } case "TreatmentId": @@ -27202,7 +27202,7 @@ func awsRestjson1_deserializeDocumentJourneyLimits(v **types.JourneyLimits, valu if err != nil { return err } - sv.DailyCap = int32(i64) + sv.DailyCap = ptr.Int32(int32(i64)) } case "EndpointReentryCap": @@ -27215,7 +27215,7 @@ func awsRestjson1_deserializeDocumentJourneyLimits(v **types.JourneyLimits, valu if err != nil { return err } - sv.EndpointReentryCap = int32(i64) + sv.EndpointReentryCap = ptr.Int32(int32(i64)) } case "EndpointReentryInterval": @@ -27237,7 +27237,7 @@ func awsRestjson1_deserializeDocumentJourneyLimits(v **types.JourneyLimits, valu if err != nil { return err } - sv.MessagesPerSecond = int32(i64) + sv.MessagesPerSecond = ptr.Int32(int32(i64)) } case "TimeframeCap": @@ -27255,7 +27255,7 @@ func awsRestjson1_deserializeDocumentJourneyLimits(v **types.JourneyLimits, valu if err != nil { return err } - sv.TotalCap = int32(i64) + sv.TotalCap = ptr.Int32(int32(i64)) } default: @@ -27391,7 +27391,7 @@ func awsRestjson1_deserializeDocumentJourneyResponse(v **types.JourneyResponse, if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.LocalTime = jtv + sv.LocalTime = ptr.Bool(jtv) } case "Name": @@ -27428,7 +27428,7 @@ func awsRestjson1_deserializeDocumentJourneyResponse(v **types.JourneyResponse, if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.RefreshOnSegmentUpdate = jtv + sv.RefreshOnSegmentUpdate = ptr.Bool(jtv) } case "Schedule": @@ -27442,7 +27442,7 @@ func awsRestjson1_deserializeDocumentJourneyResponse(v **types.JourneyResponse, if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.SendingSchedule = jtv + sv.SendingSchedule = ptr.Bool(jtv) } case "StartActivity": @@ -27484,7 +27484,7 @@ func awsRestjson1_deserializeDocumentJourneyResponse(v **types.JourneyResponse, if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.WaitForQuietTime = jtv + sv.WaitForQuietTime = ptr.Bool(jtv) } default: @@ -27989,7 +27989,7 @@ func awsRestjson1_deserializeDocumentJourneyTimeframeCap(v **types.JourneyTimefr if err != nil { return err } - sv.Cap = int32(i64) + sv.Cap = ptr.Int32(int32(i64)) } case "Days": @@ -28002,7 +28002,7 @@ func awsRestjson1_deserializeDocumentJourneyTimeframeCap(v **types.JourneyTimefr if err != nil { return err } - sv.Days = int32(i64) + sv.Days = ptr.Int32(int32(i64)) } default: @@ -29636,7 +29636,7 @@ func awsRestjson1_deserializeDocumentMessage(v **types.Message, value interface{ if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.SilentPush = jtv + sv.SilentPush = ptr.Bool(jtv) } case "TimeToLive": @@ -29649,7 +29649,7 @@ func awsRestjson1_deserializeDocumentMessage(v **types.Message, value interface{ if err != nil { return err } - sv.TimeToLive = int32(i64) + sv.TimeToLive = ptr.Int32(int32(i64)) } case "Title": @@ -29913,7 +29913,7 @@ func awsRestjson1_deserializeDocumentMessageResult(v **types.MessageResult, valu if err != nil { return err } - sv.StatusCode = int32(i64) + sv.StatusCode = ptr.Int32(int32(i64)) } case "StatusMessage": @@ -30031,7 +30031,7 @@ func awsRestjson1_deserializeDocumentMetricDimension(v **types.MetricDimension, if err != nil { return err } - sv.Value = f64 + sv.Value = ptr.Float64(f64) case string: var f64 float64 @@ -30049,7 +30049,7 @@ func awsRestjson1_deserializeDocumentMetricDimension(v **types.MetricDimension, return fmt.Errorf("unknown JSON number value: %s", jtv) } - sv.Value = f64 + sv.Value = ptr.Float64(f64) default: return fmt.Errorf("expected __double to be a JSON Number, got %T instead", value) @@ -30341,7 +30341,7 @@ func awsRestjson1_deserializeDocumentNumberValidateResponse(v **types.NumberVali if err != nil { return err } - sv.PhoneTypeCode = int32(i64) + sv.PhoneTypeCode = ptr.Int32(int32(i64)) } case "Timezone": @@ -30905,7 +30905,7 @@ func awsRestjson1_deserializeDocumentRandomSplitEntry(v **types.RandomSplitEntry if err != nil { return err } - sv.Percentage = int32(i64) + sv.Percentage = ptr.Int32(int32(i64)) } default: @@ -31084,7 +31084,7 @@ func awsRestjson1_deserializeDocumentRecommenderConfigurationResponse(v **types. if err != nil { return err } - sv.RecommendationsPerMessage = int32(i64) + sv.RecommendationsPerMessage = ptr.Int32(int32(i64)) } case "RecommendationTransformerUri": @@ -31255,7 +31255,7 @@ func awsRestjson1_deserializeDocumentSchedule(v **types.Schedule, value interfac if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.IsLocalTime = jtv + sv.IsLocalTime = ptr.Bool(jtv) } case "QuietTime": @@ -31665,7 +31665,7 @@ func awsRestjson1_deserializeDocumentSegmentImportResource(v **types.SegmentImpo if err != nil { return err } - sv.Size = int32(i64) + sv.Size = ptr.Int32(int32(i64)) } default: @@ -31759,7 +31759,7 @@ func awsRestjson1_deserializeDocumentSegmentReference(v **types.SegmentReference if err != nil { return err } - sv.Version = int32(i64) + sv.Version = ptr.Int32(int32(i64)) } default: @@ -31886,7 +31886,7 @@ func awsRestjson1_deserializeDocumentSegmentResponse(v **types.SegmentResponse, if err != nil { return err } - sv.Version = int32(i64) + sv.Version = ptr.Int32(int32(i64)) } default: @@ -32134,7 +32134,7 @@ func awsRestjson1_deserializeDocumentSMSChannelResponse(v **types.SMSChannelResp if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.Enabled = jtv + sv.Enabled = ptr.Bool(jtv) } case "HasCredential": @@ -32143,7 +32143,7 @@ func awsRestjson1_deserializeDocumentSMSChannelResponse(v **types.SMSChannelResp if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.HasCredential = jtv + sv.HasCredential = ptr.Bool(jtv) } case "Id": @@ -32161,7 +32161,7 @@ func awsRestjson1_deserializeDocumentSMSChannelResponse(v **types.SMSChannelResp if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.IsArchived = jtv + sv.IsArchived = ptr.Bool(jtv) } case "LastModifiedBy": @@ -32201,7 +32201,7 @@ func awsRestjson1_deserializeDocumentSMSChannelResponse(v **types.SMSChannelResp if err != nil { return err } - sv.PromotionalMessagesPerSecond = int32(i64) + sv.PromotionalMessagesPerSecond = ptr.Int32(int32(i64)) } case "SenderId": @@ -32232,7 +32232,7 @@ func awsRestjson1_deserializeDocumentSMSChannelResponse(v **types.SMSChannelResp if err != nil { return err } - sv.TransactionalMessagesPerSecond = int32(i64) + sv.TransactionalMessagesPerSecond = ptr.Int32(int32(i64)) } case "Version": @@ -32245,7 +32245,7 @@ func awsRestjson1_deserializeDocumentSMSChannelResponse(v **types.SMSChannelResp if err != nil { return err } - sv.Version = int32(i64) + sv.Version = ptr.Int32(int32(i64)) } default: @@ -33110,7 +33110,7 @@ func awsRestjson1_deserializeDocumentTreatmentResource(v **types.TreatmentResour if err != nil { return err } - sv.SizePercent = int32(i64) + sv.SizePercent = ptr.Int32(int32(i64)) } case "State": @@ -33178,7 +33178,7 @@ func awsRestjson1_deserializeDocumentVerificationResponse(v **types.Verification if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.Valid = jtv + sv.Valid = ptr.Bool(jtv) } default: @@ -33236,7 +33236,7 @@ func awsRestjson1_deserializeDocumentVoiceChannelResponse(v **types.VoiceChannel if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.Enabled = jtv + sv.Enabled = ptr.Bool(jtv) } case "HasCredential": @@ -33245,7 +33245,7 @@ func awsRestjson1_deserializeDocumentVoiceChannelResponse(v **types.VoiceChannel if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.HasCredential = jtv + sv.HasCredential = ptr.Bool(jtv) } case "Id": @@ -33263,7 +33263,7 @@ func awsRestjson1_deserializeDocumentVoiceChannelResponse(v **types.VoiceChannel if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.IsArchived = jtv + sv.IsArchived = ptr.Bool(jtv) } case "LastModifiedBy": @@ -33303,7 +33303,7 @@ func awsRestjson1_deserializeDocumentVoiceChannelResponse(v **types.VoiceChannel if err != nil { return err } - sv.Version = int32(i64) + sv.Version = ptr.Int32(int32(i64)) } default: diff --git a/service/pinpoint/serializers.go b/service/pinpoint/serializers.go index 497b9fa60b8..dfe9226bbf8 100644 --- a/service/pinpoint/serializers.go +++ b/service/pinpoint/serializers.go @@ -8218,8 +8218,8 @@ func awsRestjson1_serializeOpHttpBindingsUpdateEmailTemplateInput(v *UpdateEmail return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.CreateNewVersion { - encoder.SetQuery("create-new-version").Boolean(v.CreateNewVersion) + if v.CreateNewVersion != nil { + encoder.SetQuery("create-new-version").Boolean(*v.CreateNewVersion) } if v.TemplateName == nil || len(*v.TemplateName) == 0 { @@ -8591,8 +8591,8 @@ func awsRestjson1_serializeOpHttpBindingsUpdateInAppTemplateInput(v *UpdateInApp return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.CreateNewVersion { - encoder.SetQuery("create-new-version").Boolean(v.CreateNewVersion) + if v.CreateNewVersion != nil { + encoder.SetQuery("create-new-version").Boolean(*v.CreateNewVersion) } if v.TemplateName == nil || len(*v.TemplateName) == 0 { @@ -8884,8 +8884,8 @@ func awsRestjson1_serializeOpHttpBindingsUpdatePushTemplateInput(v *UpdatePushTe return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.CreateNewVersion { - encoder.SetQuery("create-new-version").Boolean(v.CreateNewVersion) + if v.CreateNewVersion != nil { + encoder.SetQuery("create-new-version").Boolean(*v.CreateNewVersion) } if v.TemplateName == nil || len(*v.TemplateName) == 0 { @@ -9257,8 +9257,8 @@ func awsRestjson1_serializeOpHttpBindingsUpdateSmsTemplateInput(v *UpdateSmsTemp return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.CreateNewVersion { - encoder.SetQuery("create-new-version").Boolean(v.CreateNewVersion) + if v.CreateNewVersion != nil { + encoder.SetQuery("create-new-version").Boolean(*v.CreateNewVersion) } if v.TemplateName == nil || len(*v.TemplateName) == 0 { @@ -9541,8 +9541,8 @@ func awsRestjson1_serializeOpHttpBindingsUpdateVoiceTemplateInput(v *UpdateVoice return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.CreateNewVersion { - encoder.SetQuery("create-new-version").Boolean(v.CreateNewVersion) + if v.CreateNewVersion != nil { + encoder.SetQuery("create-new-version").Boolean(*v.CreateNewVersion) } if v.TemplateName == nil || len(*v.TemplateName) == 0 { @@ -9787,9 +9787,9 @@ func awsRestjson1_serializeDocumentADMChannelRequest(v *types.ADMChannelRequest, ok.String(*v.ClientSecret) } - if v.Enabled { + if v.Enabled != nil { ok := object.Key("Enabled") - ok.Boolean(v.Enabled) + ok.Boolean(*v.Enabled) } return nil @@ -9851,9 +9851,9 @@ func awsRestjson1_serializeDocumentADMMessage(v *types.ADMMessage, value smithyj ok.String(*v.RawContent) } - if v.SilentPush { + if v.SilentPush != nil { ok := object.Key("SilentPush") - ok.Boolean(v.SilentPush) + ok.Boolean(*v.SilentPush) } if v.SmallImageIconUrl != nil { @@ -9957,9 +9957,9 @@ func awsRestjson1_serializeDocumentAPNSChannelRequest(v *types.APNSChannelReques ok.String(*v.DefaultAuthenticationMethod) } - if v.Enabled { + if v.Enabled != nil { ok := object.Key("Enabled") - ok.Boolean(v.Enabled) + ok.Boolean(*v.Enabled) } if v.PrivateKey != nil { @@ -9999,9 +9999,9 @@ func awsRestjson1_serializeDocumentAPNSMessage(v *types.APNSMessage, value smith ok.String(*v.APNSPushType) } - if v.Badge != 0 { + if v.Badge != nil { ok := object.Key("Badge") - ok.Integer(v.Badge) + ok.Integer(*v.Badge) } if v.Body != nil { @@ -10046,9 +10046,9 @@ func awsRestjson1_serializeDocumentAPNSMessage(v *types.APNSMessage, value smith ok.String(*v.RawContent) } - if v.SilentPush { + if v.SilentPush != nil { ok := object.Key("SilentPush") - ok.Boolean(v.SilentPush) + ok.Boolean(*v.SilentPush) } if v.Sound != nil { @@ -10068,9 +10068,9 @@ func awsRestjson1_serializeDocumentAPNSMessage(v *types.APNSMessage, value smith ok.String(*v.ThreadId) } - if v.TimeToLive != 0 { + if v.TimeToLive != nil { ok := object.Key("TimeToLive") - ok.Integer(v.TimeToLive) + ok.Integer(*v.TimeToLive) } if v.Title != nil { @@ -10147,9 +10147,9 @@ func awsRestjson1_serializeDocumentAPNSSandboxChannelRequest(v *types.APNSSandbo ok.String(*v.DefaultAuthenticationMethod) } - if v.Enabled { + if v.Enabled != nil { ok := object.Key("Enabled") - ok.Boolean(v.Enabled) + ok.Boolean(*v.Enabled) } if v.PrivateKey != nil { @@ -10194,9 +10194,9 @@ func awsRestjson1_serializeDocumentAPNSVoipChannelRequest(v *types.APNSVoipChann ok.String(*v.DefaultAuthenticationMethod) } - if v.Enabled { + if v.Enabled != nil { ok := object.Key("Enabled") - ok.Boolean(v.Enabled) + ok.Boolean(*v.Enabled) } if v.PrivateKey != nil { @@ -10241,9 +10241,9 @@ func awsRestjson1_serializeDocumentAPNSVoipSandboxChannelRequest(v *types.APNSVo ok.String(*v.DefaultAuthenticationMethod) } - if v.Enabled { + if v.Enabled != nil { ok := object.Key("Enabled") - ok.Boolean(v.Enabled) + ok.Boolean(*v.Enabled) } if v.PrivateKey != nil { @@ -10273,9 +10273,9 @@ func awsRestjson1_serializeDocumentApplicationSettingsJourneyLimits(v *types.App object := value.Object() defer object.Close() - if v.DailyCap != 0 { + if v.DailyCap != nil { ok := object.Key("DailyCap") - ok.Integer(v.DailyCap) + ok.Integer(*v.DailyCap) } if v.TimeframeCap != nil { @@ -10285,9 +10285,9 @@ func awsRestjson1_serializeDocumentApplicationSettingsJourneyLimits(v *types.App } } - if v.TotalCap != 0 { + if v.TotalCap != nil { ok := object.Key("TotalCap") - ok.Integer(v.TotalCap) + ok.Integer(*v.TotalCap) } return nil @@ -10321,9 +10321,9 @@ func awsRestjson1_serializeDocumentBaiduChannelRequest(v *types.BaiduChannelRequ ok.String(*v.ApiKey) } - if v.Enabled { + if v.Enabled != nil { ok := object.Key("Enabled") - ok.Boolean(v.Enabled) + ok.Boolean(*v.Enabled) } if v.SecretKey != nil { @@ -10375,9 +10375,9 @@ func awsRestjson1_serializeDocumentBaiduMessage(v *types.BaiduMessage, value smi ok.String(*v.RawContent) } - if v.SilentPush { + if v.SilentPush != nil { ok := object.Key("SilentPush") - ok.Boolean(v.SilentPush) + ok.Boolean(*v.SilentPush) } if v.SmallImageIconUrl != nil { @@ -10397,9 +10397,9 @@ func awsRestjson1_serializeDocumentBaiduMessage(v *types.BaiduMessage, value smi } } - if v.TimeToLive != 0 { + if v.TimeToLive != nil { ok := object.Key("TimeToLive") - ok.Integer(v.TimeToLive) + ok.Integer(*v.TimeToLive) } if v.Title != nil { @@ -10530,29 +10530,29 @@ func awsRestjson1_serializeDocumentCampaignLimits(v *types.CampaignLimits, value object := value.Object() defer object.Close() - if v.Daily != 0 { + if v.Daily != nil { ok := object.Key("Daily") - ok.Integer(v.Daily) + ok.Integer(*v.Daily) } - if v.MaximumDuration != 0 { + if v.MaximumDuration != nil { ok := object.Key("MaximumDuration") - ok.Integer(v.MaximumDuration) + ok.Integer(*v.MaximumDuration) } - if v.MessagesPerSecond != 0 { + if v.MessagesPerSecond != nil { ok := object.Key("MessagesPerSecond") - ok.Integer(v.MessagesPerSecond) + ok.Integer(*v.MessagesPerSecond) } - if v.Session != 0 { + if v.Session != nil { ok := object.Key("Session") - ok.Integer(v.Session) + ok.Integer(*v.Session) } - if v.Total != 0 { + if v.Total != nil { ok := object.Key("Total") - ok.Integer(v.Total) + ok.Integer(*v.Total) } return nil @@ -10781,9 +10781,9 @@ func awsRestjson1_serializeDocumentCreateRecommenderConfigurationShape(v *types. ok.String(*v.RecommendationsDisplayName) } - if v.RecommendationsPerMessage != 0 { + if v.RecommendationsPerMessage != nil { ok := object.Key("RecommendationsPerMessage") - ok.Integer(v.RecommendationsPerMessage) + ok.Integer(*v.RecommendationsPerMessage) } if v.RecommendationTransformerUri != nil { @@ -10863,9 +10863,9 @@ func awsRestjson1_serializeDocumentDefaultButtonConfiguration(v *types.DefaultBu ok.String(*v.BackgroundColor) } - if v.BorderRadius != 0 { + if v.BorderRadius != nil { ok := object.Key("BorderRadius") - ok.Integer(v.BorderRadius) + ok.Integer(*v.BorderRadius) } if len(v.ButtonAction) > 0 { @@ -10931,9 +10931,9 @@ func awsRestjson1_serializeDocumentDefaultPushNotificationMessage(v *types.Defau } } - if v.SilentPush { + if v.SilentPush != nil { ok := object.Key("SilentPush") - ok.Boolean(v.SilentPush) + ok.Boolean(*v.SilentPush) } if v.Substitutions != nil { @@ -11067,9 +11067,9 @@ func awsRestjson1_serializeDocumentEmailChannelRequest(v *types.EmailChannelRequ ok.String(*v.ConfigurationSet) } - if v.Enabled { + if v.Enabled != nil { ok := object.Key("Enabled") - ok.Boolean(v.Enabled) + ok.Boolean(*v.Enabled) } if v.FromAddress != nil { @@ -11365,38 +11365,38 @@ func awsRestjson1_serializeDocumentEndpointLocation(v *types.EndpointLocation, v ok.String(*v.Country) } - if v.Latitude != 0 { + if v.Latitude != nil { ok := object.Key("Latitude") switch { - case math.IsNaN(v.Latitude): + case math.IsNaN(*v.Latitude): ok.String("NaN") - case math.IsInf(v.Latitude, 1): + case math.IsInf(*v.Latitude, 1): ok.String("Infinity") - case math.IsInf(v.Latitude, -1): + case math.IsInf(*v.Latitude, -1): ok.String("-Infinity") default: - ok.Double(v.Latitude) + ok.Double(*v.Latitude) } } - if v.Longitude != 0 { + if v.Longitude != nil { ok := object.Key("Longitude") switch { - case math.IsNaN(v.Longitude): + case math.IsNaN(*v.Longitude): ok.String("NaN") - case math.IsInf(v.Longitude, 1): + case math.IsInf(*v.Longitude, 1): ok.String("Infinity") - case math.IsInf(v.Longitude, -1): + case math.IsInf(*v.Longitude, -1): ok.String("-Infinity") default: - ok.Double(v.Longitude) + ok.Double(*v.Longitude) } } @@ -11743,9 +11743,9 @@ func awsRestjson1_serializeDocumentExportJobRequest(v *types.ExportJobRequest, v ok.String(*v.SegmentId) } - if v.SegmentVersion != 0 { + if v.SegmentVersion != nil { ok := object.Key("SegmentVersion") - ok.Integer(v.SegmentVersion) + ok.Integer(*v.SegmentVersion) } return nil @@ -11765,9 +11765,9 @@ func awsRestjson1_serializeDocumentGCMChannelRequest(v *types.GCMChannelRequest, ok.String(*v.DefaultAuthenticationMethod) } - if v.Enabled { + if v.Enabled != nil { ok := object.Key("Enabled") - ok.Boolean(v.Enabled) + ok.Boolean(*v.Enabled) } if v.ServiceJson != nil { @@ -11839,9 +11839,9 @@ func awsRestjson1_serializeDocumentGCMMessage(v *types.GCMMessage, value smithyj ok.String(*v.RestrictedPackageName) } - if v.SilentPush { + if v.SilentPush != nil { ok := object.Key("SilentPush") - ok.Boolean(v.SilentPush) + ok.Boolean(*v.SilentPush) } if v.SmallImageIconUrl != nil { @@ -11861,9 +11861,9 @@ func awsRestjson1_serializeDocumentGCMMessage(v *types.GCMMessage, value smithyj } } - if v.TimeToLive != 0 { + if v.TimeToLive != nil { ok := object.Key("TimeToLive") - ok.Integer(v.TimeToLive) + ok.Integer(*v.TimeToLive) } if v.Title != nil { @@ -11883,38 +11883,38 @@ func awsRestjson1_serializeDocumentGPSCoordinates(v *types.GPSCoordinates, value object := value.Object() defer object.Close() - { + if v.Latitude != nil { ok := object.Key("Latitude") switch { - case math.IsNaN(v.Latitude): + case math.IsNaN(*v.Latitude): ok.String("NaN") - case math.IsInf(v.Latitude, 1): + case math.IsInf(*v.Latitude, 1): ok.String("Infinity") - case math.IsInf(v.Latitude, -1): + case math.IsInf(*v.Latitude, -1): ok.String("-Infinity") default: - ok.Double(v.Latitude) + ok.Double(*v.Latitude) } } - { + if v.Longitude != nil { ok := object.Key("Longitude") switch { - case math.IsNaN(v.Longitude): + case math.IsNaN(*v.Longitude): ok.String("NaN") - case math.IsInf(v.Longitude, 1): + case math.IsInf(*v.Longitude, 1): ok.String("Infinity") - case math.IsInf(v.Longitude, -1): + case math.IsInf(*v.Longitude, -1): ok.String("-Infinity") default: - ok.Double(v.Longitude) + ok.Double(*v.Longitude) } } @@ -11933,20 +11933,20 @@ func awsRestjson1_serializeDocumentGPSPointDimension(v *types.GPSPointDimension, } } - if v.RangeInKilometers != 0 { + if v.RangeInKilometers != nil { ok := object.Key("RangeInKilometers") switch { - case math.IsNaN(v.RangeInKilometers): + case math.IsNaN(*v.RangeInKilometers): ok.String("NaN") - case math.IsInf(v.RangeInKilometers, 1): + case math.IsInf(*v.RangeInKilometers, 1): ok.String("Infinity") - case math.IsInf(v.RangeInKilometers, -1): + case math.IsInf(*v.RangeInKilometers, -1): ok.String("-Infinity") default: - ok.Double(v.RangeInKilometers) + ok.Double(*v.RangeInKilometers) } } @@ -11963,9 +11963,9 @@ func awsRestjson1_serializeDocumentHoldoutActivity(v *types.HoldoutActivity, val ok.String(*v.NextActivity) } - { + if v.Percentage != nil { ok := object.Key("Percentage") - ok.Integer(v.Percentage) + ok.Integer(*v.Percentage) } return nil @@ -11975,9 +11975,9 @@ func awsRestjson1_serializeDocumentImportJobRequest(v *types.ImportJobRequest, v object := value.Object() defer object.Close() - if v.DefineSegment { + if v.DefineSegment != nil { ok := object.Key("DefineSegment") - ok.Boolean(v.DefineSegment) + ok.Boolean(*v.DefineSegment) } if v.ExternalId != nil { @@ -11990,9 +11990,9 @@ func awsRestjson1_serializeDocumentImportJobRequest(v *types.ImportJobRequest, v ok.String(string(v.Format)) } - if v.RegisterEndpoints { + if v.RegisterEndpoints != nil { ok := object.Key("RegisterEndpoints") - ok.Boolean(v.RegisterEndpoints) + ok.Boolean(*v.RegisterEndpoints) } if v.RoleArn != nil { @@ -12225,14 +12225,14 @@ func awsRestjson1_serializeDocumentJourneyLimits(v *types.JourneyLimits, value s object := value.Object() defer object.Close() - if v.DailyCap != 0 { + if v.DailyCap != nil { ok := object.Key("DailyCap") - ok.Integer(v.DailyCap) + ok.Integer(*v.DailyCap) } - if v.EndpointReentryCap != 0 { + if v.EndpointReentryCap != nil { ok := object.Key("EndpointReentryCap") - ok.Integer(v.EndpointReentryCap) + ok.Integer(*v.EndpointReentryCap) } if v.EndpointReentryInterval != nil { @@ -12240,9 +12240,9 @@ func awsRestjson1_serializeDocumentJourneyLimits(v *types.JourneyLimits, value s ok.String(*v.EndpointReentryInterval) } - if v.MessagesPerSecond != 0 { + if v.MessagesPerSecond != nil { ok := object.Key("MessagesPerSecond") - ok.Integer(v.MessagesPerSecond) + ok.Integer(*v.MessagesPerSecond) } if v.TimeframeCap != nil { @@ -12252,9 +12252,9 @@ func awsRestjson1_serializeDocumentJourneyLimits(v *types.JourneyLimits, value s } } - if v.TotalCap != 0 { + if v.TotalCap != nil { ok := object.Key("TotalCap") - ok.Integer(v.TotalCap) + ok.Integer(*v.TotalCap) } return nil @@ -12342,14 +12342,14 @@ func awsRestjson1_serializeDocumentJourneyTimeframeCap(v *types.JourneyTimeframe object := value.Object() defer object.Close() - if v.Cap != 0 { + if v.Cap != nil { ok := object.Key("Cap") - ok.Integer(v.Cap) + ok.Integer(*v.Cap) } - if v.Days != 0 { + if v.Days != nil { ok := object.Key("Days") - ok.Integer(v.Days) + ok.Integer(*v.Days) } return nil @@ -12740,14 +12740,14 @@ func awsRestjson1_serializeDocumentMessage(v *types.Message, value smithyjson.Va ok.String(*v.RawContent) } - if v.SilentPush { + if v.SilentPush != nil { ok := object.Key("SilentPush") - ok.Boolean(v.SilentPush) + ok.Boolean(*v.SilentPush) } - if v.TimeToLive != 0 { + if v.TimeToLive != nil { ok := object.Key("TimeToLive") - ok.Integer(v.TimeToLive) + ok.Integer(*v.TimeToLive) } if v.Title != nil { @@ -12889,20 +12889,20 @@ func awsRestjson1_serializeDocumentMetricDimension(v *types.MetricDimension, val ok.String(*v.ComparisonOperator) } - { + if v.Value != nil { ok := object.Key("Value") switch { - case math.IsNaN(v.Value): + case math.IsNaN(*v.Value): ok.String("NaN") - case math.IsInf(v.Value, 1): + case math.IsInf(*v.Value, 1): ok.String("Infinity") - case math.IsInf(v.Value, -1): + case math.IsInf(*v.Value, -1): ok.String("-Infinity") default: - ok.Double(v.Value) + ok.Double(*v.Value) } } @@ -13253,9 +13253,9 @@ func awsRestjson1_serializeDocumentRandomSplitEntry(v *types.RandomSplitEntry, v ok.String(*v.NextActivity) } - if v.Percentage != 0 { + if v.Percentage != nil { ok := object.Key("Percentage") - ok.Integer(v.Percentage) + ok.Integer(*v.Percentage) } return nil @@ -13311,9 +13311,9 @@ func awsRestjson1_serializeDocumentSchedule(v *types.Schedule, value smithyjson. ok.String(string(v.Frequency)) } - if v.IsLocalTime { + if v.IsLocalTime != nil { ok := object.Key("IsLocalTime") - ok.Boolean(v.IsLocalTime) + ok.Boolean(*v.IsLocalTime) } if v.QuietTime != nil { @@ -13540,9 +13540,9 @@ func awsRestjson1_serializeDocumentSegmentReference(v *types.SegmentReference, v ok.String(*v.Id) } - if v.Version != 0 { + if v.Version != nil { ok := object.Key("Version") - ok.Integer(v.Version) + ok.Integer(*v.Version) } return nil @@ -13552,9 +13552,9 @@ func awsRestjson1_serializeDocumentSendOTPMessageRequestParameters(v *types.Send object := value.Object() defer object.Close() - if v.AllowedAttempts != 0 { + if v.AllowedAttempts != nil { ok := object.Key("AllowedAttempts") - ok.Integer(v.AllowedAttempts) + ok.Integer(*v.AllowedAttempts) } if v.BrandName != nil { @@ -13567,9 +13567,9 @@ func awsRestjson1_serializeDocumentSendOTPMessageRequestParameters(v *types.Send ok.String(*v.Channel) } - if v.CodeLength != 0 { + if v.CodeLength != nil { ok := object.Key("CodeLength") - ok.Integer(v.CodeLength) + ok.Integer(*v.CodeLength) } if v.DestinationIdentity != nil { @@ -13602,9 +13602,9 @@ func awsRestjson1_serializeDocumentSendOTPMessageRequestParameters(v *types.Send ok.String(*v.TemplateId) } - if v.ValidityPeriod != 0 { + if v.ValidityPeriod != nil { ok := object.Key("ValidityPeriod") - ok.Integer(v.ValidityPeriod) + ok.Integer(*v.ValidityPeriod) } return nil @@ -13654,9 +13654,9 @@ func awsRestjson1_serializeDocumentSession(v *types.Session, value smithyjson.Va object := value.Object() defer object.Close() - if v.Duration != 0 { + if v.Duration != nil { ok := object.Key("Duration") - ok.Integer(v.Duration) + ok.Integer(*v.Duration) } if v.Id != nil { @@ -13773,9 +13773,9 @@ func awsRestjson1_serializeDocumentSMSChannelRequest(v *types.SMSChannelRequest, object := value.Object() defer object.Close() - if v.Enabled { + if v.Enabled != nil { ok := object.Key("Enabled") - ok.Boolean(v.Enabled) + ok.Boolean(*v.Enabled) } if v.SenderId != nil { @@ -14074,9 +14074,9 @@ func awsRestjson1_serializeDocumentUpdateRecommenderConfigurationShape(v *types. ok.String(*v.RecommendationsDisplayName) } - if v.RecommendationsPerMessage != 0 { + if v.RecommendationsPerMessage != nil { ok := object.Key("RecommendationsPerMessage") - ok.Integer(v.RecommendationsPerMessage) + ok.Integer(*v.RecommendationsPerMessage) } if v.RecommendationTransformerUri != nil { @@ -14113,9 +14113,9 @@ func awsRestjson1_serializeDocumentVoiceChannelRequest(v *types.VoiceChannelRequ object := value.Object() defer object.Close() - if v.Enabled { + if v.Enabled != nil { ok := object.Key("Enabled") - ok.Boolean(v.Enabled) + ok.Boolean(*v.Enabled) } return nil @@ -14241,14 +14241,14 @@ func awsRestjson1_serializeDocumentWriteApplicationSettingsRequest(v *types.Writ } } - if v.CloudWatchMetricsEnabled { + if v.CloudWatchMetricsEnabled != nil { ok := object.Key("CloudWatchMetricsEnabled") - ok.Boolean(v.CloudWatchMetricsEnabled) + ok.Boolean(*v.CloudWatchMetricsEnabled) } - if v.EventTaggingEnabled { + if v.EventTaggingEnabled != nil { ok := object.Key("EventTaggingEnabled") - ok.Boolean(v.EventTaggingEnabled) + ok.Boolean(*v.EventTaggingEnabled) } if v.JourneyLimits != nil { @@ -14298,9 +14298,9 @@ func awsRestjson1_serializeDocumentWriteCampaignRequest(v *types.WriteCampaignRe ok.String(*v.Description) } - if v.HoldoutPercent != 0 { + if v.HoldoutPercent != nil { ok := object.Key("HoldoutPercent") - ok.Integer(v.HoldoutPercent) + ok.Integer(*v.HoldoutPercent) } if v.Hook != nil { @@ -14310,9 +14310,9 @@ func awsRestjson1_serializeDocumentWriteCampaignRequest(v *types.WriteCampaignRe } } - if v.IsPaused { + if v.IsPaused != nil { ok := object.Key("IsPaused") - ok.Boolean(v.IsPaused) + ok.Boolean(*v.IsPaused) } if v.Limits != nil { @@ -14334,9 +14334,9 @@ func awsRestjson1_serializeDocumentWriteCampaignRequest(v *types.WriteCampaignRe ok.String(*v.Name) } - if v.Priority != 0 { + if v.Priority != nil { ok := object.Key("Priority") - ok.Integer(v.Priority) + ok.Integer(*v.Priority) } if v.Schedule != nil { @@ -14351,9 +14351,9 @@ func awsRestjson1_serializeDocumentWriteCampaignRequest(v *types.WriteCampaignRe ok.String(*v.SegmentId) } - if v.SegmentVersion != 0 { + if v.SegmentVersion != nil { ok := object.Key("SegmentVersion") - ok.Integer(v.SegmentVersion) + ok.Integer(*v.SegmentVersion) } if v.Tags != nil { @@ -14442,9 +14442,9 @@ func awsRestjson1_serializeDocumentWriteJourneyRequest(v *types.WriteJourneyRequ } } - if v.LocalTime { + if v.LocalTime != nil { ok := object.Key("LocalTime") - ok.Boolean(v.LocalTime) + ok.Boolean(*v.LocalTime) } if v.Name != nil { @@ -14471,9 +14471,9 @@ func awsRestjson1_serializeDocumentWriteJourneyRequest(v *types.WriteJourneyRequ ok.String(*v.RefreshFrequency) } - if v.RefreshOnSegmentUpdate { + if v.RefreshOnSegmentUpdate != nil { ok := object.Key("RefreshOnSegmentUpdate") - ok.Boolean(v.RefreshOnSegmentUpdate) + ok.Boolean(*v.RefreshOnSegmentUpdate) } if v.Schedule != nil { @@ -14483,9 +14483,9 @@ func awsRestjson1_serializeDocumentWriteJourneyRequest(v *types.WriteJourneyRequ } } - if v.SendingSchedule { + if v.SendingSchedule != nil { ok := object.Key("SendingSchedule") - ok.Boolean(v.SendingSchedule) + ok.Boolean(*v.SendingSchedule) } if v.StartActivity != nil { @@ -14512,9 +14512,9 @@ func awsRestjson1_serializeDocumentWriteJourneyRequest(v *types.WriteJourneyRequ } } - if v.WaitForQuietTime { + if v.WaitForQuietTime != nil { ok := object.Key("WaitForQuietTime") - ok.Boolean(v.WaitForQuietTime) + ok.Boolean(*v.WaitForQuietTime) } return nil @@ -14578,9 +14578,9 @@ func awsRestjson1_serializeDocumentWriteTreatmentResource(v *types.WriteTreatmen } } - { + if v.SizePercent != nil { ok := object.Key("SizePercent") - ok.Integer(v.SizePercent) + ok.Integer(*v.SizePercent) } if v.TemplateConfiguration != nil { diff --git a/service/pinpoint/types/types.go b/service/pinpoint/types/types.go index f322bf7286e..021f21995d8 100644 --- a/service/pinpoint/types/types.go +++ b/service/pinpoint/types/types.go @@ -118,17 +118,17 @@ type ActivityResponse struct { // The total number of endpoints that the campaign successfully delivered messages // to. - SuccessfulEndpointCount int32 + SuccessfulEndpointCount *int32 // The total number of time zones that were completed. - TimezonesCompletedCount int32 + TimezonesCompletedCount *int32 // The total number of unique time zones that are in the segment for the campaign. - TimezonesTotalCount int32 + TimezonesTotalCount *int32 // The total number of endpoints that the campaign attempted to deliver messages // to. - TotalEndpointCount int32 + TotalEndpointCount *int32 // The unique identifier for the campaign treatment that the activity applies to. // A treatment is a variation of a campaign that's used for A/B testing of a @@ -187,7 +187,7 @@ type ADMChannelRequest struct { ClientSecret *string // Specifies whether to enable the ADM channel for the application. - Enabled bool + Enabled *bool noSmithyDocumentSerde } @@ -209,17 +209,17 @@ type ADMChannelResponse struct { CreationDate *string // Specifies whether the ADM channel is enabled for the application. - Enabled bool + Enabled *bool // (Not used) This property is retained only for backward compatibility. - HasCredential bool + HasCredential *bool // (Deprecated) An identifier for the ADM channel. This property is retained only // for backward compatibility. Id *string // Specifies whether the ADM channel is archived. - IsArchived bool + IsArchived *bool // The user who last modified the ADM channel. LastModifiedBy *string @@ -228,7 +228,7 @@ type ADMChannelResponse struct { LastModifiedDate *string // The current version of the ADM channel. - Version int32 + Version *int32 noSmithyDocumentSerde } @@ -287,7 +287,7 @@ type ADMMessage struct { // push notification that doesn't display on a recipient's device. Silent push // notifications can be used for cases such as updating an app's configuration or // supporting phone home functionality. - SilentPush bool + SilentPush *bool // The URL of the small icon image to display in the status bar and the content // view of the push notification. @@ -385,7 +385,7 @@ type APNSChannelRequest struct { DefaultAuthenticationMethod *string // Specifies whether to enable the APNs channel for the application. - Enabled bool + Enabled *bool // The private key for the APNs client certificate that you want Amazon Pinpoint // to use to communicate with APNs. @@ -426,22 +426,22 @@ type APNSChannelResponse struct { DefaultAuthenticationMethod *string // Specifies whether the APNs channel is enabled for the application. - Enabled bool + Enabled *bool // (Not used) This property is retained only for backward compatibility. - HasCredential bool + HasCredential *bool // Specifies whether the APNs channel is configured to communicate with APNs by // using APNs tokens. To provide an authentication key for APNs tokens, set the // TokenKey property of the channel. - HasTokenKey bool + HasTokenKey *bool // (Deprecated) An identifier for the APNs channel. This property is retained only // for backward compatibility. Id *string // Specifies whether the APNs channel is archived. - IsArchived bool + IsArchived *bool // The user who last modified the APNs channel. LastModifiedBy *string @@ -450,7 +450,7 @@ type APNSChannelResponse struct { LastModifiedDate *string // The current version of the APNs channel. - Version int32 + Version *int32 noSmithyDocumentSerde } @@ -495,7 +495,7 @@ type APNSMessage struct { // when the recipient receives the push notification. If this key isn't included in // the dictionary, the badge doesn't change. To remove the badge, set this value to // 0. - Badge int32 + Badge *int32 // The body of the notification message. Body *string @@ -565,7 +565,7 @@ type APNSMessage struct { // "excessive" background notifications based on current traffic volumes. To // prevent your notifications being throttled, Apple recommends that you send no // more than 3 silent push notifications to each recipient per hour. - SilentPush bool + SilentPush *bool // The key for the sound to play when the recipient receives the push // notification. The value for this key is the name of a sound file in your app's @@ -589,7 +589,7 @@ type APNSMessage struct { // immediately and the service doesn't store or try to deliver the notification // again. Amazon Pinpoint specifies this value in the apns-expiration request // header when it sends the notification message to APNs. - TimeToLive int32 + TimeToLive *int32 // The title to display above the notification message on the recipient's device. Title *string @@ -666,7 +666,7 @@ type APNSSandboxChannelRequest struct { DefaultAuthenticationMethod *string // Specifies whether to enable the APNs sandbox channel for the application. - Enabled bool + Enabled *bool // The private key for the APNs client certificate that you want Amazon Pinpoint // to use to communicate with the APNs sandbox environment. @@ -708,22 +708,22 @@ type APNSSandboxChannelResponse struct { DefaultAuthenticationMethod *string // Specifies whether the APNs sandbox channel is enabled for the application. - Enabled bool + Enabled *bool // (Not used) This property is retained only for backward compatibility. - HasCredential bool + HasCredential *bool // Specifies whether the APNs sandbox channel is configured to communicate with // APNs by using APNs tokens. To provide an authentication key for APNs tokens, set // the TokenKey property of the channel. - HasTokenKey bool + HasTokenKey *bool // (Deprecated) An identifier for the APNs sandbox channel. This property is // retained only for backward compatibility. Id *string // Specifies whether the APNs sandbox channel is archived. - IsArchived bool + IsArchived *bool // The user who last modified the APNs sandbox channel. LastModifiedBy *string @@ -732,7 +732,7 @@ type APNSSandboxChannelResponse struct { LastModifiedDate *string // The current version of the APNs sandbox channel. - Version int32 + Version *int32 noSmithyDocumentSerde } @@ -754,7 +754,7 @@ type APNSVoipChannelRequest struct { DefaultAuthenticationMethod *string // Specifies whether to enable the APNs VoIP channel for the application. - Enabled bool + Enabled *bool // The private key for the APNs client certificate that you want Amazon Pinpoint // to use to communicate with APNs. @@ -795,22 +795,22 @@ type APNSVoipChannelResponse struct { DefaultAuthenticationMethod *string // Specifies whether the APNs VoIP channel is enabled for the application. - Enabled bool + Enabled *bool // (Not used) This property is retained only for backward compatibility. - HasCredential bool + HasCredential *bool // Specifies whether the APNs VoIP channel is configured to communicate with APNs // by using APNs tokens. To provide an authentication key for APNs tokens, set the // TokenKey property of the channel. - HasTokenKey bool + HasTokenKey *bool // (Deprecated) An identifier for the APNs VoIP channel. This property is retained // only for backward compatibility. Id *string // Specifies whether the APNs VoIP channel is archived. - IsArchived bool + IsArchived *bool // The user who last modified the APNs VoIP channel. LastModifiedBy *string @@ -819,7 +819,7 @@ type APNSVoipChannelResponse struct { LastModifiedDate *string // The current version of the APNs VoIP channel. - Version int32 + Version *int32 noSmithyDocumentSerde } @@ -843,7 +843,7 @@ type APNSVoipSandboxChannelRequest struct { DefaultAuthenticationMethod *string // Specifies whether the APNs VoIP sandbox channel is enabled for the application. - Enabled bool + Enabled *bool // The private key for the APNs client certificate that you want Amazon Pinpoint // to use to communicate with the APNs sandbox environment. @@ -885,22 +885,22 @@ type APNSVoipSandboxChannelResponse struct { DefaultAuthenticationMethod *string // Specifies whether the APNs VoIP sandbox channel is enabled for the application. - Enabled bool + Enabled *bool // (Not used) This property is retained only for backward compatibility. - HasCredential bool + HasCredential *bool // Specifies whether the APNs VoIP sandbox channel is configured to communicate // with APNs by using APNs tokens. To provide an authentication key for APNs // tokens, set the TokenKey property of the channel. - HasTokenKey bool + HasTokenKey *bool // (Deprecated) An identifier for the APNs VoIP sandbox channel. This property is // retained only for backward compatibility. Id *string // Specifies whether the APNs VoIP sandbox channel is archived. - IsArchived bool + IsArchived *bool // The user who last modified the APNs VoIP sandbox channel. LastModifiedBy *string @@ -909,7 +909,7 @@ type APNSVoipSandboxChannelResponse struct { LastModifiedDate *string // The current version of the APNs VoIP sandbox channel. - Version int32 + Version *int32 noSmithyDocumentSerde } @@ -997,7 +997,7 @@ type ApplicationSettingsJourneyLimits struct { // The daily number of messages that an endpoint can receive from all journeys. // The maximum value is 100. If set to 0, this limit will not apply. - DailyCap int32 + DailyCap *int32 // The default maximum number of messages that can be sent to an endpoint during // the specified timeframe for all journeys. @@ -1006,7 +1006,7 @@ type ApplicationSettingsJourneyLimits struct { // The default maximum number of messages that a single journey can sent to a // single endpoint. The maximum value is 100. If set to 0, this limit will not // apply. - TotalCap int32 + TotalCap *int32 noSmithyDocumentSerde } @@ -1143,7 +1143,7 @@ type BaiduChannelRequest struct { SecretKey *string // Specifies whether to enable the Baidu channel for the application. - Enabled bool + Enabled *bool noSmithyDocumentSerde } @@ -1171,17 +1171,17 @@ type BaiduChannelResponse struct { CreationDate *string // Specifies whether the Baidu channel is enabled for the application. - Enabled bool + Enabled *bool // (Not used) This property is retained only for backward compatibility. - HasCredential bool + HasCredential *bool // (Deprecated) An identifier for the Baidu channel. This property is retained // only for backward compatibility. Id *string // Specifies whether the Baidu channel is archived. - IsArchived bool + IsArchived *bool // The user who last modified the Baidu channel. LastModifiedBy *string @@ -1190,7 +1190,7 @@ type BaiduChannelResponse struct { LastModifiedDate *string // The current version of the Baidu channel. - Version int32 + Version *int32 noSmithyDocumentSerde } @@ -1235,7 +1235,7 @@ type BaiduMessage struct { // push notification that doesn't display on a recipient's device. Silent push // notifications can be used for cases such as updating an app's configuration or // supporting phone home functionality. - SilentPush bool + SilentPush *bool // The URL of the small icon image to display in the status bar and the content // view of the push notification. @@ -1254,7 +1254,7 @@ type BaiduMessage struct { // The amount of time, in seconds, that the Baidu Cloud Push service should store // the message if the recipient's device is offline. The default value and maximum // supported time is 604,800 seconds (7 days). - TimeToLive int32 + TimeToLive *int32 // The title to display above the notification message on the recipient's device. Title *string @@ -1432,27 +1432,27 @@ type CampaignLimits struct { // during a 24-hour period. For an application, this value specifies the default // limit for the number of messages that campaigns and journeys can send to a // single endpoint during a 24-hour period. The maximum value is 100. - Daily int32 + Daily *int32 // The maximum amount of time, in seconds, that a campaign can attempt to deliver // a message after the scheduled start time for the campaign. The minimum value is // 60 seconds. - MaximumDuration int32 + MaximumDuration *int32 // The maximum number of messages that a campaign can send each second. For an // application, this value specifies the default limit for the number of messages // that campaigns can send each second. The minimum value is 50. The maximum value // is 20,000. - MessagesPerSecond int32 + MessagesPerSecond *int32 // The maximum total number of messages that the campaign can send per user // session. - Session int32 + Session *int32 // The maximum number of messages that a campaign can send to a single endpoint // during the course of the campaign. If a campaign recurs, this setting applies to // all runs of the campaign. The maximum value is 100. - Total int32 + Total *int32 noSmithyDocumentSerde } @@ -1494,7 +1494,7 @@ type CampaignResponse struct { // The version number of the segment that's associated with the campaign. // // This member is required. - SegmentVersion int32 + SegmentVersion *int32 // An array of responses, one for each treatment that you defined for the // campaign, in addition to the default treatment. @@ -1513,7 +1513,7 @@ type CampaignResponse struct { // The allocated percentage of users (segment members) who shouldn't receive // messages from the campaign. - HoldoutPercent int32 + HoldoutPercent *int32 // The settings for the AWS Lambda function to use as a code hook for the // campaign. You can use this hook to customize the segment that's used by the @@ -1522,7 +1522,7 @@ type CampaignResponse struct { // Specifies whether the campaign is paused. A paused campaign doesn't run unless // you resume it by changing this value to false. - IsPaused bool + IsPaused *bool // The messaging limits for the campaign. Limits *CampaignLimits @@ -1536,7 +1536,7 @@ type CampaignResponse struct { // Defines the priority of the campaign, used to decide the order of messages // displayed to user if there are multiple messages scheduled to be displayed at // the same moment. - Priority int32 + Priority *int32 // The schedule settings for the campaign. Schedule *Schedule @@ -1561,7 +1561,7 @@ type CampaignResponse struct { TreatmentName *string // The version number of the campaign. - Version int32 + Version *int32 noSmithyDocumentSerde } @@ -1640,17 +1640,17 @@ type ChannelResponse struct { CreationDate *string // Specifies whether the channel is enabled for the application. - Enabled bool + Enabled *bool // (Not used) This property is retained only for backward compatibility. - HasCredential bool + HasCredential *bool // (Deprecated) An identifier for the channel. This property is retained only for // backward compatibility. Id *string // Specifies whether the channel is archived. - IsArchived bool + IsArchived *bool // The user who last modified the channel. LastModifiedBy *string @@ -1659,7 +1659,7 @@ type ChannelResponse struct { LastModifiedDate *string // The current version of the channel. - Version int32 + Version *int32 noSmithyDocumentSerde } @@ -1868,7 +1868,7 @@ type CreateRecommenderConfigurationShape struct { // 5. To use multiple recommended items and custom attributes with message // variables, you have to use an AWS Lambda function (RecommendationTransformerUri) // to perform additional processing of recommendation data. - RecommendationsPerMessage int32 + RecommendationsPerMessage *int32 noSmithyDocumentSerde } @@ -1972,7 +1972,7 @@ type DefaultButtonConfiguration struct { BackgroundColor *string // The border radius of the button. - BorderRadius int32 + BorderRadius *int32 // Button destination. Link *string @@ -2023,7 +2023,7 @@ type DefaultPushNotificationMessage struct { // is a push notification that doesn't display on a recipient's device. Silent push // notifications can be used for cases such as updating an app's configuration or // delivering messages to an in-app notification center. - SilentPush bool + SilentPush *bool // The default message variables to use in the notification message. You can // override the default variables with individual address variables. @@ -2147,7 +2147,7 @@ type EmailChannelRequest struct { ConfigurationSet *string // Specifies whether to enable the email channel for the application. - Enabled bool + Enabled *bool // The ARN of the AWS Identity and Access Management (IAM) role that you want // Amazon Pinpoint to use when it submits email-related event data for the channel. @@ -2177,14 +2177,14 @@ type EmailChannelResponse struct { CreationDate *string // Specifies whether the email channel is enabled for the application. - Enabled bool + Enabled *bool // The verified email address that email is sent from when you send email through // the channel. FromAddress *string // (Not used) This property is retained only for backward compatibility. - HasCredential bool + HasCredential *bool // (Deprecated) An identifier for the email channel. This property is retained // only for backward compatibility. @@ -2195,7 +2195,7 @@ type EmailChannelResponse struct { Identity *string // Specifies whether the email channel is archived. - IsArchived bool + IsArchived *bool // The user who last modified the email channel. LastModifiedBy *string @@ -2204,14 +2204,14 @@ type EmailChannelResponse struct { LastModifiedDate *string // The maximum number of emails that can be sent through the channel each second. - MessagesPerSecond int32 + MessagesPerSecond *int32 // The ARN of the AWS Identity and Access Management (IAM) role that Amazon // Pinpoint uses to submit email-related event data for the channel. RoleArn *string // The current version of the email channel. - Version int32 + Version *int32 noSmithyDocumentSerde } @@ -2520,7 +2520,7 @@ type EndpointItemResponse struct { // The status code that's returned in the response as a result of processing the // endpoint data. - StatusCode int32 + StatusCode *int32 noSmithyDocumentSerde } @@ -2536,10 +2536,10 @@ type EndpointLocation struct { Country *string // The latitude coordinate of the endpoint location, rounded to one decimal place. - Latitude float64 + Latitude *float64 // The longitude coordinate of the endpoint location, rounded to one decimal place. - Longitude float64 + Longitude *float64 // The postal or ZIP code for the area where the endpoint is located. PostalCode *string @@ -2577,7 +2577,7 @@ type EndpointMessageResult struct { // The downstream service status code for delivering the message. // // This member is required. - StatusCode int32 + StatusCode *int32 // The endpoint address that the message was delivered to. Address *string @@ -2911,7 +2911,7 @@ type EventItemResponse struct { // The status code that's returned in the response as a result of processing the // event. Possible values are: 202, for events that were accepted; and, 400, for // events that weren't valid. - StatusCode int32 + StatusCode *int32 noSmithyDocumentSerde } @@ -3035,7 +3035,7 @@ type ExportJobRequest struct { SegmentId *string // The version of the segment to export endpoint definitions from, if specified. - SegmentVersion int32 + SegmentVersion *int32 noSmithyDocumentSerde } @@ -3067,7 +3067,7 @@ type ExportJobResource struct { SegmentId *string // The version of the segment that the endpoint definitions were exported from. - SegmentVersion int32 + SegmentVersion *int32 noSmithyDocumentSerde } @@ -3111,14 +3111,14 @@ type ExportJobResponse struct { // The number of pieces that were processed successfully (completed) by the export // job, as of the time of the request. - CompletedPieces int32 + CompletedPieces *int32 // The date, in ISO 8601 format, when the export job was completed. CompletionDate *string // The number of pieces that weren't processed successfully (failed) by the export // job, as of the time of the request. - FailedPieces int32 + FailedPieces *int32 // An array of entries, one for each of the first 100 entries that weren't // processed successfully (failed) by the export job, if any. @@ -3127,15 +3127,15 @@ type ExportJobResponse struct { // The total number of endpoint definitions that weren't processed successfully // (failed) by the export job, typically because an error, such as a syntax error, // occurred. - TotalFailures int32 + TotalFailures *int32 // The total number of pieces that must be processed to complete the export job. // Each piece consists of an approximately equal portion of the endpoint // definitions that are part of the export job. - TotalPieces int32 + TotalPieces *int32 // The total number of endpoint definitions that were processed by the export job. - TotalProcessed int32 + TotalProcessed *int32 noSmithyDocumentSerde } @@ -3172,7 +3172,7 @@ type GCMChannelRequest struct { DefaultAuthenticationMethod *string // Specifies whether to enable the GCM channel for the application. - Enabled bool + Enabled *bool // The contents of the JSON file provided by Google during registration in order // to generate an access token for authentication. For more information see @@ -3210,21 +3210,21 @@ type GCMChannelResponse struct { DefaultAuthenticationMethod *string // Specifies whether the GCM channel is enabled for the application. - Enabled bool + Enabled *bool // (Not used) This property is retained only for backward compatibility. - HasCredential bool + HasCredential *bool // Returns true if the JSON file provided by Google during registration process // was used in the ServiceJson field of the request. - HasFcmServiceCredentials bool + HasFcmServiceCredentials *bool // (Deprecated) An identifier for the GCM channel. This property is retained only // for backward compatibility. Id *string // Specifies whether the GCM channel is archived. - IsArchived bool + IsArchived *bool // The user who last modified the GCM channel. LastModifiedBy *string @@ -3233,7 +3233,7 @@ type GCMChannelResponse struct { LastModifiedDate *string // The current version of the GCM channel. - Version int32 + Version *int32 noSmithyDocumentSerde } @@ -3306,7 +3306,7 @@ type GCMMessage struct { // push notification that doesn't display on a recipient's device. Silent push // notifications can be used for cases such as updating an app's configuration or // supporting phone home functionality. - SilentPush bool + SilentPush *bool // The URL of the small icon image to display in the status bar and the content // view of the push notification. @@ -3327,7 +3327,7 @@ type GCMMessage struct { // first time. If you don't specify this value, FCM defaults to the maximum value, // which is 2,419,200 seconds (28 days). Amazon Pinpoint specifies this value in // the FCM time_to_live parameter when it sends the notification message to FCM. - TimeToLive int32 + TimeToLive *int32 // The title to display above the notification message on the recipient's device. Title *string @@ -3345,12 +3345,12 @@ type GPSCoordinates struct { // The latitude coordinate of the location. // // This member is required. - Latitude float64 + Latitude *float64 // The longitude coordinate of the location. // // This member is required. - Longitude float64 + Longitude *float64 noSmithyDocumentSerde } @@ -3365,7 +3365,7 @@ type GPSPointDimension struct { Coordinates *GPSCoordinates // The range, in kilometers, from the GPS coordinates. - RangeInKilometers float64 + RangeInKilometers *float64 noSmithyDocumentSerde } @@ -3381,7 +3381,7 @@ type HoldoutActivity struct { // specify. // // This member is required. - Percentage int32 + Percentage *int32 // The unique identifier for the next activity to perform, after performing the // holdout activity. @@ -3423,7 +3423,7 @@ type ImportJobRequest struct { // Specifies whether to create a segment that contains the endpoints, when the // endpoint definitions are imported. - DefineSegment bool + DefineSegment *bool // (Deprecated) Your AWS account ID, which you assigned to an external ID key in // an IAM trust policy. Amazon Pinpoint previously used this value to assume an IAM @@ -3434,7 +3434,7 @@ type ImportJobRequest struct { // Specifies whether to register the endpoints with Amazon Pinpoint, when the // endpoint definitions are imported. - RegisterEndpoints bool + RegisterEndpoints *bool // The identifier for the segment to update or add the imported endpoint // definitions to, if the import job is meant to update an existing segment. @@ -3482,7 +3482,7 @@ type ImportJobResource struct { // Specifies whether the import job creates a segment that contains the endpoints, // when the endpoint definitions are imported. - DefineSegment bool + DefineSegment *bool // (Deprecated) Your AWS account ID, which you assigned to an external ID key in // an IAM trust policy. Amazon Pinpoint previously used this value to assume an IAM @@ -3493,7 +3493,7 @@ type ImportJobResource struct { // Specifies whether the import job registers the endpoints with Amazon Pinpoint, // when the endpoint definitions are imported. - RegisterEndpoints bool + RegisterEndpoints *bool // The identifier for the segment that the import job updates or adds endpoint // definitions to, if the import job updates an existing segment. @@ -3545,14 +3545,14 @@ type ImportJobResponse struct { // The number of pieces that were processed successfully (completed) by the import // job, as of the time of the request. - CompletedPieces int32 + CompletedPieces *int32 // The date, in ISO 8601 format, when the import job was completed. CompletionDate *string // The number of pieces that weren't processed successfully (failed) by the import // job, as of the time of the request. - FailedPieces int32 + FailedPieces *int32 // An array of entries, one for each of the first 100 entries that weren't // processed successfully (failed) by the import job, if any. @@ -3561,15 +3561,15 @@ type ImportJobResponse struct { // The total number of endpoint definitions that weren't processed successfully // (failed) by the import job, typically because an error, such as a syntax error, // occurred. - TotalFailures int32 + TotalFailures *int32 // The total number of pieces that must be processed to complete the import job. // Each piece consists of an approximately equal portion of the endpoint // definitions that are part of the import job. - TotalPieces int32 + TotalPieces *int32 // The total number of endpoint definitions that were processed by the import job. - TotalProcessed int32 + TotalProcessed *int32 noSmithyDocumentSerde } @@ -3671,24 +3671,24 @@ type InAppMessageCampaign struct { // Daily cap which controls the number of times any in-app messages can be shown // to the endpoint during a day. - DailyCap int32 + DailyCap *int32 // In-app message content with all fields required for rendering an in-app message. InAppMessage *InAppMessage // Priority of the in-app message. - Priority int32 + Priority *int32 // Schedule of the campaign. Schedule *InAppCampaignSchedule // Session cap which controls the number of times an in-app message can be shown // to the endpoint during an application session. - SessionCap int32 + SessionCap *int32 // Total cap which controls the number of times an in-app message can be shown to // the endpoint. - TotalCap int32 + TotalCap *int32 // Treatment id of the campaign. TreatmentId *string @@ -4023,19 +4023,19 @@ type JourneyLimits struct { // The maximum number of messages that the journey can send to a single // participant during a 24-hour period. The maximum value is 100. - DailyCap int32 + DailyCap *int32 // The maximum number of times that a participant can enter the journey. The // maximum value is 100. To allow participants to enter the journey an unlimited // number of times, set this value to 0. - EndpointReentryCap int32 + EndpointReentryCap *int32 // Minimum time that must pass before an endpoint can re-enter a given journey. // The duration should use an ISO 8601 format, such as PT1H. EndpointReentryInterval *string // The maximum number of messages that the journey can send each second. - MessagesPerSecond int32 + MessagesPerSecond *int32 // The number of messages that an endpoint can receive during the specified // timeframe. @@ -4043,7 +4043,7 @@ type JourneyLimits struct { // The maximum number of messages a journey can sent to a single endpoint. The // maximum value is 100. If set to 0, this limit will not apply. - TotalCap int32 + TotalCap *int32 noSmithyDocumentSerde } @@ -4107,7 +4107,7 @@ type JourneyResponse struct { // Specifies whether the journey's scheduled start and end times use each // participant's local time. If this value is true, the schedule uses each // participant's local time. - LocalTime bool + LocalTime *bool // The time when a journey can send messages. QuietTime should be configured first // and SendingSchedule should be set to true. @@ -4132,14 +4132,14 @@ type JourneyResponse struct { // Indicates whether the journey participants should be refreshed when a segment // is updated. - RefreshOnSegmentUpdate bool + RefreshOnSegmentUpdate *bool // The schedule settings for the journey. Schedule *JourneySchedule // Indicates if journey has Advance Quiet Time enabled. This flag should be set to // true in order to allow using OpenHours and ClosedDays. - SendingSchedule bool + SendingSchedule *bool // The unique identifier for the first activity in the journey. StartActivity *string @@ -4185,7 +4185,7 @@ type JourneyResponse struct { // Indicates whether endpoints in quiet hours should enter a wait activity until // quiet hours have elapsed. - WaitForQuietTime bool + WaitForQuietTime *bool noSmithyDocumentSerde } @@ -4428,11 +4428,11 @@ type JourneyTimeframeCap struct { // The maximum number of messages that all journeys can send to an endpoint during // the specified timeframe. The maximum value is 100. If set to 0, this limit will // not apply. - Cap int32 + Cap *int32 // The length of the timeframe in days. The maximum value is 30. If set to 0, this // limit will not apply. - Days int32 + Days *int32 noSmithyDocumentSerde } @@ -4497,7 +4497,7 @@ type Message struct { // notifications can be used for cases such as updating an app's configuration, // displaying messages in an in-app message center, or supporting phone home // functionality. - SilentPush bool + SilentPush *bool // The number of seconds that the push-notification service should keep the // message, if the service is unable to deliver the notification the first time. @@ -4506,7 +4506,7 @@ type Message struct { // notification as if it expires immediately and the service doesn't store or try // to deliver the notification again. This value doesn't apply to messages that are // sent through the Amazon Device Messaging (ADM) service. - TimeToLive int32 + TimeToLive *int32 // The title to display above the notification message on a recipient's device. Title *string @@ -4663,7 +4663,7 @@ type MessageResult struct { // The downstream service status code for delivering the message. // // This member is required. - StatusCode int32 + StatusCode *int32 // The unique identifier for the message that was sent. MessageId *string @@ -4693,7 +4693,7 @@ type MetricDimension struct { // The value to compare. // // This member is required. - Value float64 + Value *float64 noSmithyDocumentSerde } @@ -4798,7 +4798,7 @@ type NumberValidateResponse struct { // The phone type, represented by an integer. Valid values are: 0 (mobile), 1 // (landline), 2 (VoIP), 3 (invalid), 4 (other), and 5 (prepaid). - PhoneTypeCode int32 + PhoneTypeCode *int32 // The time zone for the location where the phone number was originally registered. Timezone *string @@ -5124,7 +5124,7 @@ type RandomSplitEntry struct { // probability-based algorithm to the percentages that you specify for the paths. // Therefore, the actual percentage of participants who are sent down a path may // not be equal to the percentage that you specify. - Percentage int32 + Percentage *int32 noSmithyDocumentSerde } @@ -5242,7 +5242,7 @@ type RecommenderConfigurationResponse struct { // endpoint or user, depending on the value for the RecommendationProviderIdType // property. This number determines how many recommended items are available for // use in message variables. - RecommendationsPerMessage int32 + RecommendationsPerMessage *int32 noSmithyDocumentSerde } @@ -5316,7 +5316,7 @@ type Schedule struct { // Specifies whether the start and end times for the campaign schedule use each // recipient's local time. To base the schedule on each recipient's local time, set // this value to true. - IsLocalTime bool + IsLocalTime *bool // The default quiet time for the campaign. Quiet time is a specific time range // when a campaign doesn't send messages to endpoints, if all the following @@ -5496,7 +5496,7 @@ type SegmentImportResource struct { // the segment. // // This member is required. - Size int32 + Size *int32 // The number of channel types in the endpoint definitions that were imported to // create the segment. @@ -5526,7 +5526,7 @@ type SegmentReference struct { Id *string // The version number of the segment. - Version int32 + Version *int32 noSmithyDocumentSerde } @@ -5589,7 +5589,7 @@ type SegmentResponse struct { Tags map[string]string // The version number of the segment. - Version int32 + Version *int32 noSmithyDocumentSerde } @@ -5643,10 +5643,10 @@ type SendOTPMessageRequestParameters struct { ReferenceId *string // The attempts allowed to validate an OTP. - AllowedAttempts int32 + AllowedAttempts *int32 // The number of characters in the generated OTP. - CodeLength int32 + CodeLength *int32 // A unique Entity ID received from DLT after entity registration is approved. EntityId *string @@ -5658,7 +5658,7 @@ type SendOTPMessageRequestParameters struct { TemplateId *string // The time in minutes before the OTP is no longer valid. - ValidityPeriod int32 + ValidityPeriod *int32 noSmithyDocumentSerde } @@ -5731,7 +5731,7 @@ type Session struct { StartTimestamp *string // The duration of the session, in milliseconds. - Duration int32 + Duration *int32 // The date and time when the session ended. StopTimestamp *string @@ -5809,7 +5809,7 @@ type SimpleEmailPart struct { type SMSChannelRequest struct { // Specifies whether to enable the SMS channel for the application. - Enabled bool + Enabled *bool // The identity that you want to display on recipients' devices when they receive // messages from the SMS channel. @@ -5839,17 +5839,17 @@ type SMSChannelResponse struct { CreationDate *string // Specifies whether the SMS channel is enabled for the application. - Enabled bool + Enabled *bool // (Not used) This property is retained only for backward compatibility. - HasCredential bool + HasCredential *bool // (Deprecated) An identifier for the SMS channel. This property is retained only // for backward compatibility. Id *string // Specifies whether the SMS channel is archived. - IsArchived bool + IsArchived *bool // The user who last modified the SMS channel. LastModifiedBy *string @@ -5859,7 +5859,7 @@ type SMSChannelResponse struct { // The maximum number of promotional messages that you can send through the SMS // channel each second. - PromotionalMessagesPerSecond int32 + PromotionalMessagesPerSecond *int32 // The identity that displays on recipients' devices when they receive messages // from the SMS channel. @@ -5870,10 +5870,10 @@ type SMSChannelResponse struct { // The maximum number of transactional messages that you can send through the SMS // channel each second. - TransactionalMessagesPerSecond int32 + TransactionalMessagesPerSecond *int32 // The current version of the SMS channel. - Version int32 + Version *int32 noSmithyDocumentSerde } @@ -6312,7 +6312,7 @@ type TreatmentResource struct { // to. // // This member is required. - SizePercent int32 + SizePercent *int32 // The delivery configuration settings for sending the treatment through a custom // channel. This object is required if the MessageConfiguration object for the @@ -6438,7 +6438,7 @@ type UpdateRecommenderConfigurationShape struct { // 5. To use multiple recommended items and custom attributes with message // variables, you have to use an AWS Lambda function (RecommendationTransformerUri) // to perform additional processing of recommendation data. - RecommendationsPerMessage int32 + RecommendationsPerMessage *int32 noSmithyDocumentSerde } @@ -6447,7 +6447,7 @@ type UpdateRecommenderConfigurationShape struct { type VerificationResponse struct { // Specifies whether the OTP is valid or not. - Valid bool + Valid *bool noSmithyDocumentSerde } @@ -6477,7 +6477,7 @@ type VerifyOTPMessageRequestParameters struct { type VoiceChannelRequest struct { // Specifies whether to enable the voice channel for the application. - Enabled bool + Enabled *bool noSmithyDocumentSerde } @@ -6499,17 +6499,17 @@ type VoiceChannelResponse struct { CreationDate *string // Specifies whether the voice channel is enabled for the application. - Enabled bool + Enabled *bool // (Not used) This property is retained only for backward compatibility. - HasCredential bool + HasCredential *bool // (Deprecated) An identifier for the voice channel. This property is retained // only for backward compatibility. Id *string // Specifies whether the voice channel is archived. - IsArchived bool + IsArchived *bool // The user who last modified the voice channel. LastModifiedBy *string @@ -6518,7 +6518,7 @@ type VoiceChannelResponse struct { LastModifiedDate *string // The current version of the voice channel. - Version int32 + Version *int32 noSmithyDocumentSerde } @@ -6708,9 +6708,9 @@ type WriteApplicationSettingsRequest struct { CampaignHook *CampaignHook // Specifies whether to enable application-related alarms in Amazon CloudWatch. - CloudWatchMetricsEnabled bool + CloudWatchMetricsEnabled *bool - EventTaggingEnabled bool + EventTaggingEnabled *bool // The default sending limits for journeys in the application. These limits apply // to each journey for the application but can be overridden, on a per journey @@ -6760,7 +6760,7 @@ type WriteCampaignRequest struct { // The allocated percentage of users (segment members) who shouldn't receive // messages from the campaign. - HoldoutPercent int32 + HoldoutPercent *int32 // The settings for the AWS Lambda function to invoke as a code hook for the // campaign. You can use this hook to customize the segment that's used by the @@ -6769,7 +6769,7 @@ type WriteCampaignRequest struct { // Specifies whether to pause the campaign. A paused campaign doesn't run unless // you resume it by changing this value to false. - IsPaused bool + IsPaused *bool // The messaging limits for the campaign. Limits *CampaignLimits @@ -6783,7 +6783,7 @@ type WriteCampaignRequest struct { // Defines the priority of the campaign, used to decide the order of messages // displayed to user if there are multiple messages scheduled to be displayed at // the same moment. - Priority int32 + Priority *int32 // The schedule settings for the campaign. Schedule *Schedule @@ -6792,7 +6792,7 @@ type WriteCampaignRequest struct { SegmentId *string // The version of the segment to associate with the campaign. - SegmentVersion int32 + SegmentVersion *int32 // As of 22-05-2023 tags has been deprecated for update operations. After this // date any value in tags is not processed and an error code is not returned. To @@ -6879,7 +6879,7 @@ type WriteJourneyRequest struct { // Specifies whether the journey's scheduled start and end times use each // participant's local time. To base the schedule on each participant's local time, // set this value to true. - LocalTime bool + LocalTime *bool // The time when journey allow to send messages. QuietTime should be configured // first and SendingSchedule should be set to true. @@ -6904,14 +6904,14 @@ type WriteJourneyRequest struct { // Indicates whether the journey participants should be refreshed when a segment // is updated. - RefreshOnSegmentUpdate bool + RefreshOnSegmentUpdate *bool // The schedule settings for the journey. Schedule *JourneySchedule // Indicates if journey has Advance Quiet Time enabled. This flag should be set to // true in order to allow using OpenHours and ClosedDays. - SendingSchedule bool + SendingSchedule *bool // The unique identifier for the first activity in the journey. The identifier for // this activity can contain a maximum of 128 characters. The characters must be @@ -6947,7 +6947,7 @@ type WriteJourneyRequest struct { // Specifies whether endpoints in quiet hours should enter a wait till the end of // their quiet hours. - WaitForQuietTime bool + WaitForQuietTime *bool noSmithyDocumentSerde } @@ -6989,7 +6989,7 @@ type WriteTreatmentResource struct { // The allocated percentage of users (segment members) to send the treatment to. // // This member is required. - SizePercent int32 + SizePercent *int32 // The delivery configuration settings for sending the treatment through a custom // channel. This object is required if the MessageConfiguration object for the diff --git a/service/pinpoint/validators.go b/service/pinpoint/validators.go index 5d330ecc21a..313b17987f0 100644 --- a/service/pinpoint/validators.go +++ b/service/pinpoint/validators.go @@ -3286,6 +3286,12 @@ func validateGPSCoordinates(v *types.GPSCoordinates) error { return nil } invalidParams := smithy.InvalidParamsError{Context: "GPSCoordinates"} + if v.Latitude == nil { + invalidParams.Add(smithy.NewErrParamRequired("Latitude")) + } + if v.Longitude == nil { + invalidParams.Add(smithy.NewErrParamRequired("Longitude")) + } if invalidParams.Len() > 0 { return invalidParams } else { @@ -3317,6 +3323,9 @@ func validateHoldoutActivity(v *types.HoldoutActivity) error { return nil } invalidParams := smithy.InvalidParamsError{Context: "HoldoutActivity"} + if v.Percentage == nil { + invalidParams.Add(smithy.NewErrParamRequired("Percentage")) + } if invalidParams.Len() > 0 { return invalidParams } else { @@ -3717,6 +3726,9 @@ func validateMetricDimension(v *types.MetricDimension) error { if v.ComparisonOperator == nil { invalidParams.Add(smithy.NewErrParamRequired("ComparisonOperator")) } + if v.Value == nil { + invalidParams.Add(smithy.NewErrParamRequired("Value")) + } if invalidParams.Len() > 0 { return invalidParams } else { @@ -4301,6 +4313,9 @@ func validateWriteTreatmentResource(v *types.WriteTreatmentResource) error { invalidParams.AddNested("Schedule", err.(smithy.InvalidParamsError)) } } + if v.SizePercent == nil { + invalidParams.Add(smithy.NewErrParamRequired("SizePercent")) + } if invalidParams.Len() > 0 { return invalidParams } else { diff --git a/service/pinpointsmsvoice/deserializers.go b/service/pinpointsmsvoice/deserializers.go index 3495e83be91..3706354d4cc 100644 --- a/service/pinpointsmsvoice/deserializers.go +++ b/service/pinpointsmsvoice/deserializers.go @@ -1376,7 +1376,7 @@ func awsRestjson1_deserializeDocumentEventDestination(v **types.EventDestination if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.Enabled = jtv + sv.Enabled = ptr.Bool(jtv) } case "KinesisFirehoseDestination": diff --git a/service/pinpointsmsvoice/serializers.go b/service/pinpointsmsvoice/serializers.go index 5adb6740ed4..4cb7cd38caf 100644 --- a/service/pinpointsmsvoice/serializers.go +++ b/service/pinpointsmsvoice/serializers.go @@ -688,9 +688,9 @@ func awsRestjson1_serializeDocumentEventDestinationDefinition(v *types.EventDest } } - if v.Enabled { + if v.Enabled != nil { ok := object.Key("Enabled") - ok.Boolean(v.Enabled) + ok.Boolean(*v.Enabled) } if v.KinesisFirehoseDestination != nil { diff --git a/service/pinpointsmsvoice/types/types.go b/service/pinpointsmsvoice/types/types.go index c4d4947cd36..3b3675cbcf1 100644 --- a/service/pinpointsmsvoice/types/types.go +++ b/service/pinpointsmsvoice/types/types.go @@ -41,7 +41,7 @@ type EventDestination struct { // Indicates whether or not the event destination is enabled. If the event // destination is enabled, then Amazon Pinpoint sends response data to the // specified event destination. - Enabled bool + Enabled *bool // An object that contains information about an event destination that sends data // to Amazon Kinesis Data Firehose. @@ -71,7 +71,7 @@ type EventDestinationDefinition struct { // Indicates whether or not the event destination is enabled. If the event // destination is enabled, then Amazon Pinpoint sends response data to the // specified event destination. - Enabled bool + Enabled *bool // An object that contains information about an event destination that sends data // to Amazon Kinesis Data Firehose. diff --git a/service/route53recoverycontrolconfig/api_op_ListAssociatedRoute53HealthChecks.go b/service/route53recoverycontrolconfig/api_op_ListAssociatedRoute53HealthChecks.go index 982fd20f004..1fa29e9742f 100644 --- a/service/route53recoverycontrolconfig/api_op_ListAssociatedRoute53HealthChecks.go +++ b/service/route53recoverycontrolconfig/api_op_ListAssociatedRoute53HealthChecks.go @@ -40,7 +40,7 @@ type ListAssociatedRoute53HealthChecksInput struct { RoutingControlArn *string // The number of objects that you want to return with this call. - MaxResults int32 + MaxResults *int32 // The token that identifies which batch of results you want to see. NextToken *string @@ -174,8 +174,8 @@ func NewListAssociatedRoute53HealthChecksPaginator(client ListAssociatedRoute53H } options := ListAssociatedRoute53HealthChecksPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults + if params.MaxResults != nil { + options.Limit = *params.MaxResults } for _, fn := range optFns { @@ -205,7 +205,11 @@ func (p *ListAssociatedRoute53HealthChecksPaginator) 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.ListAssociatedRoute53HealthChecks(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/route53recoverycontrolconfig/api_op_ListClusters.go b/service/route53recoverycontrolconfig/api_op_ListClusters.go index 64afdad863c..518df8cdcec 100644 --- a/service/route53recoverycontrolconfig/api_op_ListClusters.go +++ b/service/route53recoverycontrolconfig/api_op_ListClusters.go @@ -35,7 +35,7 @@ func (c *Client) ListClusters(ctx context.Context, params *ListClustersInput, op type ListClustersInput struct { // The number of objects that you want to return with this call. - MaxResults int32 + MaxResults *int32 // The token that identifies which batch of results you want to see. NextToken *string @@ -162,8 +162,8 @@ func NewListClustersPaginator(client ListClustersAPIClient, params *ListClusters } options := ListClustersPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults + if params.MaxResults != nil { + options.Limit = *params.MaxResults } for _, fn := range optFns { @@ -193,7 +193,11 @@ func (p *ListClustersPaginator) 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.ListClusters(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/route53recoverycontrolconfig/api_op_ListControlPanels.go b/service/route53recoverycontrolconfig/api_op_ListControlPanels.go index 575c36f2922..49b034e3fda 100644 --- a/service/route53recoverycontrolconfig/api_op_ListControlPanels.go +++ b/service/route53recoverycontrolconfig/api_op_ListControlPanels.go @@ -38,7 +38,7 @@ type ListControlPanelsInput struct { ClusterArn *string // The number of objects that you want to return with this call. - MaxResults int32 + MaxResults *int32 // The token that identifies which batch of results you want to see. NextToken *string @@ -166,8 +166,8 @@ func NewListControlPanelsPaginator(client ListControlPanelsAPIClient, params *Li } options := ListControlPanelsPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults + if params.MaxResults != nil { + options.Limit = *params.MaxResults } for _, fn := range optFns { @@ -197,7 +197,11 @@ func (p *ListControlPanelsPaginator) 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.ListControlPanels(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/route53recoverycontrolconfig/api_op_ListRoutingControls.go b/service/route53recoverycontrolconfig/api_op_ListRoutingControls.go index 082f348cf28..3e7ad79c235 100644 --- a/service/route53recoverycontrolconfig/api_op_ListRoutingControls.go +++ b/service/route53recoverycontrolconfig/api_op_ListRoutingControls.go @@ -43,7 +43,7 @@ type ListRoutingControlsInput struct { ControlPanelArn *string // The number of objects that you want to return with this call. - MaxResults int32 + MaxResults *int32 // The token that identifies which batch of results you want to see. NextToken *string @@ -175,8 +175,8 @@ func NewListRoutingControlsPaginator(client ListRoutingControlsAPIClient, params } options := ListRoutingControlsPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults + if params.MaxResults != nil { + options.Limit = *params.MaxResults } for _, fn := range optFns { @@ -206,7 +206,11 @@ func (p *ListRoutingControlsPaginator) 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.ListRoutingControls(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/route53recoverycontrolconfig/api_op_ListSafetyRules.go b/service/route53recoverycontrolconfig/api_op_ListSafetyRules.go index dd71b2d0c0c..deca8c683f5 100644 --- a/service/route53recoverycontrolconfig/api_op_ListSafetyRules.go +++ b/service/route53recoverycontrolconfig/api_op_ListSafetyRules.go @@ -41,7 +41,7 @@ type ListSafetyRulesInput struct { ControlPanelArn *string // The number of objects that you want to return with this call. - MaxResults int32 + MaxResults *int32 // The token that identifies which batch of results you want to see. NextToken *string @@ -172,8 +172,8 @@ func NewListSafetyRulesPaginator(client ListSafetyRulesAPIClient, params *ListSa } options := ListSafetyRulesPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults + if params.MaxResults != nil { + options.Limit = *params.MaxResults } for _, fn := range optFns { @@ -203,7 +203,11 @@ func (p *ListSafetyRulesPaginator) 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.ListSafetyRules(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/route53recoverycontrolconfig/deserializers.go b/service/route53recoverycontrolconfig/deserializers.go index 6cd89199099..d381c528f4f 100644 --- a/service/route53recoverycontrolconfig/deserializers.go +++ b/service/route53recoverycontrolconfig/deserializers.go @@ -4150,7 +4150,7 @@ func awsRestjson1_deserializeDocumentAssertionRule(v **types.AssertionRule, valu if err != nil { return err } - sv.WaitPeriodMs = int32(i64) + sv.WaitPeriodMs = ptr.Int32(int32(i64)) } default: @@ -4369,7 +4369,7 @@ func awsRestjson1_deserializeDocumentControlPanel(v **types.ControlPanel, value if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.DefaultControlPanel = jtv + sv.DefaultControlPanel = ptr.Bool(jtv) } case "Name": @@ -4400,7 +4400,7 @@ func awsRestjson1_deserializeDocumentControlPanel(v **types.ControlPanel, value if err != nil { return err } - sv.RoutingControlCount = int32(i64) + sv.RoutingControlCount = ptr.Int32(int32(i64)) } case "Status": @@ -4513,7 +4513,7 @@ func awsRestjson1_deserializeDocumentGatingRule(v **types.GatingRule, value inte if err != nil { return err } - sv.WaitPeriodMs = int32(i64) + sv.WaitPeriodMs = ptr.Int32(int32(i64)) } default: @@ -4750,7 +4750,7 @@ func awsRestjson1_deserializeDocumentRuleConfig(v **types.RuleConfig, value inte if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.Inverted = jtv + sv.Inverted = ptr.Bool(jtv) } case "Threshold": @@ -4763,7 +4763,7 @@ func awsRestjson1_deserializeDocumentRuleConfig(v **types.RuleConfig, value inte if err != nil { return err } - sv.Threshold = int32(i64) + sv.Threshold = ptr.Int32(int32(i64)) } case "Type": diff --git a/service/route53recoverycontrolconfig/serializers.go b/service/route53recoverycontrolconfig/serializers.go index fb457d082f2..c103b547095 100644 --- a/service/route53recoverycontrolconfig/serializers.go +++ b/service/route53recoverycontrolconfig/serializers.go @@ -1017,8 +1017,8 @@ func awsRestjson1_serializeOpHttpBindingsListAssociatedRoute53HealthChecksInput( return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.MaxResults != 0 { - encoder.SetQuery("MaxResults").Integer(v.MaxResults) + if v.MaxResults != nil { + encoder.SetQuery("MaxResults").Integer(*v.MaxResults) } if v.NextToken != nil { @@ -1090,8 +1090,8 @@ func awsRestjson1_serializeOpHttpBindingsListClustersInput(v *ListClustersInput, return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.MaxResults != 0 { - encoder.SetQuery("MaxResults").Integer(v.MaxResults) + if v.MaxResults != nil { + encoder.SetQuery("MaxResults").Integer(*v.MaxResults) } if v.NextToken != nil { @@ -1158,8 +1158,8 @@ func awsRestjson1_serializeOpHttpBindingsListControlPanelsInput(v *ListControlPa encoder.SetQuery("ClusterArn").String(*v.ClusterArn) } - if v.MaxResults != 0 { - encoder.SetQuery("MaxResults").Integer(v.MaxResults) + if v.MaxResults != nil { + encoder.SetQuery("MaxResults").Integer(*v.MaxResults) } if v.NextToken != nil { @@ -1231,8 +1231,8 @@ func awsRestjson1_serializeOpHttpBindingsListRoutingControlsInput(v *ListRouting } } - if v.MaxResults != 0 { - encoder.SetQuery("MaxResults").Integer(v.MaxResults) + if v.MaxResults != nil { + encoder.SetQuery("MaxResults").Integer(*v.MaxResults) } if v.NextToken != nil { @@ -1304,8 +1304,8 @@ func awsRestjson1_serializeOpHttpBindingsListSafetyRulesInput(v *ListSafetyRules } } - if v.MaxResults != 0 { - encoder.SetQuery("MaxResults").Integer(v.MaxResults) + if v.MaxResults != nil { + encoder.SetQuery("MaxResults").Integer(*v.MaxResults) } if v.NextToken != nil { @@ -1821,9 +1821,9 @@ func awsRestjson1_serializeDocumentAssertionRuleUpdate(v *types.AssertionRuleUpd ok.String(*v.SafetyRuleArn) } - { + if v.WaitPeriodMs != nil { ok := object.Key("WaitPeriodMs") - ok.Integer(v.WaitPeriodMs) + ok.Integer(*v.WaitPeriodMs) } return nil @@ -1843,9 +1843,9 @@ func awsRestjson1_serializeDocumentGatingRuleUpdate(v *types.GatingRuleUpdate, v ok.String(*v.SafetyRuleArn) } - { + if v.WaitPeriodMs != nil { ok := object.Key("WaitPeriodMs") - ok.Integer(v.WaitPeriodMs) + ok.Integer(*v.WaitPeriodMs) } return nil @@ -1879,9 +1879,9 @@ func awsRestjson1_serializeDocumentNewAssertionRule(v *types.NewAssertionRule, v } } - { + if v.WaitPeriodMs != nil { ok := object.Key("WaitPeriodMs") - ok.Integer(v.WaitPeriodMs) + ok.Integer(*v.WaitPeriodMs) } return nil @@ -1922,9 +1922,9 @@ func awsRestjson1_serializeDocumentNewGatingRule(v *types.NewGatingRule, value s } } - { + if v.WaitPeriodMs != nil { ok := object.Key("WaitPeriodMs") - ok.Integer(v.WaitPeriodMs) + ok.Integer(*v.WaitPeriodMs) } return nil @@ -1934,14 +1934,14 @@ func awsRestjson1_serializeDocumentRuleConfig(v *types.RuleConfig, value smithyj object := value.Object() defer object.Close() - { + if v.Inverted != nil { ok := object.Key("Inverted") - ok.Boolean(v.Inverted) + ok.Boolean(*v.Inverted) } - { + if v.Threshold != nil { ok := object.Key("Threshold") - ok.Integer(v.Threshold) + ok.Integer(*v.Threshold) } if len(v.Type) > 0 { diff --git a/service/route53recoverycontrolconfig/types/types.go b/service/route53recoverycontrolconfig/types/types.go index 828e1698474..7ae21a1be83 100644 --- a/service/route53recoverycontrolconfig/types/types.go +++ b/service/route53recoverycontrolconfig/types/types.go @@ -59,7 +59,7 @@ type AssertionRule struct { // The wait period is 5000 ms by default, but you can choose a custom value. // // This member is required. - WaitPeriodMs int32 + WaitPeriodMs *int32 // The Amazon Web Services account ID of the assertion rule owner. Owner *string @@ -88,7 +88,7 @@ type AssertionRuleUpdate struct { // The wait period is 5000 ms by default, but you can choose a custom value. // // This member is required. - WaitPeriodMs int32 + WaitPeriodMs *int32 noSmithyDocumentSerde } @@ -151,7 +151,7 @@ type ControlPanel struct { // Amazon Route 53 Application Recovery Controller creates a control panel, and // sets this flag for that control panel. If you create a control panel yourself, // this flag is set to false. - DefaultControlPanel bool + DefaultControlPanel *bool // The name of the control panel. You can use any non-white space character in the // name. @@ -161,7 +161,7 @@ type ControlPanel struct { Owner *string // The number of routing controls in the control panel. - RoutingControlCount int32 + RoutingControlCount *int32 // The deployment status of control panel. Status can be one of the following: // PENDING, DEPLOYED, PENDING_DELETION. @@ -232,7 +232,7 @@ type GatingRule struct { // The wait period is 5000 ms by default, but you can choose a custom value. // // This member is required. - WaitPeriodMs int32 + WaitPeriodMs *int32 // The Amazon Web Services account ID of the gating rule owner. Owner *string @@ -260,7 +260,7 @@ type GatingRuleUpdate struct { // The wait period is 5000 ms by default, but you can choose a custom value. // // This member is required. - WaitPeriodMs int32 + WaitPeriodMs *int32 noSmithyDocumentSerde } @@ -302,7 +302,7 @@ type NewAssertionRule struct { // The wait period is 5000 ms by default, but you can choose a custom value. // // This member is required. - WaitPeriodMs int32 + WaitPeriodMs *int32 noSmithyDocumentSerde } @@ -350,7 +350,7 @@ type NewGatingRule struct { // The wait period is 5000 ms by default, but you can choose a custom value. // // This member is required. - WaitPeriodMs int32 + WaitPeriodMs *int32 noSmithyDocumentSerde } @@ -413,13 +413,13 @@ type RuleConfig struct { // evaluated as false, and vice versa. // // This member is required. - Inverted bool + Inverted *bool // The value of N, when you specify an ATLEAST rule type. That is, Threshold is // the number of controls that must be set when you specify an ATLEAST type. // // This member is required. - Threshold int32 + Threshold *int32 // A rule can be one of the following: ATLEAST, AND, or OR. // diff --git a/service/route53recoverycontrolconfig/validators.go b/service/route53recoverycontrolconfig/validators.go index f4ae6be1b76..645918ec2a1 100644 --- a/service/route53recoverycontrolconfig/validators.go +++ b/service/route53recoverycontrolconfig/validators.go @@ -549,6 +549,9 @@ func validateAssertionRuleUpdate(v *types.AssertionRuleUpdate) error { if v.SafetyRuleArn == nil { invalidParams.Add(smithy.NewErrParamRequired("SafetyRuleArn")) } + if v.WaitPeriodMs == nil { + invalidParams.Add(smithy.NewErrParamRequired("WaitPeriodMs")) + } if invalidParams.Len() > 0 { return invalidParams } else { @@ -567,6 +570,9 @@ func validateGatingRuleUpdate(v *types.GatingRuleUpdate) error { if v.SafetyRuleArn == nil { invalidParams.Add(smithy.NewErrParamRequired("SafetyRuleArn")) } + if v.WaitPeriodMs == nil { + invalidParams.Add(smithy.NewErrParamRequired("WaitPeriodMs")) + } if invalidParams.Len() > 0 { return invalidParams } else { @@ -595,6 +601,9 @@ func validateNewAssertionRule(v *types.NewAssertionRule) error { invalidParams.AddNested("RuleConfig", err.(smithy.InvalidParamsError)) } } + if v.WaitPeriodMs == nil { + invalidParams.Add(smithy.NewErrParamRequired("WaitPeriodMs")) + } if invalidParams.Len() > 0 { return invalidParams } else { @@ -626,6 +635,9 @@ func validateNewGatingRule(v *types.NewGatingRule) error { if v.TargetControls == nil { invalidParams.Add(smithy.NewErrParamRequired("TargetControls")) } + if v.WaitPeriodMs == nil { + invalidParams.Add(smithy.NewErrParamRequired("WaitPeriodMs")) + } if invalidParams.Len() > 0 { return invalidParams } else { @@ -638,6 +650,12 @@ func validateRuleConfig(v *types.RuleConfig) error { return nil } invalidParams := smithy.InvalidParamsError{Context: "RuleConfig"} + if v.Inverted == nil { + invalidParams.Add(smithy.NewErrParamRequired("Inverted")) + } + if v.Threshold == nil { + invalidParams.Add(smithy.NewErrParamRequired("Threshold")) + } if len(v.Type) == 0 { invalidParams.Add(smithy.NewErrParamRequired("Type")) } diff --git a/service/route53recoveryreadiness/api_op_GetArchitectureRecommendations.go b/service/route53recoveryreadiness/api_op_GetArchitectureRecommendations.go index e8de6cb1e4d..5a264bb5002 100644 --- a/service/route53recoveryreadiness/api_op_GetArchitectureRecommendations.go +++ b/service/route53recoveryreadiness/api_op_GetArchitectureRecommendations.go @@ -42,7 +42,7 @@ type GetArchitectureRecommendationsInput struct { RecoveryGroupName *string // The number of objects that you want to return with this call. - MaxResults int32 + MaxResults *int32 // The token that identifies which batch of results you want to see. NextToken *string diff --git a/service/route53recoveryreadiness/api_op_GetCellReadinessSummary.go b/service/route53recoveryreadiness/api_op_GetCellReadinessSummary.go index 9afb2d80923..fc91814ce21 100644 --- a/service/route53recoveryreadiness/api_op_GetCellReadinessSummary.go +++ b/service/route53recoveryreadiness/api_op_GetCellReadinessSummary.go @@ -41,7 +41,7 @@ type GetCellReadinessSummaryInput struct { CellName *string // The number of objects that you want to return with this call. - MaxResults int32 + MaxResults *int32 // The token that identifies which batch of results you want to see. NextToken *string @@ -177,8 +177,8 @@ func NewGetCellReadinessSummaryPaginator(client GetCellReadinessSummaryAPIClient } options := GetCellReadinessSummaryPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults + if params.MaxResults != nil { + options.Limit = *params.MaxResults } for _, fn := range optFns { @@ -208,7 +208,11 @@ func (p *GetCellReadinessSummaryPaginator) 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.GetCellReadinessSummary(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/route53recoveryreadiness/api_op_GetReadinessCheckResourceStatus.go b/service/route53recoveryreadiness/api_op_GetReadinessCheckResourceStatus.go index c1f0d6a3ae1..bf1c4b505b2 100644 --- a/service/route53recoveryreadiness/api_op_GetReadinessCheckResourceStatus.go +++ b/service/route53recoveryreadiness/api_op_GetReadinessCheckResourceStatus.go @@ -50,7 +50,7 @@ type GetReadinessCheckResourceStatusInput struct { ResourceIdentifier *string // The number of objects that you want to return with this call. - MaxResults int32 + MaxResults *int32 // The token that identifies which batch of results you want to see. NextToken *string @@ -187,8 +187,8 @@ func NewGetReadinessCheckResourceStatusPaginator(client GetReadinessCheckResourc } options := GetReadinessCheckResourceStatusPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults + if params.MaxResults != nil { + options.Limit = *params.MaxResults } for _, fn := range optFns { @@ -218,7 +218,11 @@ func (p *GetReadinessCheckResourceStatusPaginator) 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.GetReadinessCheckResourceStatus(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/route53recoveryreadiness/api_op_GetReadinessCheckStatus.go b/service/route53recoveryreadiness/api_op_GetReadinessCheckStatus.go index 5536ca29910..2d51d75b114 100644 --- a/service/route53recoveryreadiness/api_op_GetReadinessCheckStatus.go +++ b/service/route53recoveryreadiness/api_op_GetReadinessCheckStatus.go @@ -43,7 +43,7 @@ type GetReadinessCheckStatusInput struct { ReadinessCheckName *string // The number of objects that you want to return with this call. - MaxResults int32 + MaxResults *int32 // The token that identifies which batch of results you want to see. NextToken *string @@ -182,8 +182,8 @@ func NewGetReadinessCheckStatusPaginator(client GetReadinessCheckStatusAPIClient } options := GetReadinessCheckStatusPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults + if params.MaxResults != nil { + options.Limit = *params.MaxResults } for _, fn := range optFns { @@ -213,7 +213,11 @@ func (p *GetReadinessCheckStatusPaginator) 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.GetReadinessCheckStatus(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/route53recoveryreadiness/api_op_GetRecoveryGroupReadinessSummary.go b/service/route53recoveryreadiness/api_op_GetRecoveryGroupReadinessSummary.go index b539aea749e..b36ba0694ae 100644 --- a/service/route53recoveryreadiness/api_op_GetRecoveryGroupReadinessSummary.go +++ b/service/route53recoveryreadiness/api_op_GetRecoveryGroupReadinessSummary.go @@ -42,7 +42,7 @@ type GetRecoveryGroupReadinessSummaryInput struct { RecoveryGroupName *string // The number of objects that you want to return with this call. - MaxResults int32 + MaxResults *int32 // The token that identifies which batch of results you want to see. NextToken *string @@ -179,8 +179,8 @@ func NewGetRecoveryGroupReadinessSummaryPaginator(client GetRecoveryGroupReadine } options := GetRecoveryGroupReadinessSummaryPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults + if params.MaxResults != nil { + options.Limit = *params.MaxResults } for _, fn := range optFns { @@ -210,7 +210,11 @@ func (p *GetRecoveryGroupReadinessSummaryPaginator) 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.GetRecoveryGroupReadinessSummary(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/route53recoveryreadiness/api_op_ListCells.go b/service/route53recoveryreadiness/api_op_ListCells.go index 7b306741fb9..ac1d5442ec7 100644 --- a/service/route53recoveryreadiness/api_op_ListCells.go +++ b/service/route53recoveryreadiness/api_op_ListCells.go @@ -35,7 +35,7 @@ func (c *Client) ListCells(ctx context.Context, params *ListCellsInput, optFns . type ListCellsInput struct { // The number of objects that you want to return with this call. - MaxResults int32 + MaxResults *int32 // The token that identifies which batch of results you want to see. NextToken *string @@ -162,8 +162,8 @@ func NewListCellsPaginator(client ListCellsAPIClient, params *ListCellsInput, op } options := ListCellsPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults + if params.MaxResults != nil { + options.Limit = *params.MaxResults } for _, fn := range optFns { @@ -193,7 +193,11 @@ func (p *ListCellsPaginator) NextPage(ctx context.Context, optFns ...func(*Optio 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.ListCells(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/route53recoveryreadiness/api_op_ListCrossAccountAuthorizations.go b/service/route53recoveryreadiness/api_op_ListCrossAccountAuthorizations.go index ea688378165..fd2990e3591 100644 --- a/service/route53recoveryreadiness/api_op_ListCrossAccountAuthorizations.go +++ b/service/route53recoveryreadiness/api_op_ListCrossAccountAuthorizations.go @@ -35,7 +35,7 @@ func (c *Client) ListCrossAccountAuthorizations(ctx context.Context, params *Lis type ListCrossAccountAuthorizationsInput struct { // The number of objects that you want to return with this call. - MaxResults int32 + MaxResults *int32 // The token that identifies which batch of results you want to see. NextToken *string @@ -166,8 +166,8 @@ func NewListCrossAccountAuthorizationsPaginator(client ListCrossAccountAuthoriza } options := ListCrossAccountAuthorizationsPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults + if params.MaxResults != nil { + options.Limit = *params.MaxResults } for _, fn := range optFns { @@ -197,7 +197,11 @@ func (p *ListCrossAccountAuthorizationsPaginator) 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.ListCrossAccountAuthorizations(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/route53recoveryreadiness/api_op_ListReadinessChecks.go b/service/route53recoveryreadiness/api_op_ListReadinessChecks.go index 1d7639256cc..7cf7630a5ed 100644 --- a/service/route53recoveryreadiness/api_op_ListReadinessChecks.go +++ b/service/route53recoveryreadiness/api_op_ListReadinessChecks.go @@ -35,7 +35,7 @@ func (c *Client) ListReadinessChecks(ctx context.Context, params *ListReadinessC type ListReadinessChecksInput struct { // The number of objects that you want to return with this call. - MaxResults int32 + MaxResults *int32 // The token that identifies which batch of results you want to see. NextToken *string @@ -164,8 +164,8 @@ func NewListReadinessChecksPaginator(client ListReadinessChecksAPIClient, params } options := ListReadinessChecksPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults + if params.MaxResults != nil { + options.Limit = *params.MaxResults } for _, fn := range optFns { @@ -195,7 +195,11 @@ func (p *ListReadinessChecksPaginator) 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.ListReadinessChecks(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/route53recoveryreadiness/api_op_ListRecoveryGroups.go b/service/route53recoveryreadiness/api_op_ListRecoveryGroups.go index 81e9912363c..97bbd634cdf 100644 --- a/service/route53recoveryreadiness/api_op_ListRecoveryGroups.go +++ b/service/route53recoveryreadiness/api_op_ListRecoveryGroups.go @@ -35,7 +35,7 @@ func (c *Client) ListRecoveryGroups(ctx context.Context, params *ListRecoveryGro type ListRecoveryGroupsInput struct { // The number of objects that you want to return with this call. - MaxResults int32 + MaxResults *int32 // The token that identifies which batch of results you want to see. NextToken *string @@ -164,8 +164,8 @@ func NewListRecoveryGroupsPaginator(client ListRecoveryGroupsAPIClient, params * } options := ListRecoveryGroupsPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults + if params.MaxResults != nil { + options.Limit = *params.MaxResults } for _, fn := range optFns { @@ -195,7 +195,11 @@ func (p *ListRecoveryGroupsPaginator) 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.ListRecoveryGroups(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/route53recoveryreadiness/api_op_ListResourceSets.go b/service/route53recoveryreadiness/api_op_ListResourceSets.go index 621bc882931..d1d51be4d02 100644 --- a/service/route53recoveryreadiness/api_op_ListResourceSets.go +++ b/service/route53recoveryreadiness/api_op_ListResourceSets.go @@ -35,7 +35,7 @@ func (c *Client) ListResourceSets(ctx context.Context, params *ListResourceSetsI type ListResourceSetsInput struct { // The number of objects that you want to return with this call. - MaxResults int32 + MaxResults *int32 // The token that identifies which batch of results you want to see. NextToken *string @@ -163,8 +163,8 @@ func NewListResourceSetsPaginator(client ListResourceSetsAPIClient, params *List } options := ListResourceSetsPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults + if params.MaxResults != nil { + options.Limit = *params.MaxResults } for _, fn := range optFns { @@ -194,7 +194,11 @@ func (p *ListResourceSetsPaginator) 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.ListResourceSets(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/route53recoveryreadiness/api_op_ListRules.go b/service/route53recoveryreadiness/api_op_ListRules.go index cd783b2d6b8..3b7b653d2be 100644 --- a/service/route53recoveryreadiness/api_op_ListRules.go +++ b/service/route53recoveryreadiness/api_op_ListRules.go @@ -36,7 +36,7 @@ func (c *Client) ListRules(ctx context.Context, params *ListRulesInput, optFns . type ListRulesInput struct { // The number of objects that you want to return with this call. - MaxResults int32 + MaxResults *int32 // The token that identifies which batch of results you want to see. NextToken *string @@ -166,8 +166,8 @@ func NewListRulesPaginator(client ListRulesAPIClient, params *ListRulesInput, op } options := ListRulesPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults + if params.MaxResults != nil { + options.Limit = *params.MaxResults } for _, fn := range optFns { @@ -197,7 +197,11 @@ func (p *ListRulesPaginator) NextPage(ctx context.Context, optFns ...func(*Optio 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.ListRules(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/route53recoveryreadiness/serializers.go b/service/route53recoveryreadiness/serializers.go index 12ad1f8ba04..daacb15b9c4 100644 --- a/service/route53recoveryreadiness/serializers.go +++ b/service/route53recoveryreadiness/serializers.go @@ -826,8 +826,8 @@ func awsRestjson1_serializeOpHttpBindingsGetArchitectureRecommendationsInput(v * return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.MaxResults != 0 { - encoder.SetQuery("maxResults").Integer(v.MaxResults) + if v.MaxResults != nil { + encoder.SetQuery("maxResults").Integer(*v.MaxResults) } if v.NextToken != nil { @@ -973,8 +973,8 @@ func awsRestjson1_serializeOpHttpBindingsGetCellReadinessSummaryInput(v *GetCell } } - if v.MaxResults != 0 { - encoder.SetQuery("maxResults").Integer(v.MaxResults) + if v.MaxResults != nil { + encoder.SetQuery("maxResults").Integer(*v.MaxResults) } if v.NextToken != nil { @@ -1102,8 +1102,8 @@ func awsRestjson1_serializeOpHttpBindingsGetReadinessCheckResourceStatusInput(v return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.MaxResults != 0 { - encoder.SetQuery("maxResults").Integer(v.MaxResults) + if v.MaxResults != nil { + encoder.SetQuery("maxResults").Integer(*v.MaxResults) } if v.NextToken != nil { @@ -1184,8 +1184,8 @@ func awsRestjson1_serializeOpHttpBindingsGetReadinessCheckStatusInput(v *GetRead return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.MaxResults != 0 { - encoder.SetQuery("maxResults").Integer(v.MaxResults) + if v.MaxResults != nil { + encoder.SetQuery("maxResults").Integer(*v.MaxResults) } if v.NextToken != nil { @@ -1322,8 +1322,8 @@ func awsRestjson1_serializeOpHttpBindingsGetRecoveryGroupReadinessSummaryInput(v return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.MaxResults != 0 { - encoder.SetQuery("maxResults").Integer(v.MaxResults) + if v.MaxResults != nil { + encoder.SetQuery("maxResults").Integer(*v.MaxResults) } if v.NextToken != nil { @@ -1460,8 +1460,8 @@ func awsRestjson1_serializeOpHttpBindingsListCellsInput(v *ListCellsInput, encod return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.MaxResults != 0 { - encoder.SetQuery("maxResults").Integer(v.MaxResults) + if v.MaxResults != nil { + encoder.SetQuery("maxResults").Integer(*v.MaxResults) } if v.NextToken != nil { @@ -1524,8 +1524,8 @@ func awsRestjson1_serializeOpHttpBindingsListCrossAccountAuthorizationsInput(v * return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.MaxResults != 0 { - encoder.SetQuery("maxResults").Integer(v.MaxResults) + if v.MaxResults != nil { + encoder.SetQuery("maxResults").Integer(*v.MaxResults) } if v.NextToken != nil { @@ -1588,8 +1588,8 @@ func awsRestjson1_serializeOpHttpBindingsListReadinessChecksInput(v *ListReadine return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.MaxResults != 0 { - encoder.SetQuery("maxResults").Integer(v.MaxResults) + if v.MaxResults != nil { + encoder.SetQuery("maxResults").Integer(*v.MaxResults) } if v.NextToken != nil { @@ -1652,8 +1652,8 @@ func awsRestjson1_serializeOpHttpBindingsListRecoveryGroupsInput(v *ListRecovery return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.MaxResults != 0 { - encoder.SetQuery("maxResults").Integer(v.MaxResults) + if v.MaxResults != nil { + encoder.SetQuery("maxResults").Integer(*v.MaxResults) } if v.NextToken != nil { @@ -1716,8 +1716,8 @@ func awsRestjson1_serializeOpHttpBindingsListResourceSetsInput(v *ListResourceSe return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.MaxResults != 0 { - encoder.SetQuery("maxResults").Integer(v.MaxResults) + if v.MaxResults != nil { + encoder.SetQuery("maxResults").Integer(*v.MaxResults) } if v.NextToken != nil { @@ -1780,8 +1780,8 @@ func awsRestjson1_serializeOpHttpBindingsListRulesInput(v *ListRulesInput, encod return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.MaxResults != 0 { - encoder.SetQuery("maxResults").Integer(v.MaxResults) + if v.MaxResults != nil { + encoder.SetQuery("maxResults").Integer(*v.MaxResults) } if v.NextToken != nil { diff --git a/service/schemas/api_op_CreateDiscoverer.go b/service/schemas/api_op_CreateDiscoverer.go index 063d9875b22..31b312d9548 100644 --- a/service/schemas/api_op_CreateDiscoverer.go +++ b/service/schemas/api_op_CreateDiscoverer.go @@ -41,7 +41,7 @@ type CreateDiscovererInput struct { // Support discovery of schemas in events sent to the bus from another account. // (default: true). - CrossAccount bool + CrossAccount *bool // A description for the discoverer. Description *string @@ -56,7 +56,7 @@ type CreateDiscovererOutput struct { // The Status if the discoverer will discover schemas from events sent from // another account. - CrossAccount bool + CrossAccount *bool // The description of the discoverer. Description *string diff --git a/service/schemas/api_op_DescribeDiscoverer.go b/service/schemas/api_op_DescribeDiscoverer.go index c8de6ee0613..d95f1dfdb66 100644 --- a/service/schemas/api_op_DescribeDiscoverer.go +++ b/service/schemas/api_op_DescribeDiscoverer.go @@ -46,7 +46,7 @@ type DescribeDiscovererOutput struct { // The Status if the discoverer will discover schemas from events sent from // another account. - CrossAccount bool + CrossAccount *bool // The description of the discoverer. Description *string diff --git a/service/schemas/api_op_ListDiscoverers.go b/service/schemas/api_op_ListDiscoverers.go index ed67176fed7..25a509feab8 100644 --- a/service/schemas/api_op_ListDiscoverers.go +++ b/service/schemas/api_op_ListDiscoverers.go @@ -38,7 +38,7 @@ type ListDiscoverersInput struct { // the specified prefix. DiscovererIdPrefix *string - Limit int32 + Limit *int32 // The token that specifies the next page of results to return. To request the // first page, leave NextToken empty. The token will expire in 24 hours, and cannot @@ -173,8 +173,8 @@ func NewListDiscoverersPaginator(client ListDiscoverersAPIClient, params *ListDi } options := ListDiscoverersPaginatorOptions{} - if params.Limit != 0 { - options.Limit = params.Limit + if params.Limit != nil { + options.Limit = *params.Limit } for _, fn := range optFns { @@ -204,7 +204,11 @@ func (p *ListDiscoverersPaginator) NextPage(ctx context.Context, optFns ...func( params := *p.params params.NextToken = p.nextToken - params.Limit = p.options.Limit + var limit *int32 + if p.options.Limit > 0 { + limit = &p.options.Limit + } + params.Limit = limit result, err := p.client.ListDiscoverers(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/schemas/api_op_ListRegistries.go b/service/schemas/api_op_ListRegistries.go index cb463f5df90..90a92da720c 100644 --- a/service/schemas/api_op_ListRegistries.go +++ b/service/schemas/api_op_ListRegistries.go @@ -33,7 +33,7 @@ func (c *Client) ListRegistries(ctx context.Context, params *ListRegistriesInput } type ListRegistriesInput struct { - Limit int32 + Limit *int32 // The token that specifies the next page of results to return. To request the // first page, leave NextToken empty. The token will expire in 24 hours, and cannot @@ -172,8 +172,8 @@ func NewListRegistriesPaginator(client ListRegistriesAPIClient, params *ListRegi } options := ListRegistriesPaginatorOptions{} - if params.Limit != 0 { - options.Limit = params.Limit + if params.Limit != nil { + options.Limit = *params.Limit } for _, fn := range optFns { @@ -203,7 +203,11 @@ func (p *ListRegistriesPaginator) NextPage(ctx context.Context, optFns ...func(* params := *p.params params.NextToken = p.nextToken - params.Limit = p.options.Limit + var limit *int32 + if p.options.Limit > 0 { + limit = &p.options.Limit + } + params.Limit = limit result, err := p.client.ListRegistries(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/schemas/api_op_ListSchemaVersions.go b/service/schemas/api_op_ListSchemaVersions.go index 6bb2b1fdc2d..9013d9a6f31 100644 --- a/service/schemas/api_op_ListSchemaVersions.go +++ b/service/schemas/api_op_ListSchemaVersions.go @@ -44,7 +44,7 @@ type ListSchemaVersionsInput struct { // This member is required. SchemaName *string - Limit int32 + Limit *int32 // The token that specifies the next page of results to return. To request the // first page, leave NextToken empty. The token will expire in 24 hours, and cannot @@ -179,8 +179,8 @@ func NewListSchemaVersionsPaginator(client ListSchemaVersionsAPIClient, params * } options := ListSchemaVersionsPaginatorOptions{} - if params.Limit != 0 { - options.Limit = params.Limit + if params.Limit != nil { + options.Limit = *params.Limit } for _, fn := range optFns { @@ -210,7 +210,11 @@ func (p *ListSchemaVersionsPaginator) NextPage(ctx context.Context, optFns ...fu params := *p.params params.NextToken = p.nextToken - params.Limit = p.options.Limit + var limit *int32 + if p.options.Limit > 0 { + limit = &p.options.Limit + } + params.Limit = limit result, err := p.client.ListSchemaVersions(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/schemas/api_op_ListSchemas.go b/service/schemas/api_op_ListSchemas.go index 782fd7b393e..5d60ab1d13d 100644 --- a/service/schemas/api_op_ListSchemas.go +++ b/service/schemas/api_op_ListSchemas.go @@ -39,7 +39,7 @@ type ListSchemasInput struct { // This member is required. RegistryName *string - Limit int32 + Limit *int32 // The token that specifies the next page of results to return. To request the // first page, leave NextToken empty. The token will expire in 24 hours, and cannot @@ -176,8 +176,8 @@ func NewListSchemasPaginator(client ListSchemasAPIClient, params *ListSchemasInp } options := ListSchemasPaginatorOptions{} - if params.Limit != 0 { - options.Limit = params.Limit + if params.Limit != nil { + options.Limit = *params.Limit } for _, fn := range optFns { @@ -207,7 +207,11 @@ func (p *ListSchemasPaginator) NextPage(ctx context.Context, optFns ...func(*Opt params := *p.params params.NextToken = p.nextToken - params.Limit = p.options.Limit + var limit *int32 + if p.options.Limit > 0 { + limit = &p.options.Limit + } + params.Limit = limit result, err := p.client.ListSchemas(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/schemas/api_op_SearchSchemas.go b/service/schemas/api_op_SearchSchemas.go index bdc893c186a..2b7c2c29bd7 100644 --- a/service/schemas/api_op_SearchSchemas.go +++ b/service/schemas/api_op_SearchSchemas.go @@ -45,7 +45,7 @@ type SearchSchemasInput struct { // This member is required. RegistryName *string - Limit int32 + Limit *int32 // The token that specifies the next page of results to return. To request the // first page, leave NextToken empty. The token will expire in 24 hours, and cannot @@ -178,8 +178,8 @@ func NewSearchSchemasPaginator(client SearchSchemasAPIClient, params *SearchSche } options := SearchSchemasPaginatorOptions{} - if params.Limit != 0 { - options.Limit = params.Limit + if params.Limit != nil { + options.Limit = *params.Limit } for _, fn := range optFns { @@ -209,7 +209,11 @@ func (p *SearchSchemasPaginator) NextPage(ctx context.Context, optFns ...func(*O params := *p.params params.NextToken = p.nextToken - params.Limit = p.options.Limit + var limit *int32 + if p.options.Limit > 0 { + limit = &p.options.Limit + } + params.Limit = limit result, err := p.client.SearchSchemas(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/schemas/api_op_UpdateDiscoverer.go b/service/schemas/api_op_UpdateDiscoverer.go index b39a2be27fa..b0530fb4c9b 100644 --- a/service/schemas/api_op_UpdateDiscoverer.go +++ b/service/schemas/api_op_UpdateDiscoverer.go @@ -41,7 +41,7 @@ type UpdateDiscovererInput struct { // Support discovery of schemas in events sent to the bus from another account. // (default: true) - CrossAccount bool + CrossAccount *bool // The description of the discoverer to update. Description *string @@ -53,7 +53,7 @@ type UpdateDiscovererOutput struct { // The Status if the discoverer will discover schemas from events sent from // another account. - CrossAccount bool + CrossAccount *bool // The description of the discoverer. Description *string diff --git a/service/schemas/deserializers.go b/service/schemas/deserializers.go index f36ef176482..daf0e21308f 100644 --- a/service/schemas/deserializers.go +++ b/service/schemas/deserializers.go @@ -174,7 +174,7 @@ func awsRestjson1_deserializeOpDocumentCreateDiscovererOutput(v **CreateDiscover if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.CrossAccount = jtv + sv.CrossAccount = ptr.Bool(jtv) } case "Description": @@ -1527,7 +1527,7 @@ func awsRestjson1_deserializeOpDocumentDescribeDiscovererOutput(v **DescribeDisc if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.CrossAccount = jtv + sv.CrossAccount = ptr.Bool(jtv) } case "Description": @@ -4769,7 +4769,7 @@ func awsRestjson1_deserializeOpDocumentUpdateDiscovererOutput(v **UpdateDiscover if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.CrossAccount = jtv + sv.CrossAccount = ptr.Bool(jtv) } case "Description": @@ -5940,7 +5940,7 @@ func awsRestjson1_deserializeDocumentDiscovererSummary(v **types.DiscovererSumma if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.CrossAccount = jtv + sv.CrossAccount = ptr.Bool(jtv) } case "DiscovererArn": @@ -6360,7 +6360,7 @@ func awsRestjson1_deserializeDocumentSchemaSummary(v **types.SchemaSummary, valu if err != nil { return err } - sv.VersionCount = i64 + sv.VersionCount = ptr.Int64(i64) } default: diff --git a/service/schemas/serializers.go b/service/schemas/serializers.go index 77aa5f19c4e..5c25b48eacd 100644 --- a/service/schemas/serializers.go +++ b/service/schemas/serializers.go @@ -80,9 +80,9 @@ func awsRestjson1_serializeOpDocumentCreateDiscovererInput(v *CreateDiscovererIn object := value.Object() defer object.Close() - if v.CrossAccount { + if v.CrossAccount != nil { ok := object.Key("CrossAccount") - ok.Boolean(v.CrossAccount) + ok.Boolean(*v.CrossAccount) } if v.Description != nil { @@ -1324,8 +1324,8 @@ func awsRestjson1_serializeOpHttpBindingsListDiscoverersInput(v *ListDiscoverers encoder.SetQuery("discovererIdPrefix").String(*v.DiscovererIdPrefix) } - if v.Limit != 0 { - encoder.SetQuery("limit").Integer(v.Limit) + if v.Limit != nil { + encoder.SetQuery("limit").Integer(*v.Limit) } if v.NextToken != nil { @@ -1392,8 +1392,8 @@ func awsRestjson1_serializeOpHttpBindingsListRegistriesInput(v *ListRegistriesIn return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Limit != 0 { - encoder.SetQuery("limit").Integer(v.Limit) + if v.Limit != nil { + encoder.SetQuery("limit").Integer(*v.Limit) } if v.NextToken != nil { @@ -1464,8 +1464,8 @@ func awsRestjson1_serializeOpHttpBindingsListSchemasInput(v *ListSchemasInput, e return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Limit != 0 { - encoder.SetQuery("limit").Integer(v.Limit) + if v.Limit != nil { + encoder.SetQuery("limit").Integer(*v.Limit) } if v.NextToken != nil { @@ -1541,8 +1541,8 @@ func awsRestjson1_serializeOpHttpBindingsListSchemaVersionsInput(v *ListSchemaVe return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.Limit != 0 { - encoder.SetQuery("limit").Integer(v.Limit) + if v.Limit != nil { + encoder.SetQuery("limit").Integer(*v.Limit) } if v.NextToken != nil { @@ -1867,8 +1867,8 @@ func awsRestjson1_serializeOpHttpBindingsSearchSchemasInput(v *SearchSchemasInpu encoder.SetQuery("keywords").String(*v.Keywords) } - if v.Limit != 0 { - encoder.SetQuery("limit").Integer(v.Limit) + if v.Limit != nil { + encoder.SetQuery("limit").Integer(*v.Limit) } if v.NextToken != nil { @@ -2258,9 +2258,9 @@ func awsRestjson1_serializeOpDocumentUpdateDiscovererInput(v *UpdateDiscovererIn object := value.Object() defer object.Close() - if v.CrossAccount { + if v.CrossAccount != nil { ok := object.Key("CrossAccount") - ok.Boolean(v.CrossAccount) + ok.Boolean(*v.CrossAccount) } if v.Description != nil { diff --git a/service/schemas/types/types.go b/service/schemas/types/types.go index b66487b82e5..399c502cd8e 100644 --- a/service/schemas/types/types.go +++ b/service/schemas/types/types.go @@ -11,7 +11,7 @@ type DiscovererSummary struct { // The Status if the discoverer will discover schemas from events sent from // another account. - CrossAccount bool + CrossAccount *bool // The ARN of the discoverer. DiscovererArn *string @@ -61,7 +61,7 @@ type SchemaSummary struct { Tags map[string]string // The number of versions available for the schema. - VersionCount int64 + VersionCount *int64 noSmithyDocumentSerde } diff --git a/service/serverlessapplicationrepository/api_op_CreateApplication.go b/service/serverlessapplicationrepository/api_op_CreateApplication.go index f852069ad4e..7ba03f3b9de 100644 --- a/service/serverlessapplicationrepository/api_op_CreateApplication.go +++ b/service/serverlessapplicationrepository/api_op_CreateApplication.go @@ -132,7 +132,7 @@ type CreateApplicationOutput struct { // AWS has made a good faith review, as a reasonable and prudent service provider, // of the information provided by the requester and has confirmed that the // requester's identity is as claimed. - IsVerifiedAuthor bool + IsVerifiedAuthor *bool // Labels to improve discovery of apps in search results.Minimum length=1. Maximum // length=127. Maximum number of labels: 10Pattern: "^[a-zA-Z0-9+\\-_:\\/@]+$"; diff --git a/service/serverlessapplicationrepository/api_op_CreateApplicationVersion.go b/service/serverlessapplicationrepository/api_op_CreateApplicationVersion.go index 967f920a6f4..7aeff0bc66d 100644 --- a/service/serverlessapplicationrepository/api_op_CreateApplicationVersion.go +++ b/service/serverlessapplicationrepository/api_op_CreateApplicationVersion.go @@ -102,7 +102,7 @@ type CreateApplicationVersionOutput struct { // Whether all of the AWS resources contained in this application are supported in // the region in which it is being retrieved. - ResourcesSupported bool + ResourcesSupported *bool // The semantic version of the application: https://semver.org/ (https://semver.org/) SemanticVersion *string diff --git a/service/serverlessapplicationrepository/api_op_GetApplication.go b/service/serverlessapplicationrepository/api_op_GetApplication.go index e14847c74ad..f6a077fae09 100644 --- a/service/serverlessapplicationrepository/api_op_GetApplication.go +++ b/service/serverlessapplicationrepository/api_op_GetApplication.go @@ -68,7 +68,7 @@ type GetApplicationOutput struct { // AWS has made a good faith review, as a reasonable and prudent service provider, // of the information provided by the requester and has confirmed that the // requester's identity is as claimed. - IsVerifiedAuthor bool + IsVerifiedAuthor *bool // Labels to improve discovery of apps in search results.Minimum length=1. Maximum // length=127. Maximum number of labels: 10Pattern: "^[a-zA-Z0-9+\\-_:\\/@]+$"; diff --git a/service/serverlessapplicationrepository/api_op_ListApplicationDependencies.go b/service/serverlessapplicationrepository/api_op_ListApplicationDependencies.go index 179ae6ee75b..dfd9e5cb45a 100644 --- a/service/serverlessapplicationrepository/api_op_ListApplicationDependencies.go +++ b/service/serverlessapplicationrepository/api_op_ListApplicationDependencies.go @@ -40,7 +40,7 @@ type ListApplicationDependenciesInput struct { ApplicationId *string // The total number of items to return. - MaxItems int32 + MaxItems *int32 // A token to specify where to start paginating. NextToken *string @@ -177,8 +177,8 @@ func NewListApplicationDependenciesPaginator(client ListApplicationDependenciesA } options := ListApplicationDependenciesPaginatorOptions{} - if params.MaxItems != 0 { - options.Limit = params.MaxItems + if params.MaxItems != nil { + options.Limit = *params.MaxItems } for _, fn := range optFns { @@ -208,7 +208,11 @@ func (p *ListApplicationDependenciesPaginator) NextPage(ctx context.Context, opt params := *p.params params.NextToken = p.nextToken - params.MaxItems = p.options.Limit + var limit *int32 + if p.options.Limit > 0 { + limit = &p.options.Limit + } + params.MaxItems = limit result, err := p.client.ListApplicationDependencies(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/serverlessapplicationrepository/api_op_ListApplicationVersions.go b/service/serverlessapplicationrepository/api_op_ListApplicationVersions.go index e9d8fbad59f..b5e41d0871d 100644 --- a/service/serverlessapplicationrepository/api_op_ListApplicationVersions.go +++ b/service/serverlessapplicationrepository/api_op_ListApplicationVersions.go @@ -40,7 +40,7 @@ type ListApplicationVersionsInput struct { ApplicationId *string // The total number of items to return. - MaxItems int32 + MaxItems *int32 // A token to specify where to start paginating. NextToken *string @@ -173,8 +173,8 @@ func NewListApplicationVersionsPaginator(client ListApplicationVersionsAPIClient } options := ListApplicationVersionsPaginatorOptions{} - if params.MaxItems != 0 { - options.Limit = params.MaxItems + if params.MaxItems != nil { + options.Limit = *params.MaxItems } for _, fn := range optFns { @@ -204,7 +204,11 @@ func (p *ListApplicationVersionsPaginator) NextPage(ctx context.Context, optFns params := *p.params params.NextToken = p.nextToken - params.MaxItems = p.options.Limit + var limit *int32 + if p.options.Limit > 0 { + limit = &p.options.Limit + } + params.MaxItems = limit result, err := p.client.ListApplicationVersions(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/serverlessapplicationrepository/api_op_ListApplications.go b/service/serverlessapplicationrepository/api_op_ListApplications.go index d90d88b78ca..8317194b1a4 100644 --- a/service/serverlessapplicationrepository/api_op_ListApplications.go +++ b/service/serverlessapplicationrepository/api_op_ListApplications.go @@ -35,7 +35,7 @@ func (c *Client) ListApplications(ctx context.Context, params *ListApplicationsI type ListApplicationsInput struct { // The total number of items to return. - MaxItems int32 + MaxItems *int32 // A token to specify where to start paginating. NextToken *string @@ -163,8 +163,8 @@ func NewListApplicationsPaginator(client ListApplicationsAPIClient, params *List } options := ListApplicationsPaginatorOptions{} - if params.MaxItems != 0 { - options.Limit = params.MaxItems + if params.MaxItems != nil { + options.Limit = *params.MaxItems } for _, fn := range optFns { @@ -194,7 +194,11 @@ func (p *ListApplicationsPaginator) NextPage(ctx context.Context, optFns ...func params := *p.params params.NextToken = p.nextToken - params.MaxItems = p.options.Limit + var limit *int32 + if p.options.Limit > 0 { + limit = &p.options.Limit + } + params.MaxItems = limit result, err := p.client.ListApplications(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/serverlessapplicationrepository/api_op_UpdateApplication.go b/service/serverlessapplicationrepository/api_op_UpdateApplication.go index e9b10f90f97..3f6789086e1 100644 --- a/service/serverlessapplicationrepository/api_op_UpdateApplication.go +++ b/service/serverlessapplicationrepository/api_op_UpdateApplication.go @@ -88,7 +88,7 @@ type UpdateApplicationOutput struct { // AWS has made a good faith review, as a reasonable and prudent service provider, // of the information provided by the requester and has confirmed that the // requester's identity is as claimed. - IsVerifiedAuthor bool + IsVerifiedAuthor *bool // Labels to improve discovery of apps in search results.Minimum length=1. Maximum // length=127. Maximum number of labels: 10Pattern: "^[a-zA-Z0-9+\\-_:\\/@]+$"; diff --git a/service/serverlessapplicationrepository/deserializers.go b/service/serverlessapplicationrepository/deserializers.go index 0ce8d4fdc72..927c786c4c6 100644 --- a/service/serverlessapplicationrepository/deserializers.go +++ b/service/serverlessapplicationrepository/deserializers.go @@ -215,7 +215,7 @@ func awsRestjson1_deserializeOpDocumentCreateApplicationOutput(v **CreateApplica if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.IsVerifiedAuthor = jtv + sv.IsVerifiedAuthor = ptr.Bool(jtv) } case "labels": @@ -461,7 +461,7 @@ func awsRestjson1_deserializeOpDocumentCreateApplicationVersionOutput(v **Create if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.ResourcesSupported = jtv + sv.ResourcesSupported = ptr.Bool(jtv) } case "semanticVersion": @@ -1213,7 +1213,7 @@ func awsRestjson1_deserializeOpDocumentGetApplicationOutput(v **GetApplicationOu if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.IsVerifiedAuthor = jtv + sv.IsVerifiedAuthor = ptr.Bool(jtv) } case "labels": @@ -2616,7 +2616,7 @@ func awsRestjson1_deserializeOpDocumentUpdateApplicationOutput(v **UpdateApplica if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.IsVerifiedAuthor = jtv + sv.IsVerifiedAuthor = ptr.Bool(jtv) } case "labels": @@ -3662,7 +3662,7 @@ func awsRestjson1_deserializeDocumentParameterDefinition(v **types.ParameterDefi if err != nil { return err } - sv.MaxLength = int32(i64) + sv.MaxLength = ptr.Int32(int32(i64)) } case "maxValue": @@ -3675,7 +3675,7 @@ func awsRestjson1_deserializeDocumentParameterDefinition(v **types.ParameterDefi if err != nil { return err } - sv.MaxValue = int32(i64) + sv.MaxValue = ptr.Int32(int32(i64)) } case "minLength": @@ -3688,7 +3688,7 @@ func awsRestjson1_deserializeDocumentParameterDefinition(v **types.ParameterDefi if err != nil { return err } - sv.MinLength = int32(i64) + sv.MinLength = ptr.Int32(int32(i64)) } case "minValue": @@ -3701,7 +3701,7 @@ func awsRestjson1_deserializeDocumentParameterDefinition(v **types.ParameterDefi if err != nil { return err } - sv.MinValue = int32(i64) + sv.MinValue = ptr.Int32(int32(i64)) } case "name": @@ -3719,7 +3719,7 @@ func awsRestjson1_deserializeDocumentParameterDefinition(v **types.ParameterDefi if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.NoEcho = jtv + sv.NoEcho = ptr.Bool(jtv) } case "referencedByResources": @@ -3850,7 +3850,7 @@ func awsRestjson1_deserializeDocumentVersion(v **types.Version, value interface{ if !ok { return fmt.Errorf("expected __boolean to be of type *bool, got %T instead", value) } - sv.ResourcesSupported = jtv + sv.ResourcesSupported = ptr.Bool(jtv) } case "semanticVersion": diff --git a/service/serverlessapplicationrepository/serializers.go b/service/serverlessapplicationrepository/serializers.go index 0b9a430180a..21859c4e061 100644 --- a/service/serverlessapplicationrepository/serializers.go +++ b/service/serverlessapplicationrepository/serializers.go @@ -851,8 +851,8 @@ func awsRestjson1_serializeOpHttpBindingsListApplicationDependenciesInput(v *Lis } } - if v.MaxItems != 0 { - encoder.SetQuery("maxItems").Integer(v.MaxItems) + if v.MaxItems != nil { + encoder.SetQuery("maxItems").Integer(*v.MaxItems) } if v.NextToken != nil { @@ -919,8 +919,8 @@ func awsRestjson1_serializeOpHttpBindingsListApplicationsInput(v *ListApplicatio return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.MaxItems != 0 { - encoder.SetQuery("maxItems").Integer(v.MaxItems) + if v.MaxItems != nil { + encoder.SetQuery("maxItems").Integer(*v.MaxItems) } if v.NextToken != nil { @@ -992,8 +992,8 @@ func awsRestjson1_serializeOpHttpBindingsListApplicationVersionsInput(v *ListApp } } - if v.MaxItems != 0 { - encoder.SetQuery("maxItems").Integer(v.MaxItems) + if v.MaxItems != nil { + encoder.SetQuery("maxItems").Integer(*v.MaxItems) } if v.NextToken != nil { @@ -1413,9 +1413,9 @@ func awsRestjson1_serializeDocumentRollbackConfiguration(v *types.RollbackConfig object := value.Object() defer object.Close() - if v.MonitoringTimeInMinutes != 0 { + if v.MonitoringTimeInMinutes != nil { ok := object.Key("monitoringTimeInMinutes") - ok.Integer(v.MonitoringTimeInMinutes) + ok.Integer(*v.MonitoringTimeInMinutes) } if v.RollbackTriggers != nil { diff --git a/service/serverlessapplicationrepository/types/types.go b/service/serverlessapplicationrepository/types/types.go index 401d9ff1a14..41a4f1d2dc1 100644 --- a/service/serverlessapplicationrepository/types/types.go +++ b/service/serverlessapplicationrepository/types/types.go @@ -128,24 +128,24 @@ type ParameterDefinition struct { // An integer value that determines the largest number of characters that you want // to allow for String types. - MaxLength int32 + MaxLength *int32 // A numeric value that determines the largest numeric value that you want to // allow for Number types. - MaxValue int32 + MaxValue *int32 // An integer value that determines the smallest number of characters that you // want to allow for String types. - MinLength int32 + MinLength *int32 // A numeric value that determines the smallest numeric value that you want to // allow for Number types. - MinValue int32 + MinValue *int32 // Whether to mask the parameter value whenever anyone makes a call that describes // the stack. If you set the value to true, the parameter value is masked with // asterisks (*****). - NoEcho bool + NoEcho *bool // The type of the parameter.Valid values: String | Number | List | // CommaDelimitedList String: A literal string.For example, users can specify @@ -192,7 +192,7 @@ type RollbackConfiguration struct { // This property corresponds to the content of the same name for the AWS // CloudFormation RollbackConfiguration (https://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/RollbackConfiguration) // Data Type. - MonitoringTimeInMinutes int32 + MonitoringTimeInMinutes *int32 // This property corresponds to the content of the same name for the AWS // CloudFormation RollbackConfiguration (https://docs.aws.amazon.com/goto/WebAPI/cloudformation-2010-05-15/RollbackConfiguration) @@ -296,7 +296,7 @@ type Version struct { // the region in which it is being retrieved. // // This member is required. - ResourcesSupported bool + ResourcesSupported *bool // The semantic version of the application: https://semver.org/ (https://semver.org/) //