From a13b7a41c97b08941717ca0bd16388d52618c1a9 Mon Sep 17 00:00:00 2001 From: Steven Yuan Date: Wed, 14 Sep 2022 14:44:19 -0700 Subject: [PATCH] codegen: Upgrade to smithy 1.25.0 (#1835) * Upgrade to smithy 1.25.0 Update EC2 unboxed shapes to boxed shapes backfill customization Due to changes in smithy 2.0 nullability semantics around the `@box` trait, the generated code for `ec2.json` generated incorrect code. Instead of adding `@box` traits to certain members in the customization, the `@clientOptional` trait is added to members of all structure shapes. Chores: - Add mavenLocal to codegen build files - Update .gitignore to ignore .idea/ * Regenerate clients with break/fix's Due to prior bugs for `@box` members not being serialized as a pointer type and incorrect pagination serialization, the clients in this commit are regenerated with the break/fix's. --- .gitignore | 1 + codegen/gradle.properties | 2 +- .../protocol-test-codegen/build.gradle.kts | 1 + codegen/sdk-codegen/build.gradle.kts | 1 + .../BackfillEc2UnboxedToBoxedShapes.java | 73 +--- service/acmpca/deserializers.go | 4 +- service/acmpca/serializers.go | 12 +- service/acmpca/types/types.go | 6 +- service/acmpca/validators.go | 6 + .../api_op_CreateDeploymentStrategy.go | 4 +- service/appconfig/api_op_CreateExtension.go | 2 +- .../api_op_CreateExtensionAssociation.go | 2 +- ...api_op_CreateHostedConfigurationVersion.go | 2 +- service/appconfig/api_op_DeleteExtension.go | 2 +- service/appconfig/api_op_GetDeployment.go | 2 +- service/appconfig/api_op_GetExtension.go | 2 +- service/appconfig/api_op_ListApplications.go | 12 +- .../api_op_ListConfigurationProfiles.go | 12 +- .../api_op_ListDeploymentStrategies.go | 12 +- service/appconfig/api_op_ListDeployments.go | 12 +- service/appconfig/api_op_ListEnvironments.go | 12 +- .../api_op_ListExtensionAssociations.go | 14 +- service/appconfig/api_op_ListExtensions.go | 12 +- .../api_op_ListHostedConfigurationVersions.go | 12 +- service/appconfig/api_op_StopDeployment.go | 2 +- .../api_op_UpdateDeploymentStrategy.go | 6 +- service/appconfig/api_op_UpdateExtension.go | 2 +- service/appconfig/serializers.go | 106 +++--- service/appconfig/validators.go | 12 + service/appflow/deserializers.go | 6 +- service/appflow/serializers.go | 12 +- service/appflow/types/types.go | 6 +- service/appflow/validators.go | 3 + service/appmesh/deserializers.go | 4 +- service/appmesh/serializers.go | 8 +- service/appmesh/types/types.go | 4 +- .../codestar/api_op_AssociateTeamMember.go | 2 +- service/codestar/api_op_ListProjects.go | 2 +- service/codestar/api_op_ListResources.go | 2 +- service/codestar/api_op_ListTagsForProject.go | 2 +- service/codestar/api_op_ListTeamMembers.go | 2 +- service/codestar/api_op_ListUserProfiles.go | 2 +- service/codestar/api_op_UpdateTeamMember.go | 4 +- service/codestar/deserializers.go | 4 +- service/codestar/serializers.go | 28 +- service/codestar/types/types.go | 2 +- .../api_op_ListEventTypes.go | 12 +- .../api_op_ListNotificationRules.go | 12 +- .../api_op_ListTargets.go | 12 +- service/codestarnotifications/serializers.go | 12 +- service/cognitoidentity/deserializers.go | 2 +- service/cognitoidentity/serializers.go | 4 +- service/cognitoidentity/types/types.go | 2 +- .../cognitoidentityprovider/deserializers.go | 8 +- .../cognitoidentityprovider/serializers.go | 12 +- .../cognitoidentityprovider/types/types.go | 8 +- .../configservice/api_op_ListStoredQueries.go | 12 +- service/configservice/serializers.go | 4 +- service/connect/api_op_CreateQueue.go | 2 +- .../connect/api_op_GetCurrentMetricData.go | 12 +- service/connect/api_op_GetCurrentUserData.go | 12 +- service/connect/api_op_GetMetricData.go | 12 +- service/connect/api_op_ListAgentStatuses.go | 12 +- service/connect/api_op_ListApprovedOrigins.go | 12 +- service/connect/api_op_ListBots.go | 12 +- .../connect/api_op_ListContactFlowModules.go | 12 +- .../connect/api_op_ListInstanceAttributes.go | 12 +- .../api_op_ListInstanceStorageConfigs.go | 12 +- service/connect/api_op_ListInstances.go | 12 +- .../api_op_ListIntegrationAssociations.go | 12 +- service/connect/api_op_ListLambdaFunctions.go | 12 +- service/connect/api_op_ListLexBots.go | 12 +- service/connect/api_op_ListPhoneNumbersV2.go | 12 +- service/connect/api_op_ListPrompts.go | 12 +- .../connect/api_op_ListQueueQuickConnects.go | 12 +- service/connect/api_op_ListQuickConnects.go | 12 +- .../api_op_ListRoutingProfileQueues.go | 12 +- service/connect/api_op_ListRoutingProfiles.go | 12 +- service/connect/api_op_ListSecurityKeys.go | 12 +- .../api_op_ListSecurityProfilePermissions.go | 12 +- .../connect/api_op_ListSecurityProfiles.go | 12 +- service/connect/api_op_ListTaskTemplates.go | 12 +- service/connect/api_op_ListUseCases.go | 12 +- .../connect/api_op_ListUserHierarchyGroups.go | 12 +- service/connect/api_op_ListUsers.go | 12 +- .../api_op_SearchAvailablePhoneNumbers.go | 12 +- service/connect/api_op_SearchQueues.go | 12 +- .../connect/api_op_SearchRoutingProfiles.go | 12 +- .../connect/api_op_SearchSecurityProfiles.go | 12 +- service/connect/api_op_SearchUsers.go | 12 +- .../connect/api_op_UpdateQueueMaxContacts.go | 2 +- service/connect/deserializers.go | 6 +- service/connect/serializers.go | 148 ++++---- service/connect/types/types.go | 10 +- service/connect/validators.go | 12 + .../api_op_GetTranscript.go | 12 +- service/connectparticipant/serializers.go | 4 +- .../api_op_GetReservationCoverage.go | 2 +- .../api_op_GetReservationUtilization.go | 2 +- .../api_op_GetSavingsPlansCoverage.go | 12 +- ...pi_op_GetSavingsPlansUtilizationDetails.go | 12 +- .../api_op_ListCostAllocationTags.go | 12 +- .../api_op_ListCostCategoryDefinitions.go | 12 +- service/costexplorer/serializers.go | 24 +- service/customerprofiles/serializers.go | 4 +- service/customerprofiles/types/types.go | 2 +- service/emrserverless/api_op_StartJobRun.go | 2 +- service/emrserverless/serializers.go | 4 +- service/evidently/api_op_CreateExperiment.go | 2 +- service/evidently/api_op_UpdateExperiment.go | 2 +- service/evidently/serializers.go | 8 +- service/finspacedata/api_op_CreateDataView.go | 2 +- service/finspacedata/api_op_GetChangeset.go | 4 +- service/finspacedata/api_op_GetDataView.go | 2 +- service/finspacedata/api_op_ListChangesets.go | 12 +- service/finspacedata/api_op_ListDataViews.go | 12 +- service/finspacedata/api_op_ListDatasets.go | 12 +- service/finspacedata/deserializers.go | 12 +- service/finspacedata/serializers.go | 16 +- service/finspacedata/types/types.go | 6 +- service/fis/api_op_ListActions.go | 12 +- service/fis/api_op_ListExperimentTemplates.go | 12 +- service/fis/api_op_ListExperiments.go | 12 +- service/fis/api_op_ListTargetResourceTypes.go | 12 +- service/fis/deserializers.go | 4 +- service/fis/serializers.go | 16 +- service/fis/types/types.go | 4 +- service/glue/deserializers.go | 2 +- service/glue/serializers.go | 4 +- service/glue/types/types.go | 2 +- ...stClientDevicesAssociatedWithCoreDevice.go | 12 +- .../api_op_ListComponentVersions.go | 12 +- service/greengrassv2/api_op_ListComponents.go | 12 +- .../greengrassv2/api_op_ListCoreDevices.go | 12 +- .../greengrassv2/api_op_ListDeployments.go | 12 +- .../api_op_ListEffectiveDeployments.go | 12 +- .../api_op_ListInstalledComponents.go | 12 +- service/greengrassv2/deserializers.go | 12 +- service/greengrassv2/serializers.go | 92 ++--- service/greengrassv2/types/types.go | 32 +- .../api_op_ListComponentBuildVersions.go | 12 +- service/imagebuilder/api_op_ListComponents.go | 12 +- .../api_op_ListContainerRecipes.go | 12 +- .../api_op_ListDistributionConfigurations.go | 12 +- .../api_op_ListImageBuildVersions.go | 12 +- .../imagebuilder/api_op_ListImagePackages.go | 12 +- .../api_op_ListImagePipelineImages.go | 12 +- .../imagebuilder/api_op_ListImagePipelines.go | 12 +- .../imagebuilder/api_op_ListImageRecipes.go | 12 +- service/imagebuilder/api_op_ListImages.go | 12 +- ...api_op_ListInfrastructureConfigurations.go | 12 +- service/imagebuilder/serializers.go | 44 +-- service/iot/deserializers.go | 30 +- service/iot/serializers.go | 4 +- service/iot/types/types.go | 16 +- service/iotanalytics/deserializers.go | 4 +- service/iotanalytics/serializers.go | 10 +- service/iotanalytics/types/types.go | 2 +- .../iotsecuretunneling/api_op_CloseTunnel.go | 2 +- .../iotsecuretunneling/api_op_ListTunnels.go | 12 +- service/iotsecuretunneling/deserializers.go | 2 +- service/iotsecuretunneling/serializers.go | 12 +- service/iotsecuretunneling/types/types.go | 2 +- .../lookoutmetrics/api_op_CreateMetricSet.go | 2 +- ...i_op_DescribeAnomalyDetectionExecutions.go | 12 +- .../api_op_DescribeMetricSet.go | 2 +- service/lookoutmetrics/api_op_GetFeedback.go | 12 +- service/lookoutmetrics/api_op_ListAlerts.go | 12 +- .../api_op_ListAnomalyDetectors.go | 12 +- .../api_op_ListAnomalyGroupRelatedMetrics.go | 12 +- .../api_op_ListAnomalyGroupSummaries.go | 12 +- .../api_op_ListAnomalyGroupTimeSeries.go | 12 +- .../lookoutmetrics/api_op_ListMetricSets.go | 12 +- .../lookoutmetrics/api_op_UpdateMetricSet.go | 2 +- service/lookoutmetrics/deserializers.go | 6 +- service/lookoutmetrics/serializers.go | 48 +-- service/lookoutmetrics/types/types.go | 4 +- service/m2/api_op_GetDataSetDetails.go | 4 +- service/m2/deserializers.go | 8 +- service/m2/types/types.go | 4 +- service/networkfirewall/deserializers.go | 2 +- service/networkfirewall/serializers.go | 4 +- service/networkfirewall/types/types.go | 2 +- service/pricing/api_op_DescribeServices.go | 12 +- service/pricing/api_op_GetAttributeValues.go | 12 +- service/pricing/api_op_GetProducts.go | 12 +- service/pricing/serializers.go | 12 +- service/quicksight/api_op_ListAnalyses.go | 12 +- .../api_op_ListDashboardVersions.go | 12 +- service/quicksight/api_op_ListDashboards.go | 12 +- service/quicksight/api_op_ListDataSets.go | 12 +- service/quicksight/api_op_ListDataSources.go | 12 +- .../quicksight/api_op_ListFolderMembers.go | 2 +- service/quicksight/api_op_ListFolders.go | 2 +- .../quicksight/api_op_ListGroupMemberships.go | 2 +- service/quicksight/api_op_ListGroups.go | 2 +- .../api_op_ListIAMPolicyAssignments.go | 2 +- .../api_op_ListIAMPolicyAssignmentsForUser.go | 2 +- service/quicksight/api_op_ListIngestions.go | 12 +- service/quicksight/api_op_ListNamespaces.go | 12 +- .../quicksight/api_op_ListTemplateAliases.go | 12 +- .../quicksight/api_op_ListTemplateVersions.go | 12 +- service/quicksight/api_op_ListTemplates.go | 12 +- service/quicksight/api_op_ListThemeAliases.go | 2 +- .../quicksight/api_op_ListThemeVersions.go | 12 +- service/quicksight/api_op_ListThemes.go | 12 +- service/quicksight/api_op_ListUserGroups.go | 2 +- service/quicksight/api_op_ListUsers.go | 2 +- service/quicksight/api_op_SearchAnalyses.go | 12 +- service/quicksight/api_op_SearchDashboards.go | 12 +- service/quicksight/api_op_SearchFolders.go | 2 +- service/quicksight/api_op_SearchGroups.go | 2 +- service/quicksight/deserializers.go | 22 +- service/quicksight/serializers.go | 124 +++---- service/quicksight/types/types.go | 22 +- .../api_op_ListRoutingControls.go | 12 +- service/route53recoverycluster/serializers.go | 4 +- service/s3control/api_op_CreateJob.go | 4 +- service/s3control/api_op_ListJobs.go | 12 +- service/s3control/deserializers.go | 16 +- service/s3control/serializers.go | 24 +- service/s3control/types/types.go | 16 +- service/s3control/validators.go | 3 + service/sagemaker/api_op_ListAutoMLJobs.go | 12 +- .../api_op_ListCandidatesForAutoMLJob.go | 12 +- service/sagemaker/api_op_ListDeviceFleets.go | 12 +- service/sagemaker/api_op_ListDevices.go | 12 +- .../api_op_ListEdgeDeploymentPlans.go | 12 +- .../sagemaker/api_op_ListEdgePackagingJobs.go | 12 +- service/sagemaker/api_op_ListStageDevices.go | 12 +- service/sagemaker/deserializers.go | 4 +- service/sagemaker/serializers.go | 36 +- service/sagemaker/types/types.go | 4 +- .../api_op_ListHumanLoops.go | 12 +- service/sagemakera2iruntime/serializers.go | 4 +- service/secretsmanager/api_op_DeleteSecret.go | 4 +- .../secretsmanager/api_op_DescribeSecret.go | 2 +- .../api_op_GetRandomPassword.go | 14 +- .../api_op_ListSecretVersionIds.go | 14 +- service/secretsmanager/api_op_ListSecrets.go | 12 +- .../api_op_PutResourcePolicy.go | 2 +- service/secretsmanager/api_op_RotateSecret.go | 2 +- service/secretsmanager/deserializers.go | 6 +- service/secretsmanager/serializers.go | 60 ++-- service/secretsmanager/types/types.go | 4 +- .../api_op_ListApplications.go | 12 +- .../api_op_ListAssociatedAttributeGroups.go | 12 +- .../api_op_ListAssociatedResources.go | 12 +- .../api_op_ListAttributeGroups.go | 12 +- ...pi_op_ListAttributeGroupsForApplication.go | 12 +- .../servicecatalogappregistry/serializers.go | 20 +- service/sfn/deserializers.go | 10 +- service/sfn/types/types.go | 10 +- service/ssm/api_op_CreateActivation.go | 2 +- service/ssm/api_op_CreateAssociation.go | 2 +- service/ssm/api_op_CreateMaintenanceWindow.go | 2 +- service/ssm/api_op_CreatePatchBaseline.go | 2 +- ...p_DeregisterTargetFromMaintenanceWindow.go | 2 +- service/ssm/api_op_DescribeActivations.go | 12 +- ..._op_DescribeAssociationExecutionTargets.go | 12 +- .../api_op_DescribeAssociationExecutions.go | 12 +- .../api_op_DescribeAutomationExecutions.go | 12 +- ...api_op_DescribeAutomationStepExecutions.go | 14 +- .../ssm/api_op_DescribeAvailablePatches.go | 12 +- .../ssm/api_op_DescribeDocumentPermission.go | 2 +- ...p_DescribeEffectiveInstanceAssociations.go | 12 +- ...escribeEffectivePatchesForPatchBaseline.go | 12 +- ...i_op_DescribeInstanceAssociationsStatus.go | 12 +- .../ssm/api_op_DescribeInstanceInformation.go | 12 +- .../ssm/api_op_DescribeInstancePatchStates.go | 12 +- ...escribeInstancePatchStatesForPatchGroup.go | 12 +- service/ssm/api_op_DescribeInstancePatches.go | 12 +- .../ssm/api_op_DescribeInventoryDeletions.go | 12 +- ...intenanceWindowExecutionTaskInvocations.go | 12 +- ...DescribeMaintenanceWindowExecutionTasks.go | 12 +- ..._op_DescribeMaintenanceWindowExecutions.go | 12 +- ...pi_op_DescribeMaintenanceWindowSchedule.go | 12 +- ...api_op_DescribeMaintenanceWindowTargets.go | 12 +- .../api_op_DescribeMaintenanceWindowTasks.go | 12 +- .../ssm/api_op_DescribeMaintenanceWindows.go | 12 +- ..._op_DescribeMaintenanceWindowsForTarget.go | 12 +- service/ssm/api_op_DescribeParameters.go | 12 +- service/ssm/api_op_DescribePatchBaselines.go | 12 +- service/ssm/api_op_DescribePatchGroupState.go | 12 +- service/ssm/api_op_DescribePatchGroups.go | 12 +- service/ssm/api_op_DescribePatchProperties.go | 12 +- service/ssm/api_op_DescribeSessions.go | 12 +- service/ssm/api_op_GetInventory.go | 12 +- service/ssm/api_op_GetInventorySchema.go | 14 +- service/ssm/api_op_GetMaintenanceWindow.go | 2 +- service/ssm/api_op_GetOpsMetadata.go | 2 +- service/ssm/api_op_GetOpsSummary.go | 12 +- service/ssm/api_op_GetParameter.go | 2 +- service/ssm/api_op_GetParameterHistory.go | 14 +- service/ssm/api_op_GetParameters.go | 2 +- service/ssm/api_op_GetParametersByPath.go | 16 +- service/ssm/api_op_GetPatchBaseline.go | 2 +- service/ssm/api_op_LabelParameterVersion.go | 2 +- service/ssm/api_op_ListAssociationVersions.go | 12 +- service/ssm/api_op_ListAssociations.go | 12 +- service/ssm/api_op_ListCommandInvocations.go | 12 +- service/ssm/api_op_ListCommands.go | 12 +- service/ssm/api_op_ListComplianceItems.go | 12 +- service/ssm/api_op_ListComplianceSummaries.go | 12 +- .../ssm/api_op_ListDocumentMetadataHistory.go | 2 +- service/ssm/api_op_ListDocumentVersions.go | 12 +- service/ssm/api_op_ListDocuments.go | 12 +- service/ssm/api_op_ListInventoryEntries.go | 2 +- service/ssm/api_op_ListOpsMetadata.go | 12 +- .../api_op_ListResourceComplianceSummaries.go | 12 +- service/ssm/api_op_ListResourceDataSync.go | 12 +- service/ssm/api_op_PutParameter.go | 2 +- ...pi_op_RegisterTaskWithMaintenanceWindow.go | 2 +- service/ssm/api_op_SendCommand.go | 2 +- service/ssm/api_op_UnlabelParameterVersion.go | 2 +- service/ssm/api_op_UpdateAssociation.go | 2 +- service/ssm/api_op_UpdateMaintenanceWindow.go | 14 +- .../api_op_UpdateMaintenanceWindowTarget.go | 2 +- .../ssm/api_op_UpdateMaintenanceWindowTask.go | 4 +- service/ssm/api_op_UpdatePatchBaseline.go | 6 +- service/ssm/deserializers.go | 58 ++-- service/ssm/serializers.go | 320 +++++++++--------- service/ssm/types/types.go | 38 +-- service/ssm/validators.go | 3 + service/timestreamwrite/deserializers.go | 2 +- service/timestreamwrite/serializers.go | 4 +- service/timestreamwrite/types/types.go | 4 +- 327 files changed, 2285 insertions(+), 1650 deletions(-) diff --git a/.gitignore b/.gitignore index 18719daa8a7..e736820b3d2 100644 --- a/.gitignore +++ b/.gitignore @@ -9,3 +9,4 @@ Gemfile.lock /private/model/cli/gen-api/gen-api .gradle/ build/ +.idea/ diff --git a/codegen/gradle.properties b/codegen/gradle.properties index af9b7ae7f42..7ab719891cc 100644 --- a/codegen/gradle.properties +++ b/codegen/gradle.properties @@ -1,2 +1,2 @@ -smithyVersion=1.23.1 +smithyVersion=1.25.0 smithyGradleVersion=0.6.0 diff --git a/codegen/protocol-test-codegen/build.gradle.kts b/codegen/protocol-test-codegen/build.gradle.kts index e816675404a..724261ae7b8 100644 --- a/codegen/protocol-test-codegen/build.gradle.kts +++ b/codegen/protocol-test-codegen/build.gradle.kts @@ -20,6 +20,7 @@ val smithyVersion: String by project buildscript { val smithyVersion: String by project repositories { + mavenLocal() mavenCentral() } dependencies { diff --git a/codegen/sdk-codegen/build.gradle.kts b/codegen/sdk-codegen/build.gradle.kts index ff2794735b4..eabc76fee48 100644 --- a/codegen/sdk-codegen/build.gradle.kts +++ b/codegen/sdk-codegen/build.gradle.kts @@ -24,6 +24,7 @@ val smithyVersion: String by project buildscript { val smithyVersion: String by project repositories { + mavenLocal() mavenCentral() } dependencies { diff --git a/codegen/smithy-aws-go-codegen/src/main/java/software/amazon/smithy/aws/go/codegen/customization/BackfillEc2UnboxedToBoxedShapes.java b/codegen/smithy-aws-go-codegen/src/main/java/software/amazon/smithy/aws/go/codegen/customization/BackfillEc2UnboxedToBoxedShapes.java index 06eb34b0acd..7292f72f90f 100644 --- a/codegen/smithy-aws-go-codegen/src/main/java/software/amazon/smithy/aws/go/codegen/customization/BackfillEc2UnboxedToBoxedShapes.java +++ b/codegen/smithy-aws-go-codegen/src/main/java/software/amazon/smithy/aws/go/codegen/customization/BackfillEc2UnboxedToBoxedShapes.java @@ -1,16 +1,18 @@ package software.amazon.smithy.aws.go.codegen.customization; +import java.util.ArrayList; +import java.util.List; import java.util.Set; import java.util.logging.Logger; -import software.amazon.smithy.codegen.core.CodegenException; -import software.amazon.smithy.go.codegen.CodegenUtils; import software.amazon.smithy.go.codegen.GoSettings; import software.amazon.smithy.go.codegen.integration.GoIntegration; import software.amazon.smithy.model.Model; +import software.amazon.smithy.model.transform.ModelTransformer; +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.ShapeType; -import software.amazon.smithy.model.traits.BoxTrait; +import software.amazon.smithy.model.shapes.StructureShape; +import software.amazon.smithy.model.traits.ClientOptionalTrait; import software.amazon.smithy.utils.SetUtils; public class BackfillEc2UnboxedToBoxedShapes implements GoIntegration { @@ -26,7 +28,7 @@ public class BackfillEc2UnboxedToBoxedShapes implements GoIntegration { /** * /** - * Updates the API model to customize all number and boolean unboxed shapes to be boxed. + * Updates the API model to customize all structured members to be nullable. * * @param model API model * @param settings Go codegen settings @@ -39,63 +41,12 @@ public Model preprocessModel(Model model, GoSettings settings) { return model; } - Model.Builder builder = model.toBuilder(); - - for (Shape shape : model.toSet()) { - // Only consider number and boolean shapes that are unboxed - if (shape.isMemberShape()) { - continue; - } - if (!(CodegenUtils.isNumber(shape) || shape.getType() == ShapeType.BOOLEAN)) { - continue; + List updates = new ArrayList<>(); + for (StructureShape struct : model.getStructureShapes()) { + for (MemberShape member : struct.getAllMembers().values()) { + updates.add(member.toBuilder().addTrait(new ClientOptionalTrait()).build()); } - if (shape.hasTrait(BoxTrait.class)) { - continue; - } - - switch (shape.getType()) { - case BYTE: - shape = shape.asByteShape().get().toBuilder() - .addTrait(new BoxTrait()) - .build(); - break; - case SHORT: - shape = shape.asShortShape().get().toBuilder() - .addTrait(new BoxTrait()) - .build(); - break; - case INTEGER: - shape = shape.asIntegerShape().get().toBuilder() - .addTrait(new BoxTrait()) - .build(); - break; - case LONG: - shape = shape.asLongShape().get().toBuilder() - .addTrait(new BoxTrait()) - .build(); - break; - case FLOAT: - shape = shape.asFloatShape().get().toBuilder() - .addTrait(new BoxTrait()) - .build(); - break; - case DOUBLE: - shape = shape.asDoubleShape().get().toBuilder() - .addTrait(new BoxTrait()) - .build(); - break; - case BOOLEAN: - shape = shape.asBooleanShape().get().toBuilder() - .addTrait(new BoxTrait()) - .build(); - break; - default: - throw new CodegenException("unexpected shape type for " + shape.getId() + ", " + shape.getType()); - } - - builder.addShape(shape); } - - return builder.build(); + return ModelTransformer.create().replaceShapes(model, updates); } } diff --git a/service/acmpca/deserializers.go b/service/acmpca/deserializers.go index fa26d80a466..5aa1ff75181 100644 --- a/service/acmpca/deserializers.go +++ b/service/acmpca/deserializers.go @@ -3973,7 +3973,7 @@ func awsAwsjson11_deserializeDocumentCrlConfiguration(v **types.CrlConfiguration 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 "ExpirationInDays": @@ -4860,7 +4860,7 @@ func awsAwsjson11_deserializeDocumentOcspConfiguration(v **types.OcspConfigurati 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 "OcspCustomCname": diff --git a/service/acmpca/serializers.go b/service/acmpca/serializers.go index 3b633b28a89..54a275bdebc 100644 --- a/service/acmpca/serializers.go +++ b/service/acmpca/serializers.go @@ -1499,9 +1499,9 @@ func awsAwsjson11_serializeDocumentCrlConfiguration(v *types.CrlConfiguration, v ok.String(*v.CustomCname) } - { + if v.Enabled != nil { ok := object.Key("Enabled") - ok.Boolean(v.Enabled) + ok.Boolean(*v.Enabled) } if v.ExpirationInDays != nil { @@ -1577,9 +1577,9 @@ func awsAwsjson11_serializeDocumentCustomExtension(v *types.CustomExtension, val object := value.Object() defer object.Close() - if v.Critical { + if v.Critical != nil { ok := object.Key("Critical") - ok.Boolean(v.Critical) + ok.Boolean(*v.Critical) } if v.ObjectIdentifier != nil { @@ -1819,9 +1819,9 @@ func awsAwsjson11_serializeDocumentOcspConfiguration(v *types.OcspConfiguration, object := value.Object() defer object.Close() - { + if v.Enabled != nil { ok := object.Key("Enabled") - ok.Boolean(v.Enabled) + ok.Boolean(*v.Enabled) } if v.OcspCustomCname != nil { diff --git a/service/acmpca/types/types.go b/service/acmpca/types/types.go index 4917dd62077..94b9c17aa58 100644 --- a/service/acmpca/types/types.go +++ b/service/acmpca/types/types.go @@ -324,7 +324,7 @@ type CrlConfiguration struct { // action. // // This member is required. - Enabled bool + Enabled *bool // Name inserted into the certificate CRL Distribution Points extension that // enables the use of an alias for the CRL distribution point. Use this value if @@ -413,7 +413,7 @@ type CustomExtension struct { Value *string // Specifies the critical flag of the X.509 extension. - Critical bool + Critical *bool noSmithyDocumentSerde } @@ -564,7 +564,7 @@ type OcspConfiguration struct { // validating certificate revocation status. // // This member is required. - Enabled bool + Enabled *bool // By default, ACM Private CA injects an Amazon Web Services domain into // certificates being validated by the Online Certificate Status Protocol (OCSP). A diff --git a/service/acmpca/validators.go b/service/acmpca/validators.go index 9f1cc31dbca..41d3f2d1ed2 100644 --- a/service/acmpca/validators.go +++ b/service/acmpca/validators.go @@ -668,6 +668,9 @@ func validateCrlConfiguration(v *types.CrlConfiguration) error { return nil } invalidParams := smithy.InvalidParamsError{Context: "CrlConfiguration"} + if v.Enabled == nil { + invalidParams.Add(smithy.NewErrParamRequired("Enabled")) + } if invalidParams.Len() > 0 { return invalidParams } else { @@ -853,6 +856,9 @@ func validateOcspConfiguration(v *types.OcspConfiguration) error { return nil } invalidParams := smithy.InvalidParamsError{Context: "OcspConfiguration"} + if v.Enabled == nil { + invalidParams.Add(smithy.NewErrParamRequired("Enabled")) + } if invalidParams.Len() > 0 { return invalidParams } else { diff --git a/service/appconfig/api_op_CreateDeploymentStrategy.go b/service/appconfig/api_op_CreateDeploymentStrategy.go index 9701f3ac2d0..f10493bab55 100644 --- a/service/appconfig/api_op_CreateDeploymentStrategy.go +++ b/service/appconfig/api_op_CreateDeploymentStrategy.go @@ -36,13 +36,13 @@ type CreateDeploymentStrategyInput struct { // Total amount of time for a deployment to last. // // This member is required. - DeploymentDurationInMinutes int32 + DeploymentDurationInMinutes *int32 // The percentage of targets to receive a deployed configuration during each // interval. // // This member is required. - GrowthFactor float32 + GrowthFactor *float32 // A name for the deployment strategy. // diff --git a/service/appconfig/api_op_CreateExtension.go b/service/appconfig/api_op_CreateExtension.go index ff97dedd5e6..b72ef886d5f 100644 --- a/service/appconfig/api_op_CreateExtension.go +++ b/service/appconfig/api_op_CreateExtension.go @@ -54,7 +54,7 @@ type CreateExtensionInput struct { // You can omit this field when you create an extension. When you create a new // version, specify the most recent current version number. For example, you create // version 3, enter 2 for this field. - LatestVersionNumber int32 + LatestVersionNumber *int32 // The parameters accepted by the extension. You specify parameter values when you // associate the extension to an AppConfig resource by using the diff --git a/service/appconfig/api_op_CreateExtensionAssociation.go b/service/appconfig/api_op_CreateExtensionAssociation.go index 9c50fc2802b..21cc9631768 100644 --- a/service/appconfig/api_op_CreateExtensionAssociation.go +++ b/service/appconfig/api_op_CreateExtensionAssociation.go @@ -52,7 +52,7 @@ type CreateExtensionAssociationInput struct { // The version number of the extension. If not specified, AppConfig uses the // maximum version of the extension. - ExtensionVersionNumber int32 + ExtensionVersionNumber *int32 // The parameter names and values defined in the extensions. Extension parameters // marked Required must be entered for this field. diff --git a/service/appconfig/api_op_CreateHostedConfigurationVersion.go b/service/appconfig/api_op_CreateHostedConfigurationVersion.go index 880ce825510..a98bfcee284 100644 --- a/service/appconfig/api_op_CreateHostedConfigurationVersion.go +++ b/service/appconfig/api_op_CreateHostedConfigurationVersion.go @@ -58,7 +58,7 @@ type CreateHostedConfigurationVersionInput struct { // overwritten when creating multiple hosted configuration versions in rapid // succession, specify the version number of the latest hosted configuration // version. - LatestVersionNumber int32 + LatestVersionNumber *int32 noSmithyDocumentSerde } diff --git a/service/appconfig/api_op_DeleteExtension.go b/service/appconfig/api_op_DeleteExtension.go index ac80bb35a4b..8d4d9a43c7e 100644 --- a/service/appconfig/api_op_DeleteExtension.go +++ b/service/appconfig/api_op_DeleteExtension.go @@ -36,7 +36,7 @@ type DeleteExtensionInput struct { // A specific version of an extension to delete. If omitted, the highest version is // deleted. - VersionNumber int32 + VersionNumber *int32 noSmithyDocumentSerde } diff --git a/service/appconfig/api_op_GetDeployment.go b/service/appconfig/api_op_GetDeployment.go index 8ff0b28fd2e..7f917f9fa89 100644 --- a/service/appconfig/api_op_GetDeployment.go +++ b/service/appconfig/api_op_GetDeployment.go @@ -38,7 +38,7 @@ type GetDeploymentInput struct { // The sequence number of the deployment. // // This member is required. - DeploymentNumber int32 + DeploymentNumber *int32 // The ID of the environment that includes the deployment you want to get. // diff --git a/service/appconfig/api_op_GetExtension.go b/service/appconfig/api_op_GetExtension.go index f6e89c731ce..fdcbf4bfcdd 100644 --- a/service/appconfig/api_op_GetExtension.go +++ b/service/appconfig/api_op_GetExtension.go @@ -36,7 +36,7 @@ type GetExtensionInput struct { // The extension version number. If no version number was defined, AppConfig uses // the highest version. - VersionNumber int32 + VersionNumber *int32 noSmithyDocumentSerde } diff --git a/service/appconfig/api_op_ListApplications.go b/service/appconfig/api_op_ListApplications.go index ee2994b2688..628587e0a21 100644 --- a/service/appconfig/api_op_ListApplications.go +++ b/service/appconfig/api_op_ListApplications.go @@ -32,7 +32,7 @@ type ListApplicationsInput struct { // The maximum number of items to return for this call. The call also returns a // token that you can specify in a subsequent call to get the next set of results. - MaxResults int32 + MaxResults *int32 // A token to start the list. Next token is a pagination token generated by // AppConfig to describe what page the previous List call ended on. For the first @@ -154,8 +154,8 @@ func NewListApplicationsPaginator(client ListApplicationsAPIClient, params *List } options := ListApplicationsPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults + if params.MaxResults != nil { + options.Limit = *params.MaxResults } for _, fn := range optFns { @@ -185,7 +185,11 @@ func (p *ListApplicationsPaginator) 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.ListApplications(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/appconfig/api_op_ListConfigurationProfiles.go b/service/appconfig/api_op_ListConfigurationProfiles.go index b2aee807b74..64c801f20fe 100644 --- a/service/appconfig/api_op_ListConfigurationProfiles.go +++ b/service/appconfig/api_op_ListConfigurationProfiles.go @@ -37,7 +37,7 @@ type ListConfigurationProfilesInput struct { // The maximum number of items to return for this call. The call also returns a // token that you can specify in a subsequent call to get the next set of results. - MaxResults int32 + MaxResults *int32 // A token to start the list. Use this token to get the next set of results. NextToken *string @@ -164,8 +164,8 @@ func NewListConfigurationProfilesPaginator(client ListConfigurationProfilesAPICl } options := ListConfigurationProfilesPaginatorOptions{} - 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 *ListConfigurationProfilesPaginator) 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.ListConfigurationProfiles(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/appconfig/api_op_ListDeploymentStrategies.go b/service/appconfig/api_op_ListDeploymentStrategies.go index d710f9cda48..feb1f4c5754 100644 --- a/service/appconfig/api_op_ListDeploymentStrategies.go +++ b/service/appconfig/api_op_ListDeploymentStrategies.go @@ -32,7 +32,7 @@ type ListDeploymentStrategiesInput struct { // The maximum number of items to return for this call. The call also returns a // token that you can specify in a subsequent call to get the next set of results. - MaxResults int32 + MaxResults *int32 // A token to start the list. Use this token to get the next set of results. NextToken *string @@ -152,8 +152,8 @@ func NewListDeploymentStrategiesPaginator(client ListDeploymentStrategiesAPIClie } options := ListDeploymentStrategiesPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults + if params.MaxResults != nil { + options.Limit = *params.MaxResults } for _, fn := range optFns { @@ -183,7 +183,11 @@ func (p *ListDeploymentStrategiesPaginator) 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.ListDeploymentStrategies(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/appconfig/api_op_ListDeployments.go b/service/appconfig/api_op_ListDeployments.go index 5f9592b6eb8..3815adf7245 100644 --- a/service/appconfig/api_op_ListDeployments.go +++ b/service/appconfig/api_op_ListDeployments.go @@ -44,7 +44,7 @@ type ListDeploymentsInput struct { // items that have not yet been returned, the response will include a non-null // NextToken that you can provide in a subsequent call to get the next set of // results. - MaxResults int32 + MaxResults *int32 // The token returned by a prior call to this operation indicating the next set of // results to be returned. If not specified, the operation will return the first @@ -169,8 +169,8 @@ func NewListDeploymentsPaginator(client ListDeploymentsAPIClient, params *ListDe } options := ListDeploymentsPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults + if params.MaxResults != nil { + options.Limit = *params.MaxResults } for _, fn := range optFns { @@ -200,7 +200,11 @@ func (p *ListDeploymentsPaginator) 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.ListDeployments(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/appconfig/api_op_ListEnvironments.go b/service/appconfig/api_op_ListEnvironments.go index 3876f7a83bd..8d0cba117c4 100644 --- a/service/appconfig/api_op_ListEnvironments.go +++ b/service/appconfig/api_op_ListEnvironments.go @@ -37,7 +37,7 @@ type ListEnvironmentsInput struct { // The maximum number of items to return for this call. The call also returns a // token that you can specify in a subsequent call to get the next set of results. - MaxResults int32 + MaxResults *int32 // A token to start the list. Use this token to get the next set of results. NextToken *string @@ -158,8 +158,8 @@ func NewListEnvironmentsPaginator(client ListEnvironmentsAPIClient, params *List } options := ListEnvironmentsPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults + if params.MaxResults != nil { + options.Limit = *params.MaxResults } for _, fn := range optFns { @@ -189,7 +189,11 @@ func (p *ListEnvironmentsPaginator) 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.ListEnvironments(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/appconfig/api_op_ListExtensionAssociations.go b/service/appconfig/api_op_ListExtensionAssociations.go index 48b012aa32d..c3dee3aebd1 100644 --- a/service/appconfig/api_op_ListExtensionAssociations.go +++ b/service/appconfig/api_op_ListExtensionAssociations.go @@ -37,11 +37,11 @@ type ListExtensionAssociationsInput struct { ExtensionIdentifier *string // The version number for the extension defined in the association. - ExtensionVersionNumber int32 + ExtensionVersionNumber *int32 // The maximum number of items to return for this call. The call also returns a // token that you can specify in a subsequent call to get the next set of results. - MaxResults int32 + MaxResults *int32 // A token to start the list. Use this token to get the next set of results or pass // null to get the first set of results. @@ -166,8 +166,8 @@ func NewListExtensionAssociationsPaginator(client ListExtensionAssociationsAPICl } options := ListExtensionAssociationsPaginatorOptions{} - 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 *ListExtensionAssociationsPaginator) 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.ListExtensionAssociations(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/appconfig/api_op_ListExtensions.go b/service/appconfig/api_op_ListExtensions.go index 16be172d1d2..cd060e88161 100644 --- a/service/appconfig/api_op_ListExtensions.go +++ b/service/appconfig/api_op_ListExtensions.go @@ -36,7 +36,7 @@ type ListExtensionsInput struct { // The maximum number of items to return for this call. The call also returns a // token that you can specify in a subsequent call to get the next set of results. - MaxResults int32 + MaxResults *int32 // The extension name. Name *string @@ -158,8 +158,8 @@ func NewListExtensionsPaginator(client ListExtensionsAPIClient, params *ListExte } options := ListExtensionsPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults + if params.MaxResults != nil { + options.Limit = *params.MaxResults } for _, fn := range optFns { @@ -189,7 +189,11 @@ func (p *ListExtensionsPaginator) 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.ListExtensions(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/appconfig/api_op_ListHostedConfigurationVersions.go b/service/appconfig/api_op_ListHostedConfigurationVersions.go index 1542d8acc4a..5b96d5b69c0 100644 --- a/service/appconfig/api_op_ListHostedConfigurationVersions.go +++ b/service/appconfig/api_op_ListHostedConfigurationVersions.go @@ -43,7 +43,7 @@ type ListHostedConfigurationVersionsInput struct { // The maximum number of items to return for this call. The call also returns a // token that you can specify in a subsequent call to get the next set of results. - MaxResults int32 + MaxResults *int32 // A token to start the list. Use this token to get the next set of results. NextToken *string @@ -167,8 +167,8 @@ func NewListHostedConfigurationVersionsPaginator(client ListHostedConfigurationV } options := ListHostedConfigurationVersionsPaginatorOptions{} - 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 *ListHostedConfigurationVersionsPaginator) 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.ListHostedConfigurationVersions(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/appconfig/api_op_StopDeployment.go b/service/appconfig/api_op_StopDeployment.go index 4e4cdfab8bb..a05ee47830d 100644 --- a/service/appconfig/api_op_StopDeployment.go +++ b/service/appconfig/api_op_StopDeployment.go @@ -39,7 +39,7 @@ type StopDeploymentInput struct { // The sequence number of the deployment. // // This member is required. - DeploymentNumber int32 + DeploymentNumber *int32 // The environment ID. // diff --git a/service/appconfig/api_op_UpdateDeploymentStrategy.go b/service/appconfig/api_op_UpdateDeploymentStrategy.go index bf5388cd89b..077a5c4643f 100644 --- a/service/appconfig/api_op_UpdateDeploymentStrategy.go +++ b/service/appconfig/api_op_UpdateDeploymentStrategy.go @@ -35,18 +35,18 @@ type UpdateDeploymentStrategyInput struct { DeploymentStrategyId *string // Total amount of time for a deployment to last. - DeploymentDurationInMinutes int32 + DeploymentDurationInMinutes *int32 // A description of the deployment strategy. Description *string // The amount of time that AppConfig monitors for alarms before considering the // deployment to be complete and no longer eligible for automatic rollback. - FinalBakeTimeInMinutes int32 + FinalBakeTimeInMinutes *int32 // The percentage of targets to receive a deployed configuration during each // interval. - GrowthFactor float32 + GrowthFactor *float32 // The algorithm used to define how percentage grows over time. AppConfig supports // the following growth types: Linear: For this type, AppConfig processes the diff --git a/service/appconfig/api_op_UpdateExtension.go b/service/appconfig/api_op_UpdateExtension.go index 331af588190..5d23b952f73 100644 --- a/service/appconfig/api_op_UpdateExtension.go +++ b/service/appconfig/api_op_UpdateExtension.go @@ -47,7 +47,7 @@ type UpdateExtensionInput struct { Parameters map[string]types.Parameter // The extension version number. - VersionNumber int32 + VersionNumber *int32 noSmithyDocumentSerde } diff --git a/service/appconfig/serializers.go b/service/appconfig/serializers.go index f2eb69ae622..5ab7373fa4d 100644 --- a/service/appconfig/serializers.go +++ b/service/appconfig/serializers.go @@ -270,9 +270,9 @@ func awsRestjson1_serializeOpDocumentCreateDeploymentStrategyInput(v *CreateDepl object := value.Object() defer object.Close() - { + if v.DeploymentDurationInMinutes != nil { ok := object.Key("DeploymentDurationInMinutes") - ok.Integer(v.DeploymentDurationInMinutes) + ok.Integer(*v.DeploymentDurationInMinutes) } if v.Description != nil { @@ -285,20 +285,20 @@ func awsRestjson1_serializeOpDocumentCreateDeploymentStrategyInput(v *CreateDepl ok.Integer(v.FinalBakeTimeInMinutes) } - { + if v.GrowthFactor != nil { ok := object.Key("GrowthFactor") switch { - case math.IsNaN(float64(v.GrowthFactor)): + case math.IsNaN(float64(*v.GrowthFactor)): ok.String("NaN") - case math.IsInf(float64(v.GrowthFactor), 1): + case math.IsInf(float64(*v.GrowthFactor), 1): ok.String("Infinity") - case math.IsInf(float64(v.GrowthFactor), -1): + case math.IsInf(float64(*v.GrowthFactor), -1): ok.String("-Infinity") default: - ok.Float(v.GrowthFactor) + ok.Float(*v.GrowthFactor) } } @@ -485,9 +485,9 @@ func awsRestjson1_serializeOpHttpBindingsCreateExtensionInput(v *CreateExtension return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.LatestVersionNumber != 0 { + if v.LatestVersionNumber != nil { locationName := "Latest-Version-Number" - encoder.SetHeader(locationName).Integer(v.LatestVersionNumber) + encoder.SetHeader(locationName).Integer(*v.LatestVersionNumber) } return nil @@ -596,9 +596,9 @@ func awsRestjson1_serializeOpDocumentCreateExtensionAssociationInput(v *CreateEx ok.String(*v.ExtensionIdentifier) } - if v.ExtensionVersionNumber != 0 { + if v.ExtensionVersionNumber != nil { ok := object.Key("ExtensionVersionNumber") - ok.Integer(v.ExtensionVersionNumber) + ok.Integer(*v.ExtensionVersionNumber) } if v.Parameters != nil { @@ -709,9 +709,9 @@ func awsRestjson1_serializeOpHttpBindingsCreateHostedConfigurationVersionInput(v encoder.SetHeader(locationName).String(*v.Description) } - if v.LatestVersionNumber != 0 { + if v.LatestVersionNumber != nil { locationName := "Latest-Version-Number" - encoder.SetHeader(locationName).Integer(v.LatestVersionNumber) + encoder.SetHeader(locationName).Integer(*v.LatestVersionNumber) } return nil @@ -1022,8 +1022,8 @@ func awsRestjson1_serializeOpHttpBindingsDeleteExtensionInput(v *DeleteExtension } } - if v.VersionNumber != 0 { - encoder.SetQuery("version").Integer(v.VersionNumber) + if v.VersionNumber != nil { + encoder.SetQuery("version").Integer(*v.VersionNumber) } return nil @@ -1424,8 +1424,11 @@ func awsRestjson1_serializeOpHttpBindingsGetDeploymentInput(v *GetDeploymentInpu } } - { - if err := encoder.SetURI("DeploymentNumber").Integer(v.DeploymentNumber); err != nil { + if v.DeploymentNumber == nil { + return &smithy.SerializationError{Err: fmt.Errorf("input member DeploymentNumber must not be empty")} + } + if v.DeploymentNumber != nil { + if err := encoder.SetURI("DeploymentNumber").Integer(*v.DeploymentNumber); err != nil { return err } } @@ -1622,8 +1625,8 @@ func awsRestjson1_serializeOpHttpBindingsGetExtensionInput(v *GetExtensionInput, } } - if v.VersionNumber != 0 { - encoder.SetQuery("version_number").Integer(v.VersionNumber) + if v.VersionNumber != nil { + encoder.SetQuery("version_number").Integer(*v.VersionNumber) } return nil @@ -1806,8 +1809,8 @@ func awsRestjson1_serializeOpHttpBindingsListApplicationsInput(v *ListApplicatio return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.MaxResults != 0 { - encoder.SetQuery("max_results").Integer(v.MaxResults) + if v.MaxResults != nil { + encoder.SetQuery("max_results").Integer(*v.MaxResults) } if v.NextToken != nil { @@ -1872,8 +1875,8 @@ func awsRestjson1_serializeOpHttpBindingsListConfigurationProfilesInput(v *ListC } } - if v.MaxResults != 0 { - encoder.SetQuery("max_results").Integer(v.MaxResults) + if v.MaxResults != nil { + encoder.SetQuery("max_results").Integer(*v.MaxResults) } if v.NextToken != nil { @@ -1951,8 +1954,8 @@ func awsRestjson1_serializeOpHttpBindingsListDeploymentsInput(v *ListDeployments } } - if v.MaxResults != 0 { - encoder.SetQuery("max_results").Integer(v.MaxResults) + if v.MaxResults != nil { + encoder.SetQuery("max_results").Integer(*v.MaxResults) } if v.NextToken != nil { @@ -2008,8 +2011,8 @@ func awsRestjson1_serializeOpHttpBindingsListDeploymentStrategiesInput(v *ListDe return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.MaxResults != 0 { - encoder.SetQuery("max_results").Integer(v.MaxResults) + if v.MaxResults != nil { + encoder.SetQuery("max_results").Integer(*v.MaxResults) } if v.NextToken != nil { @@ -2074,8 +2077,8 @@ func awsRestjson1_serializeOpHttpBindingsListEnvironmentsInput(v *ListEnvironmen } } - if v.MaxResults != 0 { - encoder.SetQuery("max_results").Integer(v.MaxResults) + if v.MaxResults != nil { + encoder.SetQuery("max_results").Integer(*v.MaxResults) } if v.NextToken != nil { @@ -2135,12 +2138,12 @@ func awsRestjson1_serializeOpHttpBindingsListExtensionAssociationsInput(v *ListE encoder.SetQuery("extension_identifier").String(*v.ExtensionIdentifier) } - if v.ExtensionVersionNumber != 0 { - encoder.SetQuery("extension_version_number").Integer(v.ExtensionVersionNumber) + if v.ExtensionVersionNumber != nil { + encoder.SetQuery("extension_version_number").Integer(*v.ExtensionVersionNumber) } - if v.MaxResults != 0 { - encoder.SetQuery("max_results").Integer(v.MaxResults) + if v.MaxResults != nil { + encoder.SetQuery("max_results").Integer(*v.MaxResults) } if v.NextToken != nil { @@ -2200,8 +2203,8 @@ func awsRestjson1_serializeOpHttpBindingsListExtensionsInput(v *ListExtensionsIn return fmt.Errorf("unsupported serialization of nil %T", v) } - if v.MaxResults != 0 { - encoder.SetQuery("max_results").Integer(v.MaxResults) + if v.MaxResults != nil { + encoder.SetQuery("max_results").Integer(*v.MaxResults) } if v.Name != nil { @@ -2279,8 +2282,8 @@ func awsRestjson1_serializeOpHttpBindingsListHostedConfigurationVersionsInput(v } } - if v.MaxResults != 0 { - encoder.SetQuery("max_results").Integer(v.MaxResults) + if v.MaxResults != nil { + encoder.SetQuery("max_results").Integer(*v.MaxResults) } if v.NextToken != nil { @@ -2515,8 +2518,11 @@ func awsRestjson1_serializeOpHttpBindingsStopDeploymentInput(v *StopDeploymentIn } } - { - if err := encoder.SetURI("DeploymentNumber").Integer(v.DeploymentNumber); err != nil { + if v.DeploymentNumber == nil { + return &smithy.SerializationError{Err: fmt.Errorf("input member DeploymentNumber must not be empty")} + } + if v.DeploymentNumber != nil { + if err := encoder.SetURI("DeploymentNumber").Integer(*v.DeploymentNumber); err != nil { return err } } @@ -2946,9 +2952,9 @@ func awsRestjson1_serializeOpDocumentUpdateDeploymentStrategyInput(v *UpdateDepl object := value.Object() defer object.Close() - if v.DeploymentDurationInMinutes != 0 { + if v.DeploymentDurationInMinutes != nil { ok := object.Key("DeploymentDurationInMinutes") - ok.Integer(v.DeploymentDurationInMinutes) + ok.Integer(*v.DeploymentDurationInMinutes) } if v.Description != nil { @@ -2956,25 +2962,25 @@ func awsRestjson1_serializeOpDocumentUpdateDeploymentStrategyInput(v *UpdateDepl ok.String(*v.Description) } - if v.FinalBakeTimeInMinutes != 0 { + if v.FinalBakeTimeInMinutes != nil { ok := object.Key("FinalBakeTimeInMinutes") - ok.Integer(v.FinalBakeTimeInMinutes) + ok.Integer(*v.FinalBakeTimeInMinutes) } - if v.GrowthFactor != 0 { + if v.GrowthFactor != nil { ok := object.Key("GrowthFactor") switch { - case math.IsNaN(float64(v.GrowthFactor)): + case math.IsNaN(float64(*v.GrowthFactor)): ok.String("NaN") - case math.IsInf(float64(v.GrowthFactor), 1): + case math.IsInf(float64(*v.GrowthFactor), 1): ok.String("Infinity") - case math.IsInf(float64(v.GrowthFactor), -1): + case math.IsInf(float64(*v.GrowthFactor), -1): ok.String("-Infinity") default: - ok.Float(v.GrowthFactor) + ok.Float(*v.GrowthFactor) } } @@ -3181,9 +3187,9 @@ func awsRestjson1_serializeOpDocumentUpdateExtensionInput(v *UpdateExtensionInpu } } - if v.VersionNumber != 0 { + if v.VersionNumber != nil { ok := object.Key("VersionNumber") - ok.Integer(v.VersionNumber) + ok.Integer(*v.VersionNumber) } return nil diff --git a/service/appconfig/validators.go b/service/appconfig/validators.go index 4ed1049cb27..d4e2da8a3bd 100644 --- a/service/appconfig/validators.go +++ b/service/appconfig/validators.go @@ -1062,6 +1062,12 @@ func validateOpCreateDeploymentStrategyInput(v *CreateDeploymentStrategyInput) e if v.Name == nil { invalidParams.Add(smithy.NewErrParamRequired("Name")) } + if v.DeploymentDurationInMinutes == nil { + invalidParams.Add(smithy.NewErrParamRequired("DeploymentDurationInMinutes")) + } + if v.GrowthFactor == nil { + invalidParams.Add(smithy.NewErrParamRequired("GrowthFactor")) + } if invalidParams.Len() > 0 { return invalidParams } else { @@ -1334,6 +1340,9 @@ func validateOpGetDeploymentInput(v *GetDeploymentInput) error { if v.EnvironmentId == nil { invalidParams.Add(smithy.NewErrParamRequired("EnvironmentId")) } + if v.DeploymentNumber == nil { + invalidParams.Add(smithy.NewErrParamRequired("DeploymentNumber")) + } if invalidParams.Len() > 0 { return invalidParams } else { @@ -1541,6 +1550,9 @@ func validateOpStopDeploymentInput(v *StopDeploymentInput) error { if v.EnvironmentId == nil { invalidParams.Add(smithy.NewErrParamRequired("EnvironmentId")) } + if v.DeploymentNumber == nil { + invalidParams.Add(smithy.NewErrParamRequired("DeploymentNumber")) + } if invalidParams.Len() > 0 { return invalidParams } else { diff --git a/service/appflow/deserializers.go b/service/appflow/deserializers.go index ce941e73106..e7b1695f9db 100644 --- a/service/appflow/deserializers.go +++ b/service/appflow/deserializers.go @@ -9522,7 +9522,7 @@ func awsRestjson1_deserializeDocumentSAPODataConnectorProfileProperties(v **type if err != nil { return err } - sv.PortNumber = int32(i64) + sv.PortNumber = ptr.Int32(int32(i64)) } case "privateLinkServiceName": @@ -9735,7 +9735,7 @@ func awsRestjson1_deserializeDocumentScheduledTriggerProperties(v **types.Schedu if err != nil { return err } - sv.FlowErrorDeactivationThreshold = int32(i64) + sv.FlowErrorDeactivationThreshold = ptr.Int32(int32(i64)) } case "scheduleEndTime": @@ -9773,7 +9773,7 @@ func awsRestjson1_deserializeDocumentScheduledTriggerProperties(v **types.Schedu if err != nil { return err } - sv.ScheduleOffset = i64 + sv.ScheduleOffset = ptr.Int64(i64) } case "scheduleStartTime": diff --git a/service/appflow/serializers.go b/service/appflow/serializers.go index d2af84a2c8f..db0016b0caf 100644 --- a/service/appflow/serializers.go +++ b/service/appflow/serializers.go @@ -3431,9 +3431,9 @@ func awsRestjson1_serializeDocumentSAPODataConnectorProfileProperties(v *types.S } } - { + if v.PortNumber != nil { ok := object.Key("portNumber") - ok.Integer(v.PortNumber) + ok.Integer(*v.PortNumber) } if v.PrivateLinkServiceName != nil { @@ -3508,9 +3508,9 @@ func awsRestjson1_serializeDocumentScheduledTriggerProperties(v *types.Scheduled ok.Double(smithytime.FormatEpochSeconds(*v.FirstExecutionFrom)) } - if v.FlowErrorDeactivationThreshold != 0 { + if v.FlowErrorDeactivationThreshold != nil { ok := object.Key("flowErrorDeactivationThreshold") - ok.Integer(v.FlowErrorDeactivationThreshold) + ok.Integer(*v.FlowErrorDeactivationThreshold) } if v.ScheduleEndTime != nil { @@ -3523,9 +3523,9 @@ func awsRestjson1_serializeDocumentScheduledTriggerProperties(v *types.Scheduled ok.String(*v.ScheduleExpression) } - if v.ScheduleOffset != 0 { + if v.ScheduleOffset != nil { ok := object.Key("scheduleOffset") - ok.Long(v.ScheduleOffset) + ok.Long(*v.ScheduleOffset) } if v.ScheduleStartTime != nil { diff --git a/service/appflow/types/types.go b/service/appflow/types/types.go index 4475a085f21..b57cacc8e7c 100644 --- a/service/appflow/types/types.go +++ b/service/appflow/types/types.go @@ -1920,7 +1920,7 @@ type SAPODataConnectorProfileProperties struct { // The port number of the SAPOData instance. // // This member is required. - PortNumber int32 + PortNumber *int32 // The logon language of SAPOData instance. LogonLanguage *string @@ -2000,7 +2000,7 @@ type ScheduledTriggerProperties struct { // Defines how many times a scheduled flow fails consecutively before Amazon // AppFlow deactivates it. - FlowErrorDeactivationThreshold int32 + FlowErrorDeactivationThreshold *int32 // The time at which the scheduled flow ends. The time is formatted as a timestamp // that follows the ISO 8601 standard, such as 2022-04-27T13:00:00-07:00. @@ -2008,7 +2008,7 @@ type ScheduledTriggerProperties struct { // Specifies the optional offset that is added to the time interval for a // schedule-triggered flow. - ScheduleOffset int64 + ScheduleOffset *int64 // The time at which the scheduled flow starts. The time is formatted as a // timestamp that follows the ISO 8601 standard, such as 2022-04-26T13:00:00-07:00. diff --git a/service/appflow/validators.go b/service/appflow/validators.go index fe6b0e61533..b3559995d03 100644 --- a/service/appflow/validators.go +++ b/service/appflow/validators.go @@ -1404,6 +1404,9 @@ func validateSAPODataConnectorProfileProperties(v *types.SAPODataConnectorProfil if v.ApplicationServicePath == nil { invalidParams.Add(smithy.NewErrParamRequired("ApplicationServicePath")) } + if v.PortNumber == nil { + invalidParams.Add(smithy.NewErrParamRequired("PortNumber")) + } if v.ClientNumber == nil { invalidParams.Add(smithy.NewErrParamRequired("ClientNumber")) } diff --git a/service/appmesh/deserializers.go b/service/appmesh/deserializers.go index c41fb834ea4..5f57d9718bf 100644 --- a/service/appmesh/deserializers.go +++ b/service/appmesh/deserializers.go @@ -13128,7 +13128,7 @@ func awsRestjson1_deserializeDocumentVirtualGatewayHttpConnectionPool(v **types. if err != nil { return err } - sv.MaxPendingRequests = int32(i64) + sv.MaxPendingRequests = ptr.Int32(int32(i64)) } default: @@ -14369,7 +14369,7 @@ func awsRestjson1_deserializeDocumentVirtualNodeHttpConnectionPool(v **types.Vir if err != nil { return err } - sv.MaxPendingRequests = int32(i64) + sv.MaxPendingRequests = ptr.Int32(int32(i64)) } default: diff --git a/service/appmesh/serializers.go b/service/appmesh/serializers.go index 2e6d3153f01..f1816b77f91 100644 --- a/service/appmesh/serializers.go +++ b/service/appmesh/serializers.go @@ -5411,9 +5411,9 @@ func awsRestjson1_serializeDocumentVirtualGatewayHttpConnectionPool(v *types.Vir ok.Integer(v.MaxConnections) } - if v.MaxPendingRequests != 0 { + if v.MaxPendingRequests != nil { ok := object.Key("maxPendingRequests") - ok.Integer(v.MaxPendingRequests) + ok.Integer(*v.MaxPendingRequests) } return nil @@ -5826,9 +5826,9 @@ func awsRestjson1_serializeDocumentVirtualNodeHttpConnectionPool(v *types.Virtua ok.Integer(v.MaxConnections) } - if v.MaxPendingRequests != 0 { + if v.MaxPendingRequests != nil { ok := object.Key("maxPendingRequests") - ok.Integer(v.MaxPendingRequests) + ok.Integer(*v.MaxPendingRequests) } return nil diff --git a/service/appmesh/types/types.go b/service/appmesh/types/types.go index 091a2b4187e..8d837b1fe5e 100644 --- a/service/appmesh/types/types.go +++ b/service/appmesh/types/types.go @@ -2255,7 +2255,7 @@ type VirtualGatewayHttpConnectionPool struct { // Number of overflowing requests after max_connections Envoy will queue to // upstream cluster. - MaxPendingRequests int32 + MaxPendingRequests *int32 noSmithyDocumentSerde } @@ -2780,7 +2780,7 @@ type VirtualNodeHttpConnectionPool struct { // Number of overflowing requests after max_connections Envoy will queue to // upstream cluster. - MaxPendingRequests int32 + MaxPendingRequests *int32 noSmithyDocumentSerde } diff --git a/service/codestar/api_op_AssociateTeamMember.go b/service/codestar/api_op_AssociateTeamMember.go index 464ca101a2c..f0e4def0d2a 100644 --- a/service/codestar/api_op_AssociateTeamMember.go +++ b/service/codestar/api_op_AssociateTeamMember.go @@ -52,7 +52,7 @@ type AssociateTeamMemberInput struct { // Whether the team member is allowed to use an SSH public/private key pair to // remotely access project resources, for example Amazon EC2 instances. - RemoteAccessAllowed bool + RemoteAccessAllowed *bool noSmithyDocumentSerde } diff --git a/service/codestar/api_op_ListProjects.go b/service/codestar/api_op_ListProjects.go index f7a39e8c013..080c6e17792 100644 --- a/service/codestar/api_op_ListProjects.go +++ b/service/codestar/api_op_ListProjects.go @@ -30,7 +30,7 @@ func (c *Client) ListProjects(ctx context.Context, params *ListProjectsInput, op type ListProjectsInput struct { // The maximum amount of data that can be contained in a single set of results. - MaxResults int32 + MaxResults *int32 // The continuation token to be used to return the next set of results, if the // results cannot be returned in one response. diff --git a/service/codestar/api_op_ListResources.go b/service/codestar/api_op_ListResources.go index 90542a14a1e..b4a5364fef1 100644 --- a/service/codestar/api_op_ListResources.go +++ b/service/codestar/api_op_ListResources.go @@ -35,7 +35,7 @@ type ListResourcesInput struct { ProjectId *string // The maximum amount of data that can be contained in a single set of results. - MaxResults int32 + MaxResults *int32 // The continuation token for the next set of results, if the results cannot be // returned in one response. diff --git a/service/codestar/api_op_ListTagsForProject.go b/service/codestar/api_op_ListTagsForProject.go index 70a41937a7a..34add61bf03 100644 --- a/service/codestar/api_op_ListTagsForProject.go +++ b/service/codestar/api_op_ListTagsForProject.go @@ -34,7 +34,7 @@ type ListTagsForProjectInput struct { Id *string // Reserved for future use. - MaxResults int32 + MaxResults *int32 // Reserved for future use. NextToken *string diff --git a/service/codestar/api_op_ListTeamMembers.go b/service/codestar/api_op_ListTeamMembers.go index 13b4871ac5a..8445541066b 100644 --- a/service/codestar/api_op_ListTeamMembers.go +++ b/service/codestar/api_op_ListTeamMembers.go @@ -35,7 +35,7 @@ type ListTeamMembersInput struct { ProjectId *string // The maximum number of team members you want returned in a response. - MaxResults int32 + MaxResults *int32 // The continuation token for the next set of results, if the results cannot be // returned in one response. diff --git a/service/codestar/api_op_ListUserProfiles.go b/service/codestar/api_op_ListUserProfiles.go index bd9a0057b42..6a30db4c2ba 100644 --- a/service/codestar/api_op_ListUserProfiles.go +++ b/service/codestar/api_op_ListUserProfiles.go @@ -30,7 +30,7 @@ func (c *Client) ListUserProfiles(ctx context.Context, params *ListUserProfilesI type ListUserProfilesInput struct { // The maximum number of results to return in a response. - MaxResults int32 + MaxResults *int32 // The continuation token for the next set of results, if the results cannot be // returned in one response. diff --git a/service/codestar/api_op_UpdateTeamMember.go b/service/codestar/api_op_UpdateTeamMember.go index e39d26c6410..8fcfbe185cb 100644 --- a/service/codestar/api_op_UpdateTeamMember.go +++ b/service/codestar/api_op_UpdateTeamMember.go @@ -51,7 +51,7 @@ type UpdateTeamMemberInput struct { // SSH public key associated with the user's profile. Even if this is set to True, // the user must associate a public key with their profile before the user can // access resources. - RemoteAccessAllowed bool + RemoteAccessAllowed *bool noSmithyDocumentSerde } @@ -63,7 +63,7 @@ type UpdateTeamMemberOutput struct { // Whether a team member is allowed to remotely access project resources using the // SSH public key associated with the user's profile. - RemoteAccessAllowed bool + RemoteAccessAllowed *bool // The Amazon Resource Name (ARN) of the user whose team membership attributes were // updated. diff --git a/service/codestar/deserializers.go b/service/codestar/deserializers.go index 3031c65d464..0ca1e8b0d96 100644 --- a/service/codestar/deserializers.go +++ b/service/codestar/deserializers.go @@ -3206,7 +3206,7 @@ func awsAwsjson11_deserializeDocumentTeamMember(v **types.TeamMember, value inte if !ok { return fmt.Errorf("expected RemoteAccessAllowed to be of type *bool, got %T instead", value) } - sv.RemoteAccessAllowed = jtv + sv.RemoteAccessAllowed = ptr.Bool(jtv) } case "userArn": @@ -4462,7 +4462,7 @@ func awsAwsjson11_deserializeOpDocumentUpdateTeamMemberOutput(v **UpdateTeamMemb if !ok { return fmt.Errorf("expected RemoteAccessAllowed to be of type *bool, got %T instead", value) } - sv.RemoteAccessAllowed = jtv + sv.RemoteAccessAllowed = ptr.Bool(jtv) } case "userArn": diff --git a/service/codestar/serializers.go b/service/codestar/serializers.go index 0d96665d662..65dc4e16de6 100644 --- a/service/codestar/serializers.go +++ b/service/codestar/serializers.go @@ -1236,9 +1236,9 @@ func awsAwsjson11_serializeOpDocumentAssociateTeamMemberInput(v *AssociateTeamMe ok.String(*v.ProjectRole) } - if v.RemoteAccessAllowed { + if v.RemoteAccessAllowed != nil { ok := object.Key("remoteAccessAllowed") - ok.Boolean(v.RemoteAccessAllowed) + ok.Boolean(*v.RemoteAccessAllowed) } if v.UserArn != nil { @@ -1403,9 +1403,9 @@ func awsAwsjson11_serializeOpDocumentListProjectsInput(v *ListProjectsInput, val 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 { @@ -1420,9 +1420,9 @@ func awsAwsjson11_serializeOpDocumentListResourcesInput(v *ListResourcesInput, v 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 { @@ -1447,9 +1447,9 @@ func awsAwsjson11_serializeOpDocumentListTagsForProjectInput(v *ListTagsForProje ok.String(*v.Id) } - if v.MaxResults != 0 { + if v.MaxResults != nil { ok := object.Key("maxResults") - ok.Integer(v.MaxResults) + ok.Integer(*v.MaxResults) } if v.NextToken != nil { @@ -1464,9 +1464,9 @@ func awsAwsjson11_serializeOpDocumentListTeamMembersInput(v *ListTeamMembersInpu 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 { @@ -1486,9 +1486,9 @@ func awsAwsjson11_serializeOpDocumentListUserProfilesInput(v *ListUserProfilesIn 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 { @@ -1573,9 +1573,9 @@ func awsAwsjson11_serializeOpDocumentUpdateTeamMemberInput(v *UpdateTeamMemberIn ok.String(*v.ProjectRole) } - if v.RemoteAccessAllowed { + if v.RemoteAccessAllowed != nil { ok := object.Key("remoteAccessAllowed") - ok.Boolean(v.RemoteAccessAllowed) + ok.Boolean(*v.RemoteAccessAllowed) } if v.UserArn != nil { diff --git a/service/codestar/types/types.go b/service/codestar/types/types.go index 2db01a37a04..b9c1ba749aa 100644 --- a/service/codestar/types/types.go +++ b/service/codestar/types/types.go @@ -186,7 +186,7 @@ type TeamMember struct { // Whether the user is allowed to remotely access project resources using an SSH // public/private key pair. - RemoteAccessAllowed bool + RemoteAccessAllowed *bool noSmithyDocumentSerde } diff --git a/service/codestarnotifications/api_op_ListEventTypes.go b/service/codestarnotifications/api_op_ListEventTypes.go index d7950629efa..1edadfd6c40 100644 --- a/service/codestarnotifications/api_op_ListEventTypes.go +++ b/service/codestarnotifications/api_op_ListEventTypes.go @@ -36,7 +36,7 @@ type ListEventTypesInput struct { // A non-negative integer used to limit the number of returned results. The default // number is 50. The maximum number of results that can be returned is 100. - MaxResults int32 + MaxResults *int32 // An enumeration token that, when provided in a request, returns the next batch of // the results. @@ -159,8 +159,8 @@ func NewListEventTypesPaginator(client ListEventTypesAPIClient, params *ListEven } options := ListEventTypesPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults + if params.MaxResults != nil { + options.Limit = *params.MaxResults } for _, fn := range optFns { @@ -190,7 +190,11 @@ func (p *ListEventTypesPaginator) 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.ListEventTypes(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/codestarnotifications/api_op_ListNotificationRules.go b/service/codestarnotifications/api_op_ListNotificationRules.go index b617b433442..6fb5315dccd 100644 --- a/service/codestarnotifications/api_op_ListNotificationRules.go +++ b/service/codestarnotifications/api_op_ListNotificationRules.go @@ -38,7 +38,7 @@ type ListNotificationRulesInput struct { // A non-negative integer used to limit the number of returned results. The maximum // number of results that can be returned is 100. - MaxResults int32 + MaxResults *int32 // An enumeration token that, when provided in a request, returns the next batch of // the results. @@ -162,8 +162,8 @@ func NewListNotificationRulesPaginator(client ListNotificationRulesAPIClient, pa } options := ListNotificationRulesPaginatorOptions{} - 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 *ListNotificationRulesPaginator) 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.ListNotificationRules(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/codestarnotifications/api_op_ListTargets.go b/service/codestarnotifications/api_op_ListTargets.go index 13bc72bf7d1..8c8cbd28ea5 100644 --- a/service/codestarnotifications/api_op_ListTargets.go +++ b/service/codestarnotifications/api_op_ListTargets.go @@ -38,7 +38,7 @@ type ListTargetsInput struct { // A non-negative integer used to limit the number of returned results. The maximum // number of results that can be returned is 100. - MaxResults int32 + MaxResults *int32 // An enumeration token that, when provided in a request, returns the next batch of // the results. @@ -159,8 +159,8 @@ func NewListTargetsPaginator(client ListTargetsAPIClient, params *ListTargetsInp } options := ListTargetsPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults + if params.MaxResults != nil { + options.Limit = *params.MaxResults } for _, fn := range optFns { @@ -190,7 +190,11 @@ func (p *ListTargetsPaginator) 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.ListTargets(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/codestarnotifications/serializers.go b/service/codestarnotifications/serializers.go index f7bd13fc368..a492c0662c0 100644 --- a/service/codestarnotifications/serializers.go +++ b/service/codestarnotifications/serializers.go @@ -399,9 +399,9 @@ func awsRestjson1_serializeOpDocumentListEventTypesInput(v *ListEventTypesInput, } } - if v.MaxResults != 0 { + if v.MaxResults != nil { ok := object.Key("MaxResults") - ok.Integer(v.MaxResults) + ok.Integer(*v.MaxResults) } if v.NextToken != nil { @@ -479,9 +479,9 @@ func awsRestjson1_serializeOpDocumentListNotificationRulesInput(v *ListNotificat } } - if v.MaxResults != 0 { + if v.MaxResults != nil { ok := object.Key("MaxResults") - ok.Integer(v.MaxResults) + ok.Integer(*v.MaxResults) } if v.NextToken != nil { @@ -627,9 +627,9 @@ func awsRestjson1_serializeOpDocumentListTargetsInput(v *ListTargetsInput, value } } - if v.MaxResults != 0 { + if v.MaxResults != nil { ok := object.Key("MaxResults") - ok.Integer(v.MaxResults) + ok.Integer(*v.MaxResults) } if v.NextToken != nil { diff --git a/service/cognitoidentity/deserializers.go b/service/cognitoidentity/deserializers.go index 77ef969c0a2..21e706aef88 100644 --- a/service/cognitoidentity/deserializers.go +++ b/service/cognitoidentity/deserializers.go @@ -3252,7 +3252,7 @@ func awsAwsjson11_deserializeDocumentCognitoIdentityProvider(v **types.CognitoId if !ok { return fmt.Errorf("expected CognitoIdentityProviderTokenCheck to be of type *bool, got %T instead", value) } - sv.ServerSideTokenCheck = jtv + sv.ServerSideTokenCheck = ptr.Bool(jtv) } default: diff --git a/service/cognitoidentity/serializers.go b/service/cognitoidentity/serializers.go index b4149a38c40..786a33e58d2 100644 --- a/service/cognitoidentity/serializers.go +++ b/service/cognitoidentity/serializers.go @@ -1293,9 +1293,9 @@ func awsAwsjson11_serializeDocumentCognitoIdentityProvider(v *types.CognitoIdent ok.String(*v.ProviderName) } - if v.ServerSideTokenCheck { + if v.ServerSideTokenCheck != nil { ok := object.Key("ServerSideTokenCheck") - ok.Boolean(v.ServerSideTokenCheck) + ok.Boolean(*v.ServerSideTokenCheck) } return nil diff --git a/service/cognitoidentity/types/types.go b/service/cognitoidentity/types/types.go index bafae471598..0e929b48372 100644 --- a/service/cognitoidentity/types/types.go +++ b/service/cognitoidentity/types/types.go @@ -23,7 +23,7 @@ type CognitoIdentityProvider struct { // user has not been globally signed out or deleted before the identity pool // provides an OIDC token or AWS credentials for the user. If the user is signed // out or deleted, the identity pool will return a 400 Not Authorized error. - ServerSideTokenCheck bool + ServerSideTokenCheck *bool noSmithyDocumentSerde } diff --git a/service/cognitoidentityprovider/deserializers.go b/service/cognitoidentityprovider/deserializers.go index b12c4521683..36afaa36572 100644 --- a/service/cognitoidentityprovider/deserializers.go +++ b/service/cognitoidentityprovider/deserializers.go @@ -18965,7 +18965,7 @@ func awsAwsjson11_deserializeDocumentSchemaAttributeType(v **types.SchemaAttribu if !ok { return fmt.Errorf("expected BooleanType to be of type *bool, got %T instead", value) } - sv.DeveloperOnlyAttribute = jtv + sv.DeveloperOnlyAttribute = ptr.Bool(jtv) } case "Mutable": @@ -18974,7 +18974,7 @@ func awsAwsjson11_deserializeDocumentSchemaAttributeType(v **types.SchemaAttribu if !ok { return fmt.Errorf("expected BooleanType to be of type *bool, got %T instead", value) } - sv.Mutable = jtv + sv.Mutable = ptr.Bool(jtv) } case "Name": @@ -18997,7 +18997,7 @@ func awsAwsjson11_deserializeDocumentSchemaAttributeType(v **types.SchemaAttribu if !ok { return fmt.Errorf("expected BooleanType to be of type *bool, got %T instead", value) } - sv.Required = jtv + sv.Required = ptr.Bool(jtv) } case "StringAttributeConstraints": @@ -20661,7 +20661,7 @@ func awsAwsjson11_deserializeDocumentUserPoolClientType(v **types.UserPoolClient if !ok { return fmt.Errorf("expected BooleanType to be of type *bool, got %T instead", value) } - sv.AllowedOAuthFlowsUserPoolClient = jtv + sv.AllowedOAuthFlowsUserPoolClient = ptr.Bool(jtv) } case "AllowedOAuthScopes": diff --git a/service/cognitoidentityprovider/serializers.go b/service/cognitoidentityprovider/serializers.go index cb2d1998172..5d1e900c705 100644 --- a/service/cognitoidentityprovider/serializers.go +++ b/service/cognitoidentityprovider/serializers.go @@ -6528,14 +6528,14 @@ func awsAwsjson11_serializeDocumentSchemaAttributeType(v *types.SchemaAttributeT ok.String(string(v.AttributeDataType)) } - if v.DeveloperOnlyAttribute { + if v.DeveloperOnlyAttribute != nil { ok := object.Key("DeveloperOnlyAttribute") - ok.Boolean(v.DeveloperOnlyAttribute) + ok.Boolean(*v.DeveloperOnlyAttribute) } - if v.Mutable { + if v.Mutable != nil { ok := object.Key("Mutable") - ok.Boolean(v.Mutable) + ok.Boolean(*v.Mutable) } if v.Name != nil { @@ -6550,9 +6550,9 @@ func awsAwsjson11_serializeDocumentSchemaAttributeType(v *types.SchemaAttributeT } } - if v.Required { + if v.Required != nil { ok := object.Key("Required") - ok.Boolean(v.Required) + ok.Boolean(*v.Required) } if v.StringAttributeConstraints != nil { diff --git a/service/cognitoidentityprovider/types/types.go b/service/cognitoidentityprovider/types/types.go index 0d3ef551dee..afa4f251ec9 100644 --- a/service/cognitoidentityprovider/types/types.go +++ b/service/cognitoidentityprovider/types/types.go @@ -1082,7 +1082,7 @@ type SchemaAttributeType struct { // Users won't be able to modify this attribute using their access token. For // example, DeveloperOnlyAttribute can be modified using AdminUpdateUserAttributes // but can't be updated using UpdateUserAttributes. - DeveloperOnlyAttribute bool + DeveloperOnlyAttribute *bool // Specifies whether the value of the attribute can be changed. For any user pool // attribute that is mapped to an IdP attribute, you must set this parameter to @@ -1091,7 +1091,7 @@ type SchemaAttributeType struct { // an error when it attempts to update the attribute. For more information, see // Specifying Identity Provider Attribute Mappings for Your User Pool // (https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pools-specifying-attribute-mapping.html). - Mutable bool + Mutable *bool // A schema attribute of the name type. Name *string @@ -1102,7 +1102,7 @@ type SchemaAttributeType struct { // Specifies whether a user pool attribute is required. If the attribute is // required and the user doesn't provide a value, registration or sign-in will // fail. - Required bool + Required *bool // Specifies the constraints for an attribute of the string type. StringAttributeConstraints *StringAttributeConstraintsType @@ -1466,7 +1466,7 @@ type UserPoolClientType struct { // Set to true if the client is allowed to follow the OAuth protocol when // interacting with Amazon Cognito user pools. - AllowedOAuthFlowsUserPoolClient bool + AllowedOAuthFlowsUserPoolClient *bool // The OAuth scopes that your app client supports. Possible values that OAuth // provides are phone, email, openid, and profile. Possible values that Amazon Web diff --git a/service/configservice/api_op_ListStoredQueries.go b/service/configservice/api_op_ListStoredQueries.go index 295760f9b19..bd4cdbda1cc 100644 --- a/service/configservice/api_op_ListStoredQueries.go +++ b/service/configservice/api_op_ListStoredQueries.go @@ -32,7 +32,7 @@ func (c *Client) ListStoredQueries(ctx context.Context, params *ListStoredQuerie type ListStoredQueriesInput struct { // The maximum number of results to be returned with a single call. - MaxResults int32 + MaxResults *int32 // The nextToken string returned in a previous request that you use to request the // next page of results in a paginated response. @@ -153,8 +153,8 @@ func NewListStoredQueriesPaginator(client ListStoredQueriesAPIClient, params *Li } options := ListStoredQueriesPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults + if params.MaxResults != nil { + options.Limit = *params.MaxResults } for _, fn := range optFns { @@ -184,7 +184,11 @@ func (p *ListStoredQueriesPaginator) 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.ListStoredQueries(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/configservice/serializers.go b/service/configservice/serializers.go index 7bb0c15a5b2..8835def845d 100644 --- a/service/configservice/serializers.go +++ b/service/configservice/serializers.go @@ -7832,9 +7832,9 @@ func awsAwsjson11_serializeOpDocumentListStoredQueriesInput(v *ListStoredQueries 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 { diff --git a/service/connect/api_op_CreateQueue.go b/service/connect/api_op_CreateQueue.go index 47d17f27589..409348165b8 100644 --- a/service/connect/api_op_CreateQueue.go +++ b/service/connect/api_op_CreateQueue.go @@ -51,7 +51,7 @@ type CreateQueueInput struct { // The maximum number of contacts that can be in the queue before it is considered // full. - MaxContacts int32 + MaxContacts *int32 // The outbound caller ID name, number, and outbound whisper flow. OutboundCallerConfig *types.OutboundCallerConfig diff --git a/service/connect/api_op_GetCurrentMetricData.go b/service/connect/api_op_GetCurrentMetricData.go index 078ad4f8a96..f06358ffec9 100644 --- a/service/connect/api_op_GetCurrentMetricData.go +++ b/service/connect/api_op_GetCurrentMetricData.go @@ -97,7 +97,7 @@ type GetCurrentMetricDataInput struct { Groupings []types.Grouping // The maximum number of results to return per page. - MaxResults int32 + MaxResults *int32 // The token for the next set of results. Use the value returned in the previous // response in the next request to retrieve the next set of results. The token @@ -227,8 +227,8 @@ func NewGetCurrentMetricDataPaginator(client GetCurrentMetricDataAPIClient, para } options := GetCurrentMetricDataPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults + if params.MaxResults != nil { + options.Limit = *params.MaxResults } for _, fn := range optFns { @@ -258,7 +258,11 @@ func (p *GetCurrentMetricDataPaginator) 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.GetCurrentMetricData(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/connect/api_op_GetCurrentUserData.go b/service/connect/api_op_GetCurrentUserData.go index 5df179218b7..61a882fc79f 100644 --- a/service/connect/api_op_GetCurrentUserData.go +++ b/service/connect/api_op_GetCurrentUserData.go @@ -44,7 +44,7 @@ type GetCurrentUserDataInput struct { InstanceId *string // The maximum number of results to return per page. - MaxResults int32 + MaxResults *int32 // The token for the next set of results. Use the value returned in the previous // response in the next request to retrieve the next set of results. @@ -165,8 +165,8 @@ func NewGetCurrentUserDataPaginator(client GetCurrentUserDataAPIClient, params * } options := GetCurrentUserDataPaginatorOptions{} - 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 *GetCurrentUserDataPaginator) 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.GetCurrentUserData(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/connect/api_op_GetMetricData.go b/service/connect/api_op_GetMetricData.go index 1f9f52a3667..242bf6265c0 100644 --- a/service/connect/api_op_GetMetricData.go +++ b/service/connect/api_op_GetMetricData.go @@ -104,7 +104,7 @@ type GetMetricDataInput struct { Groupings []types.Grouping // The maximum number of results to return per page. - MaxResults int32 + MaxResults *int32 // The token for the next set of results. Use the value returned in the previous // response in the next request to retrieve the next set of results. @@ -227,8 +227,8 @@ func NewGetMetricDataPaginator(client GetMetricDataAPIClient, params *GetMetricD } options := GetMetricDataPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults + if params.MaxResults != nil { + options.Limit = *params.MaxResults } for _, fn := range optFns { @@ -258,7 +258,11 @@ func (p *GetMetricDataPaginator) 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.GetMetricData(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/connect/api_op_ListAgentStatuses.go b/service/connect/api_op_ListAgentStatuses.go index 30789ccee95..69fcd1b3089 100644 --- a/service/connect/api_op_ListAgentStatuses.go +++ b/service/connect/api_op_ListAgentStatuses.go @@ -41,7 +41,7 @@ type ListAgentStatusesInput struct { AgentStatusTypes []types.AgentStatusType // The maximum number of results to return per page. - MaxResults int32 + MaxResults *int32 // The token for the next set of results. Use the value returned in the previous // response in the next request to retrieve the next set of results. @@ -161,8 +161,8 @@ func NewListAgentStatusesPaginator(client ListAgentStatusesAPIClient, params *Li } options := ListAgentStatusesPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults + if params.MaxResults != nil { + options.Limit = *params.MaxResults } for _, fn := range optFns { @@ -192,7 +192,11 @@ func (p *ListAgentStatusesPaginator) 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.ListAgentStatuses(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/connect/api_op_ListApprovedOrigins.go b/service/connect/api_op_ListApprovedOrigins.go index 3d5188c435c..591acfd225a 100644 --- a/service/connect/api_op_ListApprovedOrigins.go +++ b/service/connect/api_op_ListApprovedOrigins.go @@ -37,7 +37,7 @@ type ListApprovedOriginsInput struct { InstanceId *string // The maximum number of results to return per page. - MaxResults int32 + MaxResults *int32 // The token for the next set of results. Use the value returned in the previous // response in the next request to retrieve the next set of results. @@ -158,8 +158,8 @@ func NewListApprovedOriginsPaginator(client ListApprovedOriginsAPIClient, params } options := ListApprovedOriginsPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults + if params.MaxResults != nil { + options.Limit = *params.MaxResults } for _, fn := range optFns { @@ -189,7 +189,11 @@ func (p *ListApprovedOriginsPaginator) 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.ListApprovedOrigins(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/connect/api_op_ListBots.go b/service/connect/api_op_ListBots.go index 8c6cb93229e..10015e50a70 100644 --- a/service/connect/api_op_ListBots.go +++ b/service/connect/api_op_ListBots.go @@ -45,7 +45,7 @@ type ListBotsInput struct { LexVersion types.LexVersion // The maximum number of results to return per page. - MaxResults int32 + MaxResults *int32 // The token for the next set of results. Use the value returned in the previous // response in the next request to retrieve the next set of results. @@ -165,8 +165,8 @@ func NewListBotsPaginator(client ListBotsAPIClient, params *ListBotsInput, optFn } options := ListBotsPaginatorOptions{} - 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 *ListBotsPaginator) 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.ListBots(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/connect/api_op_ListContactFlowModules.go b/service/connect/api_op_ListContactFlowModules.go index de8ab6a6236..728ba2a1fc9 100644 --- a/service/connect/api_op_ListContactFlowModules.go +++ b/service/connect/api_op_ListContactFlowModules.go @@ -41,7 +41,7 @@ type ListContactFlowModulesInput struct { ContactFlowModuleState types.ContactFlowModuleState // The maximum number of results to return per page. - MaxResults int32 + MaxResults *int32 // The token for the next set of results. Use the value returned in the previous // response in the next request to retrieve the next set of results. @@ -162,8 +162,8 @@ func NewListContactFlowModulesPaginator(client ListContactFlowModulesAPIClient, } options := ListContactFlowModulesPaginatorOptions{} - 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 *ListContactFlowModulesPaginator) 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.ListContactFlowModules(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/connect/api_op_ListInstanceAttributes.go b/service/connect/api_op_ListInstanceAttributes.go index 1e890cdc629..7c4e1e83e0b 100644 --- a/service/connect/api_op_ListInstanceAttributes.go +++ b/service/connect/api_op_ListInstanceAttributes.go @@ -38,7 +38,7 @@ type ListInstanceAttributesInput struct { InstanceId *string // The maximum number of results to return per page. - MaxResults int32 + MaxResults *int32 // The token for the next set of results. Use the value returned in the previous // response in the next request to retrieve the next set of results. @@ -159,8 +159,8 @@ func NewListInstanceAttributesPaginator(client ListInstanceAttributesAPIClient, } options := ListInstanceAttributesPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults + if params.MaxResults != nil { + options.Limit = *params.MaxResults } for _, fn := range optFns { @@ -190,7 +190,11 @@ func (p *ListInstanceAttributesPaginator) 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.ListInstanceAttributes(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/connect/api_op_ListInstanceStorageConfigs.go b/service/connect/api_op_ListInstanceStorageConfigs.go index 811c58e9fb7..704bbc9c557 100644 --- a/service/connect/api_op_ListInstanceStorageConfigs.go +++ b/service/connect/api_op_ListInstanceStorageConfigs.go @@ -44,7 +44,7 @@ type ListInstanceStorageConfigsInput struct { ResourceType types.InstanceStorageResourceType // The maximum number of results to return per page. - MaxResults int32 + MaxResults *int32 // The token for the next set of results. Use the value returned in the previous // response in the next request to retrieve the next set of results. @@ -167,8 +167,8 @@ func NewListInstanceStorageConfigsPaginator(client ListInstanceStorageConfigsAPI } options := ListInstanceStorageConfigsPaginatorOptions{} - 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 *ListInstanceStorageConfigsPaginator) 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.ListInstanceStorageConfigs(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/connect/api_op_ListInstances.go b/service/connect/api_op_ListInstances.go index 53e3faa14b8..a576b7ee191 100644 --- a/service/connect/api_op_ListInstances.go +++ b/service/connect/api_op_ListInstances.go @@ -35,7 +35,7 @@ func (c *Client) ListInstances(ctx context.Context, params *ListInstancesInput, type ListInstancesInput struct { // The maximum number of results to return per page. - MaxResults int32 + MaxResults *int32 // The token for the next set of results. Use the value returned in the previous // response in the next request to retrieve the next set of results. @@ -151,8 +151,8 @@ func NewListInstancesPaginator(client ListInstancesAPIClient, params *ListInstan } options := ListInstancesPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults + if params.MaxResults != nil { + options.Limit = *params.MaxResults } for _, fn := range optFns { @@ -182,7 +182,11 @@ func (p *ListInstancesPaginator) 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.ListInstances(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/connect/api_op_ListIntegrationAssociations.go b/service/connect/api_op_ListIntegrationAssociations.go index aec06d7d15f..78290f621a9 100644 --- a/service/connect/api_op_ListIntegrationAssociations.go +++ b/service/connect/api_op_ListIntegrationAssociations.go @@ -41,7 +41,7 @@ type ListIntegrationAssociationsInput struct { IntegrationType types.IntegrationType // The maximum number of results to return per page. - MaxResults int32 + MaxResults *int32 // The token for the next set of results. Use the value returned in the previous // response in the next request to retrieve the next set of results. @@ -164,8 +164,8 @@ func NewListIntegrationAssociationsPaginator(client ListIntegrationAssociationsA } options := ListIntegrationAssociationsPaginatorOptions{} - 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 *ListIntegrationAssociationsPaginator) 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.ListIntegrationAssociations(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/connect/api_op_ListLambdaFunctions.go b/service/connect/api_op_ListLambdaFunctions.go index f6589496ce7..9cf43a87e50 100644 --- a/service/connect/api_op_ListLambdaFunctions.go +++ b/service/connect/api_op_ListLambdaFunctions.go @@ -38,7 +38,7 @@ type ListLambdaFunctionsInput struct { InstanceId *string // The maximum number of results to return per page. - MaxResults int32 + MaxResults *int32 // The token for the next set of results. Use the value returned in the previous // response in the next request to retrieve the next set of results. @@ -159,8 +159,8 @@ func NewListLambdaFunctionsPaginator(client ListLambdaFunctionsAPIClient, params } options := ListLambdaFunctionsPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults + if params.MaxResults != nil { + options.Limit = *params.MaxResults } for _, fn := range optFns { @@ -190,7 +190,11 @@ func (p *ListLambdaFunctionsPaginator) 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.ListLambdaFunctions(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/connect/api_op_ListLexBots.go b/service/connect/api_op_ListLexBots.go index 258d4e2bbcf..2426d885236 100644 --- a/service/connect/api_op_ListLexBots.go +++ b/service/connect/api_op_ListLexBots.go @@ -41,7 +41,7 @@ type ListLexBotsInput struct { // The maximum number of results to return per page. If no value is specified, the // default is 10. - MaxResults int32 + MaxResults *int32 // The token for the next set of results. Use the value returned in the previous // response in the next request to retrieve the next set of results. @@ -162,8 +162,8 @@ func NewListLexBotsPaginator(client ListLexBotsAPIClient, params *ListLexBotsInp } options := ListLexBotsPaginatorOptions{} - 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 *ListLexBotsPaginator) 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.ListLexBots(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/connect/api_op_ListPhoneNumbersV2.go b/service/connect/api_op_ListPhoneNumbersV2.go index f86de4968d8..5eef6193c79 100644 --- a/service/connect/api_op_ListPhoneNumbersV2.go +++ b/service/connect/api_op_ListPhoneNumbersV2.go @@ -35,7 +35,7 @@ func (c *Client) ListPhoneNumbersV2(ctx context.Context, params *ListPhoneNumber type ListPhoneNumbersV2Input struct { // The maximum number of results to return per page. - MaxResults int32 + MaxResults *int32 // The token for the next set of results. Use the value returned in the previous // response in the next request to retrieve the next set of results. @@ -169,8 +169,8 @@ func NewListPhoneNumbersV2Paginator(client ListPhoneNumbersV2APIClient, params * } options := ListPhoneNumbersV2PaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults + if params.MaxResults != nil { + options.Limit = *params.MaxResults } for _, fn := range optFns { @@ -200,7 +200,11 @@ func (p *ListPhoneNumbersV2Paginator) 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.ListPhoneNumbersV2(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/connect/api_op_ListPrompts.go b/service/connect/api_op_ListPrompts.go index 345e462bfb1..9035699a5ff 100644 --- a/service/connect/api_op_ListPrompts.go +++ b/service/connect/api_op_ListPrompts.go @@ -38,7 +38,7 @@ type ListPromptsInput struct { // The maximum number of results to return per page. The default MaxResult size is // 100. - MaxResults int32 + MaxResults *int32 // The token for the next set of results. Use the value returned in the previous // response in the next request to retrieve the next set of results. @@ -158,8 +158,8 @@ func NewListPromptsPaginator(client ListPromptsAPIClient, params *ListPromptsInp } options := ListPromptsPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults + if params.MaxResults != nil { + options.Limit = *params.MaxResults } for _, fn := range optFns { @@ -189,7 +189,11 @@ func (p *ListPromptsPaginator) 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.ListPrompts(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/connect/api_op_ListQueueQuickConnects.go b/service/connect/api_op_ListQueueQuickConnects.go index 0cc6a552a43..d9cf7e6cca3 100644 --- a/service/connect/api_op_ListQueueQuickConnects.go +++ b/service/connect/api_op_ListQueueQuickConnects.go @@ -44,7 +44,7 @@ type ListQueueQuickConnectsInput struct { // The maximum number of results to return per page. The default MaxResult size is // 100. - MaxResults int32 + MaxResults *int32 // The token for the next set of results. Use the value returned in the previous // response in the next request to retrieve the next set of results. @@ -166,8 +166,8 @@ func NewListQueueQuickConnectsPaginator(client ListQueueQuickConnectsAPIClient, } options := ListQueueQuickConnectsPaginatorOptions{} - 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 *ListQueueQuickConnectsPaginator) 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.ListQueueQuickConnects(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/connect/api_op_ListQuickConnects.go b/service/connect/api_op_ListQuickConnects.go index 4ec61dc2bd4..f56c2867284 100644 --- a/service/connect/api_op_ListQuickConnects.go +++ b/service/connect/api_op_ListQuickConnects.go @@ -39,7 +39,7 @@ type ListQuickConnectsInput struct { // The maximum number of results to return per page. The default MaxResult size is // 100. - MaxResults int32 + MaxResults *int32 // The token for the next set of results. Use the value returned in the previous // response in the next request to retrieve the next set of results. @@ -165,8 +165,8 @@ func NewListQuickConnectsPaginator(client ListQuickConnectsAPIClient, params *Li } options := ListQuickConnectsPaginatorOptions{} - 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 *ListQuickConnectsPaginator) 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.ListQuickConnects(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/connect/api_op_ListRoutingProfileQueues.go b/service/connect/api_op_ListRoutingProfileQueues.go index e62fb794d9d..64f4520b933 100644 --- a/service/connect/api_op_ListRoutingProfileQueues.go +++ b/service/connect/api_op_ListRoutingProfileQueues.go @@ -43,7 +43,7 @@ type ListRoutingProfileQueuesInput struct { // The maximum number of results to return per page. The default MaxResult size is // 100. - MaxResults int32 + MaxResults *int32 // The token for the next set of results. Use the value returned in the previous // response in the next request to retrieve the next set of results. @@ -166,8 +166,8 @@ func NewListRoutingProfileQueuesPaginator(client ListRoutingProfileQueuesAPIClie } options := ListRoutingProfileQueuesPaginatorOptions{} - 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 *ListRoutingProfileQueuesPaginator) 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.ListRoutingProfileQueues(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/connect/api_op_ListRoutingProfiles.go b/service/connect/api_op_ListRoutingProfiles.go index da37cf9886a..65d1e39773a 100644 --- a/service/connect/api_op_ListRoutingProfiles.go +++ b/service/connect/api_op_ListRoutingProfiles.go @@ -44,7 +44,7 @@ type ListRoutingProfilesInput struct { // The maximum number of results to return per page. The default MaxResult size is // 100. - MaxResults int32 + MaxResults *int32 // The token for the next set of results. Use the value returned in the previous // response in the next request to retrieve the next set of results. @@ -166,8 +166,8 @@ func NewListRoutingProfilesPaginator(client ListRoutingProfilesAPIClient, params } options := ListRoutingProfilesPaginatorOptions{} - 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 *ListRoutingProfilesPaginator) 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.ListRoutingProfiles(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/connect/api_op_ListSecurityKeys.go b/service/connect/api_op_ListSecurityKeys.go index dc96126626f..092e1531080 100644 --- a/service/connect/api_op_ListSecurityKeys.go +++ b/service/connect/api_op_ListSecurityKeys.go @@ -38,7 +38,7 @@ type ListSecurityKeysInput struct { InstanceId *string // The maximum number of results to return per page. - MaxResults int32 + MaxResults *int32 // The token for the next set of results. Use the value returned in the previous // response in the next request to retrieve the next set of results. @@ -158,8 +158,8 @@ func NewListSecurityKeysPaginator(client ListSecurityKeysAPIClient, params *List } options := ListSecurityKeysPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults + if params.MaxResults != nil { + options.Limit = *params.MaxResults } for _, fn := range optFns { @@ -189,7 +189,11 @@ func (p *ListSecurityKeysPaginator) 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.ListSecurityKeys(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/connect/api_op_ListSecurityProfilePermissions.go b/service/connect/api_op_ListSecurityProfilePermissions.go index 3f5df707267..f856c1235ff 100644 --- a/service/connect/api_op_ListSecurityProfilePermissions.go +++ b/service/connect/api_op_ListSecurityProfilePermissions.go @@ -42,7 +42,7 @@ type ListSecurityProfilePermissionsInput struct { SecurityProfileId *string // The maximum number of results to return per page. - MaxResults int32 + MaxResults *int32 // The token for the next set of results. Use the value returned in the previous // response in the next request to retrieve the next set of results. @@ -167,8 +167,8 @@ func NewListSecurityProfilePermissionsPaginator(client ListSecurityProfilePermis } options := ListSecurityProfilePermissionsPaginatorOptions{} - 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 *ListSecurityProfilePermissionsPaginator) 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.ListSecurityProfilePermissions(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/connect/api_op_ListSecurityProfiles.go b/service/connect/api_op_ListSecurityProfiles.go index 32e40b1d8e5..0a045277629 100644 --- a/service/connect/api_op_ListSecurityProfiles.go +++ b/service/connect/api_op_ListSecurityProfiles.go @@ -42,7 +42,7 @@ type ListSecurityProfilesInput struct { // The maximum number of results to return per page. The default MaxResult size is // 100. - MaxResults int32 + MaxResults *int32 // The token for the next set of results. Use the value returned in the previous // response in the next request to retrieve the next set of results. @@ -164,8 +164,8 @@ func NewListSecurityProfilesPaginator(client ListSecurityProfilesAPIClient, para } options := ListSecurityProfilesPaginatorOptions{} - 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 *ListSecurityProfilesPaginator) 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.ListSecurityProfiles(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/connect/api_op_ListTaskTemplates.go b/service/connect/api_op_ListTaskTemplates.go index 2eb4cf8d3da..d1d65fb49e4 100644 --- a/service/connect/api_op_ListTaskTemplates.go +++ b/service/connect/api_op_ListTaskTemplates.go @@ -38,7 +38,7 @@ type ListTaskTemplatesInput struct { // The maximum number of results to return per page. It is not expected that you // set this. - MaxResults int32 + MaxResults *int32 // The name of the task template. Name *string @@ -170,8 +170,8 @@ func NewListTaskTemplatesPaginator(client ListTaskTemplatesAPIClient, params *Li } options := ListTaskTemplatesPaginatorOptions{} - 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 *ListTaskTemplatesPaginator) 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.ListTaskTemplates(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/connect/api_op_ListUseCases.go b/service/connect/api_op_ListUseCases.go index 8fe19cdf581..2ccff82cca8 100644 --- a/service/connect/api_op_ListUseCases.go +++ b/service/connect/api_op_ListUseCases.go @@ -44,7 +44,7 @@ type ListUseCasesInput struct { IntegrationAssociationId *string // The maximum number of results to return per page. - MaxResults int32 + MaxResults *int32 // The token for the next set of results. Use the value returned in the previous // response in the next request to retrieve the next set of results. @@ -163,8 +163,8 @@ func NewListUseCasesPaginator(client ListUseCasesAPIClient, params *ListUseCases } options := ListUseCasesPaginatorOptions{} - 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 *ListUseCasesPaginator) 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.ListUseCases(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/connect/api_op_ListUserHierarchyGroups.go b/service/connect/api_op_ListUserHierarchyGroups.go index ca5b6aa1a0a..25484b38a50 100644 --- a/service/connect/api_op_ListUserHierarchyGroups.go +++ b/service/connect/api_op_ListUserHierarchyGroups.go @@ -42,7 +42,7 @@ type ListUserHierarchyGroupsInput struct { // The maximum number of results to return per page. The default MaxResult size is // 100. - MaxResults int32 + MaxResults *int32 // The token for the next set of results. Use the value returned in the previous // response in the next request to retrieve the next set of results. @@ -165,8 +165,8 @@ func NewListUserHierarchyGroupsPaginator(client ListUserHierarchyGroupsAPIClient } options := ListUserHierarchyGroupsPaginatorOptions{} - 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 *ListUserHierarchyGroupsPaginator) 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.ListUserHierarchyGroups(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/connect/api_op_ListUsers.go b/service/connect/api_op_ListUsers.go index fcf38794028..8cb69a3cf56 100644 --- a/service/connect/api_op_ListUsers.go +++ b/service/connect/api_op_ListUsers.go @@ -39,7 +39,7 @@ type ListUsersInput struct { // The maximum number of results to return per page. The default MaxResult size is // 100. - MaxResults int32 + MaxResults *int32 // The token for the next set of results. Use the value returned in the previous // response in the next request to retrieve the next set of results. @@ -159,8 +159,8 @@ func NewListUsersPaginator(client ListUsersAPIClient, params *ListUsersInput, op } options := ListUsersPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults + if params.MaxResults != nil { + options.Limit = *params.MaxResults } for _, fn := range optFns { @@ -190,7 +190,11 @@ func (p *ListUsersPaginator) 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.ListUsers(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/connect/api_op_SearchAvailablePhoneNumbers.go b/service/connect/api_op_SearchAvailablePhoneNumbers.go index b2aef8298fe..b5f3c1ea352 100644 --- a/service/connect/api_op_SearchAvailablePhoneNumbers.go +++ b/service/connect/api_op_SearchAvailablePhoneNumbers.go @@ -48,7 +48,7 @@ type SearchAvailablePhoneNumbersInput struct { TargetArn *string // The maximum number of results to return per page. - MaxResults int32 + MaxResults *int32 // The token for the next set of results. Use the value returned in the previous // response in the next request to retrieve the next set of results. @@ -176,8 +176,8 @@ func NewSearchAvailablePhoneNumbersPaginator(client SearchAvailablePhoneNumbersA } options := SearchAvailablePhoneNumbersPaginatorOptions{} - 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 *SearchAvailablePhoneNumbersPaginator) 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.SearchAvailablePhoneNumbers(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/connect/api_op_SearchQueues.go b/service/connect/api_op_SearchQueues.go index 86061140b3a..6fc6ec5cfbb 100644 --- a/service/connect/api_op_SearchQueues.go +++ b/service/connect/api_op_SearchQueues.go @@ -38,7 +38,7 @@ type SearchQueuesInput struct { InstanceId *string // The maximum number of results to return per page. - MaxResults int32 + MaxResults *int32 // The token for the next set of results. Use the value returned in the previous // response in the next request to retrieve the next set of results. @@ -166,8 +166,8 @@ func NewSearchQueuesPaginator(client SearchQueuesAPIClient, params *SearchQueues } options := SearchQueuesPaginatorOptions{} - 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 *SearchQueuesPaginator) 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.SearchQueues(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/connect/api_op_SearchRoutingProfiles.go b/service/connect/api_op_SearchRoutingProfiles.go index 44547502367..1c67930394d 100644 --- a/service/connect/api_op_SearchRoutingProfiles.go +++ b/service/connect/api_op_SearchRoutingProfiles.go @@ -39,7 +39,7 @@ type SearchRoutingProfilesInput struct { InstanceId *string // The maximum number of results to return per page. - MaxResults int32 + MaxResults *int32 // The token for the next set of results. Use the value returned in the previous // response in the next request to retrieve the next set of results. @@ -169,8 +169,8 @@ func NewSearchRoutingProfilesPaginator(client SearchRoutingProfilesAPIClient, pa } options := SearchRoutingProfilesPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults + if params.MaxResults != nil { + options.Limit = *params.MaxResults } for _, fn := range optFns { @@ -200,7 +200,11 @@ func (p *SearchRoutingProfilesPaginator) 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.SearchRoutingProfiles(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/connect/api_op_SearchSecurityProfiles.go b/service/connect/api_op_SearchSecurityProfiles.go index 85d716f58e2..71d90f92d15 100644 --- a/service/connect/api_op_SearchSecurityProfiles.go +++ b/service/connect/api_op_SearchSecurityProfiles.go @@ -39,7 +39,7 @@ type SearchSecurityProfilesInput struct { InstanceId *string // The maximum number of results to return per page. - MaxResults int32 + MaxResults *int32 // The token for the next set of results. Use the value returned in the previous // response in the next request to retrieve the next set of results. @@ -169,8 +169,8 @@ func NewSearchSecurityProfilesPaginator(client SearchSecurityProfilesAPIClient, } options := SearchSecurityProfilesPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults + if params.MaxResults != nil { + options.Limit = *params.MaxResults } for _, fn := range optFns { @@ -200,7 +200,11 @@ func (p *SearchSecurityProfilesPaginator) 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.SearchSecurityProfiles(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/connect/api_op_SearchUsers.go b/service/connect/api_op_SearchUsers.go index ea3f0c4c300..8fdcdca7864 100644 --- a/service/connect/api_op_SearchUsers.go +++ b/service/connect/api_op_SearchUsers.go @@ -35,7 +35,7 @@ type SearchUsersInput struct { InstanceId *string // The maximum number of results to return per page. - MaxResults int32 + MaxResults *int32 // The token for the next set of results. Use the value returned in the previous // response in the next request to retrieve the next set of results. @@ -163,8 +163,8 @@ func NewSearchUsersPaginator(client SearchUsersAPIClient, params *SearchUsersInp } options := SearchUsersPaginatorOptions{} - 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 *SearchUsersPaginator) 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.SearchUsers(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/connect/api_op_UpdateQueueMaxContacts.go b/service/connect/api_op_UpdateQueueMaxContacts.go index 9514714598e..a6525842e04 100644 --- a/service/connect/api_op_UpdateQueueMaxContacts.go +++ b/service/connect/api_op_UpdateQueueMaxContacts.go @@ -43,7 +43,7 @@ type UpdateQueueMaxContactsInput struct { // The maximum number of contacts that can be in the queue before it is considered // full. - MaxContacts int32 + MaxContacts *int32 noSmithyDocumentSerde } diff --git a/service/connect/deserializers.go b/service/connect/deserializers.go index 5d52eec23d5..e0d0e76fe59 100644 --- a/service/connect/deserializers.go +++ b/service/connect/deserializers.go @@ -25482,7 +25482,7 @@ func awsRestjson1_deserializeDocumentHoursOfOperationTimeSlice(v **types.HoursOf if err != nil { return err } - sv.Hours = int32(i64) + sv.Hours = ptr.Int32(int32(i64)) } case "Minutes": @@ -25495,7 +25495,7 @@ func awsRestjson1_deserializeDocumentHoursOfOperationTimeSlice(v **types.HoursOf if err != nil { return err } - sv.Minutes = int32(i64) + sv.Minutes = ptr.Int32(int32(i64)) } default: @@ -27719,7 +27719,7 @@ func awsRestjson1_deserializeDocumentQueue(v **types.Queue, value interface{}) e if err != nil { return err } - sv.MaxContacts = int32(i64) + sv.MaxContacts = ptr.Int32(int32(i64)) } case "Name": diff --git a/service/connect/serializers.go b/service/connect/serializers.go index 3bbf9c122a9..3d07b4fb9b3 100644 --- a/service/connect/serializers.go +++ b/service/connect/serializers.go @@ -1668,9 +1668,9 @@ func awsRestjson1_serializeOpDocumentCreateQueueInput(v *CreateQueueInput, value ok.String(*v.HoursOfOperationId) } - if v.MaxContacts != 0 { + if v.MaxContacts != nil { ok := object.Key("MaxContacts") - ok.Integer(v.MaxContacts) + ok.Integer(*v.MaxContacts) } if v.Name != nil { @@ -5303,9 +5303,9 @@ func awsRestjson1_serializeOpDocumentGetCurrentMetricDataInput(v *GetCurrentMetr } } - if v.MaxResults != 0 { + if v.MaxResults != nil { ok := object.Key("MaxResults") - ok.Integer(v.MaxResults) + ok.Integer(*v.MaxResults) } if v.NextToken != nil { @@ -5396,9 +5396,9 @@ func awsRestjson1_serializeOpDocumentGetCurrentUserDataInput(v *GetCurrentUserDa } } - if v.MaxResults != 0 { + if v.MaxResults != nil { ok := object.Key("MaxResults") - ok.Integer(v.MaxResults) + ok.Integer(*v.MaxResults) } if v.NextToken != nil { @@ -5566,9 +5566,9 @@ func awsRestjson1_serializeOpDocumentGetMetricDataInput(v *GetMetricDataInput, v } } - if v.MaxResults != 0 { + if v.MaxResults != nil { ok := object.Key("MaxResults") - ok.Integer(v.MaxResults) + ok.Integer(*v.MaxResults) } if v.NextToken != nil { @@ -5716,8 +5716,8 @@ func awsRestjson1_serializeOpHttpBindingsListAgentStatusesInput(v *ListAgentStat } } - if v.MaxResults != 0 { - encoder.SetQuery("maxResults").Integer(v.MaxResults) + if v.MaxResults != nil { + encoder.SetQuery("maxResults").Integer(*v.MaxResults) } if v.NextToken != nil { @@ -5782,8 +5782,8 @@ func awsRestjson1_serializeOpHttpBindingsListApprovedOriginsInput(v *ListApprove } } - if v.MaxResults != 0 { - encoder.SetQuery("maxResults").Integer(v.MaxResults) + if v.MaxResults != nil { + encoder.SetQuery("maxResults").Integer(*v.MaxResults) } if v.NextToken != nil { @@ -5852,8 +5852,8 @@ func awsRestjson1_serializeOpHttpBindingsListBotsInput(v *ListBotsInput, encoder encoder.SetQuery("lexVersion").String(string(v.LexVersion)) } - if v.MaxResults != 0 { - encoder.SetQuery("maxResults").Integer(v.MaxResults) + if v.MaxResults != nil { + encoder.SetQuery("maxResults").Integer(*v.MaxResults) } if v.NextToken != nil { @@ -5922,8 +5922,8 @@ func awsRestjson1_serializeOpHttpBindingsListContactFlowModulesInput(v *ListCont } } - if v.MaxResults != 0 { - encoder.SetQuery("maxResults").Integer(v.MaxResults) + if v.MaxResults != nil { + encoder.SetQuery("maxResults").Integer(*v.MaxResults) } if v.NextToken != nil { @@ -6294,8 +6294,8 @@ func awsRestjson1_serializeOpHttpBindingsListInstanceAttributesInput(v *ListInst } } - if v.MaxResults != 0 { - encoder.SetQuery("maxResults").Integer(v.MaxResults) + if v.MaxResults != nil { + encoder.SetQuery("maxResults").Integer(*v.MaxResults) } if v.NextToken != nil { @@ -6351,8 +6351,8 @@ func awsRestjson1_serializeOpHttpBindingsListInstancesInput(v *ListInstancesInpu 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 { @@ -6417,8 +6417,8 @@ func awsRestjson1_serializeOpHttpBindingsListInstanceStorageConfigsInput(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 { @@ -6491,8 +6491,8 @@ func awsRestjson1_serializeOpHttpBindingsListIntegrationAssociationsInput(v *Lis encoder.SetQuery("integrationType").String(string(v.IntegrationType)) } - if v.MaxResults != 0 { - encoder.SetQuery("maxResults").Integer(v.MaxResults) + if v.MaxResults != nil { + encoder.SetQuery("maxResults").Integer(*v.MaxResults) } if v.NextToken != nil { @@ -6557,8 +6557,8 @@ func awsRestjson1_serializeOpHttpBindingsListLambdaFunctionsInput(v *ListLambdaF } } - if v.MaxResults != 0 { - encoder.SetQuery("maxResults").Integer(v.MaxResults) + if v.MaxResults != nil { + encoder.SetQuery("maxResults").Integer(*v.MaxResults) } if v.NextToken != nil { @@ -6623,8 +6623,8 @@ func awsRestjson1_serializeOpHttpBindingsListLexBotsInput(v *ListLexBotsInput, e } } - if v.MaxResults != 0 { - encoder.SetQuery("maxResults").Integer(v.MaxResults) + if v.MaxResults != nil { + encoder.SetQuery("maxResults").Integer(*v.MaxResults) } if v.NextToken != nil { @@ -6772,9 +6772,9 @@ func awsRestjson1_serializeOpDocumentListPhoneNumbersV2Input(v *ListPhoneNumbers 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 { @@ -6864,8 +6864,8 @@ func awsRestjson1_serializeOpHttpBindingsListPromptsInput(v *ListPromptsInput, e } } - if v.MaxResults != 0 { - encoder.SetQuery("maxResults").Integer(v.MaxResults) + if v.MaxResults != nil { + encoder.SetQuery("maxResults").Integer(*v.MaxResults) } if v.NextToken != nil { @@ -6930,8 +6930,8 @@ func awsRestjson1_serializeOpHttpBindingsListQueueQuickConnectsInput(v *ListQueu } } - if v.MaxResults != 0 { - encoder.SetQuery("maxResults").Integer(v.MaxResults) + if v.MaxResults != nil { + encoder.SetQuery("maxResults").Integer(*v.MaxResults) } if v.NextToken != nil { @@ -7077,8 +7077,8 @@ func awsRestjson1_serializeOpHttpBindingsListQuickConnectsInput(v *ListQuickConn } } - if v.MaxResults != 0 { - encoder.SetQuery("maxResults").Integer(v.MaxResults) + if v.MaxResults != nil { + encoder.SetQuery("maxResults").Integer(*v.MaxResults) } if v.NextToken != nil { @@ -7149,8 +7149,8 @@ func awsRestjson1_serializeOpHttpBindingsListRoutingProfileQueuesInput(v *ListRo } } - if v.MaxResults != 0 { - encoder.SetQuery("maxResults").Integer(v.MaxResults) + if v.MaxResults != nil { + encoder.SetQuery("maxResults").Integer(*v.MaxResults) } if v.NextToken != nil { @@ -7224,8 +7224,8 @@ func awsRestjson1_serializeOpHttpBindingsListRoutingProfilesInput(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 { @@ -7290,8 +7290,8 @@ func awsRestjson1_serializeOpHttpBindingsListSecurityKeysInput(v *ListSecurityKe } } - if v.MaxResults != 0 { - encoder.SetQuery("maxResults").Integer(v.MaxResults) + if v.MaxResults != nil { + encoder.SetQuery("maxResults").Integer(*v.MaxResults) } if v.NextToken != nil { @@ -7356,8 +7356,8 @@ func awsRestjson1_serializeOpHttpBindingsListSecurityProfilePermissionsInput(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 { @@ -7431,8 +7431,8 @@ func awsRestjson1_serializeOpHttpBindingsListSecurityProfilesInput(v *ListSecuri } } - if v.MaxResults != 0 { - encoder.SetQuery("maxResults").Integer(v.MaxResults) + if v.MaxResults != nil { + encoder.SetQuery("maxResults").Integer(*v.MaxResults) } if v.NextToken != nil { @@ -7555,8 +7555,8 @@ func awsRestjson1_serializeOpHttpBindingsListTaskTemplatesInput(v *ListTaskTempl } } - if v.MaxResults != 0 { - encoder.SetQuery("maxResults").Integer(v.MaxResults) + if v.MaxResults != nil { + encoder.SetQuery("maxResults").Integer(*v.MaxResults) } if v.Name != nil { @@ -7638,8 +7638,8 @@ func awsRestjson1_serializeOpHttpBindingsListUseCasesInput(v *ListUseCasesInput, } } - if v.MaxResults != 0 { - encoder.SetQuery("maxResults").Integer(v.MaxResults) + if v.MaxResults != nil { + encoder.SetQuery("maxResults").Integer(*v.MaxResults) } if v.NextToken != nil { @@ -7704,8 +7704,8 @@ func awsRestjson1_serializeOpHttpBindingsListUserHierarchyGroupsInput(v *ListUse } } - if v.MaxResults != 0 { - encoder.SetQuery("maxResults").Integer(v.MaxResults) + if v.MaxResults != nil { + encoder.SetQuery("maxResults").Integer(*v.MaxResults) } if v.NextToken != nil { @@ -7770,8 +7770,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 { @@ -8071,9 +8071,9 @@ func awsRestjson1_serializeOpDocumentSearchAvailablePhoneNumbersInput(v *SearchA 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 { @@ -8169,9 +8169,9 @@ func awsRestjson1_serializeOpDocumentSearchQueuesInput(v *SearchQueuesInput, val ok.String(*v.InstanceId) } - if v.MaxResults != 0 { + if v.MaxResults != nil { ok := object.Key("MaxResults") - ok.Integer(v.MaxResults) + ok.Integer(*v.MaxResults) } if v.NextToken != nil { @@ -8261,9 +8261,9 @@ func awsRestjson1_serializeOpDocumentSearchRoutingProfilesInput(v *SearchRouting ok.String(*v.InstanceId) } - if v.MaxResults != 0 { + if v.MaxResults != nil { ok := object.Key("MaxResults") - ok.Integer(v.MaxResults) + ok.Integer(*v.MaxResults) } if v.NextToken != nil { @@ -8353,9 +8353,9 @@ func awsRestjson1_serializeOpDocumentSearchSecurityProfilesInput(v *SearchSecuri ok.String(*v.InstanceId) } - if v.MaxResults != 0 { + if v.MaxResults != nil { ok := object.Key("MaxResults") - ok.Integer(v.MaxResults) + ok.Integer(*v.MaxResults) } if v.NextToken != nil { @@ -8445,9 +8445,9 @@ func awsRestjson1_serializeOpDocumentSearchUsersInput(v *SearchUsersInput, value ok.String(*v.InstanceId) } - if v.MaxResults != 0 { + if v.MaxResults != nil { ok := object.Key("MaxResults") - ok.Integer(v.MaxResults) + ok.Integer(*v.MaxResults) } if v.NextToken != nil { @@ -11036,9 +11036,9 @@ func awsRestjson1_serializeOpDocumentUpdateQueueMaxContactsInput(v *UpdateQueueM object := value.Object() defer object.Close() - if v.MaxContacts != 0 { + if v.MaxContacts != nil { ok := object.Key("MaxContacts") - ok.Integer(v.MaxContacts) + ok.Integer(*v.MaxContacts) } return nil @@ -13099,14 +13099,14 @@ func awsRestjson1_serializeDocumentHoursOfOperationTimeSlice(v *types.HoursOfOpe object := value.Object() defer object.Close() - { + if v.Hours != nil { ok := object.Key("Hours") - ok.Integer(v.Hours) + ok.Integer(*v.Hours) } - { + if v.Minutes != nil { ok := object.Key("Minutes") - ok.Integer(v.Minutes) + ok.Integer(*v.Minutes) } return nil @@ -13577,14 +13577,14 @@ func awsRestjson1_serializeDocumentRoutingProfileQueueConfig(v *types.RoutingPro object := value.Object() defer object.Close() - { + if v.Delay != nil { ok := object.Key("Delay") - ok.Integer(v.Delay) + ok.Integer(*v.Delay) } - { + if v.Priority != nil { ok := object.Key("Priority") - ok.Integer(v.Priority) + ok.Integer(*v.Priority) } if v.QueueReference != nil { diff --git a/service/connect/types/types.go b/service/connect/types/types.go index eefc6604978..9b89bafe05c 100644 --- a/service/connect/types/types.go +++ b/service/connect/types/types.go @@ -871,12 +871,12 @@ type HoursOfOperationTimeSlice struct { // The hours. // // This member is required. - Hours int32 + Hours *int32 // The minutes. // // This member is required. - Minutes int32 + Minutes *int32 noSmithyDocumentSerde } @@ -1290,7 +1290,7 @@ type Queue struct { // The maximum number of contacts that can be in the queue before it is considered // full. - MaxContacts int32 + MaxContacts *int32 // The name of the queue. Name *string @@ -1631,14 +1631,14 @@ type RoutingProfileQueueConfig struct { // in the Amazon Connect Administrator Guide. // // This member is required. - Delay int32 + Delay *int32 // The order in which contacts are to be handled for the queue. For more // information, see Queues: priority and delay // (https://docs.aws.amazon.com/connect/latest/adminguide/concepts-routing-profiles-priority.html). // // This member is required. - Priority int32 + Priority *int32 // Contains information about a queue resource. // diff --git a/service/connect/validators.go b/service/connect/validators.go index 03bec753412..b8b5a3c56c6 100644 --- a/service/connect/validators.go +++ b/service/connect/validators.go @@ -3806,6 +3806,12 @@ func validateHoursOfOperationTimeSlice(v *types.HoursOfOperationTimeSlice) error return nil } invalidParams := smithy.InvalidParamsError{Context: "HoursOfOperationTimeSlice"} + if v.Hours == nil { + invalidParams.Add(smithy.NewErrParamRequired("Hours")) + } + if v.Minutes == nil { + invalidParams.Add(smithy.NewErrParamRequired("Minutes")) + } if invalidParams.Len() > 0 { return invalidParams } else { @@ -4040,6 +4046,12 @@ func validateRoutingProfileQueueConfig(v *types.RoutingProfileQueueConfig) error invalidParams.AddNested("QueueReference", err.(smithy.InvalidParamsError)) } } + if v.Priority == nil { + invalidParams.Add(smithy.NewErrParamRequired("Priority")) + } + if v.Delay == nil { + invalidParams.Add(smithy.NewErrParamRequired("Delay")) + } if invalidParams.Len() > 0 { return invalidParams } else { diff --git a/service/connectparticipant/api_op_GetTranscript.go b/service/connectparticipant/api_op_GetTranscript.go index 94308dc34b4..9f5810caba6 100644 --- a/service/connectparticipant/api_op_GetTranscript.go +++ b/service/connectparticipant/api_op_GetTranscript.go @@ -43,7 +43,7 @@ type GetTranscriptInput struct { ContactId *string // The maximum number of results to return in the page. Default: 10. - MaxResults int32 + MaxResults *int32 // The pagination token. Use the value returned previously in the next subsequent // request to retrieve the next set of results. @@ -176,8 +176,8 @@ func NewGetTranscriptPaginator(client GetTranscriptAPIClient, params *GetTranscr } options := GetTranscriptPaginatorOptions{} - 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 *GetTranscriptPaginator) 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.GetTranscript(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/connectparticipant/serializers.go b/service/connectparticipant/serializers.go index ab27a6b100d..1fab1cbfa17 100644 --- a/service/connectparticipant/serializers.go +++ b/service/connectparticipant/serializers.go @@ -410,9 +410,9 @@ func awsRestjson1_serializeOpDocumentGetTranscriptInput(v *GetTranscriptInput, v ok.String(*v.ContactId) } - if v.MaxResults != 0 { + if v.MaxResults != nil { ok := object.Key("MaxResults") - ok.Integer(v.MaxResults) + ok.Integer(*v.MaxResults) } if v.NextToken != nil { diff --git a/service/costexplorer/api_op_GetReservationCoverage.go b/service/costexplorer/api_op_GetReservationCoverage.go index 539d8357ddf..c9f38a43c72 100644 --- a/service/costexplorer/api_op_GetReservationCoverage.go +++ b/service/costexplorer/api_op_GetReservationCoverage.go @@ -151,7 +151,7 @@ type GetReservationCoverageInput struct { // objects are available, in the response, Amazon Web Services provides a // NextPageToken value that you can use in a subsequent call to get the next batch // of objects. - MaxResults int32 + MaxResults *int32 // The measurement that you want your reservation coverage reported in. Valid // values are Hour, Unit, and Cost. You can use multiple values in a request. diff --git a/service/costexplorer/api_op_GetReservationUtilization.go b/service/costexplorer/api_op_GetReservationUtilization.go index 24056171a3d..29695b42883 100644 --- a/service/costexplorer/api_op_GetReservationUtilization.go +++ b/service/costexplorer/api_op_GetReservationUtilization.go @@ -89,7 +89,7 @@ type GetReservationUtilizationInput struct { // objects are available, in the response, Amazon Web Services provides a // NextPageToken value that you can use in a subsequent call to get the next batch // of objects. - MaxResults int32 + MaxResults *int32 // The token to retrieve the next set of results. Amazon Web Services provides the // token when the response from a previous call has more results than the maximum diff --git a/service/costexplorer/api_op_GetSavingsPlansCoverage.go b/service/costexplorer/api_op_GetSavingsPlansCoverage.go index 74925335f05..87a658f489a 100644 --- a/service/costexplorer/api_op_GetSavingsPlansCoverage.go +++ b/service/costexplorer/api_op_GetSavingsPlansCoverage.go @@ -83,7 +83,7 @@ type GetSavingsPlansCoverageInput struct { // The number of items to be returned in a response. The default is 20, with a // minimum value of 1. - MaxResults int32 + MaxResults *int32 // The measurement that you want your Savings Plans coverage reported in. The only // valid value is SpendCoveredBySavingsPlans. @@ -237,8 +237,8 @@ func NewGetSavingsPlansCoveragePaginator(client GetSavingsPlansCoverageAPIClient } options := GetSavingsPlansCoveragePaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults + if params.MaxResults != nil { + options.Limit = *params.MaxResults } for _, fn := range optFns { @@ -268,7 +268,11 @@ func (p *GetSavingsPlansCoveragePaginator) 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.GetSavingsPlansCoverage(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/costexplorer/api_op_GetSavingsPlansUtilizationDetails.go b/service/costexplorer/api_op_GetSavingsPlansUtilizationDetails.go index 1c0fba5fd68..e2282855d27 100644 --- a/service/costexplorer/api_op_GetSavingsPlansUtilizationDetails.go +++ b/service/costexplorer/api_op_GetSavingsPlansUtilizationDetails.go @@ -68,7 +68,7 @@ type GetSavingsPlansUtilizationDetailsInput struct { // The number of items to be returned in a response. The default is 20, with a // minimum value of 1. - MaxResults int32 + MaxResults *int32 // The token to retrieve the next set of results. Amazon Web Services provides the // token when the response from a previous call has more results than the maximum @@ -229,8 +229,8 @@ func NewGetSavingsPlansUtilizationDetailsPaginator(client GetSavingsPlansUtiliza } options := GetSavingsPlansUtilizationDetailsPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults + if params.MaxResults != nil { + options.Limit = *params.MaxResults } for _, fn := range optFns { @@ -260,7 +260,11 @@ func (p *GetSavingsPlansUtilizationDetailsPaginator) 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.GetSavingsPlansUtilizationDetails(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/costexplorer/api_op_ListCostAllocationTags.go b/service/costexplorer/api_op_ListCostAllocationTags.go index 517f3222e1a..9ac6c0b70b3 100644 --- a/service/costexplorer/api_op_ListCostAllocationTags.go +++ b/service/costexplorer/api_op_ListCostAllocationTags.go @@ -33,7 +33,7 @@ type ListCostAllocationTagsInput struct { // The maximum number of objects that are returned for this request. By default, // the request returns 100 results. - MaxResults int32 + MaxResults *int32 // The token to retrieve the next set of results. Amazon Web Services provides the // token when the response from a previous call has more results than the maximum @@ -167,8 +167,8 @@ func NewListCostAllocationTagsPaginator(client ListCostAllocationTagsAPIClient, } options := ListCostAllocationTagsPaginatorOptions{} - 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 *ListCostAllocationTagsPaginator) 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.ListCostAllocationTags(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/costexplorer/api_op_ListCostCategoryDefinitions.go b/service/costexplorer/api_op_ListCostCategoryDefinitions.go index 795ab04198f..93b05154509 100644 --- a/service/costexplorer/api_op_ListCostCategoryDefinitions.go +++ b/service/costexplorer/api_op_ListCostCategoryDefinitions.go @@ -40,7 +40,7 @@ type ListCostCategoryDefinitionsInput struct { EffectiveOn *string // The number of entries a paginated response contains. - MaxResults int32 + MaxResults *int32 // The token to retrieve the next set of results. Amazon Web Services provides the // token when the response from a previous call has more results than the maximum @@ -164,8 +164,8 @@ func NewListCostCategoryDefinitionsPaginator(client ListCostCategoryDefinitionsA } options := ListCostCategoryDefinitionsPaginatorOptions{} - 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 *ListCostCategoryDefinitionsPaginator) 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.ListCostCategoryDefinitions(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/costexplorer/serializers.go b/service/costexplorer/serializers.go index d27223af9ef..216cd73c6a2 100644 --- a/service/costexplorer/serializers.go +++ b/service/costexplorer/serializers.go @@ -3191,9 +3191,9 @@ func awsAwsjson11_serializeOpDocumentGetReservationCoverageInput(v *GetReservati } } - if v.MaxResults != 0 { + if v.MaxResults != nil { ok := object.Key("MaxResults") - ok.Integer(v.MaxResults) + ok.Integer(*v.MaxResults) } if v.Metrics != nil { @@ -3309,9 +3309,9 @@ func awsAwsjson11_serializeOpDocumentGetReservationUtilizationInput(v *GetReserv } } - if v.MaxResults != 0 { + if v.MaxResults != nil { ok := object.Key("MaxResults") - ok.Integer(v.MaxResults) + ok.Integer(*v.MaxResults) } if v.NextPageToken != nil { @@ -3395,9 +3395,9 @@ func awsAwsjson11_serializeOpDocumentGetSavingsPlansCoverageInput(v *GetSavingsP } } - if v.MaxResults != 0 { + if v.MaxResults != nil { ok := object.Key("MaxResults") - ok.Integer(v.MaxResults) + ok.Integer(*v.MaxResults) } if v.Metrics != nil { @@ -3496,9 +3496,9 @@ func awsAwsjson11_serializeOpDocumentGetSavingsPlansUtilizationDetailsInput(v *G } } - if v.MaxResults != 0 { + if v.MaxResults != nil { ok := object.Key("MaxResults") - ok.Integer(v.MaxResults) + ok.Integer(*v.MaxResults) } if v.NextToken != nil { @@ -3644,9 +3644,9 @@ func awsAwsjson11_serializeOpDocumentListCostAllocationTagsInput(v *ListCostAllo 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 { @@ -3683,9 +3683,9 @@ func awsAwsjson11_serializeOpDocumentListCostCategoryDefinitionsInput(v *ListCos ok.String(*v.EffectiveOn) } - if v.MaxResults != 0 { + if v.MaxResults != nil { ok := object.Key("MaxResults") - ok.Integer(v.MaxResults) + ok.Integer(*v.MaxResults) } if v.NextToken != nil { diff --git a/service/customerprofiles/serializers.go b/service/customerprofiles/serializers.go index 654842999c7..8acae9a8731 100644 --- a/service/customerprofiles/serializers.go +++ b/service/customerprofiles/serializers.go @@ -4078,9 +4078,9 @@ func awsRestjson1_serializeDocumentScheduledTriggerProperties(v *types.Scheduled ok.String(*v.ScheduleExpression) } - if v.ScheduleOffset != 0 { + if v.ScheduleOffset != nil { ok := object.Key("ScheduleOffset") - ok.Long(v.ScheduleOffset) + ok.Long(*v.ScheduleOffset) } if v.ScheduleStartTime != nil { diff --git a/service/customerprofiles/types/types.go b/service/customerprofiles/types/types.go index 909b7e431c2..6ad4b57db51 100644 --- a/service/customerprofiles/types/types.go +++ b/service/customerprofiles/types/types.go @@ -968,7 +968,7 @@ type ScheduledTriggerProperties struct { // Specifies the optional offset that is added to the time interval for a // schedule-triggered flow. - ScheduleOffset int64 + ScheduleOffset *int64 // Specifies the scheduled start time for a scheduled-trigger flow. ScheduleStartTime *time.Time diff --git a/service/emrserverless/api_op_StartJobRun.go b/service/emrserverless/api_op_StartJobRun.go index 4b7de95294c..74254e9b35f 100644 --- a/service/emrserverless/api_op_StartJobRun.go +++ b/service/emrserverless/api_op_StartJobRun.go @@ -51,7 +51,7 @@ type StartJobRunInput struct { // The maximum duration for the job run to run. If the job run runs beyond this // duration, it will be automatically cancelled. - ExecutionTimeoutMinutes int64 + ExecutionTimeoutMinutes *int64 // The job driver for the job run. JobDriver types.JobDriver diff --git a/service/emrserverless/serializers.go b/service/emrserverless/serializers.go index 8c7ae607593..0f8f08cf62a 100644 --- a/service/emrserverless/serializers.go +++ b/service/emrserverless/serializers.go @@ -739,9 +739,9 @@ func awsRestjson1_serializeOpDocumentStartJobRunInput(v *StartJobRunInput, value ok.String(*v.ExecutionRoleArn) } - if v.ExecutionTimeoutMinutes != 0 { + if v.ExecutionTimeoutMinutes != nil { ok := object.Key("executionTimeoutMinutes") - ok.Long(v.ExecutionTimeoutMinutes) + ok.Long(*v.ExecutionTimeoutMinutes) } if v.JobDriver != nil { diff --git a/service/evidently/api_op_CreateExperiment.go b/service/evidently/api_op_CreateExperiment.go index e508dc0bf8c..8b0afa02ddf 100644 --- a/service/evidently/api_op_CreateExperiment.go +++ b/service/evidently/api_op_CreateExperiment.go @@ -82,7 +82,7 @@ type CreateExperimentInput struct { // audience minus the audience that you have allocated to overrides or current // launches of this feature. This is represented in thousandths of a percent. For // example, specify 10,000 to allocate 10% of the available audience. - SamplingRate int64 + SamplingRate *int64 // Specifies an audience segment to use in the experiment. When a segment is used // in an experiment, only user sessions that match the segment pattern are used in diff --git a/service/evidently/api_op_UpdateExperiment.go b/service/evidently/api_op_UpdateExperiment.go index a299fd584d9..0890a8dfbcb 100644 --- a/service/evidently/api_op_UpdateExperiment.go +++ b/service/evidently/api_op_UpdateExperiment.go @@ -71,7 +71,7 @@ type UpdateExperimentInput struct { // audience minus the audience that you have allocated to overrides or current // launches of this feature. This is represented in thousandths of a percent. For // example, specify 20,000 to allocate 20% of the available audience. - SamplingRate int64 + SamplingRate *int64 // Adds an audience segment to an experiment. When a segment is used in an // experiment, only user sessions that match the segment pattern are used in the diff --git a/service/evidently/serializers.go b/service/evidently/serializers.go index 77f014e6ff5..a463a87a7d6 100644 --- a/service/evidently/serializers.go +++ b/service/evidently/serializers.go @@ -201,9 +201,9 @@ func awsRestjson1_serializeOpDocumentCreateExperimentInput(v *CreateExperimentIn ok.String(*v.RandomizationSalt) } - if v.SamplingRate != 0 { + if v.SamplingRate != nil { ok := object.Key("samplingRate") - ok.Long(v.SamplingRate) + ok.Long(*v.SamplingRate) } if v.Segment != nil { @@ -2707,9 +2707,9 @@ func awsRestjson1_serializeOpDocumentUpdateExperimentInput(v *UpdateExperimentIn ok.Boolean(v.RemoveSegment) } - if v.SamplingRate != 0 { + if v.SamplingRate != nil { ok := object.Key("samplingRate") - ok.Long(v.SamplingRate) + ok.Long(*v.SamplingRate) } if v.Segment != nil { diff --git a/service/finspacedata/api_op_CreateDataView.go b/service/finspacedata/api_op_CreateDataView.go index c93c03017b3..cf33bdff198 100644 --- a/service/finspacedata/api_op_CreateDataView.go +++ b/service/finspacedata/api_op_CreateDataView.go @@ -44,7 +44,7 @@ type CreateDataViewInput struct { // Beginning time to use for the Dataview. The value is determined as epoch time in // milliseconds. For example, the value for Monday, November 1, 2021 12:00:00 PM // UTC is specified as 1635768000000. - AsOfTimestamp int64 + AsOfTimestamp *int64 // Flag to indicate Dataview should be updated automatically. AutoUpdate bool diff --git a/service/finspacedata/api_op_GetChangeset.go b/service/finspacedata/api_op_GetChangeset.go index 3294be12dd2..63557bc60be 100644 --- a/service/finspacedata/api_op_GetChangeset.go +++ b/service/finspacedata/api_op_GetChangeset.go @@ -49,12 +49,12 @@ type GetChangesetOutput struct { // Beginning time from which the Changeset is active. The value is determined as // epoch time in milliseconds. For example, the value for Monday, November 1, 2021 // 12:00:00 PM UTC is specified as 1635768000000. - ActiveFromTimestamp int64 + ActiveFromTimestamp *int64 // Time until which the Changeset is active. The value is determined as epoch time // in milliseconds. For example, the value for Monday, November 1, 2021 12:00:00 PM // UTC is specified as 1635768000000. - ActiveUntilTimestamp int64 + ActiveUntilTimestamp *int64 // Type that indicates how a Changeset is applied to a Dataset. // diff --git a/service/finspacedata/api_op_GetDataView.go b/service/finspacedata/api_op_GetDataView.go index 0949ada4d49..7761ab083e6 100644 --- a/service/finspacedata/api_op_GetDataView.go +++ b/service/finspacedata/api_op_GetDataView.go @@ -51,7 +51,7 @@ type GetDataViewOutput struct { // Time range to use for the Dataview. The value is determined as epoch time in // milliseconds. For example, the value for Monday, November 1, 2021 12:00:00 PM // UTC is specified as 1635768000000. - AsOfTimestamp int64 + AsOfTimestamp *int64 // Flag to indicate Dataview should be updated automatically. AutoUpdate bool diff --git a/service/finspacedata/api_op_ListChangesets.go b/service/finspacedata/api_op_ListChangesets.go index fe7c5c13d7e..8db67d23d1a 100644 --- a/service/finspacedata/api_op_ListChangesets.go +++ b/service/finspacedata/api_op_ListChangesets.go @@ -37,7 +37,7 @@ type ListChangesetsInput struct { DatasetId *string // The maximum number of results per page. - MaxResults int32 + MaxResults *int32 // A token that indicates where a results page should begin. NextToken *string @@ -161,8 +161,8 @@ func NewListChangesetsPaginator(client ListChangesetsAPIClient, params *ListChan } options := ListChangesetsPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults + if params.MaxResults != nil { + options.Limit = *params.MaxResults } for _, fn := range optFns { @@ -192,7 +192,11 @@ func (p *ListChangesetsPaginator) 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.ListChangesets(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/finspacedata/api_op_ListDataViews.go b/service/finspacedata/api_op_ListDataViews.go index cb4a607f0c4..39257a064d1 100644 --- a/service/finspacedata/api_op_ListDataViews.go +++ b/service/finspacedata/api_op_ListDataViews.go @@ -37,7 +37,7 @@ type ListDataViewsInput struct { DatasetId *string // The maximum number of results per page. - MaxResults int32 + MaxResults *int32 // A token that indicates where a results page should begin. NextToken *string @@ -158,8 +158,8 @@ func NewListDataViewsPaginator(client ListDataViewsAPIClient, params *ListDataVi } options := ListDataViewsPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults + if params.MaxResults != nil { + options.Limit = *params.MaxResults } for _, fn := range optFns { @@ -189,7 +189,11 @@ func (p *ListDataViewsPaginator) 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.ListDataViews(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/finspacedata/api_op_ListDatasets.go b/service/finspacedata/api_op_ListDatasets.go index 0d5db1ea5d0..24a1fe0df46 100644 --- a/service/finspacedata/api_op_ListDatasets.go +++ b/service/finspacedata/api_op_ListDatasets.go @@ -32,7 +32,7 @@ func (c *Client) ListDatasets(ctx context.Context, params *ListDatasetsInput, op type ListDatasetsInput struct { // The maximum number of results per page. - MaxResults int32 + MaxResults *int32 // A token that indicates where a results page should begin. NextToken *string @@ -151,8 +151,8 @@ func NewListDatasetsPaginator(client ListDatasetsAPIClient, params *ListDatasets } options := ListDatasetsPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults + if params.MaxResults != nil { + options.Limit = *params.MaxResults } for _, fn := range optFns { @@ -182,7 +182,11 @@ func (p *ListDatasetsPaginator) 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.ListDatasets(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/finspacedata/deserializers.go b/service/finspacedata/deserializers.go index 5bfce2f8f0f..ef5822d2745 100644 --- a/service/finspacedata/deserializers.go +++ b/service/finspacedata/deserializers.go @@ -1929,7 +1929,7 @@ func awsRestjson1_deserializeOpDocumentGetChangesetOutput(v **GetChangesetOutput if err != nil { return err } - sv.ActiveFromTimestamp = i64 + sv.ActiveFromTimestamp = ptr.Int64(i64) } case "activeUntilTimestamp": @@ -1942,7 +1942,7 @@ func awsRestjson1_deserializeOpDocumentGetChangesetOutput(v **GetChangesetOutput if err != nil { return err } - sv.ActiveUntilTimestamp = i64 + sv.ActiveUntilTimestamp = ptr.Int64(i64) } case "changesetArn": @@ -2451,7 +2451,7 @@ func awsRestjson1_deserializeOpDocumentGetDataViewOutput(v **GetDataViewOutput, if err != nil { return err } - sv.AsOfTimestamp = i64 + sv.AsOfTimestamp = ptr.Int64(i64) } case "autoUpdate": @@ -6019,7 +6019,7 @@ func awsRestjson1_deserializeDocumentChangesetSummary(v **types.ChangesetSummary if err != nil { return err } - sv.ActiveFromTimestamp = i64 + sv.ActiveFromTimestamp = ptr.Int64(i64) } case "activeUntilTimestamp": @@ -6032,7 +6032,7 @@ func awsRestjson1_deserializeDocumentChangesetSummary(v **types.ChangesetSummary if err != nil { return err } - sv.ActiveUntilTimestamp = i64 + sv.ActiveUntilTimestamp = ptr.Int64(i64) } case "changesetArn": @@ -6752,7 +6752,7 @@ func awsRestjson1_deserializeDocumentDataViewSummary(v **types.DataViewSummary, if err != nil { return err } - sv.AsOfTimestamp = i64 + sv.AsOfTimestamp = ptr.Int64(i64) } case "autoUpdate": diff --git a/service/finspacedata/serializers.go b/service/finspacedata/serializers.go index 0e8bcf774b9..3e7ebaf8377 100644 --- a/service/finspacedata/serializers.go +++ b/service/finspacedata/serializers.go @@ -386,9 +386,9 @@ func awsRestjson1_serializeOpDocumentCreateDataViewInput(v *CreateDataViewInput, object := value.Object() defer object.Close() - if v.AsOfTimestamp != 0 { + if v.AsOfTimestamp != nil { ok := object.Key("asOfTimestamp") - ok.Long(v.AsOfTimestamp) + ok.Long(*v.AsOfTimestamp) } if v.AutoUpdate { @@ -1520,8 +1520,8 @@ func awsRestjson1_serializeOpHttpBindingsListChangesetsInput(v *ListChangesetsIn } } - if v.MaxResults != 0 { - encoder.SetQuery("maxResults").Integer(v.MaxResults) + if v.MaxResults != nil { + encoder.SetQuery("maxResults").Integer(*v.MaxResults) } if v.NextToken != nil { @@ -1577,8 +1577,8 @@ func awsRestjson1_serializeOpHttpBindingsListDatasetsInput(v *ListDatasetsInput, 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 { @@ -1643,8 +1643,8 @@ func awsRestjson1_serializeOpHttpBindingsListDataViewsInput(v *ListDataViewsInpu } } - 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/finspacedata/types/types.go b/service/finspacedata/types/types.go index 6a538a2ca9d..2e7a15e1425 100644 --- a/service/finspacedata/types/types.go +++ b/service/finspacedata/types/types.go @@ -65,12 +65,12 @@ type ChangesetSummary struct { // Beginning time from which the Changeset is active. The value is determined as // epoch time in milliseconds. For example, the value for Monday, November 1, 2021 // 12:00:00 PM UTC is specified as 1635768000000. - ActiveFromTimestamp int64 + ActiveFromTimestamp *int64 // Time until which the Changeset is active. The value is determined as epoch time // in milliseconds. For example, the value for Monday, November 1, 2021 12:00:00 PM // UTC is specified as 1635768000000. - ActiveUntilTimestamp int64 + ActiveUntilTimestamp *int64 // Type that indicates how a Changeset is applied to a Dataset. // @@ -302,7 +302,7 @@ type DataViewSummary struct { // Time range to use for the Dataview. The value is determined as epoch time in // milliseconds. For example, the value for Monday, November 1, 2021 12:00:00 PM // UTC is specified as 1635768000000. - AsOfTimestamp int64 + AsOfTimestamp *int64 // The flag to indicate Dataview should be updated automatically. AutoUpdate bool diff --git a/service/fis/api_op_ListActions.go b/service/fis/api_op_ListActions.go index 800058a6180..0fd5f780886 100644 --- a/service/fis/api_op_ListActions.go +++ b/service/fis/api_op_ListActions.go @@ -32,7 +32,7 @@ type ListActionsInput struct { // The maximum number of results to return with a single call. To retrieve the // remaining results, make another call with the returned nextToken value. - MaxResults int32 + MaxResults *int32 // The token for the next page of results. NextToken *string @@ -149,8 +149,8 @@ func NewListActionsPaginator(client ListActionsAPIClient, params *ListActionsInp } options := ListActionsPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults + if params.MaxResults != nil { + options.Limit = *params.MaxResults } for _, fn := range optFns { @@ -180,7 +180,11 @@ func (p *ListActionsPaginator) 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.ListActions(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/fis/api_op_ListExperimentTemplates.go b/service/fis/api_op_ListExperimentTemplates.go index ab828bf5b85..224268b957c 100644 --- a/service/fis/api_op_ListExperimentTemplates.go +++ b/service/fis/api_op_ListExperimentTemplates.go @@ -32,7 +32,7 @@ type ListExperimentTemplatesInput struct { // The maximum number of results to return with a single call. To retrieve the // remaining results, make another call with the returned nextToken value. - MaxResults int32 + MaxResults *int32 // The token for the next page of results. NextToken *string @@ -152,8 +152,8 @@ func NewListExperimentTemplatesPaginator(client ListExperimentTemplatesAPIClient } options := ListExperimentTemplatesPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults + if params.MaxResults != nil { + options.Limit = *params.MaxResults } for _, fn := range optFns { @@ -183,7 +183,11 @@ func (p *ListExperimentTemplatesPaginator) 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.ListExperimentTemplates(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/fis/api_op_ListExperiments.go b/service/fis/api_op_ListExperiments.go index 29230f9409b..68490a64917 100644 --- a/service/fis/api_op_ListExperiments.go +++ b/service/fis/api_op_ListExperiments.go @@ -32,7 +32,7 @@ type ListExperimentsInput struct { // The maximum number of results to return with a single call. To retrieve the // remaining results, make another call with the returned nextToken value. - MaxResults int32 + MaxResults *int32 // The token for the next page of results. NextToken *string @@ -150,8 +150,8 @@ func NewListExperimentsPaginator(client ListExperimentsAPIClient, params *ListEx } options := ListExperimentsPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults + if params.MaxResults != nil { + options.Limit = *params.MaxResults } for _, fn := range optFns { @@ -181,7 +181,11 @@ func (p *ListExperimentsPaginator) 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.ListExperiments(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/fis/api_op_ListTargetResourceTypes.go b/service/fis/api_op_ListTargetResourceTypes.go index e4ff44b9189..c1b90c4a78f 100644 --- a/service/fis/api_op_ListTargetResourceTypes.go +++ b/service/fis/api_op_ListTargetResourceTypes.go @@ -32,7 +32,7 @@ type ListTargetResourceTypesInput struct { // The maximum number of results to return with a single call. To retrieve the // remaining results, make another call with the returned nextToken value. - MaxResults int32 + MaxResults *int32 // The token for the next page of results. NextToken *string @@ -152,8 +152,8 @@ func NewListTargetResourceTypesPaginator(client ListTargetResourceTypesAPIClient } options := ListTargetResourceTypesPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults + if params.MaxResults != nil { + options.Limit = *params.MaxResults } for _, fn := range optFns { @@ -183,7 +183,11 @@ func (p *ListTargetResourceTypesPaginator) 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.ListTargetResourceTypes(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/fis/deserializers.go b/service/fis/deserializers.go index c8afadab622..e2ce9411b45 100644 --- a/service/fis/deserializers.go +++ b/service/fis/deserializers.go @@ -2557,7 +2557,7 @@ func awsRestjson1_deserializeDocumentActionParameter(v **types.ActionParameter, if !ok { return fmt.Errorf("expected ActionParameterRequired to be of type *bool, got %T instead", value) } - sv.Required = jtv + sv.Required = ptr.Bool(jtv) } default: @@ -5046,7 +5046,7 @@ func awsRestjson1_deserializeDocumentTargetResourceTypeParameter(v **types.Targe if !ok { return fmt.Errorf("expected TargetResourceTypeParameterRequired to be of type *bool, got %T instead", value) } - sv.Required = jtv + sv.Required = ptr.Bool(jtv) } default: diff --git a/service/fis/serializers.go b/service/fis/serializers.go index bd8051d4a28..cf62da6fe37 100644 --- a/service/fis/serializers.go +++ b/service/fis/serializers.go @@ -463,8 +463,8 @@ func awsRestjson1_serializeOpHttpBindingsListActionsInput(v *ListActionsInput, 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 { @@ -520,8 +520,8 @@ func awsRestjson1_serializeOpHttpBindingsListExperimentsInput(v *ListExperiments 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 { @@ -577,8 +577,8 @@ func awsRestjson1_serializeOpHttpBindingsListExperimentTemplatesInput(v *ListExp 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 { @@ -692,8 +692,8 @@ func awsRestjson1_serializeOpHttpBindingsListTargetResourceTypesInput(v *ListTar 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/fis/types/types.go b/service/fis/types/types.go index a65580ca4a0..4d22c155e9e 100644 --- a/service/fis/types/types.go +++ b/service/fis/types/types.go @@ -37,7 +37,7 @@ type ActionParameter struct { Description *string // Indicates whether the parameter is required. - Required bool + Required *bool noSmithyDocumentSerde } @@ -609,7 +609,7 @@ type TargetResourceTypeParameter struct { Description *string // Indicates whether the parameter is required. - Required bool + Required *bool noSmithyDocumentSerde } diff --git a/service/glue/deserializers.go b/service/glue/deserializers.go index f2e24086f89..06c3d30a7fe 100644 --- a/service/glue/deserializers.go +++ b/service/glue/deserializers.go @@ -40785,7 +40785,7 @@ func awsAwsjson11_deserializeDocumentSchemaReference(v **types.SchemaReference, if err != nil { return err } - sv.SchemaVersionNumber = i64 + sv.SchemaVersionNumber = ptr.Int64(i64) } default: diff --git a/service/glue/serializers.go b/service/glue/serializers.go index e7dbdba5835..1814a714170 100644 --- a/service/glue/serializers.go +++ b/service/glue/serializers.go @@ -15446,9 +15446,9 @@ func awsAwsjson11_serializeDocumentSchemaReference(v *types.SchemaReference, val ok.String(*v.SchemaVersionId) } - if v.SchemaVersionNumber != 0 { + if v.SchemaVersionNumber != nil { ok := object.Key("SchemaVersionNumber") - ok.Long(v.SchemaVersionNumber) + ok.Long(*v.SchemaVersionNumber) } return nil diff --git a/service/glue/types/types.go b/service/glue/types/types.go index 8269cd3ca46..e67da2c8c0e 100644 --- a/service/glue/types/types.go +++ b/service/glue/types/types.go @@ -5343,7 +5343,7 @@ type SchemaReference struct { SchemaVersionId *string // The version number of the schema. - SchemaVersionNumber int64 + SchemaVersionNumber *int64 noSmithyDocumentSerde } diff --git a/service/greengrassv2/api_op_ListClientDevicesAssociatedWithCoreDevice.go b/service/greengrassv2/api_op_ListClientDevicesAssociatedWithCoreDevice.go index 7c1f06fec15..c0cf581ea13 100644 --- a/service/greengrassv2/api_op_ListClientDevicesAssociatedWithCoreDevice.go +++ b/service/greengrassv2/api_op_ListClientDevicesAssociatedWithCoreDevice.go @@ -37,7 +37,7 @@ type ListClientDevicesAssociatedWithCoreDeviceInput struct { CoreDeviceThingName *string // The maximum number of results to be returned per paginated request. - MaxResults int32 + MaxResults *int32 // The token to be used for the next set of paginated results. NextToken *string @@ -161,8 +161,8 @@ func NewListClientDevicesAssociatedWithCoreDevicePaginator(client ListClientDevi } options := ListClientDevicesAssociatedWithCoreDevicePaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults + if params.MaxResults != nil { + options.Limit = *params.MaxResults } for _, fn := range optFns { @@ -192,7 +192,11 @@ func (p *ListClientDevicesAssociatedWithCoreDevicePaginator) NextPage(ctx 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.ListClientDevicesAssociatedWithCoreDevice(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/greengrassv2/api_op_ListComponentVersions.go b/service/greengrassv2/api_op_ListComponentVersions.go index e6594fb1aaa..219fde0a3e1 100644 --- a/service/greengrassv2/api_op_ListComponentVersions.go +++ b/service/greengrassv2/api_op_ListComponentVersions.go @@ -39,7 +39,7 @@ type ListComponentVersionsInput struct { Arn *string // The maximum number of results to be returned per paginated request. - MaxResults int32 + MaxResults *int32 // The token to be used for the next set of paginated results. NextToken *string @@ -160,8 +160,8 @@ func NewListComponentVersionsPaginator(client ListComponentVersionsAPIClient, pa } options := ListComponentVersionsPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults + if params.MaxResults != nil { + options.Limit = *params.MaxResults } for _, fn := range optFns { @@ -191,7 +191,11 @@ func (p *ListComponentVersionsPaginator) 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.ListComponentVersions(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/greengrassv2/api_op_ListComponents.go b/service/greengrassv2/api_op_ListComponents.go index 8f5c8eca6b5..37abda60b98 100644 --- a/service/greengrassv2/api_op_ListComponents.go +++ b/service/greengrassv2/api_op_ListComponents.go @@ -32,7 +32,7 @@ func (c *Client) ListComponents(ctx context.Context, params *ListComponentsInput type ListComponentsInput struct { // The maximum number of results to be returned per paginated request. - MaxResults int32 + MaxResults *int32 // The token to be used for the next set of paginated results. NextToken *string @@ -152,8 +152,8 @@ func NewListComponentsPaginator(client ListComponentsAPIClient, params *ListComp } options := ListComponentsPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults + if params.MaxResults != nil { + options.Limit = *params.MaxResults } for _, fn := range optFns { @@ -183,7 +183,11 @@ func (p *ListComponentsPaginator) 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.ListComponents(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/greengrassv2/api_op_ListCoreDevices.go b/service/greengrassv2/api_op_ListCoreDevices.go index 65934402f39..9743a2f6acd 100644 --- a/service/greengrassv2/api_op_ListCoreDevices.go +++ b/service/greengrassv2/api_op_ListCoreDevices.go @@ -53,7 +53,7 @@ func (c *Client) ListCoreDevices(ctx context.Context, params *ListCoreDevicesInp type ListCoreDevicesInput struct { // The maximum number of results to be returned per paginated request. - MaxResults int32 + MaxResults *int32 // The token to be used for the next set of paginated results. NextToken *string @@ -189,8 +189,8 @@ func NewListCoreDevicesPaginator(client ListCoreDevicesAPIClient, params *ListCo } options := ListCoreDevicesPaginatorOptions{} - 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 *ListCoreDevicesPaginator) 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.ListCoreDevices(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/greengrassv2/api_op_ListDeployments.go b/service/greengrassv2/api_op_ListDeployments.go index ed2f2ace57a..ac8421f3ec9 100644 --- a/service/greengrassv2/api_op_ListDeployments.go +++ b/service/greengrassv2/api_op_ListDeployments.go @@ -42,7 +42,7 @@ type ListDeploymentsInput struct { HistoryFilter types.DeploymentHistoryFilter // The maximum number of results to be returned per paginated request. - MaxResults int32 + MaxResults *int32 // The token to be used for the next set of paginated results. NextToken *string @@ -164,8 +164,8 @@ func NewListDeploymentsPaginator(client ListDeploymentsAPIClient, params *ListDe } options := ListDeploymentsPaginatorOptions{} - 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 *ListDeploymentsPaginator) 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.ListDeployments(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/greengrassv2/api_op_ListEffectiveDeployments.go b/service/greengrassv2/api_op_ListEffectiveDeployments.go index ef3497de423..46a2efbf002 100644 --- a/service/greengrassv2/api_op_ListEffectiveDeployments.go +++ b/service/greengrassv2/api_op_ListEffectiveDeployments.go @@ -37,7 +37,7 @@ type ListEffectiveDeploymentsInput struct { CoreDeviceThingName *string // The maximum number of results to be returned per paginated request. - MaxResults int32 + MaxResults *int32 // The token to be used for the next set of paginated results. NextToken *string @@ -159,8 +159,8 @@ func NewListEffectiveDeploymentsPaginator(client ListEffectiveDeploymentsAPIClie } options := ListEffectiveDeploymentsPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults + if params.MaxResults != nil { + options.Limit = *params.MaxResults } for _, fn := range optFns { @@ -190,7 +190,11 @@ func (p *ListEffectiveDeploymentsPaginator) 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.ListEffectiveDeployments(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/greengrassv2/api_op_ListInstalledComponents.go b/service/greengrassv2/api_op_ListInstalledComponents.go index cbdeafe3b54..3b60519a0f9 100644 --- a/service/greengrassv2/api_op_ListInstalledComponents.go +++ b/service/greengrassv2/api_op_ListInstalledComponents.go @@ -61,7 +61,7 @@ type ListInstalledComponentsInput struct { CoreDeviceThingName *string // The maximum number of results to be returned per paginated request. - MaxResults int32 + MaxResults *int32 // The token to be used for the next set of paginated results. NextToken *string @@ -200,8 +200,8 @@ func NewListInstalledComponentsPaginator(client ListInstalledComponentsAPIClient } options := ListInstalledComponentsPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults + if params.MaxResults != nil { + options.Limit = *params.MaxResults } for _, fn := range optFns { @@ -231,7 +231,11 @@ func (p *ListInstalledComponentsPaginator) 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.ListInstalledComponents(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/greengrassv2/deserializers.go b/service/greengrassv2/deserializers.go index 605296dfad7..977a268ba49 100644 --- a/service/greengrassv2/deserializers.go +++ b/service/greengrassv2/deserializers.go @@ -6313,7 +6313,7 @@ func awsRestjson1_deserializeDocumentDeploymentComponentUpdatePolicy(v **types.D if err != nil { return err } - sv.TimeoutInSeconds = int32(i64) + sv.TimeoutInSeconds = ptr.Int32(int32(i64)) } default: @@ -6357,7 +6357,7 @@ func awsRestjson1_deserializeDocumentDeploymentConfigurationValidationPolicy(v * if err != nil { return err } - sv.TimeoutInSeconds = int32(i64) + sv.TimeoutInSeconds = ptr.Int32(int32(i64)) } default: @@ -7142,7 +7142,7 @@ func awsRestjson1_deserializeDocumentIoTJobExecutionsRolloutConfig(v **types.IoT if err != nil { return err } - sv.MaximumPerMinute = int32(i64) + sv.MaximumPerMinute = ptr.Int32(int32(i64)) } default: @@ -7269,7 +7269,7 @@ func awsRestjson1_deserializeDocumentIoTJobRateIncreaseCriteria(v **types.IoTJob if err != nil { return err } - sv.NumberOfNotifiedThings = int32(i64) + sv.NumberOfNotifiedThings = ptr.Int32(int32(i64)) } case "numberOfSucceededThings": @@ -7282,7 +7282,7 @@ func awsRestjson1_deserializeDocumentIoTJobRateIncreaseCriteria(v **types.IoTJob if err != nil { return err } - sv.NumberOfSucceededThings = int32(i64) + sv.NumberOfSucceededThings = ptr.Int32(int32(i64)) } default: @@ -7326,7 +7326,7 @@ func awsRestjson1_deserializeDocumentIoTJobTimeoutConfig(v **types.IoTJobTimeout if err != nil { return err } - sv.InProgressTimeoutInMinutes = i64 + sv.InProgressTimeoutInMinutes = ptr.Int64(i64) } default: diff --git a/service/greengrassv2/serializers.go b/service/greengrassv2/serializers.go index c3742a52545..22618ec647b 100644 --- a/service/greengrassv2/serializers.go +++ b/service/greengrassv2/serializers.go @@ -1180,8 +1180,8 @@ func awsRestjson1_serializeOpHttpBindingsListClientDevicesAssociatedWithCoreDevi } } - if v.MaxResults != 0 { - encoder.SetQuery("maxResults").Integer(v.MaxResults) + if v.MaxResults != nil { + encoder.SetQuery("maxResults").Integer(*v.MaxResults) } if v.NextToken != nil { @@ -1237,8 +1237,8 @@ func awsRestjson1_serializeOpHttpBindingsListComponentsInput(v *ListComponentsIn 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 { @@ -1307,8 +1307,8 @@ func awsRestjson1_serializeOpHttpBindingsListComponentVersionsInput(v *ListCompo } } - if v.MaxResults != 0 { - encoder.SetQuery("maxResults").Integer(v.MaxResults) + if v.MaxResults != nil { + encoder.SetQuery("maxResults").Integer(*v.MaxResults) } if v.NextToken != nil { @@ -1364,8 +1364,8 @@ func awsRestjson1_serializeOpHttpBindingsListCoreDevicesInput(v *ListCoreDevices 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 { @@ -1433,8 +1433,8 @@ func awsRestjson1_serializeOpHttpBindingsListDeploymentsInput(v *ListDeployments encoder.SetQuery("historyFilter").String(string(v.HistoryFilter)) } - if v.MaxResults != 0 { - encoder.SetQuery("maxResults").Integer(v.MaxResults) + if v.MaxResults != nil { + encoder.SetQuery("maxResults").Integer(*v.MaxResults) } if v.NextToken != nil { @@ -1503,8 +1503,8 @@ func awsRestjson1_serializeOpHttpBindingsListEffectiveDeploymentsInput(v *ListEf } } - if v.MaxResults != 0 { - encoder.SetQuery("maxResults").Integer(v.MaxResults) + if v.MaxResults != nil { + encoder.SetQuery("maxResults").Integer(*v.MaxResults) } if v.NextToken != nil { @@ -1569,8 +1569,8 @@ func awsRestjson1_serializeOpHttpBindingsListInstalledComponentsInput(v *ListIns } } - if v.MaxResults != 0 { - encoder.SetQuery("maxResults").Integer(v.MaxResults) + if v.MaxResults != nil { + encoder.SetQuery("maxResults").Integer(*v.MaxResults) } if v.NextToken != nil { @@ -2228,9 +2228,9 @@ func awsRestjson1_serializeDocumentDeploymentComponentUpdatePolicy(v *types.Depl ok.String(string(v.Action)) } - if v.TimeoutInSeconds != 0 { + if v.TimeoutInSeconds != nil { ok := object.Key("timeoutInSeconds") - ok.Integer(v.TimeoutInSeconds) + ok.Integer(*v.TimeoutInSeconds) } return nil @@ -2240,9 +2240,9 @@ func awsRestjson1_serializeDocumentDeploymentConfigurationValidationPolicy(v *ty object := value.Object() defer object.Close() - if v.TimeoutInSeconds != 0 { + if v.TimeoutInSeconds != nil { ok := object.Key("timeoutInSeconds") - ok.Integer(v.TimeoutInSeconds) + ok.Integer(*v.TimeoutInSeconds) } return nil @@ -2405,9 +2405,9 @@ func awsRestjson1_serializeDocumentIoTJobExecutionsRolloutConfig(v *types.IoTJob } } - if v.MaximumPerMinute != 0 { + if v.MaximumPerMinute != nil { ok := object.Key("maximumPerMinute") - ok.Integer(v.MaximumPerMinute) + ok.Integer(*v.MaximumPerMinute) } return nil @@ -2454,14 +2454,14 @@ func awsRestjson1_serializeDocumentIoTJobRateIncreaseCriteria(v *types.IoTJobRat object := value.Object() defer object.Close() - if v.NumberOfNotifiedThings != 0 { + if v.NumberOfNotifiedThings != nil { ok := object.Key("numberOfNotifiedThings") - ok.Integer(v.NumberOfNotifiedThings) + ok.Integer(*v.NumberOfNotifiedThings) } - if v.NumberOfSucceededThings != 0 { + if v.NumberOfSucceededThings != nil { ok := object.Key("numberOfSucceededThings") - ok.Integer(v.NumberOfSucceededThings) + ok.Integer(*v.NumberOfSucceededThings) } return nil @@ -2471,9 +2471,9 @@ func awsRestjson1_serializeDocumentIoTJobTimeoutConfig(v *types.IoTJobTimeoutCon object := value.Object() defer object.Close() - if v.InProgressTimeoutInMinutes != 0 { + if v.InProgressTimeoutInMinutes != nil { ok := object.Key("inProgressTimeoutInMinutes") - ok.Long(v.InProgressTimeoutInMinutes) + ok.Long(*v.InProgressTimeoutInMinutes) } return nil @@ -2490,14 +2490,14 @@ func awsRestjson1_serializeDocumentLambdaContainerParams(v *types.LambdaContaine } } - if v.MemorySizeInKB != 0 { + if v.MemorySizeInKB != nil { ok := object.Key("memorySizeInKB") - ok.Integer(v.MemorySizeInKB) + ok.Integer(*v.MemorySizeInKB) } - if v.MountROSysfs { + if v.MountROSysfs != nil { ok := object.Key("mountROSysfs") - ok.Boolean(v.MountROSysfs) + ok.Boolean(*v.MountROSysfs) } if v.Volumes != nil { @@ -2527,9 +2527,9 @@ func awsRestjson1_serializeDocumentLambdaDeviceMount(v *types.LambdaDeviceMount, object := value.Object() defer object.Close() - if v.AddGroupOwner { + if v.AddGroupOwner != nil { ok := object.Key("addGroupOwner") - ok.Boolean(v.AddGroupOwner) + ok.Boolean(*v.AddGroupOwner) } if v.Path != nil { @@ -2634,34 +2634,34 @@ func awsRestjson1_serializeDocumentLambdaExecutionParameters(v *types.LambdaExec } } - if v.MaxIdleTimeInSeconds != 0 { + if v.MaxIdleTimeInSeconds != nil { ok := object.Key("maxIdleTimeInSeconds") - ok.Integer(v.MaxIdleTimeInSeconds) + ok.Integer(*v.MaxIdleTimeInSeconds) } - if v.MaxInstancesCount != 0 { + if v.MaxInstancesCount != nil { ok := object.Key("maxInstancesCount") - ok.Integer(v.MaxInstancesCount) + ok.Integer(*v.MaxInstancesCount) } - if v.MaxQueueSize != 0 { + if v.MaxQueueSize != nil { ok := object.Key("maxQueueSize") - ok.Integer(v.MaxQueueSize) + ok.Integer(*v.MaxQueueSize) } - if v.Pinned { + if v.Pinned != nil { ok := object.Key("pinned") - ok.Boolean(v.Pinned) + ok.Boolean(*v.Pinned) } - if v.StatusTimeoutInSeconds != 0 { + if v.StatusTimeoutInSeconds != nil { ok := object.Key("statusTimeoutInSeconds") - ok.Integer(v.StatusTimeoutInSeconds) + ok.Integer(*v.StatusTimeoutInSeconds) } - if v.TimeoutInSeconds != 0 { + if v.TimeoutInSeconds != nil { ok := object.Key("timeoutInSeconds") - ok.Integer(v.TimeoutInSeconds) + ok.Integer(*v.TimeoutInSeconds) } return nil @@ -2746,9 +2746,9 @@ func awsRestjson1_serializeDocumentLambdaVolumeMount(v *types.LambdaVolumeMount, object := value.Object() defer object.Close() - if v.AddGroupOwner { + if v.AddGroupOwner != nil { ok := object.Key("addGroupOwner") - ok.Boolean(v.AddGroupOwner) + ok.Boolean(*v.AddGroupOwner) } if v.DestinationPath != nil { diff --git a/service/greengrassv2/types/types.go b/service/greengrassv2/types/types.go index f90f93037e5..a8f85e1ffd0 100644 --- a/service/greengrassv2/types/types.go +++ b/service/greengrassv2/types/types.go @@ -420,7 +420,7 @@ type DeploymentComponentUpdatePolicy struct { // The amount of time in seconds that each component on a device has to report that // it's safe to update. If the component waits for longer than this timeout, then // the deployment proceeds on the device. Default: 60 - TimeoutInSeconds int32 + TimeoutInSeconds *int32 noSmithyDocumentSerde } @@ -441,7 +441,7 @@ type DeploymentConfigurationValidationPolicy struct { // The amount of time in seconds that a component can validate its configuration // updates. If the validation time exceeds this timeout, then the deployment // proceeds for the device. Default: 30 - TimeoutInSeconds int32 + TimeoutInSeconds *int32 noSmithyDocumentSerde } @@ -655,7 +655,7 @@ type IoTJobExecutionsRolloutConfig struct { // The maximum number of devices that receive a pending job notification, per // minute. - MaximumPerMinute int32 + MaximumPerMinute *int32 noSmithyDocumentSerde } @@ -692,11 +692,11 @@ type IoTJobRateIncreaseCriteria struct { // The number of devices to receive the job notification before the rollout rate // increases. - NumberOfNotifiedThings int32 + NumberOfNotifiedThings *int32 // The number of devices to successfully run the configuration job before the // rollout rate increases. - NumberOfSucceededThings int32 + NumberOfSucceededThings *int32 noSmithyDocumentSerde } @@ -709,7 +709,7 @@ type IoTJobTimeoutConfig struct { // change to a terminal state before the time expires, then the job status is set // to TIMED_OUT. The timeout interval must be between 1 minute and 7 days (10080 // minutes). - InProgressTimeoutInMinutes int64 + InProgressTimeoutInMinutes *int64 noSmithyDocumentSerde } @@ -722,11 +722,11 @@ type LambdaContainerParams struct { Devices []LambdaDeviceMount // The memory size of the container, expressed in kilobytes. Default: 16384 (16 MB) - MemorySizeInKB int32 + MemorySizeInKB *int32 // Whether or not the container can read information from the device's /sys folder. // Default: false - MountROSysfs bool + MountROSysfs *bool // The list of volumes that the container can access. Volumes []LambdaVolumeMount @@ -745,7 +745,7 @@ type LambdaDeviceMount struct { // Whether or not to add the component's system user as an owner of the device. // Default: false - AddGroupOwner bool + AddGroupOwner *bool // The permission to access the device: read/only (ro) or read/write (rw). Default: // ro @@ -804,16 +804,16 @@ type LambdaExecutionParameters struct { // The maximum amount of time in seconds that a non-pinned Lambda function can idle // before the IoT Greengrass Core software stops its process. - MaxIdleTimeInSeconds int32 + MaxIdleTimeInSeconds *int32 // The maximum number of instances that a non-pinned Lambda function can run at the // same time. - MaxInstancesCount int32 + MaxInstancesCount *int32 // The maximum size of the message queue for the Lambda function component. The IoT // Greengrass core stores messages in a FIFO (first-in-first-out) queue until it // can run the Lambda function to consume each message. - MaxQueueSize int32 + MaxQueueSize *int32 // Whether or not the Lambda function is pinned, or long-lived. // @@ -827,15 +827,15 @@ type LambdaExecutionParameters struct { // of the function. // // Default: true - Pinned bool + Pinned *bool // The interval in seconds at which a pinned (also known as long-lived) Lambda // function component sends status updates to the Lambda manager component. - StatusTimeoutInSeconds int32 + StatusTimeoutInSeconds *int32 // The maximum amount of time in seconds that the Lambda function can process a // work item. - TimeoutInSeconds int32 + TimeoutInSeconds *int32 noSmithyDocumentSerde } @@ -904,7 +904,7 @@ type LambdaVolumeMount struct { // Whether or not to add the IoT Greengrass user group as an owner of the volume. // Default: false - AddGroupOwner bool + AddGroupOwner *bool // The permission to access the volume: read/only (ro) or read/write (rw). Default: // ro diff --git a/service/imagebuilder/api_op_ListComponentBuildVersions.go b/service/imagebuilder/api_op_ListComponentBuildVersions.go index dd572263c75..317b219a4c5 100644 --- a/service/imagebuilder/api_op_ListComponentBuildVersions.go +++ b/service/imagebuilder/api_op_ListComponentBuildVersions.go @@ -43,7 +43,7 @@ type ListComponentBuildVersionsInput struct { ComponentVersionArn *string // The maximum items to return in a request. - MaxResults int32 + MaxResults *int32 // A token to specify where to start paginating. This is the NextToken from a // previously truncated response. @@ -171,8 +171,8 @@ func NewListComponentBuildVersionsPaginator(client ListComponentBuildVersionsAPI } options := ListComponentBuildVersionsPaginatorOptions{} - 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 *ListComponentBuildVersionsPaginator) 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.ListComponentBuildVersions(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/imagebuilder/api_op_ListComponents.go b/service/imagebuilder/api_op_ListComponents.go index e70994fbea7..6b746e4b63f 100644 --- a/service/imagebuilder/api_op_ListComponents.go +++ b/service/imagebuilder/api_op_ListComponents.go @@ -56,7 +56,7 @@ type ListComponentsInput struct { Filters []types.Filter // The maximum items to return in a request. - MaxResults int32 + MaxResults *int32 // A token to specify where to start paginating. This is the NextToken from a // previously truncated response. @@ -185,8 +185,8 @@ func NewListComponentsPaginator(client ListComponentsAPIClient, params *ListComp } options := ListComponentsPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults + if params.MaxResults != nil { + options.Limit = *params.MaxResults } for _, fn := range optFns { @@ -216,7 +216,11 @@ func (p *ListComponentsPaginator) 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.ListComponents(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/imagebuilder/api_op_ListContainerRecipes.go b/service/imagebuilder/api_op_ListContainerRecipes.go index e4ae8b9c51d..3c670d64d88 100644 --- a/service/imagebuilder/api_op_ListContainerRecipes.go +++ b/service/imagebuilder/api_op_ListContainerRecipes.go @@ -43,7 +43,7 @@ type ListContainerRecipesInput struct { Filters []types.Filter // The maximum number of results to return in the list. - MaxResults int32 + MaxResults *int32 // Provides a token for pagination, which determines where to begin the next set of // results when the current set reaches the maximum for one request. @@ -172,8 +172,8 @@ func NewListContainerRecipesPaginator(client ListContainerRecipesAPIClient, para } options := ListContainerRecipesPaginatorOptions{} - 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 *ListContainerRecipesPaginator) 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.ListContainerRecipes(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/imagebuilder/api_op_ListDistributionConfigurations.go b/service/imagebuilder/api_op_ListDistributionConfigurations.go index 268a4dc51c9..57458ec3a54 100644 --- a/service/imagebuilder/api_op_ListDistributionConfigurations.go +++ b/service/imagebuilder/api_op_ListDistributionConfigurations.go @@ -34,7 +34,7 @@ type ListDistributionConfigurationsInput struct { Filters []types.Filter // The maximum items to return in a request. - MaxResults int32 + MaxResults *int32 // A token to specify where to start paginating. This is the NextToken from a // previously truncated response. @@ -159,8 +159,8 @@ func NewListDistributionConfigurationsPaginator(client ListDistributionConfigura } options := ListDistributionConfigurationsPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults + if params.MaxResults != nil { + options.Limit = *params.MaxResults } for _, fn := range optFns { @@ -190,7 +190,11 @@ func (p *ListDistributionConfigurationsPaginator) 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.ListDistributionConfigurations(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/imagebuilder/api_op_ListImageBuildVersions.go b/service/imagebuilder/api_op_ListImageBuildVersions.go index ef6066796eb..d1f24d29029 100644 --- a/service/imagebuilder/api_op_ListImageBuildVersions.go +++ b/service/imagebuilder/api_op_ListImageBuildVersions.go @@ -51,7 +51,7 @@ type ListImageBuildVersionsInput struct { Filters []types.Filter // The maximum items to return in a request. - MaxResults int32 + MaxResults *int32 // A token to specify where to start paginating. This is the NextToken from a // previously truncated response. @@ -177,8 +177,8 @@ func NewListImageBuildVersionsPaginator(client ListImageBuildVersionsAPIClient, } options := ListImageBuildVersionsPaginatorOptions{} - 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 *ListImageBuildVersionsPaginator) 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.ListImageBuildVersions(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/imagebuilder/api_op_ListImagePackages.go b/service/imagebuilder/api_op_ListImagePackages.go index b2d574a31cd..88585dc2381 100644 --- a/service/imagebuilder/api_op_ListImagePackages.go +++ b/service/imagebuilder/api_op_ListImagePackages.go @@ -37,7 +37,7 @@ type ListImagePackagesInput struct { ImageBuildVersionArn *string // The maxiumum number of results to return from the ListImagePackages request. - MaxResults int32 + MaxResults *int32 // A token to specify where to start paginating. This is the NextToken from a // previously truncated response. @@ -161,8 +161,8 @@ func NewListImagePackagesPaginator(client ListImagePackagesAPIClient, params *Li } options := ListImagePackagesPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults + if params.MaxResults != nil { + options.Limit = *params.MaxResults } for _, fn := range optFns { @@ -192,7 +192,11 @@ func (p *ListImagePackagesPaginator) 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.ListImagePackages(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/imagebuilder/api_op_ListImagePipelineImages.go b/service/imagebuilder/api_op_ListImagePipelineImages.go index b272ababd8c..08db6e34d0f 100644 --- a/service/imagebuilder/api_op_ListImagePipelineImages.go +++ b/service/imagebuilder/api_op_ListImagePipelineImages.go @@ -44,7 +44,7 @@ type ListImagePipelineImagesInput struct { Filters []types.Filter // The maximum items to return in a request. - MaxResults int32 + MaxResults *int32 // A token to specify where to start paginating. This is the NextToken from a // previously truncated response. @@ -171,8 +171,8 @@ func NewListImagePipelineImagesPaginator(client ListImagePipelineImagesAPIClient } options := ListImagePipelineImagesPaginatorOptions{} - 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 *ListImagePipelineImagesPaginator) 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.ListImagePipelineImages(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/imagebuilder/api_op_ListImagePipelines.go b/service/imagebuilder/api_op_ListImagePipelines.go index 78da99779e0..bb5438e0733 100644 --- a/service/imagebuilder/api_op_ListImagePipelines.go +++ b/service/imagebuilder/api_op_ListImagePipelines.go @@ -48,7 +48,7 @@ type ListImagePipelinesInput struct { Filters []types.Filter // The maximum items to return in a request. - MaxResults int32 + MaxResults *int32 // A token to specify where to start paginating. This is the NextToken from a // previously truncated response. @@ -171,8 +171,8 @@ func NewListImagePipelinesPaginator(client ListImagePipelinesAPIClient, params * } options := ListImagePipelinesPaginatorOptions{} - 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 *ListImagePipelinesPaginator) 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.ListImagePipelines(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/imagebuilder/api_op_ListImageRecipes.go b/service/imagebuilder/api_op_ListImageRecipes.go index d675cfea02f..3e9a8b83aac 100644 --- a/service/imagebuilder/api_op_ListImageRecipes.go +++ b/service/imagebuilder/api_op_ListImageRecipes.go @@ -41,7 +41,7 @@ type ListImageRecipesInput struct { Filters []types.Filter // The maximum items to return in a request. - MaxResults int32 + MaxResults *int32 // A token to specify where to start paginating. This is the NextToken from a // previously truncated response. @@ -169,8 +169,8 @@ func NewListImageRecipesPaginator(client ListImageRecipesAPIClient, params *List } options := ListImageRecipesPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults + if params.MaxResults != nil { + options.Limit = *params.MaxResults } for _, fn := range optFns { @@ -200,7 +200,11 @@ func (p *ListImageRecipesPaginator) 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.ListImageRecipes(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/imagebuilder/api_op_ListImages.go b/service/imagebuilder/api_op_ListImages.go index b0a29b24838..306d57cdfb8 100644 --- a/service/imagebuilder/api_op_ListImages.go +++ b/service/imagebuilder/api_op_ListImages.go @@ -51,7 +51,7 @@ type ListImagesInput struct { IncludeDeprecated *bool // The maximum items to return in a request. - MaxResults int32 + MaxResults *int32 // A token to specify where to start paginating. This is the NextToken from a // previously truncated response. @@ -183,8 +183,8 @@ func NewListImagesPaginator(client ListImagesAPIClient, params *ListImagesInput, } options := ListImagesPaginatorOptions{} - 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 *ListImagesPaginator) 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.ListImages(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/imagebuilder/api_op_ListInfrastructureConfigurations.go b/service/imagebuilder/api_op_ListInfrastructureConfigurations.go index 92193c8adee..5e6e1a40bc3 100644 --- a/service/imagebuilder/api_op_ListInfrastructureConfigurations.go +++ b/service/imagebuilder/api_op_ListInfrastructureConfigurations.go @@ -34,7 +34,7 @@ type ListInfrastructureConfigurationsInput struct { Filters []types.Filter // The maximum items to return in a request. - MaxResults int32 + MaxResults *int32 // A token to specify where to start paginating. This is the NextToken from a // previously truncated response. @@ -159,8 +159,8 @@ func NewListInfrastructureConfigurationsPaginator(client ListInfrastructureConfi } options := ListInfrastructureConfigurationsPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults + if params.MaxResults != nil { + options.Limit = *params.MaxResults } for _, fn := range optFns { @@ -190,7 +190,11 @@ func (p *ListInfrastructureConfigurationsPaginator) 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.ListInfrastructureConfigurations(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/imagebuilder/serializers.go b/service/imagebuilder/serializers.go index 22027b707f1..91abff8919e 100644 --- a/service/imagebuilder/serializers.go +++ b/service/imagebuilder/serializers.go @@ -2203,9 +2203,9 @@ func awsRestjson1_serializeOpDocumentListComponentBuildVersionsInput(v *ListComp ok.String(*v.ComponentVersionArn) } - if v.MaxResults != 0 { + if v.MaxResults != nil { ok := object.Key("maxResults") - ok.Integer(v.MaxResults) + ok.Integer(*v.MaxResults) } if v.NextToken != nil { @@ -2288,9 +2288,9 @@ func awsRestjson1_serializeOpDocumentListComponentsInput(v *ListComponentsInput, } } - if v.MaxResults != 0 { + if v.MaxResults != nil { ok := object.Key("maxResults") - ok.Integer(v.MaxResults) + ok.Integer(*v.MaxResults) } if v.NextToken != nil { @@ -2373,9 +2373,9 @@ func awsRestjson1_serializeOpDocumentListContainerRecipesInput(v *ListContainerR } } - if v.MaxResults != 0 { + if v.MaxResults != nil { ok := object.Key("maxResults") - ok.Integer(v.MaxResults) + ok.Integer(*v.MaxResults) } if v.NextToken != nil { @@ -2458,9 +2458,9 @@ func awsRestjson1_serializeOpDocumentListDistributionConfigurationsInput(v *List } } - if v.MaxResults != 0 { + if v.MaxResults != nil { ok := object.Key("maxResults") - ok.Integer(v.MaxResults) + ok.Integer(*v.MaxResults) } if v.NextToken != nil { @@ -2543,9 +2543,9 @@ func awsRestjson1_serializeOpDocumentListImageBuildVersionsInput(v *ListImageBui ok.String(*v.ImageVersionArn) } - if v.MaxResults != 0 { + if v.MaxResults != nil { ok := object.Key("maxResults") - ok.Integer(v.MaxResults) + ok.Integer(*v.MaxResults) } if v.NextToken != nil { @@ -2621,9 +2621,9 @@ func awsRestjson1_serializeOpDocumentListImagePackagesInput(v *ListImagePackages ok.String(*v.ImageBuildVersionArn) } - if v.MaxResults != 0 { + if v.MaxResults != nil { ok := object.Key("maxResults") - ok.Integer(v.MaxResults) + ok.Integer(*v.MaxResults) } if v.NextToken != nil { @@ -2706,9 +2706,9 @@ func awsRestjson1_serializeOpDocumentListImagePipelineImagesInput(v *ListImagePi ok.String(*v.ImagePipelineArn) } - if v.MaxResults != 0 { + if v.MaxResults != nil { ok := object.Key("maxResults") - ok.Integer(v.MaxResults) + ok.Integer(*v.MaxResults) } if v.NextToken != nil { @@ -2786,9 +2786,9 @@ func awsRestjson1_serializeOpDocumentListImagePipelinesInput(v *ListImagePipelin } } - if v.MaxResults != 0 { + if v.MaxResults != nil { ok := object.Key("maxResults") - ok.Integer(v.MaxResults) + ok.Integer(*v.MaxResults) } if v.NextToken != nil { @@ -2866,9 +2866,9 @@ func awsRestjson1_serializeOpDocumentListImageRecipesInput(v *ListImageRecipesIn } } - if v.MaxResults != 0 { + if v.MaxResults != nil { ok := object.Key("maxResults") - ok.Integer(v.MaxResults) + ok.Integer(*v.MaxResults) } if v.NextToken != nil { @@ -2961,9 +2961,9 @@ func awsRestjson1_serializeOpDocumentListImagesInput(v *ListImagesInput, value s ok.Boolean(*v.IncludeDeprecated) } - if v.MaxResults != 0 { + if v.MaxResults != nil { ok := object.Key("maxResults") - ok.Integer(v.MaxResults) + ok.Integer(*v.MaxResults) } if v.NextToken != nil { @@ -3046,9 +3046,9 @@ func awsRestjson1_serializeOpDocumentListInfrastructureConfigurationsInput(v *Li } } - if v.MaxResults != 0 { + if v.MaxResults != nil { ok := object.Key("maxResults") - ok.Integer(v.MaxResults) + ok.Integer(*v.MaxResults) } if v.NextToken != nil { diff --git a/service/iot/deserializers.go b/service/iot/deserializers.go index 8b2d998b624..1330fdc191f 100644 --- a/service/iot/deserializers.go +++ b/service/iot/deserializers.go @@ -39689,7 +39689,7 @@ func awsRestjson1_deserializeDocumentAuthorizerConfig(v **types.AuthorizerConfig if !ok { return fmt.Errorf("expected AllowAuthorizerOverride to be of type *bool, got %T instead", value) } - sv.AllowAuthorizerOverride = jtv + sv.AllowAuthorizerOverride = ptr.Bool(jtv) } case "defaultAuthorizerName": @@ -51397,7 +51397,7 @@ func awsRestjson1_deserializeDocumentStatistics(v **types.Statistics, value inte if err != nil { return err } - sv.Average = f64 + sv.Average = ptr.Float64(f64) case string: var f64 float64 @@ -51415,7 +51415,7 @@ func awsRestjson1_deserializeDocumentStatistics(v **types.Statistics, value inte return fmt.Errorf("unknown JSON number value: %s", jtv) } - sv.Average = f64 + sv.Average = ptr.Float64(f64) default: return fmt.Errorf("expected Average to be a JSON Number, got %T instead", value) @@ -51444,7 +51444,7 @@ func awsRestjson1_deserializeDocumentStatistics(v **types.Statistics, value inte if err != nil { return err } - sv.Maximum = f64 + sv.Maximum = ptr.Float64(f64) case string: var f64 float64 @@ -51462,7 +51462,7 @@ func awsRestjson1_deserializeDocumentStatistics(v **types.Statistics, value inte return fmt.Errorf("unknown JSON number value: %s", jtv) } - sv.Maximum = f64 + sv.Maximum = ptr.Float64(f64) default: return fmt.Errorf("expected Maximum to be a JSON Number, got %T instead", value) @@ -51478,7 +51478,7 @@ func awsRestjson1_deserializeDocumentStatistics(v **types.Statistics, value inte if err != nil { return err } - sv.Minimum = f64 + sv.Minimum = ptr.Float64(f64) case string: var f64 float64 @@ -51496,7 +51496,7 @@ func awsRestjson1_deserializeDocumentStatistics(v **types.Statistics, value inte return fmt.Errorf("unknown JSON number value: %s", jtv) } - sv.Minimum = f64 + sv.Minimum = ptr.Float64(f64) default: return fmt.Errorf("expected Minimum to be a JSON Number, got %T instead", value) @@ -51512,7 +51512,7 @@ func awsRestjson1_deserializeDocumentStatistics(v **types.Statistics, value inte if err != nil { return err } - sv.StdDeviation = f64 + sv.StdDeviation = ptr.Float64(f64) case string: var f64 float64 @@ -51530,7 +51530,7 @@ func awsRestjson1_deserializeDocumentStatistics(v **types.Statistics, value inte return fmt.Errorf("unknown JSON number value: %s", jtv) } - sv.StdDeviation = f64 + sv.StdDeviation = ptr.Float64(f64) default: return fmt.Errorf("expected StdDeviation to be a JSON Number, got %T instead", value) @@ -51546,7 +51546,7 @@ func awsRestjson1_deserializeDocumentStatistics(v **types.Statistics, value inte if err != nil { return err } - sv.Sum = f64 + sv.Sum = ptr.Float64(f64) case string: var f64 float64 @@ -51564,7 +51564,7 @@ func awsRestjson1_deserializeDocumentStatistics(v **types.Statistics, value inte return fmt.Errorf("unknown JSON number value: %s", jtv) } - sv.Sum = f64 + sv.Sum = ptr.Float64(f64) default: return fmt.Errorf("expected Sum to be a JSON Number, got %T instead", value) @@ -51580,7 +51580,7 @@ func awsRestjson1_deserializeDocumentStatistics(v **types.Statistics, value inte if err != nil { return err } - sv.SumOfSquares = f64 + sv.SumOfSquares = ptr.Float64(f64) case string: var f64 float64 @@ -51598,7 +51598,7 @@ func awsRestjson1_deserializeDocumentStatistics(v **types.Statistics, value inte return fmt.Errorf("unknown JSON number value: %s", jtv) } - sv.SumOfSquares = f64 + sv.SumOfSquares = ptr.Float64(f64) default: return fmt.Errorf("expected SumOfSquares to be a JSON Number, got %T instead", value) @@ -51614,7 +51614,7 @@ func awsRestjson1_deserializeDocumentStatistics(v **types.Statistics, value inte if err != nil { return err } - sv.Variance = f64 + sv.Variance = ptr.Float64(f64) case string: var f64 float64 @@ -51632,7 +51632,7 @@ func awsRestjson1_deserializeDocumentStatistics(v **types.Statistics, value inte return fmt.Errorf("unknown JSON number value: %s", jtv) } - sv.Variance = f64 + sv.Variance = ptr.Float64(f64) default: return fmt.Errorf("expected Variance to be a JSON Number, got %T instead", value) diff --git a/service/iot/serializers.go b/service/iot/serializers.go index 029407aa5f5..fdf5398bf81 100644 --- a/service/iot/serializers.go +++ b/service/iot/serializers.go @@ -17924,9 +17924,9 @@ func awsRestjson1_serializeDocumentAuthorizerConfig(v *types.AuthorizerConfig, v object := value.Object() defer object.Close() - if v.AllowAuthorizerOverride { + if v.AllowAuthorizerOverride != nil { ok := object.Key("allowAuthorizerOverride") - ok.Boolean(v.AllowAuthorizerOverride) + ok.Boolean(*v.AllowAuthorizerOverride) } if v.DefaultAuthorizerName != nil { diff --git a/service/iot/types/types.go b/service/iot/types/types.go index a0d20fda436..1982349cdde 100644 --- a/service/iot/types/types.go +++ b/service/iot/types/types.go @@ -561,7 +561,7 @@ type AuthorizerConfig struct { // A Boolean that specifies whether the domain configuration's authorization // service can be overridden. - AllowAuthorizerOverride bool + AllowAuthorizerOverride *bool // The name of the authorization service for a domain configuration. DefaultAuthorizerName *string @@ -3275,29 +3275,29 @@ type StatisticalThreshold struct { type Statistics struct { // The average of the aggregated field values. - Average float64 + Average *float64 // The count of things that match the query string criteria and contain a valid // aggregation field value. Count int32 // The maximum aggregated field value. - Maximum float64 + Maximum *float64 // The minimum aggregated field value. - Minimum float64 + Minimum *float64 // The standard deviation of the aggregated field values. - StdDeviation float64 + StdDeviation *float64 // The sum of the aggregated field values. - Sum float64 + Sum *float64 // The sum of the squares of the aggregated field values. - SumOfSquares float64 + SumOfSquares *float64 // The variance of the aggregated field values. - Variance float64 + Variance *float64 noSmithyDocumentSerde } diff --git a/service/iotanalytics/deserializers.go b/service/iotanalytics/deserializers.go index 82c2401c0c7..a1a237afc01 100644 --- a/service/iotanalytics/deserializers.go +++ b/service/iotanalytics/deserializers.go @@ -10289,7 +10289,7 @@ func awsRestjson1_deserializeDocumentVariable(v **types.Variable, value interfac if err != nil { return err } - sv.DoubleValue = f64 + sv.DoubleValue = ptr.Float64(f64) case string: var f64 float64 @@ -10307,7 +10307,7 @@ func awsRestjson1_deserializeDocumentVariable(v **types.Variable, value interfac return fmt.Errorf("unknown JSON number value: %s", jtv) } - sv.DoubleValue = f64 + sv.DoubleValue = ptr.Float64(f64) default: return fmt.Errorf("expected DoubleValue to be a JSON Number, got %T instead", value) diff --git a/service/iotanalytics/serializers.go b/service/iotanalytics/serializers.go index 4cbf48e9683..ace9afebf25 100644 --- a/service/iotanalytics/serializers.go +++ b/service/iotanalytics/serializers.go @@ -3682,20 +3682,20 @@ func awsRestjson1_serializeDocumentVariable(v *types.Variable, value smithyjson. } } - if v.DoubleValue != 0 { + if v.DoubleValue != nil { ok := object.Key("doubleValue") switch { - case math.IsNaN(v.DoubleValue): + case math.IsNaN(*v.DoubleValue): ok.String("NaN") - case math.IsInf(v.DoubleValue, 1): + case math.IsInf(*v.DoubleValue, 1): ok.String("Infinity") - case math.IsInf(v.DoubleValue, -1): + case math.IsInf(*v.DoubleValue, -1): ok.String("-Infinity") default: - ok.Double(v.DoubleValue) + ok.Double(*v.DoubleValue) } } diff --git a/service/iotanalytics/types/types.go b/service/iotanalytics/types/types.go index 3f45c24deed..5181722df4e 100644 --- a/service/iotanalytics/types/types.go +++ b/service/iotanalytics/types/types.go @@ -1457,7 +1457,7 @@ type Variable struct { DatasetContentVersionValue *DatasetContentVersionValue // The value of the variable as a double (numeric). - DoubleValue float64 + DoubleValue *float64 // The value of the variable as a structure that specifies an output file URI. OutputFileUriValue *OutputFileUriValue diff --git a/service/iotsecuretunneling/api_op_CloseTunnel.go b/service/iotsecuretunneling/api_op_CloseTunnel.go index cb048ef9cfb..99f53f7dadb 100644 --- a/service/iotsecuretunneling/api_op_CloseTunnel.go +++ b/service/iotsecuretunneling/api_op_CloseTunnel.go @@ -39,7 +39,7 @@ type CloseTunnelInput struct { TunnelId *string // When set to true, IoT Secure Tunneling deletes the tunnel data immediately. - Delete bool + Delete *bool noSmithyDocumentSerde } diff --git a/service/iotsecuretunneling/api_op_ListTunnels.go b/service/iotsecuretunneling/api_op_ListTunnels.go index 57a558dcbd4..048fa8e7775 100644 --- a/service/iotsecuretunneling/api_op_ListTunnels.go +++ b/service/iotsecuretunneling/api_op_ListTunnels.go @@ -35,7 +35,7 @@ func (c *Client) ListTunnels(ctx context.Context, params *ListTunnelsInput, optF type ListTunnelsInput struct { // The maximum number of results to return at once. - MaxResults int32 + MaxResults *int32 // To retrieve the next set of results, the nextToken value from a previous // response; otherwise null to receive the first set of results. @@ -155,8 +155,8 @@ func NewListTunnelsPaginator(client ListTunnelsAPIClient, params *ListTunnelsInp } options := ListTunnelsPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults + if params.MaxResults != nil { + options.Limit = *params.MaxResults } for _, fn := range optFns { @@ -186,7 +186,11 @@ func (p *ListTunnelsPaginator) 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.ListTunnels(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/iotsecuretunneling/deserializers.go b/service/iotsecuretunneling/deserializers.go index a23b2805c52..43ddc85b198 100644 --- a/service/iotsecuretunneling/deserializers.go +++ b/service/iotsecuretunneling/deserializers.go @@ -1306,7 +1306,7 @@ func awsAwsjson11_deserializeDocumentTimeoutConfig(v **types.TimeoutConfig, valu if err != nil { return err } - sv.MaxLifetimeTimeoutMinutes = int32(i64) + sv.MaxLifetimeTimeoutMinutes = ptr.Int32(int32(i64)) } default: diff --git a/service/iotsecuretunneling/serializers.go b/service/iotsecuretunneling/serializers.go index df7bb334603..755d9f7abfb 100644 --- a/service/iotsecuretunneling/serializers.go +++ b/service/iotsecuretunneling/serializers.go @@ -529,9 +529,9 @@ func awsAwsjson11_serializeDocumentTimeoutConfig(v *types.TimeoutConfig, value s object := value.Object() defer object.Close() - if v.MaxLifetimeTimeoutMinutes != 0 { + if v.MaxLifetimeTimeoutMinutes != nil { ok := object.Key("maxLifetimeTimeoutMinutes") - ok.Integer(v.MaxLifetimeTimeoutMinutes) + ok.Integer(*v.MaxLifetimeTimeoutMinutes) } return nil @@ -541,9 +541,9 @@ func awsAwsjson11_serializeOpDocumentCloseTunnelInput(v *CloseTunnelInput, value object := value.Object() defer object.Close() - if v.Delete { + if v.Delete != nil { ok := object.Key("delete") - ok.Boolean(v.Delete) + ok.Boolean(*v.Delete) } if v.TunnelId != nil { @@ -582,9 +582,9 @@ func awsAwsjson11_serializeOpDocumentListTunnelsInput(v *ListTunnelsInput, value 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 { diff --git a/service/iotsecuretunneling/types/types.go b/service/iotsecuretunneling/types/types.go index 51a496bf80c..4f5632fef2c 100644 --- a/service/iotsecuretunneling/types/types.go +++ b/service/iotsecuretunneling/types/types.go @@ -60,7 +60,7 @@ type TimeoutConfig struct { // The maximum amount of time (in minutes) a tunnel can remain open. If not // specified, maxLifetimeTimeoutMinutes defaults to 720 minutes. Valid values are // from 1 minute to 12 hours (720 minutes) - MaxLifetimeTimeoutMinutes int32 + MaxLifetimeTimeoutMinutes *int32 noSmithyDocumentSerde } diff --git a/service/lookoutmetrics/api_op_CreateMetricSet.go b/service/lookoutmetrics/api_op_CreateMetricSet.go index 3125570e170..2ee795ad7d0 100644 --- a/service/lookoutmetrics/api_op_CreateMetricSet.go +++ b/service/lookoutmetrics/api_op_CreateMetricSet.go @@ -61,7 +61,7 @@ type CreateMetricSetInput struct { // After an interval ends, the amount of seconds that the detector waits before // importing data. Offset is only supported for S3, Redshift, Athena and // datasources. - Offset int32 + Offset *int32 // A list of tags // (https://docs.aws.amazon.com/lookoutmetrics/latest/dev/detectors-tags.html) to diff --git a/service/lookoutmetrics/api_op_DescribeAnomalyDetectionExecutions.go b/service/lookoutmetrics/api_op_DescribeAnomalyDetectionExecutions.go index 7c19c4b1e56..27e94bbbdc0 100644 --- a/service/lookoutmetrics/api_op_DescribeAnomalyDetectionExecutions.go +++ b/service/lookoutmetrics/api_op_DescribeAnomalyDetectionExecutions.go @@ -36,7 +36,7 @@ type DescribeAnomalyDetectionExecutionsInput struct { AnomalyDetectorArn *string // The number of items to return in the response. - MaxResults int32 + MaxResults *int32 // Specify the pagination token that's returned by a previous request to retrieve // the next page of results. @@ -162,8 +162,8 @@ func NewDescribeAnomalyDetectionExecutionsPaginator(client DescribeAnomalyDetect } options := DescribeAnomalyDetectionExecutionsPaginatorOptions{} - 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 *DescribeAnomalyDetectionExecutionsPaginator) 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.DescribeAnomalyDetectionExecutions(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/lookoutmetrics/api_op_DescribeMetricSet.go b/service/lookoutmetrics/api_op_DescribeMetricSet.go index 937d5a06502..52722a87a76 100644 --- a/service/lookoutmetrics/api_op_DescribeMetricSet.go +++ b/service/lookoutmetrics/api_op_DescribeMetricSet.go @@ -75,7 +75,7 @@ type DescribeMetricSetOutput struct { // After an interval ends, the amount of seconds that the detector waits before // importing data. Offset is only supported for S3, Redshift, Athena and // datasources. - Offset int32 + Offset *int32 // Contains information about the column used for tracking time in your source // data. diff --git a/service/lookoutmetrics/api_op_GetFeedback.go b/service/lookoutmetrics/api_op_GetFeedback.go index cf9960d5558..b38263ff83f 100644 --- a/service/lookoutmetrics/api_op_GetFeedback.go +++ b/service/lookoutmetrics/api_op_GetFeedback.go @@ -41,7 +41,7 @@ type GetFeedbackInput struct { AnomalyGroupTimeSeriesFeedback *types.AnomalyGroupTimeSeries // The maximum number of results to return. - MaxResults int32 + MaxResults *int32 // Specify the pagination token that's returned by a previous request to retrieve // the next page of results. @@ -160,8 +160,8 @@ func NewGetFeedbackPaginator(client GetFeedbackAPIClient, params *GetFeedbackInp } options := GetFeedbackPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults + if params.MaxResults != nil { + options.Limit = *params.MaxResults } for _, fn := range optFns { @@ -191,7 +191,11 @@ func (p *GetFeedbackPaginator) 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.GetFeedback(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/lookoutmetrics/api_op_ListAlerts.go b/service/lookoutmetrics/api_op_ListAlerts.go index 167370047d9..eb78811b639 100644 --- a/service/lookoutmetrics/api_op_ListAlerts.go +++ b/service/lookoutmetrics/api_op_ListAlerts.go @@ -37,7 +37,7 @@ type ListAlertsInput struct { AnomalyDetectorArn *string // The maximum number of results that will be displayed by the request. - MaxResults int32 + MaxResults *int32 // If the result of the previous request is truncated, the response includes a // NextToken. To retrieve the next set of results, use the token in the next @@ -155,8 +155,8 @@ func NewListAlertsPaginator(client ListAlertsAPIClient, params *ListAlertsInput, } options := ListAlertsPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults + if params.MaxResults != nil { + options.Limit = *params.MaxResults } for _, fn := range optFns { @@ -186,7 +186,11 @@ func (p *ListAlertsPaginator) 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.ListAlerts(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/lookoutmetrics/api_op_ListAnomalyDetectors.go b/service/lookoutmetrics/api_op_ListAnomalyDetectors.go index ffed221f337..e85ab1e6701 100644 --- a/service/lookoutmetrics/api_op_ListAnomalyDetectors.go +++ b/service/lookoutmetrics/api_op_ListAnomalyDetectors.go @@ -34,7 +34,7 @@ func (c *Client) ListAnomalyDetectors(ctx context.Context, params *ListAnomalyDe type ListAnomalyDetectorsInput struct { // The maximum number of results to return. - MaxResults int32 + MaxResults *int32 // If the result of the previous request was truncated, the response includes a // NextToken. To retrieve the next set of results, use the token in the next @@ -154,8 +154,8 @@ func NewListAnomalyDetectorsPaginator(client ListAnomalyDetectorsAPIClient, para } options := ListAnomalyDetectorsPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults + if params.MaxResults != nil { + options.Limit = *params.MaxResults } for _, fn := range optFns { @@ -185,7 +185,11 @@ func (p *ListAnomalyDetectorsPaginator) 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.ListAnomalyDetectors(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/lookoutmetrics/api_op_ListAnomalyGroupRelatedMetrics.go b/service/lookoutmetrics/api_op_ListAnomalyGroupRelatedMetrics.go index 532d84cdb3c..22534237d7d 100644 --- a/service/lookoutmetrics/api_op_ListAnomalyGroupRelatedMetrics.go +++ b/service/lookoutmetrics/api_op_ListAnomalyGroupRelatedMetrics.go @@ -42,7 +42,7 @@ type ListAnomalyGroupRelatedMetricsInput struct { AnomalyGroupId *string // The maximum number of results to return. - MaxResults int32 + MaxResults *int32 // Specify the pagination token that's returned by a previous request to retrieve // the next page of results. @@ -170,8 +170,8 @@ func NewListAnomalyGroupRelatedMetricsPaginator(client ListAnomalyGroupRelatedMe } options := ListAnomalyGroupRelatedMetricsPaginatorOptions{} - 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 *ListAnomalyGroupRelatedMetricsPaginator) 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.ListAnomalyGroupRelatedMetrics(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/lookoutmetrics/api_op_ListAnomalyGroupSummaries.go b/service/lookoutmetrics/api_op_ListAnomalyGroupSummaries.go index 3d5b906a2f8..ccaa7a0c0e6 100644 --- a/service/lookoutmetrics/api_op_ListAnomalyGroupSummaries.go +++ b/service/lookoutmetrics/api_op_ListAnomalyGroupSummaries.go @@ -41,7 +41,7 @@ type ListAnomalyGroupSummariesInput struct { SensitivityThreshold int32 // The maximum number of results to return. - MaxResults int32 + MaxResults *int32 // Specify the pagination token that's returned by a previous request to retrieve // the next page of results. @@ -166,8 +166,8 @@ func NewListAnomalyGroupSummariesPaginator(client ListAnomalyGroupSummariesAPICl } options := ListAnomalyGroupSummariesPaginatorOptions{} - 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 *ListAnomalyGroupSummariesPaginator) 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.ListAnomalyGroupSummaries(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/lookoutmetrics/api_op_ListAnomalyGroupTimeSeries.go b/service/lookoutmetrics/api_op_ListAnomalyGroupTimeSeries.go index d88139f6a4f..6c0707e98d2 100644 --- a/service/lookoutmetrics/api_op_ListAnomalyGroupTimeSeries.go +++ b/service/lookoutmetrics/api_op_ListAnomalyGroupTimeSeries.go @@ -46,7 +46,7 @@ type ListAnomalyGroupTimeSeriesInput struct { MetricName *string // The maximum number of results to return. - MaxResults int32 + MaxResults *int32 // Specify the pagination token that's returned by a previous request to retrieve // the next page of results. @@ -178,8 +178,8 @@ func NewListAnomalyGroupTimeSeriesPaginator(client ListAnomalyGroupTimeSeriesAPI } options := ListAnomalyGroupTimeSeriesPaginatorOptions{} - 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 *ListAnomalyGroupTimeSeriesPaginator) 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.ListAnomalyGroupTimeSeries(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/lookoutmetrics/api_op_ListMetricSets.go b/service/lookoutmetrics/api_op_ListMetricSets.go index 89ed4664d6e..e23341e8cde 100644 --- a/service/lookoutmetrics/api_op_ListMetricSets.go +++ b/service/lookoutmetrics/api_op_ListMetricSets.go @@ -37,7 +37,7 @@ type ListMetricSetsInput struct { AnomalyDetectorArn *string // The maximum number of results to return. - MaxResults int32 + MaxResults *int32 // If the result of the previous request was truncated, the response includes a // NextToken. To retrieve the next set of results, use the token in the next @@ -156,8 +156,8 @@ func NewListMetricSetsPaginator(client ListMetricSetsAPIClient, params *ListMetr } options := ListMetricSetsPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults + if params.MaxResults != nil { + options.Limit = *params.MaxResults } for _, fn := range optFns { @@ -187,7 +187,11 @@ func (p *ListMetricSetsPaginator) 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.ListMetricSets(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/lookoutmetrics/api_op_UpdateMetricSet.go b/service/lookoutmetrics/api_op_UpdateMetricSet.go index 09bc4886b06..ea6dfd8ebb7 100644 --- a/service/lookoutmetrics/api_op_UpdateMetricSet.go +++ b/service/lookoutmetrics/api_op_UpdateMetricSet.go @@ -52,7 +52,7 @@ type UpdateMetricSetInput struct { // After an interval ends, the amount of seconds that the detector waits before // importing data. Offset is only supported for S3, Redshift, Athena and // datasources. - Offset int32 + Offset *int32 // The timestamp column. TimestampColumn *types.TimestampColumn diff --git a/service/lookoutmetrics/deserializers.go b/service/lookoutmetrics/deserializers.go index 645ae1acf01..59b5d40e37e 100644 --- a/service/lookoutmetrics/deserializers.go +++ b/service/lookoutmetrics/deserializers.go @@ -1836,7 +1836,7 @@ func awsRestjson1_deserializeOpDocumentDescribeMetricSetOutput(v **DescribeMetri if err != nil { return err } - sv.Offset = int32(i64) + sv.Offset = ptr.Int32(int32(i64)) } case "TimestampColumn": @@ -8469,7 +8469,7 @@ func awsRestjson1_deserializeDocumentRDSSourceConfig(v **types.RDSSourceConfig, if err != nil { return err } - sv.DatabasePort = int32(i64) + sv.DatabasePort = ptr.Int32(int32(i64)) } case "DBInstanceIdentifier": @@ -8581,7 +8581,7 @@ func awsRestjson1_deserializeDocumentRedshiftSourceConfig(v **types.RedshiftSour if err != nil { return err } - sv.DatabasePort = int32(i64) + sv.DatabasePort = ptr.Int32(int32(i64)) } case "RoleArn": diff --git a/service/lookoutmetrics/serializers.go b/service/lookoutmetrics/serializers.go index c376ef59cf7..93ec594eaa6 100644 --- a/service/lookoutmetrics/serializers.go +++ b/service/lookoutmetrics/serializers.go @@ -447,9 +447,9 @@ func awsRestjson1_serializeOpDocumentCreateMetricSetInput(v *CreateMetricSetInpu } } - if v.Offset != 0 { + if v.Offset != nil { ok := object.Key("Offset") - ok.Integer(v.Offset) + ok.Integer(*v.Offset) } if v.Tags != nil { @@ -811,9 +811,9 @@ func awsRestjson1_serializeOpDocumentDescribeAnomalyDetectionExecutionsInput(v * ok.String(*v.AnomalyDetectorArn) } - if v.MaxResults != 0 { + if v.MaxResults != nil { ok := object.Key("MaxResults") - ok.Integer(v.MaxResults) + ok.Integer(*v.MaxResults) } if v.NextToken != nil { @@ -1258,9 +1258,9 @@ func awsRestjson1_serializeOpDocumentGetFeedbackInput(v *GetFeedbackInput, value } } - if v.MaxResults != 0 { + if v.MaxResults != nil { ok := object.Key("MaxResults") - ok.Integer(v.MaxResults) + ok.Integer(*v.MaxResults) } if v.NextToken != nil { @@ -1406,9 +1406,9 @@ func awsRestjson1_serializeOpDocumentListAlertsInput(v *ListAlertsInput, value s ok.String(*v.AnomalyDetectorArn) } - if v.MaxResults != 0 { + if v.MaxResults != nil { ok := object.Key("MaxResults") - ok.Integer(v.MaxResults) + ok.Integer(*v.MaxResults) } if v.NextToken != nil { @@ -1479,9 +1479,9 @@ func awsRestjson1_serializeOpDocumentListAnomalyDetectorsInput(v *ListAnomalyDet 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 { @@ -1562,9 +1562,9 @@ func awsRestjson1_serializeOpDocumentListAnomalyGroupRelatedMetricsInput(v *List ok.String(*v.AnomalyGroupId) } - if v.MaxResults != 0 { + if v.MaxResults != nil { ok := object.Key("MaxResults") - ok.Integer(v.MaxResults) + ok.Integer(*v.MaxResults) } if v.NextToken != nil { @@ -1645,9 +1645,9 @@ func awsRestjson1_serializeOpDocumentListAnomalyGroupSummariesInput(v *ListAnoma ok.String(*v.AnomalyDetectorArn) } - if v.MaxResults != 0 { + if v.MaxResults != nil { ok := object.Key("MaxResults") - ok.Integer(v.MaxResults) + ok.Integer(*v.MaxResults) } if v.NextToken != nil { @@ -1733,9 +1733,9 @@ func awsRestjson1_serializeOpDocumentListAnomalyGroupTimeSeriesInput(v *ListAnom ok.String(*v.AnomalyGroupId) } - if v.MaxResults != 0 { + if v.MaxResults != nil { ok := object.Key("MaxResults") - ok.Integer(v.MaxResults) + ok.Integer(*v.MaxResults) } if v.MetricName != nil { @@ -1816,9 +1816,9 @@ func awsRestjson1_serializeOpDocumentListMetricSetsInput(v *ListMetricSetsInput, ok.String(*v.AnomalyDetectorArn) } - if v.MaxResults != 0 { + if v.MaxResults != nil { ok := object.Key("MaxResults") - ok.Integer(v.MaxResults) + ok.Integer(*v.MaxResults) } if v.NextToken != nil { @@ -2382,9 +2382,9 @@ func awsRestjson1_serializeOpDocumentUpdateMetricSetInput(v *UpdateMetricSetInpu } } - if v.Offset != 0 { + if v.Offset != nil { ok := object.Key("Offset") - ok.Integer(v.Offset) + ok.Integer(*v.Offset) } if v.TimestampColumn != nil { @@ -2896,9 +2896,9 @@ func awsRestjson1_serializeDocumentRDSSourceConfig(v *types.RDSSourceConfig, val ok.String(*v.DatabaseName) } - if v.DatabasePort != 0 { + if v.DatabasePort != nil { ok := object.Key("DatabasePort") - ok.Integer(v.DatabasePort) + ok.Integer(*v.DatabasePort) } if v.DBInstanceIdentifier != nil { @@ -2950,9 +2950,9 @@ func awsRestjson1_serializeDocumentRedshiftSourceConfig(v *types.RedshiftSourceC ok.String(*v.DatabaseName) } - if v.DatabasePort != 0 { + if v.DatabasePort != nil { ok := object.Key("DatabasePort") - ok.Integer(v.DatabasePort) + ok.Integer(*v.DatabasePort) } if v.RoleArn != nil { diff --git a/service/lookoutmetrics/types/types.go b/service/lookoutmetrics/types/types.go index 8b497343d5d..3c9842966b9 100644 --- a/service/lookoutmetrics/types/types.go +++ b/service/lookoutmetrics/types/types.go @@ -775,7 +775,7 @@ type RDSSourceConfig struct { DatabaseName *string // The port number where the database can be accessed. - DatabasePort int32 + DatabasePort *int32 // The Amazon Resource Name (ARN) of the role. RoleArn *string @@ -806,7 +806,7 @@ type RedshiftSourceConfig struct { DatabaseName *string // The port number where the database can be accessed. - DatabasePort int32 + DatabasePort *int32 // The Amazon Resource Name (ARN) of the role providing access to the database. RoleArn *string diff --git a/service/m2/api_op_GetDataSetDetails.go b/service/m2/api_op_GetDataSetDetails.go index 6026e625998..8b33dd74573 100644 --- a/service/m2/api_op_GetDataSetDetails.go +++ b/service/m2/api_op_GetDataSetDetails.go @@ -51,7 +51,7 @@ type GetDataSetDetailsOutput struct { DataSetName *string // The size of the block on disk. - Blocksize int32 + Blocksize *int32 // The timestamp when the data set was created. CreationTime *time.Time @@ -70,7 +70,7 @@ type GetDataSetDetailsOutput struct { Location *string // The length of records in the data set. - RecordLength int32 + RecordLength *int32 // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/m2/deserializers.go b/service/m2/deserializers.go index c6c187185e6..0b88ef773f9 100644 --- a/service/m2/deserializers.go +++ b/service/m2/deserializers.go @@ -2041,7 +2041,7 @@ func awsRestjson1_deserializeOpDocumentGetDataSetDetailsOutput(v **GetDataSetDet if err != nil { return err } - sv.Blocksize = int32(i64) + sv.Blocksize = ptr.Int32(int32(i64)) } case "creationTime": @@ -2125,7 +2125,7 @@ func awsRestjson1_deserializeOpDocumentGetDataSetDetailsOutput(v **GetDataSetDet if err != nil { return err } - sv.RecordLength = int32(i64) + sv.RecordLength = ptr.Int32(int32(i64)) } default: @@ -8464,7 +8464,7 @@ func awsRestjson1_deserializeDocumentVsamDetailAttributes(v **types.VsamDetailAt if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.CacheAtStartup = jtv + sv.CacheAtStartup = ptr.Bool(jtv) } case "compressed": @@ -8473,7 +8473,7 @@ func awsRestjson1_deserializeDocumentVsamDetailAttributes(v **types.VsamDetailAt if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.Compressed = jtv + sv.Compressed = ptr.Bool(jtv) } case "encoding": diff --git a/service/m2/types/types.go b/service/m2/types/types.go index ed732698a90..e5c9dba1153 100644 --- a/service/m2/types/types.go +++ b/service/m2/types/types.go @@ -881,12 +881,12 @@ type VsamDetailAttributes struct { // If set to True, enforces loading the data set into cache before it’s used by the // application. - CacheAtStartup bool + CacheAtStartup *bool // Indicates whether indexes for this dataset are stored as compressed values. If // you have a large data set (typically > 100 Mb), consider setting this flag to // True. - Compressed bool + Compressed *bool // The character set used by the data set. Can be ASCII, EBCDIC, or unknown. Encoding *string diff --git a/service/networkfirewall/deserializers.go b/service/networkfirewall/deserializers.go index a102f68dedc..f7e93c24927 100644 --- a/service/networkfirewall/deserializers.go +++ b/service/networkfirewall/deserializers.go @@ -7451,7 +7451,7 @@ func awsAwsjson10_deserializeDocumentStatefulRuleGroupReference(v **types.Statef if err != nil { return err } - sv.Priority = int32(i64) + sv.Priority = ptr.Int32(int32(i64)) } case "ResourceArn": diff --git a/service/networkfirewall/serializers.go b/service/networkfirewall/serializers.go index 485626fa9fc..8b5a172c8e0 100644 --- a/service/networkfirewall/serializers.go +++ b/service/networkfirewall/serializers.go @@ -2488,9 +2488,9 @@ func awsAwsjson10_serializeDocumentStatefulRuleGroupReference(v *types.StatefulR } } - if v.Priority != 0 { + if v.Priority != nil { ok := object.Key("Priority") - ok.Integer(v.Priority) + ok.Integer(*v.Priority) } if v.ResourceArn != nil { diff --git a/service/networkfirewall/types/types.go b/service/networkfirewall/types/types.go index 9dd84cdf98d..753426786bd 100644 --- a/service/networkfirewall/types/types.go +++ b/service/networkfirewall/types/types.go @@ -1108,7 +1108,7 @@ type StatefulRuleGroupReference struct { // priority settings of your rule groups at any time. To make it easier to insert // rule groups later, number them so there's a wide range in between, for example // use 100, 200, and so on. - Priority int32 + Priority *int32 noSmithyDocumentSerde } diff --git a/service/pricing/api_op_DescribeServices.go b/service/pricing/api_op_DescribeServices.go index 3a193f68750..6dc4d0f68f2 100644 --- a/service/pricing/api_op_DescribeServices.go +++ b/service/pricing/api_op_DescribeServices.go @@ -39,7 +39,7 @@ type DescribeServicesInput struct { FormatVersion *string // The maximum number of results that you want returned in the response. - MaxResults int32 + MaxResults *int32 // The pagination token that indicates the next set of results that you want to // retrieve. @@ -164,8 +164,8 @@ func NewDescribeServicesPaginator(client DescribeServicesAPIClient, params *Desc } options := DescribeServicesPaginatorOptions{} - 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 *DescribeServicesPaginator) 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.DescribeServices(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/pricing/api_op_GetAttributeValues.go b/service/pricing/api_op_GetAttributeValues.go index 5ac47daf265..a2f51e4b7ef 100644 --- a/service/pricing/api_op_GetAttributeValues.go +++ b/service/pricing/api_op_GetAttributeValues.go @@ -48,7 +48,7 @@ type GetAttributeValuesInput struct { ServiceCode *string // The maximum number of results to return in response. - MaxResults int32 + MaxResults *int32 // The pagination token that indicates the next set of results that you want to // retrieve. @@ -170,8 +170,8 @@ func NewGetAttributeValuesPaginator(client GetAttributeValuesAPIClient, params * } options := GetAttributeValuesPaginatorOptions{} - 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 *GetAttributeValuesPaginator) 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.GetAttributeValues(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/pricing/api_op_GetProducts.go b/service/pricing/api_op_GetProducts.go index 6b9cd266772..74571294711 100644 --- a/service/pricing/api_op_GetProducts.go +++ b/service/pricing/api_op_GetProducts.go @@ -43,7 +43,7 @@ type GetProductsInput struct { FormatVersion *string // The maximum number of results to return in the response. - MaxResults int32 + MaxResults *int32 // The pagination token that indicates the next set of results that you want to // retrieve. @@ -166,8 +166,8 @@ func NewGetProductsPaginator(client GetProductsAPIClient, params *GetProductsInp } options := GetProductsPaginatorOptions{} - 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 *GetProductsPaginator) 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.GetProducts(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/pricing/serializers.go b/service/pricing/serializers.go index fe39381df7b..c4d3ca625ed 100644 --- a/service/pricing/serializers.go +++ b/service/pricing/serializers.go @@ -223,9 +223,9 @@ func awsAwsjson11_serializeOpDocumentDescribeServicesInput(v *DescribeServicesIn ok.String(*v.FormatVersion) } - if v.MaxResults != 0 { + if v.MaxResults != nil { ok := object.Key("MaxResults") - ok.Integer(v.MaxResults) + ok.Integer(*v.MaxResults) } if v.NextToken != nil { @@ -250,9 +250,9 @@ func awsAwsjson11_serializeOpDocumentGetAttributeValuesInput(v *GetAttributeValu ok.String(*v.AttributeName) } - if v.MaxResults != 0 { + if v.MaxResults != nil { ok := object.Key("MaxResults") - ok.Integer(v.MaxResults) + ok.Integer(*v.MaxResults) } if v.NextToken != nil { @@ -284,9 +284,9 @@ func awsAwsjson11_serializeOpDocumentGetProductsInput(v *GetProductsInput, value ok.String(*v.FormatVersion) } - if v.MaxResults != 0 { + if v.MaxResults != nil { ok := object.Key("MaxResults") - ok.Integer(v.MaxResults) + ok.Integer(*v.MaxResults) } if v.NextToken != nil { diff --git a/service/quicksight/api_op_ListAnalyses.go b/service/quicksight/api_op_ListAnalyses.go index 8f7e35c6d47..fe400a3dad6 100644 --- a/service/quicksight/api_op_ListAnalyses.go +++ b/service/quicksight/api_op_ListAnalyses.go @@ -37,7 +37,7 @@ type ListAnalysesInput struct { AwsAccountId *string // The maximum number of results to return. - MaxResults int32 + MaxResults *int32 // A pagination token that can be used in a subsequent request. NextToken *string @@ -161,8 +161,8 @@ func NewListAnalysesPaginator(client ListAnalysesAPIClient, params *ListAnalyses } options := ListAnalysesPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults + if params.MaxResults != nil { + options.Limit = *params.MaxResults } for _, fn := range optFns { @@ -192,7 +192,11 @@ func (p *ListAnalysesPaginator) 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.ListAnalyses(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/quicksight/api_op_ListDashboardVersions.go b/service/quicksight/api_op_ListDashboardVersions.go index c84e790bbb5..2a4d843b6d1 100644 --- a/service/quicksight/api_op_ListDashboardVersions.go +++ b/service/quicksight/api_op_ListDashboardVersions.go @@ -42,7 +42,7 @@ type ListDashboardVersionsInput struct { DashboardId *string // The maximum number of results to be returned per request. - MaxResults int32 + MaxResults *int32 // The token for the next set of results, or null if there are no more results. NextToken *string @@ -168,8 +168,8 @@ func NewListDashboardVersionsPaginator(client ListDashboardVersionsAPIClient, pa } options := ListDashboardVersionsPaginatorOptions{} - 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 *ListDashboardVersionsPaginator) 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.ListDashboardVersions(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/quicksight/api_op_ListDashboards.go b/service/quicksight/api_op_ListDashboards.go index 0e791b0e292..97d364851e4 100644 --- a/service/quicksight/api_op_ListDashboards.go +++ b/service/quicksight/api_op_ListDashboards.go @@ -37,7 +37,7 @@ type ListDashboardsInput struct { AwsAccountId *string // The maximum number of results to be returned per request. - MaxResults int32 + MaxResults *int32 // The token for the next set of results, or null if there are no more results. NextToken *string @@ -163,8 +163,8 @@ func NewListDashboardsPaginator(client ListDashboardsAPIClient, params *ListDash } options := ListDashboardsPaginatorOptions{} - 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 *ListDashboardsPaginator) 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.ListDashboards(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/quicksight/api_op_ListDataSets.go b/service/quicksight/api_op_ListDataSets.go index 130233d1839..ea3a8f2ba1f 100644 --- a/service/quicksight/api_op_ListDataSets.go +++ b/service/quicksight/api_op_ListDataSets.go @@ -38,7 +38,7 @@ type ListDataSetsInput struct { AwsAccountId *string // The maximum number of results to be returned per request. - MaxResults int32 + MaxResults *int32 // The token for the next set of results, or null if there are no more results. NextToken *string @@ -162,8 +162,8 @@ func NewListDataSetsPaginator(client ListDataSetsAPIClient, params *ListDataSets } options := ListDataSetsPaginatorOptions{} - 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 *ListDataSetsPaginator) 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.ListDataSets(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/quicksight/api_op_ListDataSources.go b/service/quicksight/api_op_ListDataSources.go index 7c831da9698..6877e5a5bf3 100644 --- a/service/quicksight/api_op_ListDataSources.go +++ b/service/quicksight/api_op_ListDataSources.go @@ -37,7 +37,7 @@ type ListDataSourcesInput struct { AwsAccountId *string // The maximum number of results to be returned per request. - MaxResults int32 + MaxResults *int32 // The token for the next set of results, or null if there are no more results. NextToken *string @@ -162,8 +162,8 @@ func NewListDataSourcesPaginator(client ListDataSourcesAPIClient, params *ListDa } options := ListDataSourcesPaginatorOptions{} - 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 *ListDataSourcesPaginator) 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.ListDataSources(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/quicksight/api_op_ListFolderMembers.go b/service/quicksight/api_op_ListFolderMembers.go index 1e9a1007c3a..760e6cc2541 100644 --- a/service/quicksight/api_op_ListFolderMembers.go +++ b/service/quicksight/api_op_ListFolderMembers.go @@ -40,7 +40,7 @@ type ListFolderMembersInput struct { FolderId *string // The maximum number of results to be returned per request. - MaxResults int32 + MaxResults *int32 // The token for the next set of results, or null if there are no more results. NextToken *string diff --git a/service/quicksight/api_op_ListFolders.go b/service/quicksight/api_op_ListFolders.go index c97c4ec3df1..e8e13742930 100644 --- a/service/quicksight/api_op_ListFolders.go +++ b/service/quicksight/api_op_ListFolders.go @@ -35,7 +35,7 @@ type ListFoldersInput struct { AwsAccountId *string // The maximum number of results to be returned per request. - MaxResults int32 + MaxResults *int32 // The token for the next set of results, or null if there are no more results. NextToken *string diff --git a/service/quicksight/api_op_ListGroupMemberships.go b/service/quicksight/api_op_ListGroupMemberships.go index 9d8b18bce95..d1e4cd7a869 100644 --- a/service/quicksight/api_op_ListGroupMemberships.go +++ b/service/quicksight/api_op_ListGroupMemberships.go @@ -47,7 +47,7 @@ type ListGroupMembershipsInput struct { Namespace *string // The maximum number of results to return from this request. - MaxResults int32 + MaxResults *int32 // A pagination token that can be used in a subsequent request. NextToken *string diff --git a/service/quicksight/api_op_ListGroups.go b/service/quicksight/api_op_ListGroups.go index c29770a9dcd..fd28ee09638 100644 --- a/service/quicksight/api_op_ListGroups.go +++ b/service/quicksight/api_op_ListGroups.go @@ -42,7 +42,7 @@ type ListGroupsInput struct { Namespace *string // The maximum number of results to return. - MaxResults int32 + MaxResults *int32 // A pagination token that can be used in a subsequent request. NextToken *string diff --git a/service/quicksight/api_op_ListIAMPolicyAssignments.go b/service/quicksight/api_op_ListIAMPolicyAssignments.go index b2cd80ed576..0d9e413963b 100644 --- a/service/quicksight/api_op_ListIAMPolicyAssignments.go +++ b/service/quicksight/api_op_ListIAMPolicyAssignments.go @@ -44,7 +44,7 @@ type ListIAMPolicyAssignmentsInput struct { AssignmentStatus types.AssignmentStatus // The maximum number of results to be returned per request. - MaxResults int32 + MaxResults *int32 // The token for the next set of results, or null if there are no more results. NextToken *string diff --git a/service/quicksight/api_op_ListIAMPolicyAssignmentsForUser.go b/service/quicksight/api_op_ListIAMPolicyAssignmentsForUser.go index 57dc250ebfb..a7aaaf28bcd 100644 --- a/service/quicksight/api_op_ListIAMPolicyAssignmentsForUser.go +++ b/service/quicksight/api_op_ListIAMPolicyAssignmentsForUser.go @@ -47,7 +47,7 @@ type ListIAMPolicyAssignmentsForUserInput struct { UserName *string // The maximum number of results to be returned per request. - MaxResults int32 + MaxResults *int32 // The token for the next set of results, or null if there are no more results. NextToken *string diff --git a/service/quicksight/api_op_ListIngestions.go b/service/quicksight/api_op_ListIngestions.go index abe496641ec..dc69fb2465a 100644 --- a/service/quicksight/api_op_ListIngestions.go +++ b/service/quicksight/api_op_ListIngestions.go @@ -41,7 +41,7 @@ type ListIngestionsInput struct { DataSetId *string // The maximum number of results to be returned per request. - MaxResults int32 + MaxResults *int32 // The token for the next set of results, or null if there are no more results. NextToken *string @@ -166,8 +166,8 @@ func NewListIngestionsPaginator(client ListIngestionsAPIClient, params *ListInge } options := ListIngestionsPaginatorOptions{} - 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 *ListIngestionsPaginator) 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.ListIngestions(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/quicksight/api_op_ListNamespaces.go b/service/quicksight/api_op_ListNamespaces.go index 58927df92a4..d39a1bcb24a 100644 --- a/service/quicksight/api_op_ListNamespaces.go +++ b/service/quicksight/api_op_ListNamespaces.go @@ -38,7 +38,7 @@ type ListNamespacesInput struct { AwsAccountId *string // The maximum number of results to return. - MaxResults int32 + MaxResults *int32 // A unique pagination token that can be used in a subsequent request. You will // receive a pagination token in the response body of a previous ListNameSpaces API @@ -176,8 +176,8 @@ func NewListNamespacesPaginator(client ListNamespacesAPIClient, params *ListName } options := ListNamespacesPaginatorOptions{} - 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 *ListNamespacesPaginator) 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.ListNamespaces(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/quicksight/api_op_ListTemplateAliases.go b/service/quicksight/api_op_ListTemplateAliases.go index 1095a5cc9fd..a11d59f4d71 100644 --- a/service/quicksight/api_op_ListTemplateAliases.go +++ b/service/quicksight/api_op_ListTemplateAliases.go @@ -42,7 +42,7 @@ type ListTemplateAliasesInput struct { TemplateId *string // The maximum number of results to be returned per request. - MaxResults int32 + MaxResults *int32 // The token for the next set of results, or null if there are no more results. NextToken *string @@ -168,8 +168,8 @@ func NewListTemplateAliasesPaginator(client ListTemplateAliasesAPIClient, params } options := ListTemplateAliasesPaginatorOptions{} - 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 *ListTemplateAliasesPaginator) 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.ListTemplateAliases(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/quicksight/api_op_ListTemplateVersions.go b/service/quicksight/api_op_ListTemplateVersions.go index 8f432f22a97..775c9a3e7a8 100644 --- a/service/quicksight/api_op_ListTemplateVersions.go +++ b/service/quicksight/api_op_ListTemplateVersions.go @@ -43,7 +43,7 @@ type ListTemplateVersionsInput struct { TemplateId *string // The maximum number of results to be returned per request. - MaxResults int32 + MaxResults *int32 // The token for the next set of results, or null if there are no more results. NextToken *string @@ -169,8 +169,8 @@ func NewListTemplateVersionsPaginator(client ListTemplateVersionsAPIClient, para } options := ListTemplateVersionsPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults + if params.MaxResults != nil { + options.Limit = *params.MaxResults } for _, fn := range optFns { @@ -200,7 +200,11 @@ func (p *ListTemplateVersionsPaginator) 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.ListTemplateVersions(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/quicksight/api_op_ListTemplates.go b/service/quicksight/api_op_ListTemplates.go index 33b39a925af..e3edbb8abc3 100644 --- a/service/quicksight/api_op_ListTemplates.go +++ b/service/quicksight/api_op_ListTemplates.go @@ -37,7 +37,7 @@ type ListTemplatesInput struct { AwsAccountId *string // The maximum number of results to be returned per request. - MaxResults int32 + MaxResults *int32 // The token for the next set of results, or null if there are no more results. NextToken *string @@ -161,8 +161,8 @@ func NewListTemplatesPaginator(client ListTemplatesAPIClient, params *ListTempla } options := ListTemplatesPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults + if params.MaxResults != nil { + options.Limit = *params.MaxResults } for _, fn := range optFns { @@ -192,7 +192,11 @@ func (p *ListTemplatesPaginator) 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.ListTemplates(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/quicksight/api_op_ListThemeAliases.go b/service/quicksight/api_op_ListThemeAliases.go index 2d770f80127..208a2c63a5d 100644 --- a/service/quicksight/api_op_ListThemeAliases.go +++ b/service/quicksight/api_op_ListThemeAliases.go @@ -41,7 +41,7 @@ type ListThemeAliasesInput struct { ThemeId *string // The maximum number of results to be returned per request. - MaxResults int32 + MaxResults *int32 // The token for the next set of results, or null if there are no more results. NextToken *string diff --git a/service/quicksight/api_op_ListThemeVersions.go b/service/quicksight/api_op_ListThemeVersions.go index 04fdcb3c20a..92b99b9fe44 100644 --- a/service/quicksight/api_op_ListThemeVersions.go +++ b/service/quicksight/api_op_ListThemeVersions.go @@ -42,7 +42,7 @@ type ListThemeVersionsInput struct { ThemeId *string // The maximum number of results to be returned per request. - MaxResults int32 + MaxResults *int32 // The token for the next set of results, or null if there are no more results. NextToken *string @@ -167,8 +167,8 @@ func NewListThemeVersionsPaginator(client ListThemeVersionsAPIClient, params *Li } options := ListThemeVersionsPaginatorOptions{} - 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 *ListThemeVersionsPaginator) 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.ListThemeVersions(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/quicksight/api_op_ListThemes.go b/service/quicksight/api_op_ListThemes.go index 629532ae799..ad369b15141 100644 --- a/service/quicksight/api_op_ListThemes.go +++ b/service/quicksight/api_op_ListThemes.go @@ -37,7 +37,7 @@ type ListThemesInput struct { AwsAccountId *string // The maximum number of results to be returned per request. - MaxResults int32 + MaxResults *int32 // The token for the next set of results, or null if there are no more results. NextToken *string @@ -173,8 +173,8 @@ func NewListThemesPaginator(client ListThemesAPIClient, params *ListThemesInput, } options := ListThemesPaginatorOptions{} - 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 *ListThemesPaginator) 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.ListThemes(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/quicksight/api_op_ListUserGroups.go b/service/quicksight/api_op_ListUserGroups.go index c637c6af409..b12728a741e 100644 --- a/service/quicksight/api_op_ListUserGroups.go +++ b/service/quicksight/api_op_ListUserGroups.go @@ -48,7 +48,7 @@ type ListUserGroupsInput struct { UserName *string // The maximum number of results to return from this request. - MaxResults int32 + MaxResults *int32 // A pagination token that can be used in a subsequent request. NextToken *string diff --git a/service/quicksight/api_op_ListUsers.go b/service/quicksight/api_op_ListUsers.go index e069655973a..12981841c3b 100644 --- a/service/quicksight/api_op_ListUsers.go +++ b/service/quicksight/api_op_ListUsers.go @@ -42,7 +42,7 @@ type ListUsersInput struct { Namespace *string // The maximum number of results to return from this request. - MaxResults int32 + MaxResults *int32 // A pagination token that can be used in a subsequent request. NextToken *string diff --git a/service/quicksight/api_op_SearchAnalyses.go b/service/quicksight/api_op_SearchAnalyses.go index 4b8bb2d83bb..701d12f2dba 100644 --- a/service/quicksight/api_op_SearchAnalyses.go +++ b/service/quicksight/api_op_SearchAnalyses.go @@ -44,7 +44,7 @@ type SearchAnalysesInput struct { Filters []types.AnalysisSearchFilter // The maximum number of results to return. - MaxResults int32 + MaxResults *int32 // A pagination token that can be used in a subsequent request. NextToken *string @@ -169,8 +169,8 @@ func NewSearchAnalysesPaginator(client SearchAnalysesAPIClient, params *SearchAn } options := SearchAnalysesPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults + if params.MaxResults != nil { + options.Limit = *params.MaxResults } for _, fn := range optFns { @@ -200,7 +200,11 @@ func (p *SearchAnalysesPaginator) 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.SearchAnalyses(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/quicksight/api_op_SearchDashboards.go b/service/quicksight/api_op_SearchDashboards.go index e495027e6c5..1f9a6b10314 100644 --- a/service/quicksight/api_op_SearchDashboards.go +++ b/service/quicksight/api_op_SearchDashboards.go @@ -47,7 +47,7 @@ type SearchDashboardsInput struct { Filters []types.DashboardSearchFilter // The maximum number of results to be returned per request. - MaxResults int32 + MaxResults *int32 // The token for the next set of results, or null if there are no more results. NextToken *string @@ -172,8 +172,8 @@ func NewSearchDashboardsPaginator(client SearchDashboardsAPIClient, params *Sear } options := SearchDashboardsPaginatorOptions{} - 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 *SearchDashboardsPaginator) 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.SearchDashboards(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/quicksight/api_op_SearchFolders.go b/service/quicksight/api_op_SearchFolders.go index 166b82c7505..e2e7fe99fae 100644 --- a/service/quicksight/api_op_SearchFolders.go +++ b/service/quicksight/api_op_SearchFolders.go @@ -42,7 +42,7 @@ type SearchFoldersInput struct { Filters []types.FolderSearchFilter // The maximum number of results to be returned per request. - MaxResults int32 + MaxResults *int32 // The token for the next set of results, or null if there are no more results. NextToken *string diff --git a/service/quicksight/api_op_SearchGroups.go b/service/quicksight/api_op_SearchGroups.go index 9ebfe3ec4c1..79bb27ac5ac 100644 --- a/service/quicksight/api_op_SearchGroups.go +++ b/service/quicksight/api_op_SearchGroups.go @@ -48,7 +48,7 @@ type SearchGroupsInput struct { Namespace *string // The maximum number of results to return from this request. - MaxResults int32 + MaxResults *int32 // A pagination token that can be used in a subsequent request. NextToken *string diff --git a/service/quicksight/deserializers.go b/service/quicksight/deserializers.go index b7f67f1689c..6a0ca0605c8 100644 --- a/service/quicksight/deserializers.go +++ b/service/quicksight/deserializers.go @@ -25387,7 +25387,7 @@ func awsRestjson1_deserializeDocumentBorderStyle(v **types.BorderStyle, value in if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.Show = jtv + sv.Show = ptr.Bool(jtv) } default: @@ -28955,7 +28955,7 @@ func awsRestjson1_deserializeDocumentGutterStyle(v **types.GutterStyle, value in if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.Show = jtv + sv.Show = ptr.Bool(jtv) } default: @@ -29321,7 +29321,7 @@ func awsRestjson1_deserializeDocumentIngestion(v **types.Ingestion, value interf if err != nil { return err } - sv.IngestionSizeInBytes = i64 + sv.IngestionSizeInBytes = ptr.Int64(i64) } case "IngestionStatus": @@ -29343,7 +29343,7 @@ func awsRestjson1_deserializeDocumentIngestion(v **types.Ingestion, value interf if err != nil { return err } - sv.IngestionTimeInSeconds = i64 + sv.IngestionTimeInSeconds = ptr.Int64(i64) } case "QueueInfo": @@ -29828,7 +29828,7 @@ func awsRestjson1_deserializeDocumentJoinKeyProperties(v **types.JoinKeyProperti if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.UniqueKey = jtv + sv.UniqueKey = ptr.Bool(jtv) } default: @@ -30150,7 +30150,7 @@ func awsRestjson1_deserializeDocumentMarginStyle(v **types.MarginStyle, value in if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.Show = jtv + sv.Show = ptr.Bool(jtv) } default: @@ -31688,7 +31688,7 @@ func awsRestjson1_deserializeDocumentRowInfo(v **types.RowInfo, value interface{ if err != nil { return err } - sv.RowsDropped = i64 + sv.RowsDropped = ptr.Int64(i64) } case "RowsIngested": @@ -31701,7 +31701,7 @@ func awsRestjson1_deserializeDocumentRowInfo(v **types.RowInfo, value interface{ if err != nil { return err } - sv.RowsIngested = i64 + sv.RowsIngested = ptr.Int64(i64) } case "TotalRowsInDataset": @@ -31714,7 +31714,7 @@ func awsRestjson1_deserializeDocumentRowInfo(v **types.RowInfo, value interface{ if err != nil { return err } - sv.TotalRowsInDataset = i64 + sv.TotalRowsInDataset = ptr.Int64(i64) } default: @@ -34710,7 +34710,7 @@ func awsRestjson1_deserializeDocumentUploadSettings(v **types.UploadSettings, va if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.ContainsHeader = jtv + sv.ContainsHeader = ptr.Bool(jtv) } case "Delimiter": @@ -34741,7 +34741,7 @@ func awsRestjson1_deserializeDocumentUploadSettings(v **types.UploadSettings, va if err != nil { return err } - sv.StartFromRow = int32(i64) + sv.StartFromRow = ptr.Int32(int32(i64)) } case "TextQualifier": diff --git a/service/quicksight/serializers.go b/service/quicksight/serializers.go index 9f6ff992a75..53c25b245b3 100644 --- a/service/quicksight/serializers.go +++ b/service/quicksight/serializers.go @@ -5565,8 +5565,8 @@ func awsRestjson1_serializeOpHttpBindingsListAnalysesInput(v *ListAnalysesInput, } } - if v.MaxResults != 0 { - encoder.SetQuery("max-results").Integer(v.MaxResults) + if v.MaxResults != nil { + encoder.SetQuery("max-results").Integer(*v.MaxResults) } if v.NextToken != nil { @@ -5631,8 +5631,8 @@ func awsRestjson1_serializeOpHttpBindingsListDashboardsInput(v *ListDashboardsIn } } - if v.MaxResults != 0 { - encoder.SetQuery("max-results").Integer(v.MaxResults) + if v.MaxResults != nil { + encoder.SetQuery("max-results").Integer(*v.MaxResults) } if v.NextToken != nil { @@ -5706,8 +5706,8 @@ func awsRestjson1_serializeOpHttpBindingsListDashboardVersionsInput(v *ListDashb } } - if v.MaxResults != 0 { - encoder.SetQuery("max-results").Integer(v.MaxResults) + if v.MaxResults != nil { + encoder.SetQuery("max-results").Integer(*v.MaxResults) } if v.NextToken != nil { @@ -5772,8 +5772,8 @@ func awsRestjson1_serializeOpHttpBindingsListDataSetsInput(v *ListDataSetsInput, } } - if v.MaxResults != 0 { - encoder.SetQuery("max-results").Integer(v.MaxResults) + if v.MaxResults != nil { + encoder.SetQuery("max-results").Integer(*v.MaxResults) } if v.NextToken != nil { @@ -5838,8 +5838,8 @@ func awsRestjson1_serializeOpHttpBindingsListDataSourcesInput(v *ListDataSources } } - if v.MaxResults != 0 { - encoder.SetQuery("max-results").Integer(v.MaxResults) + if v.MaxResults != nil { + encoder.SetQuery("max-results").Integer(*v.MaxResults) } if v.NextToken != nil { @@ -5913,8 +5913,8 @@ func awsRestjson1_serializeOpHttpBindingsListFolderMembersInput(v *ListFolderMem } } - if v.MaxResults != 0 { - encoder.SetQuery("max-results").Integer(v.MaxResults) + if v.MaxResults != nil { + encoder.SetQuery("max-results").Integer(*v.MaxResults) } if v.NextToken != nil { @@ -5979,8 +5979,8 @@ func awsRestjson1_serializeOpHttpBindingsListFoldersInput(v *ListFoldersInput, e } } - if v.MaxResults != 0 { - encoder.SetQuery("max-results").Integer(v.MaxResults) + if v.MaxResults != nil { + encoder.SetQuery("max-results").Integer(*v.MaxResults) } if v.NextToken != nil { @@ -6054,8 +6054,8 @@ func awsRestjson1_serializeOpHttpBindingsListGroupMembershipsInput(v *ListGroupM } } - if v.MaxResults != 0 { - encoder.SetQuery("max-results").Integer(v.MaxResults) + if v.MaxResults != nil { + encoder.SetQuery("max-results").Integer(*v.MaxResults) } if v.Namespace == nil || len(*v.Namespace) == 0 { @@ -6129,8 +6129,8 @@ func awsRestjson1_serializeOpHttpBindingsListGroupsInput(v *ListGroupsInput, enc } } - if v.MaxResults != 0 { - encoder.SetQuery("max-results").Integer(v.MaxResults) + if v.MaxResults != nil { + encoder.SetQuery("max-results").Integer(*v.MaxResults) } if v.Namespace == nil || len(*v.Namespace) == 0 { @@ -6215,8 +6215,8 @@ func awsRestjson1_serializeOpHttpBindingsListIAMPolicyAssignmentsInput(v *ListIA } } - if v.MaxResults != 0 { - encoder.SetQuery("max-results").Integer(v.MaxResults) + if v.MaxResults != nil { + encoder.SetQuery("max-results").Integer(*v.MaxResults) } if v.Namespace == nil || len(*v.Namespace) == 0 { @@ -6302,8 +6302,8 @@ func awsRestjson1_serializeOpHttpBindingsListIAMPolicyAssignmentsForUserInput(v } } - if v.MaxResults != 0 { - encoder.SetQuery("max-results").Integer(v.MaxResults) + if v.MaxResults != nil { + encoder.SetQuery("max-results").Integer(*v.MaxResults) } if v.Namespace == nil || len(*v.Namespace) == 0 { @@ -6395,8 +6395,8 @@ func awsRestjson1_serializeOpHttpBindingsListIngestionsInput(v *ListIngestionsIn } } - if v.MaxResults != 0 { - encoder.SetQuery("max-results").Integer(v.MaxResults) + if v.MaxResults != nil { + encoder.SetQuery("max-results").Integer(*v.MaxResults) } if v.NextToken != nil { @@ -6461,8 +6461,8 @@ func awsRestjson1_serializeOpHttpBindingsListNamespacesInput(v *ListNamespacesIn } } - if v.MaxResults != 0 { - encoder.SetQuery("max-results").Integer(v.MaxResults) + if v.MaxResults != nil { + encoder.SetQuery("max-results").Integer(*v.MaxResults) } if v.NextToken != nil { @@ -6585,8 +6585,8 @@ func awsRestjson1_serializeOpHttpBindingsListTemplateAliasesInput(v *ListTemplat } } - if v.MaxResults != 0 { - encoder.SetQuery("max-result").Integer(v.MaxResults) + if v.MaxResults != nil { + encoder.SetQuery("max-result").Integer(*v.MaxResults) } if v.NextToken != nil { @@ -6660,8 +6660,8 @@ func awsRestjson1_serializeOpHttpBindingsListTemplatesInput(v *ListTemplatesInpu } } - if v.MaxResults != 0 { - encoder.SetQuery("max-result").Integer(v.MaxResults) + if v.MaxResults != nil { + encoder.SetQuery("max-result").Integer(*v.MaxResults) } if v.NextToken != nil { @@ -6726,8 +6726,8 @@ func awsRestjson1_serializeOpHttpBindingsListTemplateVersionsInput(v *ListTempla } } - if v.MaxResults != 0 { - encoder.SetQuery("max-results").Integer(v.MaxResults) + if v.MaxResults != nil { + encoder.SetQuery("max-results").Integer(*v.MaxResults) } if v.NextToken != nil { @@ -6801,8 +6801,8 @@ func awsRestjson1_serializeOpHttpBindingsListThemeAliasesInput(v *ListThemeAlias } } - if v.MaxResults != 0 { - encoder.SetQuery("max-result").Integer(v.MaxResults) + if v.MaxResults != nil { + encoder.SetQuery("max-result").Integer(*v.MaxResults) } if v.NextToken != nil { @@ -6876,8 +6876,8 @@ func awsRestjson1_serializeOpHttpBindingsListThemesInput(v *ListThemesInput, enc } } - if v.MaxResults != 0 { - encoder.SetQuery("max-results").Integer(v.MaxResults) + if v.MaxResults != nil { + encoder.SetQuery("max-results").Integer(*v.MaxResults) } if v.NextToken != nil { @@ -6946,8 +6946,8 @@ func awsRestjson1_serializeOpHttpBindingsListThemeVersionsInput(v *ListThemeVers } } - if v.MaxResults != 0 { - encoder.SetQuery("max-results").Integer(v.MaxResults) + if v.MaxResults != nil { + encoder.SetQuery("max-results").Integer(*v.MaxResults) } if v.NextToken != nil { @@ -7021,8 +7021,8 @@ func awsRestjson1_serializeOpHttpBindingsListUserGroupsInput(v *ListUserGroupsIn } } - if v.MaxResults != 0 { - encoder.SetQuery("max-results").Integer(v.MaxResults) + if v.MaxResults != nil { + encoder.SetQuery("max-results").Integer(*v.MaxResults) } if v.Namespace == nil || len(*v.Namespace) == 0 { @@ -7105,8 +7105,8 @@ func awsRestjson1_serializeOpHttpBindingsListUsersInput(v *ListUsersInput, encod } } - if v.MaxResults != 0 { - encoder.SetQuery("max-results").Integer(v.MaxResults) + if v.MaxResults != nil { + encoder.SetQuery("max-results").Integer(*v.MaxResults) } if v.Namespace == nil || len(*v.Namespace) == 0 { @@ -7407,9 +7407,9 @@ func awsRestjson1_serializeOpDocumentSearchAnalysesInput(v *SearchAnalysesInput, } } - if v.MaxResults != 0 { + if v.MaxResults != nil { ok := object.Key("MaxResults") - ok.Integer(v.MaxResults) + ok.Integer(*v.MaxResults) } if v.NextToken != nil { @@ -7500,9 +7500,9 @@ func awsRestjson1_serializeOpDocumentSearchDashboardsInput(v *SearchDashboardsIn } } - if v.MaxResults != 0 { + if v.MaxResults != nil { ok := object.Key("MaxResults") - ok.Integer(v.MaxResults) + ok.Integer(*v.MaxResults) } if v.NextToken != nil { @@ -7593,9 +7593,9 @@ func awsRestjson1_serializeOpDocumentSearchFoldersInput(v *SearchFoldersInput, v } } - if v.MaxResults != 0 { + if v.MaxResults != nil { ok := object.Key("MaxResults") - ok.Integer(v.MaxResults) + ok.Integer(*v.MaxResults) } if v.NextToken != nil { @@ -7672,8 +7672,8 @@ func awsRestjson1_serializeOpHttpBindingsSearchGroupsInput(v *SearchGroupsInput, } } - if v.MaxResults != 0 { - encoder.SetQuery("max-results").Integer(v.MaxResults) + if v.MaxResults != nil { + encoder.SetQuery("max-results").Integer(*v.MaxResults) } if v.Namespace == nil || len(*v.Namespace) == 0 { @@ -10575,9 +10575,9 @@ func awsRestjson1_serializeDocumentBorderStyle(v *types.BorderStyle, value smith object := value.Object() defer object.Close() - if v.Show { + if v.Show != nil { ok := object.Key("Show") - ok.Boolean(v.Show) + ok.Boolean(*v.Show) } return nil @@ -11508,9 +11508,9 @@ func awsRestjson1_serializeDocumentGutterStyle(v *types.GutterStyle, value smith object := value.Object() defer object.Close() - if v.Show { + if v.Show != nil { ok := object.Key("Show") - ok.Boolean(v.Show) + ok.Boolean(*v.Show) } return nil @@ -11673,9 +11673,9 @@ func awsRestjson1_serializeDocumentJoinKeyProperties(v *types.JoinKeyProperties, object := value.Object() defer object.Close() - if v.UniqueKey { + if v.UniqueKey != nil { ok := object.Key("UniqueKey") - ok.Boolean(v.UniqueKey) + ok.Boolean(*v.UniqueKey) } return nil @@ -11777,9 +11777,9 @@ func awsRestjson1_serializeDocumentMarginStyle(v *types.MarginStyle, value smith object := value.Object() defer object.Close() - if v.Show { + if v.Show != nil { ok := object.Key("Show") - ok.Boolean(v.Show) + ok.Boolean(*v.Show) } return nil @@ -12966,9 +12966,9 @@ func awsRestjson1_serializeDocumentUploadSettings(v *types.UploadSettings, value object := value.Object() defer object.Close() - if v.ContainsHeader { + if v.ContainsHeader != nil { ok := object.Key("ContainsHeader") - ok.Boolean(v.ContainsHeader) + ok.Boolean(*v.ContainsHeader) } if v.Delimiter != nil { @@ -12981,9 +12981,9 @@ func awsRestjson1_serializeDocumentUploadSettings(v *types.UploadSettings, value ok.String(string(v.Format)) } - if v.StartFromRow != 0 { + if v.StartFromRow != nil { ok := object.Key("StartFromRow") - ok.Integer(v.StartFromRow) + ok.Integer(*v.StartFromRow) } if len(v.TextQualifier) > 0 { diff --git a/service/quicksight/types/types.go b/service/quicksight/types/types.go index aed62629659..24db92113ff 100644 --- a/service/quicksight/types/types.go +++ b/service/quicksight/types/types.go @@ -358,7 +358,7 @@ type AwsIotAnalyticsParameters struct { type BorderStyle struct { // The option to enable display of borders for visuals. - Show bool + Show *bool noSmithyDocumentSerde } @@ -1527,7 +1527,7 @@ type GutterStyle struct { // This Boolean value controls whether to display a gutter space between sheet // tiles. - Show bool + Show *bool noSmithyDocumentSerde } @@ -1593,10 +1593,10 @@ type Ingestion struct { IngestionId *string // The size of the data ingested, in bytes. - IngestionSizeInBytes int64 + IngestionSizeInBytes *int64 // The time that this ingestion took, measured in seconds. - IngestionTimeInSeconds int64 + IngestionTimeInSeconds *int64 // Information about a queued dataset SPICE ingestion. QueueInfo *QueueInfo @@ -1694,7 +1694,7 @@ type JoinKeyProperties struct { // A value that indicates that a row in a table is uniquely identified by the // columns in a join key. This is used by Amazon QuickSight to optimize query // performance. - UniqueKey bool + UniqueKey *bool noSmithyDocumentSerde } @@ -1768,7 +1768,7 @@ type ManifestFileLocation struct { type MarginStyle struct { // This Boolean value controls whether to display sheet margins. - Show bool + Show *bool noSmithyDocumentSerde } @@ -2269,13 +2269,13 @@ type ResourcePermission struct { type RowInfo struct { // The number of rows that were not ingested. - RowsDropped int64 + RowsDropped *int64 // The number of rows that were ingested. - RowsIngested int64 + RowsIngested *int64 // The total number of rows in the dataset. - TotalRowsInDataset int64 + TotalRowsInDataset *int64 noSmithyDocumentSerde } @@ -3151,7 +3151,7 @@ type UntagColumnOperation struct { type UploadSettings struct { // Whether the file has a header row, or the files each have a header row. - ContainsHeader bool + ContainsHeader *bool // The delimiter between values in the file. Delimiter *string @@ -3160,7 +3160,7 @@ type UploadSettings struct { Format FileFormat // A row number to start reading data from. - StartFromRow int32 + StartFromRow *int32 // Text qualifier. TextQualifier TextQualifier diff --git a/service/route53recoverycluster/api_op_ListRoutingControls.go b/service/route53recoverycluster/api_op_ListRoutingControls.go index 2781e2cd070..f5246de357f 100644 --- a/service/route53recoverycluster/api_op_ListRoutingControls.go +++ b/service/route53recoverycluster/api_op_ListRoutingControls.go @@ -60,7 +60,7 @@ type ListRoutingControlsInput struct { // The number of routing controls objects that you want to return with this call. // The default value is 500. - MaxResults int32 + MaxResults *int32 // The token for the next set of results. You receive this token from a previous // call. @@ -182,8 +182,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 { @@ -213,7 +213,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/route53recoverycluster/serializers.go b/service/route53recoverycluster/serializers.go index 09f0eb35320..cd9fff0075b 100644 --- a/service/route53recoverycluster/serializers.go +++ b/service/route53recoverycluster/serializers.go @@ -296,9 +296,9 @@ func awsAwsjson10_serializeOpDocumentListRoutingControlsInput(v *ListRoutingCont ok.String(*v.ControlPanelArn) } - if v.MaxResults != 0 { + if v.MaxResults != nil { ok := object.Key("MaxResults") - ok.Integer(v.MaxResults) + ok.Integer(*v.MaxResults) } if v.NextToken != nil { diff --git a/service/s3control/api_op_CreateJob.go b/service/s3control/api_op_CreateJob.go index ec5a51433e9..169da758cac 100644 --- a/service/s3control/api_op_CreateJob.go +++ b/service/s3control/api_op_CreateJob.go @@ -79,7 +79,7 @@ type CreateJobInput struct { // The numerical priority for this job. Higher numbers indicate higher priority. // // This member is required. - Priority int32 + Priority *int32 // Configuration parameters for the optional job-completion report. // @@ -95,7 +95,7 @@ type CreateJobInput struct { // Indicates whether confirmation is required before Amazon S3 runs the job. // Confirmation is only required for jobs created through the Amazon S3 console. - ConfirmationRequired bool + ConfirmationRequired *bool // A description for this job. You can use any string within the permitted length. // Descriptions don't need to be unique and can be used for multiple jobs. diff --git a/service/s3control/api_op_ListJobs.go b/service/s3control/api_op_ListJobs.go index b41ec569c56..14f53b770a7 100644 --- a/service/s3control/api_op_ListJobs.go +++ b/service/s3control/api_op_ListJobs.go @@ -65,7 +65,7 @@ type ListJobsInput struct { // response. If there are more jobs than this number, the response will include a // pagination token in the NextToken field to enable you to retrieve the next page // of results. - MaxResults int32 + MaxResults *int32 // A pagination token to request the next page of results. Use the token that // Amazon S3 returned in the NextToken element of the ListJobsResult from the @@ -240,8 +240,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 { @@ -271,7 +271,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/s3control/deserializers.go b/service/s3control/deserializers.go index fa41c7fc768..db994e24383 100644 --- a/service/s3control/deserializers.go +++ b/service/s3control/deserializers.go @@ -9079,7 +9079,7 @@ func awsRestxml_deserializeDocumentJobDescriptor(v **types.JobDescriptor, decode if err != nil { return fmt.Errorf("expected ConfirmationRequired to be of type *bool, got %T instead", val) } - sv.ConfirmationRequired = xtv + sv.ConfirmationRequired = ptr.Bool(xtv) } case strings.EqualFold("CreationTime", t.Name.Local): @@ -9881,7 +9881,7 @@ func awsRestxml_deserializeDocumentJobManifestGeneratorFilter(v **types.JobManif if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.EligibleForReplication = xtv + sv.EligibleForReplication = ptr.Bool(xtv) } case strings.EqualFold("ObjectReplicationStatuses", t.Name.Local): @@ -10160,7 +10160,7 @@ func awsRestxml_deserializeDocumentJobProgressSummary(v **types.JobProgressSumma if err != nil { return err } - sv.NumberOfTasksFailed = i64 + sv.NumberOfTasksFailed = ptr.Int64(i64) } case strings.EqualFold("NumberOfTasksSucceeded", t.Name.Local): @@ -10177,7 +10177,7 @@ func awsRestxml_deserializeDocumentJobProgressSummary(v **types.JobProgressSumma if err != nil { return err } - sv.NumberOfTasksSucceeded = i64 + sv.NumberOfTasksSucceeded = ptr.Int64(i64) } case strings.EqualFold("Timers", t.Name.Local): @@ -10200,7 +10200,7 @@ func awsRestxml_deserializeDocumentJobProgressSummary(v **types.JobProgressSumma if err != nil { return err } - sv.TotalNumberOfTasks = i64 + sv.TotalNumberOfTasks = ptr.Int64(i64) } default: @@ -10406,7 +10406,7 @@ func awsRestxml_deserializeDocumentJobTimers(v **types.JobTimers, decoder smithy if err != nil { return err } - sv.ElapsedTimeInActiveSeconds = i64 + sv.ElapsedTimeInActiveSeconds = ptr.Int64(i64) } default: @@ -14234,7 +14234,7 @@ func awsRestxml_deserializeDocumentS3ObjectMetadata(v **types.S3ObjectMetadata, if err != nil { return err } - sv.ContentLength = i64 + sv.ContentLength = ptr.Int64(i64) } case strings.EqualFold("ContentMD5", t.Name.Local): @@ -14612,7 +14612,7 @@ func awsRestxml_deserializeDocumentS3SetObjectRetentionOperation(v **types.S3Set if err != nil { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val) } - sv.BypassGovernanceRetention = xtv + sv.BypassGovernanceRetention = ptr.Bool(xtv) } case strings.EqualFold("Retention", t.Name.Local): diff --git a/service/s3control/serializers.go b/service/s3control/serializers.go index 85b6c65739d..ce367a34fb5 100644 --- a/service/s3control/serializers.go +++ b/service/s3control/serializers.go @@ -445,7 +445,7 @@ func awsRestxml_serializeOpDocumentCreateJobInput(v *CreateJobInput, value smith el := value.MemberElement(root) el.String(*v.ClientRequestToken) } - if v.ConfirmationRequired { + if v.ConfirmationRequired != nil { rootAttr := []smithyxml.Attr{} root := smithyxml.StartElement{ Name: smithyxml.Name{ @@ -454,7 +454,7 @@ func awsRestxml_serializeOpDocumentCreateJobInput(v *CreateJobInput, value smith Attr: rootAttr, } el := value.MemberElement(root) - el.Boolean(v.ConfirmationRequired) + el.Boolean(*v.ConfirmationRequired) } if v.Description != nil { rootAttr := []smithyxml.Attr{} @@ -506,7 +506,7 @@ func awsRestxml_serializeOpDocumentCreateJobInput(v *CreateJobInput, value smith return err } } - { + if v.Priority != nil { rootAttr := []smithyxml.Attr{} root := smithyxml.StartElement{ Name: smithyxml.Name{ @@ -515,7 +515,7 @@ func awsRestxml_serializeOpDocumentCreateJobInput(v *CreateJobInput, value smith Attr: rootAttr, } el := value.MemberElement(root) - el.Integer(v.Priority) + el.Integer(*v.Priority) } if v.Report != nil { rootAttr := []smithyxml.Attr{} @@ -2942,8 +2942,8 @@ func awsRestxml_serializeOpHttpBindingsListJobsInput(v *ListJobsInput, encoder * } } - if v.MaxResults != 0 { - encoder.SetQuery("maxResults").Integer(v.MaxResults) + if v.MaxResults != nil { + encoder.SetQuery("maxResults").Integer(*v.MaxResults) } if v.NextToken != nil { @@ -4751,7 +4751,7 @@ func awsRestxml_serializeDocumentJobManifestGeneratorFilter(v *types.JobManifest el := value.MemberElement(root) el.String(smithytime.FormatDateTime(*v.CreatedBefore)) } - if v.EligibleForReplication { + if v.EligibleForReplication != nil { rootAttr := []smithyxml.Attr{} root := smithyxml.StartElement{ Name: smithyxml.Name{ @@ -4760,7 +4760,7 @@ func awsRestxml_serializeDocumentJobManifestGeneratorFilter(v *types.JobManifest Attr: rootAttr, } el := value.MemberElement(root) - el.Boolean(v.EligibleForReplication) + el.Boolean(*v.EligibleForReplication) } if v.ObjectReplicationStatuses != nil { rootAttr := []smithyxml.Attr{} @@ -6369,7 +6369,7 @@ func awsRestxml_serializeDocumentS3ObjectMetadata(v *types.S3ObjectMetadata, val el := value.MemberElement(root) el.String(*v.ContentLanguage) } - if v.ContentLength != 0 { + if v.ContentLength != nil { rootAttr := []smithyxml.Attr{} root := smithyxml.StartElement{ Name: smithyxml.Name{ @@ -6378,7 +6378,7 @@ func awsRestxml_serializeDocumentS3ObjectMetadata(v *types.S3ObjectMetadata, val Attr: rootAttr, } el := value.MemberElement(root) - el.Long(v.ContentLength) + el.Long(*v.ContentLength) } if v.ContentMD5 != nil { rootAttr := []smithyxml.Attr{} @@ -6548,7 +6548,7 @@ func awsRestxml_serializeDocumentS3SetObjectLegalHoldOperation(v *types.S3SetObj func awsRestxml_serializeDocumentS3SetObjectRetentionOperation(v *types.S3SetObjectRetentionOperation, value smithyxml.Value) error { defer value.Close() - if v.BypassGovernanceRetention { + if v.BypassGovernanceRetention != nil { rootAttr := []smithyxml.Attr{} root := smithyxml.StartElement{ Name: smithyxml.Name{ @@ -6557,7 +6557,7 @@ func awsRestxml_serializeDocumentS3SetObjectRetentionOperation(v *types.S3SetObj Attr: rootAttr, } el := value.MemberElement(root) - el.Boolean(v.BypassGovernanceRetention) + el.Boolean(*v.BypassGovernanceRetention) } if v.Retention != nil { rootAttr := []smithyxml.Attr{} diff --git a/service/s3control/types/types.go b/service/s3control/types/types.go index 176d5f6c8a9..341778bfb39 100644 --- a/service/s3control/types/types.go +++ b/service/s3control/types/types.go @@ -305,7 +305,7 @@ type JobDescriptor struct { // Indicates whether confirmation is required before Amazon S3 begins running the // specified job. Confirmation is required only for jobs created through the Amazon // S3 console. - ConfirmationRequired bool + ConfirmationRequired *bool // A timestamp indicating when this job was created. CreationTime *time.Time @@ -470,7 +470,7 @@ type JobManifestGeneratorFilter struct { // Include objects in the generated manifest only if they are eligible for // replication according to the Replication configuration on the source bucket. - EligibleForReplication bool + EligibleForReplication *bool // If provided, the generated manifest should include only source bucket objects // that have one of the specified Replication statuses. @@ -576,16 +576,16 @@ type JobOperation struct { type JobProgressSummary struct { // - NumberOfTasksFailed int64 + NumberOfTasksFailed *int64 // - NumberOfTasksSucceeded int64 + NumberOfTasksSucceeded *int64 // The JobTimers attribute of a job's progress summary. Timers *JobTimers // - TotalNumberOfTasks int64 + TotalNumberOfTasks *int64 noSmithyDocumentSerde } @@ -621,7 +621,7 @@ type JobReport struct { type JobTimers struct { // Indicates the elapsed time in seconds the job has been in the Active job state. - ElapsedTimeInActiveSeconds int64 + ElapsedTimeInActiveSeconds *int64 noSmithyDocumentSerde } @@ -1416,7 +1416,7 @@ type S3ObjectMetadata struct { ContentLanguage *string // - ContentLength int64 + ContentLength *int64 // ContentMD5 *string @@ -1523,7 +1523,7 @@ type S3SetObjectRetentionOperation struct { // Indicates if the action should be applied to objects in the Batch Operations job // even if they have Object Lock GOVERNANCE type in place. - BypassGovernanceRetention bool + BypassGovernanceRetention *bool noSmithyDocumentSerde } diff --git a/service/s3control/validators.go b/service/s3control/validators.go index 8f7561c0439..31e9de1ae7f 100644 --- a/service/s3control/validators.go +++ b/service/s3control/validators.go @@ -2380,6 +2380,9 @@ func validateOpCreateJobInput(v *CreateJobInput) error { invalidParams.AddNested("Manifest", err.(smithy.InvalidParamsError)) } } + if v.Priority == nil { + invalidParams.Add(smithy.NewErrParamRequired("Priority")) + } if v.RoleArn == nil { invalidParams.Add(smithy.NewErrParamRequired("RoleArn")) } diff --git a/service/sagemaker/api_op_ListAutoMLJobs.go b/service/sagemaker/api_op_ListAutoMLJobs.go index 97a7c5485a1..ab1d64ba102 100644 --- a/service/sagemaker/api_op_ListAutoMLJobs.go +++ b/service/sagemaker/api_op_ListAutoMLJobs.go @@ -44,7 +44,7 @@ type ListAutoMLJobsInput struct { LastModifiedTimeBefore *time.Time // Request a list of jobs up to a specified limit. - MaxResults int32 + MaxResults *int32 // Request a list of jobs, using a search filter for name. NameContains *string @@ -176,8 +176,8 @@ func NewListAutoMLJobsPaginator(client ListAutoMLJobsAPIClient, params *ListAuto } options := ListAutoMLJobsPaginatorOptions{} - 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 *ListAutoMLJobsPaginator) 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.ListAutoMLJobs(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/sagemaker/api_op_ListCandidatesForAutoMLJob.go b/service/sagemaker/api_op_ListCandidatesForAutoMLJob.go index a54d08eb28c..21724f5f69a 100644 --- a/service/sagemaker/api_op_ListCandidatesForAutoMLJob.go +++ b/service/sagemaker/api_op_ListCandidatesForAutoMLJob.go @@ -39,7 +39,7 @@ type ListCandidatesForAutoMLJobInput struct { CandidateNameEquals *string // List the job's candidates up to a specified limit. - MaxResults int32 + MaxResults *int32 // If the previous response was truncated, you receive this token. Use it in your // next request to receive the next set of results. @@ -174,8 +174,8 @@ func NewListCandidatesForAutoMLJobPaginator(client ListCandidatesForAutoMLJobAPI } options := ListCandidatesForAutoMLJobPaginatorOptions{} - 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 *ListCandidatesForAutoMLJobPaginator) 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.ListCandidatesForAutoMLJob(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/sagemaker/api_op_ListDeviceFleets.go b/service/sagemaker/api_op_ListDeviceFleets.go index cda1af036a7..80ad032d7d0 100644 --- a/service/sagemaker/api_op_ListDeviceFleets.go +++ b/service/sagemaker/api_op_ListDeviceFleets.go @@ -44,7 +44,7 @@ type ListDeviceFleetsInput struct { LastModifiedTimeBefore *time.Time // The maximum number of results to select. - MaxResults int32 + MaxResults *int32 // Filter for fleets containing this name in their fleet device name. NameContains *string @@ -173,8 +173,8 @@ func NewListDeviceFleetsPaginator(client ListDeviceFleetsAPIClient, params *List } options := ListDeviceFleetsPaginatorOptions{} - 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 *ListDeviceFleetsPaginator) 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.ListDeviceFleets(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/sagemaker/api_op_ListDevices.go b/service/sagemaker/api_op_ListDevices.go index 2b8d659904d..cc88c040135 100644 --- a/service/sagemaker/api_op_ListDevices.go +++ b/service/sagemaker/api_op_ListDevices.go @@ -38,7 +38,7 @@ type ListDevicesInput struct { LatestHeartbeatAfter *time.Time // Maximum number of results to select. - MaxResults int32 + MaxResults *int32 // A filter that searches devices that contains this name in any of their models. ModelName *string @@ -160,8 +160,8 @@ func NewListDevicesPaginator(client ListDevicesAPIClient, params *ListDevicesInp } options := ListDevicesPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults + if params.MaxResults != nil { + options.Limit = *params.MaxResults } for _, fn := range optFns { @@ -191,7 +191,11 @@ func (p *ListDevicesPaginator) 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.ListDevices(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/sagemaker/api_op_ListEdgeDeploymentPlans.go b/service/sagemaker/api_op_ListEdgeDeploymentPlans.go index f89fcb91e3e..cd0b9d6dea0 100644 --- a/service/sagemaker/api_op_ListEdgeDeploymentPlans.go +++ b/service/sagemaker/api_op_ListEdgeDeploymentPlans.go @@ -47,7 +47,7 @@ type ListEdgeDeploymentPlansInput struct { LastModifiedTimeBefore *time.Time // The maximum number of results to select (50 by default). - MaxResults int32 + MaxResults *int32 // Selects edge deployment plans with names containing this name. NameContains *string @@ -178,8 +178,8 @@ func NewListEdgeDeploymentPlansPaginator(client ListEdgeDeploymentPlansAPIClient } options := ListEdgeDeploymentPlansPaginatorOptions{} - 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 *ListEdgeDeploymentPlansPaginator) 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.ListEdgeDeploymentPlans(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/sagemaker/api_op_ListEdgePackagingJobs.go b/service/sagemaker/api_op_ListEdgePackagingJobs.go index 23b4b4eb740..303fe105c5e 100644 --- a/service/sagemaker/api_op_ListEdgePackagingJobs.go +++ b/service/sagemaker/api_op_ListEdgePackagingJobs.go @@ -44,7 +44,7 @@ type ListEdgePackagingJobsInput struct { LastModifiedTimeBefore *time.Time // Maximum number of results to select. - MaxResults int32 + MaxResults *int32 // Filter for jobs where the model name contains this string. ModelNameContains *string @@ -179,8 +179,8 @@ func NewListEdgePackagingJobsPaginator(client ListEdgePackagingJobsAPIClient, pa } options := ListEdgePackagingJobsPaginatorOptions{} - 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 *ListEdgePackagingJobsPaginator) 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.ListEdgePackagingJobs(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/sagemaker/api_op_ListStageDevices.go b/service/sagemaker/api_op_ListStageDevices.go index a8e6be9407d..3d696f2de75 100644 --- a/service/sagemaker/api_op_ListStageDevices.go +++ b/service/sagemaker/api_op_ListStageDevices.go @@ -45,7 +45,7 @@ type ListStageDevicesInput struct { ExcludeDevicesDeployedInOtherStage bool // The maximum number of requests to select. - MaxResults int32 + MaxResults *int32 // The response from the last list when returning a list large enough to neeed // tokening. @@ -167,8 +167,8 @@ func NewListStageDevicesPaginator(client ListStageDevicesAPIClient, params *List } options := ListStageDevicesPaginatorOptions{} - 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 *ListStageDevicesPaginator) 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.ListStageDevices(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/sagemaker/deserializers.go b/service/sagemaker/deserializers.go index 98a40e554af..166e9e2fa74 100644 --- a/service/sagemaker/deserializers.go +++ b/service/sagemaker/deserializers.go @@ -39336,7 +39336,7 @@ func awsAwsjson11_deserializeDocumentFileSystemConfig(v **types.FileSystemConfig if err != nil { return err } - sv.DefaultGid = int32(i64) + sv.DefaultGid = ptr.Int32(int32(i64)) } case "DefaultUid": @@ -39349,7 +39349,7 @@ func awsAwsjson11_deserializeDocumentFileSystemConfig(v **types.FileSystemConfig if err != nil { return err } - sv.DefaultUid = int32(i64) + sv.DefaultUid = ptr.Int32(int32(i64)) } case "MountPath": diff --git a/service/sagemaker/serializers.go b/service/sagemaker/serializers.go index a7c93eceaac..c9a678151ce 100644 --- a/service/sagemaker/serializers.go +++ b/service/sagemaker/serializers.go @@ -16868,14 +16868,14 @@ func awsAwsjson11_serializeDocumentFileSystemConfig(v *types.FileSystemConfig, v object := value.Object() defer object.Close() - if v.DefaultGid != 0 { + if v.DefaultGid != nil { ok := object.Key("DefaultGid") - ok.Integer(v.DefaultGid) + ok.Integer(*v.DefaultGid) } - if v.DefaultUid != 0 { + if v.DefaultUid != nil { ok := object.Key("DefaultUid") - ok.Integer(v.DefaultUid) + ok.Integer(*v.DefaultUid) } if v.MountPath != nil { @@ -26148,9 +26148,9 @@ func awsAwsjson11_serializeOpDocumentListAutoMLJobsInput(v *ListAutoMLJobsInput, ok.Double(smithytime.FormatEpochSeconds(*v.LastModifiedTimeBefore)) } - if v.MaxResults != 0 { + if v.MaxResults != nil { ok := object.Key("MaxResults") - ok.Integer(v.MaxResults) + ok.Integer(*v.MaxResults) } if v.NameContains != nil { @@ -26195,9 +26195,9 @@ func awsAwsjson11_serializeOpDocumentListCandidatesForAutoMLJobInput(v *ListCand ok.String(*v.CandidateNameEquals) } - if v.MaxResults != 0 { + if v.MaxResults != nil { ok := object.Key("MaxResults") - ok.Integer(v.MaxResults) + ok.Integer(*v.MaxResults) } if v.NextToken != nil { @@ -26450,9 +26450,9 @@ func awsAwsjson11_serializeOpDocumentListDeviceFleetsInput(v *ListDeviceFleetsIn ok.Double(smithytime.FormatEpochSeconds(*v.LastModifiedTimeBefore)) } - if v.MaxResults != 0 { + if v.MaxResults != nil { ok := object.Key("MaxResults") - ok.Integer(v.MaxResults) + ok.Integer(*v.MaxResults) } if v.NameContains != nil { @@ -26492,9 +26492,9 @@ func awsAwsjson11_serializeOpDocumentListDevicesInput(v *ListDevicesInput, value ok.Double(smithytime.FormatEpochSeconds(*v.LatestHeartbeatAfter)) } - if v.MaxResults != 0 { + if v.MaxResults != nil { ok := object.Key("MaxResults") - ok.Integer(v.MaxResults) + ok.Integer(*v.MaxResults) } if v.ModelName != nil { @@ -26556,9 +26556,9 @@ func awsAwsjson11_serializeOpDocumentListEdgeDeploymentPlansInput(v *ListEdgeDep ok.Double(smithytime.FormatEpochSeconds(*v.LastModifiedTimeBefore)) } - if v.MaxResults != 0 { + if v.MaxResults != nil { ok := object.Key("MaxResults") - ok.Integer(v.MaxResults) + ok.Integer(*v.MaxResults) } if v.NameContains != nil { @@ -26608,9 +26608,9 @@ func awsAwsjson11_serializeOpDocumentListEdgePackagingJobsInput(v *ListEdgePacka ok.Double(smithytime.FormatEpochSeconds(*v.LastModifiedTimeBefore)) } - if v.MaxResults != 0 { + if v.MaxResults != nil { ok := object.Key("MaxResults") - ok.Integer(v.MaxResults) + ok.Integer(*v.MaxResults) } if v.ModelNameContains != nil { @@ -28087,9 +28087,9 @@ func awsAwsjson11_serializeOpDocumentListStageDevicesInput(v *ListStageDevicesIn ok.Boolean(v.ExcludeDevicesDeployedInOtherStage) } - if v.MaxResults != 0 { + if v.MaxResults != nil { ok := object.Key("MaxResults") - ok.Integer(v.MaxResults) + ok.Integer(*v.MaxResults) } if v.NextToken != nil { diff --git a/service/sagemaker/types/types.go b/service/sagemaker/types/types.go index a92e2b21325..735980c8ba3 100644 --- a/service/sagemaker/types/types.go +++ b/service/sagemaker/types/types.go @@ -4290,10 +4290,10 @@ type FileSource struct { type FileSystemConfig struct { // The default POSIX group ID (GID). If not specified, defaults to 100. - DefaultGid int32 + DefaultGid *int32 // The default POSIX user ID (UID). If not specified, defaults to 1000. - DefaultUid int32 + DefaultUid *int32 // The path within the image to mount the user's EFS home directory. The directory // should be empty. If not specified, defaults to /home/sagemaker-user. diff --git a/service/sagemakera2iruntime/api_op_ListHumanLoops.go b/service/sagemakera2iruntime/api_op_ListHumanLoops.go index bfcdd8e9355..250da42cbb8 100644 --- a/service/sagemakera2iruntime/api_op_ListHumanLoops.go +++ b/service/sagemakera2iruntime/api_op_ListHumanLoops.go @@ -48,7 +48,7 @@ type ListHumanLoopsInput struct { // The total number of items to return. If the total number of available items is // more than the value specified in MaxResults, then a NextToken is returned in the // output. You can use this token to display the next page of results. - MaxResults int32 + MaxResults *int32 // A token to display the next page of results. NextToken *string @@ -175,8 +175,8 @@ func NewListHumanLoopsPaginator(client ListHumanLoopsAPIClient, params *ListHuma } options := ListHumanLoopsPaginatorOptions{} - 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 *ListHumanLoopsPaginator) 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.ListHumanLoops(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/sagemakera2iruntime/serializers.go b/service/sagemakera2iruntime/serializers.go index 3e92a399645..753eddedfb8 100644 --- a/service/sagemakera2iruntime/serializers.go +++ b/service/sagemakera2iruntime/serializers.go @@ -189,8 +189,8 @@ func awsRestjson1_serializeOpHttpBindingsListHumanLoopsInput(v *ListHumanLoopsIn encoder.SetQuery("FlowDefinitionArn").String(*v.FlowDefinitionArn) } - 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/secretsmanager/api_op_DeleteSecret.go b/service/secretsmanager/api_op_DeleteSecret.go index a5e392aa7fe..f9f7ddd05be 100644 --- a/service/secretsmanager/api_op_DeleteSecret.go +++ b/service/secretsmanager/api_op_DeleteSecret.go @@ -76,13 +76,13 @@ type DeleteSecretInput struct { // RecoveryWindowInDays parameter. If you delete a secret with the // ForceDeleteWithouRecovery parameter, then you have no opportunity to recover the // secret. You lose the secret permanently. - ForceDeleteWithoutRecovery bool + ForceDeleteWithoutRecovery *bool // The number of days from 7 to 30 that Secrets Manager waits before permanently // deleting the secret. You can't use both this parameter and // ForceDeleteWithoutRecovery in the same call. If you don't use either, then // Secrets Manager defaults to a 30 day recovery window. - RecoveryWindowInDays int64 + RecoveryWindowInDays *int64 noSmithyDocumentSerde } diff --git a/service/secretsmanager/api_op_DescribeSecret.go b/service/secretsmanager/api_op_DescribeSecret.go index 2ccced3a382..1d69cad242a 100644 --- a/service/secretsmanager/api_op_DescribeSecret.go +++ b/service/secretsmanager/api_op_DescribeSecret.go @@ -109,7 +109,7 @@ type DescribeSecretOutput struct { // Specifies whether automatic rotation is turned on for this secret. To turn on // rotation, use RotateSecret. To turn off rotation, use CancelRotateSecret. - RotationEnabled bool + RotationEnabled *bool // The ARN of the Lambda function that Secrets Manager invokes to rotate the // secret. diff --git a/service/secretsmanager/api_op_GetRandomPassword.go b/service/secretsmanager/api_op_GetRandomPassword.go index edba5a0bb05..ad6bbb24e77 100644 --- a/service/secretsmanager/api_op_GetRandomPassword.go +++ b/service/secretsmanager/api_op_GetRandomPassword.go @@ -39,33 +39,33 @@ type GetRandomPasswordInput struct { // Specifies whether to exclude lowercase letters from the password. If you don't // include this switch, the password can contain lowercase letters. - ExcludeLowercase bool + ExcludeLowercase *bool // Specifies whether to exclude numbers from the password. If you don't include // this switch, the password can contain numbers. - ExcludeNumbers bool + ExcludeNumbers *bool // Specifies whether to exclude the following punctuation characters from the // password: ! " # $ % & ' ( ) * + , - . / : ; < = > ? @ [ \ ] ^ _ ` { | } ~. If // you don't include this switch, the password can contain punctuation. - ExcludePunctuation bool + ExcludePunctuation *bool // Specifies whether to exclude uppercase letters from the password. If you don't // include this switch, the password can contain uppercase letters. - ExcludeUppercase bool + ExcludeUppercase *bool // Specifies whether to include the space character. If you include this switch, // the password can contain space characters. - IncludeSpace bool + IncludeSpace *bool // The length of the password. If you don't include this parameter, the default // length is 32 characters. - PasswordLength int64 + PasswordLength *int64 // Specifies whether to include at least one upper and lowercase letter, one // number, and one punctuation. If you don't include this switch, the password // contains at least one of every character type. - RequireEachIncludedType bool + RequireEachIncludedType *bool noSmithyDocumentSerde } diff --git a/service/secretsmanager/api_op_ListSecretVersionIds.go b/service/secretsmanager/api_op_ListSecretVersionIds.go index 778ffe9dfc4..edf3fab843b 100644 --- a/service/secretsmanager/api_op_ListSecretVersionIds.go +++ b/service/secretsmanager/api_op_ListSecretVersionIds.go @@ -50,12 +50,12 @@ type ListSecretVersionIdsInput struct { // Specifies whether to include versions of secrets that don't have any staging // labels attached to them. Versions without staging labels are considered // deprecated and are subject to deletion by Secrets Manager. - IncludeDeprecated bool + IncludeDeprecated *bool // The number of results to include in the response. If there are more results // available, in the response, Secrets Manager includes NextToken. To get the next // results, call ListSecretVersionIds again with the value from NextToken. - MaxResults int32 + MaxResults *int32 // A token that indicates where the output should continue from, if a previous call // did not show all results. To get the next results, call ListSecretVersionIds @@ -188,8 +188,8 @@ func NewListSecretVersionIdsPaginator(client ListSecretVersionIdsAPIClient, para } options := ListSecretVersionIdsPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults + if params.MaxResults != nil { + options.Limit = *params.MaxResults } for _, fn := range optFns { @@ -219,7 +219,11 @@ func (p *ListSecretVersionIdsPaginator) 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.ListSecretVersionIds(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/secretsmanager/api_op_ListSecrets.go b/service/secretsmanager/api_op_ListSecrets.go index cefd7a24d3a..33f384cd73d 100644 --- a/service/secretsmanager/api_op_ListSecrets.go +++ b/service/secretsmanager/api_op_ListSecrets.go @@ -49,7 +49,7 @@ type ListSecretsInput struct { // The number of results to include in the response. If there are more results // available, in the response, Secrets Manager includes NextToken. To get the next // results, call ListSecrets again with the value from NextToken. - MaxResults int32 + MaxResults *int32 // A token that indicates where the output should continue from, if a previous call // did not show all results. To get the next results, call ListSecrets again with @@ -174,8 +174,8 @@ func NewListSecretsPaginator(client ListSecretsAPIClient, params *ListSecretsInp } options := ListSecretsPaginatorOptions{} - 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 *ListSecretsPaginator) 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.ListSecrets(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/secretsmanager/api_op_PutResourcePolicy.go b/service/secretsmanager/api_op_PutResourcePolicy.go index 5bcae98e0c4..a5de58af63f 100644 --- a/service/secretsmanager/api_op_PutResourcePolicy.go +++ b/service/secretsmanager/api_op_PutResourcePolicy.go @@ -56,7 +56,7 @@ type PutResourcePolicyInput struct { // Specifies whether to block resource-based policies that allow broad access to // the secret, for example those that use a wildcard for the principal. - BlockPublicPolicy bool + BlockPublicPolicy *bool noSmithyDocumentSerde } diff --git a/service/secretsmanager/api_op_RotateSecret.go b/service/secretsmanager/api_op_RotateSecret.go index 41378b043aa..7fcfcf44308 100644 --- a/service/secretsmanager/api_op_RotateSecret.go +++ b/service/secretsmanager/api_op_RotateSecret.go @@ -100,7 +100,7 @@ type RotateSecretInput struct { // of the Lambda rotation function. The test creates an AWSPENDING version of the // secret and then removes it. If you don't specify this value, then by default, // Secrets Manager rotates the secret immediately. - RotateImmediately bool + RotateImmediately *bool // The ARN of the Lambda rotation function that can rotate the secret. RotationLambdaARN *string diff --git a/service/secretsmanager/deserializers.go b/service/secretsmanager/deserializers.go index 7e7234b93df..d24ef137db9 100644 --- a/service/secretsmanager/deserializers.go +++ b/service/secretsmanager/deserializers.go @@ -3756,7 +3756,7 @@ func awsAwsjson11_deserializeDocumentRotationRulesType(v **types.RotationRulesTy if err != nil { return err } - sv.AutomaticallyAfterDays = i64 + sv.AutomaticallyAfterDays = ptr.Int64(i64) } case "Duration": @@ -3948,7 +3948,7 @@ func awsAwsjson11_deserializeDocumentSecretListEntry(v **types.SecretListEntry, if !ok { return fmt.Errorf("expected RotationEnabledType to be of type *bool, got %T instead", value) } - sv.RotationEnabled = jtv + sv.RotationEnabled = ptr.Bool(jtv) } case "RotationLambdaARN": @@ -4772,7 +4772,7 @@ func awsAwsjson11_deserializeOpDocumentDescribeSecretOutput(v **DescribeSecretOu if !ok { return fmt.Errorf("expected RotationEnabledType to be of type *bool, got %T instead", value) } - sv.RotationEnabled = jtv + sv.RotationEnabled = ptr.Bool(jtv) } case "RotationLambdaARN": diff --git a/service/secretsmanager/serializers.go b/service/secretsmanager/serializers.go index 6760fe0b5c8..f6220205027 100644 --- a/service/secretsmanager/serializers.go +++ b/service/secretsmanager/serializers.go @@ -1312,9 +1312,9 @@ func awsAwsjson11_serializeDocumentRotationRulesType(v *types.RotationRulesType, object := value.Object() defer object.Close() - if v.AutomaticallyAfterDays != 0 { + if v.AutomaticallyAfterDays != nil { ok := object.Key("AutomaticallyAfterDays") - ok.Long(v.AutomaticallyAfterDays) + ok.Long(*v.AutomaticallyAfterDays) } if v.Duration != nil { @@ -1466,14 +1466,14 @@ func awsAwsjson11_serializeOpDocumentDeleteSecretInput(v *DeleteSecretInput, val object := value.Object() defer object.Close() - if v.ForceDeleteWithoutRecovery { + if v.ForceDeleteWithoutRecovery != nil { ok := object.Key("ForceDeleteWithoutRecovery") - ok.Boolean(v.ForceDeleteWithoutRecovery) + ok.Boolean(*v.ForceDeleteWithoutRecovery) } - if v.RecoveryWindowInDays != 0 { + if v.RecoveryWindowInDays != nil { ok := object.Key("RecoveryWindowInDays") - ok.Long(v.RecoveryWindowInDays) + ok.Long(*v.RecoveryWindowInDays) } if v.SecretId != nil { @@ -1505,39 +1505,39 @@ func awsAwsjson11_serializeOpDocumentGetRandomPasswordInput(v *GetRandomPassword ok.String(*v.ExcludeCharacters) } - if v.ExcludeLowercase { + if v.ExcludeLowercase != nil { ok := object.Key("ExcludeLowercase") - ok.Boolean(v.ExcludeLowercase) + ok.Boolean(*v.ExcludeLowercase) } - if v.ExcludeNumbers { + if v.ExcludeNumbers != nil { ok := object.Key("ExcludeNumbers") - ok.Boolean(v.ExcludeNumbers) + ok.Boolean(*v.ExcludeNumbers) } - if v.ExcludePunctuation { + if v.ExcludePunctuation != nil { ok := object.Key("ExcludePunctuation") - ok.Boolean(v.ExcludePunctuation) + ok.Boolean(*v.ExcludePunctuation) } - if v.ExcludeUppercase { + if v.ExcludeUppercase != nil { ok := object.Key("ExcludeUppercase") - ok.Boolean(v.ExcludeUppercase) + ok.Boolean(*v.ExcludeUppercase) } - if v.IncludeSpace { + if v.IncludeSpace != nil { ok := object.Key("IncludeSpace") - ok.Boolean(v.IncludeSpace) + ok.Boolean(*v.IncludeSpace) } - if v.PasswordLength != 0 { + if v.PasswordLength != nil { ok := object.Key("PasswordLength") - ok.Long(v.PasswordLength) + ok.Long(*v.PasswordLength) } - if v.RequireEachIncludedType { + if v.RequireEachIncludedType != nil { ok := object.Key("RequireEachIncludedType") - ok.Boolean(v.RequireEachIncludedType) + ok.Boolean(*v.RequireEachIncludedType) } return nil @@ -1588,9 +1588,9 @@ func awsAwsjson11_serializeOpDocumentListSecretsInput(v *ListSecretsInput, value } } - if v.MaxResults != 0 { + if v.MaxResults != nil { ok := object.Key("MaxResults") - ok.Integer(v.MaxResults) + ok.Integer(*v.MaxResults) } if v.NextToken != nil { @@ -1610,14 +1610,14 @@ func awsAwsjson11_serializeOpDocumentListSecretVersionIdsInput(v *ListSecretVers object := value.Object() defer object.Close() - if v.IncludeDeprecated { + if v.IncludeDeprecated != nil { ok := object.Key("IncludeDeprecated") - ok.Boolean(v.IncludeDeprecated) + ok.Boolean(*v.IncludeDeprecated) } - if v.MaxResults != 0 { + if v.MaxResults != nil { ok := object.Key("MaxResults") - ok.Integer(v.MaxResults) + ok.Integer(*v.MaxResults) } if v.NextToken != nil { @@ -1637,9 +1637,9 @@ func awsAwsjson11_serializeOpDocumentPutResourcePolicyInput(v *PutResourcePolicy object := value.Object() defer object.Close() - if v.BlockPublicPolicy { + if v.BlockPublicPolicy != nil { ok := object.Key("BlockPublicPolicy") - ok.Boolean(v.BlockPublicPolicy) + ok.Boolean(*v.BlockPublicPolicy) } if v.ResourcePolicy != nil { @@ -1753,9 +1753,9 @@ func awsAwsjson11_serializeOpDocumentRotateSecretInput(v *RotateSecretInput, val ok.String(*v.ClientRequestToken) } - if v.RotateImmediately { + if v.RotateImmediately != nil { ok := object.Key("RotateImmediately") - ok.Boolean(v.RotateImmediately) + ok.Boolean(*v.RotateImmediately) } if v.RotationLambdaARN != nil { diff --git a/service/secretsmanager/types/types.go b/service/secretsmanager/types/types.go index 05828530dad..ea9953d72c1 100644 --- a/service/secretsmanager/types/types.go +++ b/service/secretsmanager/types/types.go @@ -84,7 +84,7 @@ type RotationRulesType struct { // is calculated from the rotation schedule after every successful rotation. In // RotateSecret, you can set the rotation schedule in RotationRules with // AutomaticallyAfterDays or ScheduleExpression, but not both. - AutomaticallyAfterDays int64 + AutomaticallyAfterDays *int64 // The length of the rotation window in hours, for example 3h for a three hour // window. Secrets Manager rotates your secret at any time during this window. The @@ -168,7 +168,7 @@ type SecretListEntry struct { PrimaryRegion *string // Indicates whether automatic, scheduled rotation is enabled for this secret. - RotationEnabled bool + RotationEnabled *bool // The ARN of an Amazon Web Services Lambda function invoked by Secrets Manager to // rotate and expire the secret either automatically per the schedule or manually diff --git a/service/servicecatalogappregistry/api_op_ListApplications.go b/service/servicecatalogappregistry/api_op_ListApplications.go index 6dacb8d84f9..38c1f2ef79c 100644 --- a/service/servicecatalogappregistry/api_op_ListApplications.go +++ b/service/servicecatalogappregistry/api_op_ListApplications.go @@ -32,7 +32,7 @@ type ListApplicationsInput struct { // The upper bound of the number of results to return (cannot exceed 25). If this // parameter is omitted, it defaults to 25. This value is optional. - MaxResults int32 + MaxResults *int32 // The token to use to get the next page of results after a previous API call. NextToken *string @@ -149,8 +149,8 @@ func NewListApplicationsPaginator(client ListApplicationsAPIClient, params *List } options := ListApplicationsPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults + if params.MaxResults != nil { + options.Limit = *params.MaxResults } for _, fn := range optFns { @@ -180,7 +180,11 @@ func (p *ListApplicationsPaginator) 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.ListApplications(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/servicecatalogappregistry/api_op_ListAssociatedAttributeGroups.go b/service/servicecatalogappregistry/api_op_ListAssociatedAttributeGroups.go index 325508aaa26..2c09d4b5378 100644 --- a/service/servicecatalogappregistry/api_op_ListAssociatedAttributeGroups.go +++ b/service/servicecatalogappregistry/api_op_ListAssociatedAttributeGroups.go @@ -37,7 +37,7 @@ type ListAssociatedAttributeGroupsInput struct { // The upper bound of the number of results to return (cannot exceed 25). If this // parameter is omitted, it defaults to 25. This value is optional. - MaxResults int32 + MaxResults *int32 // The token to use to get the next page of results after a previous API call. NextToken *string @@ -160,8 +160,8 @@ func NewListAssociatedAttributeGroupsPaginator(client ListAssociatedAttributeGro } options := ListAssociatedAttributeGroupsPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults + if params.MaxResults != nil { + options.Limit = *params.MaxResults } for _, fn := range optFns { @@ -191,7 +191,11 @@ func (p *ListAssociatedAttributeGroupsPaginator) 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.ListAssociatedAttributeGroups(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/servicecatalogappregistry/api_op_ListAssociatedResources.go b/service/servicecatalogappregistry/api_op_ListAssociatedResources.go index 0d162fd348a..ec5ce2a5196 100644 --- a/service/servicecatalogappregistry/api_op_ListAssociatedResources.go +++ b/service/servicecatalogappregistry/api_op_ListAssociatedResources.go @@ -38,7 +38,7 @@ type ListAssociatedResourcesInput struct { // The upper bound of the number of results to return (cannot exceed 25). If this // parameter is omitted, it defaults to 25. This value is optional. - MaxResults int32 + MaxResults *int32 // The token to use to get the next page of results after a previous API call. NextToken *string @@ -160,8 +160,8 @@ func NewListAssociatedResourcesPaginator(client ListAssociatedResourcesAPIClient } options := ListAssociatedResourcesPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults + if params.MaxResults != nil { + options.Limit = *params.MaxResults } for _, fn := range optFns { @@ -191,7 +191,11 @@ func (p *ListAssociatedResourcesPaginator) 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.ListAssociatedResources(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/servicecatalogappregistry/api_op_ListAttributeGroups.go b/service/servicecatalogappregistry/api_op_ListAttributeGroups.go index d1de25a8e32..a5184e71284 100644 --- a/service/servicecatalogappregistry/api_op_ListAttributeGroups.go +++ b/service/servicecatalogappregistry/api_op_ListAttributeGroups.go @@ -32,7 +32,7 @@ type ListAttributeGroupsInput struct { // The upper bound of the number of results to return (cannot exceed 25). If this // parameter is omitted, it defaults to 25. This value is optional. - MaxResults int32 + MaxResults *int32 // The token to use to get the next page of results after a previous API call. NextToken *string @@ -150,8 +150,8 @@ func NewListAttributeGroupsPaginator(client ListAttributeGroupsAPIClient, params } options := ListAttributeGroupsPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults + if params.MaxResults != nil { + options.Limit = *params.MaxResults } for _, fn := range optFns { @@ -181,7 +181,11 @@ func (p *ListAttributeGroupsPaginator) 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.ListAttributeGroups(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/servicecatalogappregistry/api_op_ListAttributeGroupsForApplication.go b/service/servicecatalogappregistry/api_op_ListAttributeGroupsForApplication.go index 11a79593cff..fa3c4a2ab55 100644 --- a/service/servicecatalogappregistry/api_op_ListAttributeGroupsForApplication.go +++ b/service/servicecatalogappregistry/api_op_ListAttributeGroupsForApplication.go @@ -38,7 +38,7 @@ type ListAttributeGroupsForApplicationInput struct { // The upper bound of the number of results to return. The value cannot exceed 25. // If you omit this parameter, it defaults to 25. This value is optional. - MaxResults int32 + MaxResults *int32 // This token retrieves the next page of results after a previous API call. NextToken *string @@ -161,8 +161,8 @@ func NewListAttributeGroupsForApplicationPaginator(client ListAttributeGroupsFor } options := ListAttributeGroupsForApplicationPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults + if params.MaxResults != nil { + options.Limit = *params.MaxResults } for _, fn := range optFns { @@ -192,7 +192,11 @@ func (p *ListAttributeGroupsForApplicationPaginator) 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.ListAttributeGroupsForApplication(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/servicecatalogappregistry/serializers.go b/service/servicecatalogappregistry/serializers.go index 1f4b03fcf93..f37cff4c3df 100644 --- a/service/servicecatalogappregistry/serializers.go +++ b/service/servicecatalogappregistry/serializers.go @@ -828,8 +828,8 @@ func awsRestjson1_serializeOpHttpBindingsListApplicationsInput(v *ListApplicatio 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 { @@ -894,8 +894,8 @@ func awsRestjson1_serializeOpHttpBindingsListAssociatedAttributeGroupsInput(v *L } } - if v.MaxResults != 0 { - encoder.SetQuery("maxResults").Integer(v.MaxResults) + if v.MaxResults != nil { + encoder.SetQuery("maxResults").Integer(*v.MaxResults) } if v.NextToken != nil { @@ -960,8 +960,8 @@ func awsRestjson1_serializeOpHttpBindingsListAssociatedResourcesInput(v *ListAss } } - if v.MaxResults != 0 { - encoder.SetQuery("maxResults").Integer(v.MaxResults) + if v.MaxResults != nil { + encoder.SetQuery("maxResults").Integer(*v.MaxResults) } if v.NextToken != nil { @@ -1017,8 +1017,8 @@ func awsRestjson1_serializeOpHttpBindingsListAttributeGroupsInput(v *ListAttribu 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 { @@ -1083,8 +1083,8 @@ func awsRestjson1_serializeOpHttpBindingsListAttributeGroupsForApplicationInput( } } - 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/sfn/deserializers.go b/service/sfn/deserializers.go index 477b8f249ee..7f80da0ee11 100644 --- a/service/sfn/deserializers.go +++ b/service/sfn/deserializers.go @@ -3825,7 +3825,7 @@ func awsAwsjson10_deserializeDocumentActivityScheduledEventDetails(v **types.Act if err != nil { return err } - sv.HeartbeatInSeconds = i64 + sv.HeartbeatInSeconds = ptr.Int64(i64) } case "input": @@ -3861,7 +3861,7 @@ func awsAwsjson10_deserializeDocumentActivityScheduledEventDetails(v **types.Act if err != nil { return err } - sv.TimeoutInSeconds = i64 + sv.TimeoutInSeconds = ptr.Int64(i64) } default: @@ -5472,7 +5472,7 @@ func awsAwsjson10_deserializeDocumentLambdaFunctionScheduledEventDetails(v **typ if err != nil { return err } - sv.TimeoutInSeconds = i64 + sv.TimeoutInSeconds = ptr.Int64(i64) } default: @@ -6624,7 +6624,7 @@ func awsAwsjson10_deserializeDocumentTaskScheduledEventDetails(v **types.TaskSch if err != nil { return err } - sv.HeartbeatInSeconds = i64 + sv.HeartbeatInSeconds = ptr.Int64(i64) } case "parameters": @@ -6673,7 +6673,7 @@ func awsAwsjson10_deserializeDocumentTaskScheduledEventDetails(v **types.TaskSch if err != nil { return err } - sv.TimeoutInSeconds = i64 + sv.TimeoutInSeconds = ptr.Int64(i64) } default: diff --git a/service/sfn/types/types.go b/service/sfn/types/types.go index 00f1ca4697e..6ecc3e85d80 100644 --- a/service/sfn/types/types.go +++ b/service/sfn/types/types.go @@ -64,7 +64,7 @@ type ActivityScheduledEventDetails struct { Resource *string // The maximum allowed duration between two heartbeats for the activity task. - HeartbeatInSeconds int64 + HeartbeatInSeconds *int64 // The JSON data input to the activity task. Length constraints apply to the // payload size, and are expressed as bytes in UTF-8 encoding. @@ -74,7 +74,7 @@ type ActivityScheduledEventDetails struct { InputDetails *HistoryEventExecutionDataDetails // The maximum allowed duration of the activity task. - TimeoutInSeconds int64 + TimeoutInSeconds *int64 noSmithyDocumentSerde } @@ -438,7 +438,7 @@ type LambdaFunctionScheduledEventDetails struct { InputDetails *HistoryEventExecutionDataDetails // The maximum allowed duration of the lambda function. - TimeoutInSeconds int64 + TimeoutInSeconds *int64 noSmithyDocumentSerde } @@ -706,10 +706,10 @@ type TaskScheduledEventDetails struct { ResourceType *string // The maximum allowed duration between two heartbeats for the task. - HeartbeatInSeconds int64 + HeartbeatInSeconds *int64 // The maximum allowed duration of the task. - TimeoutInSeconds int64 + TimeoutInSeconds *int64 noSmithyDocumentSerde } diff --git a/service/ssm/api_op_CreateActivation.go b/service/ssm/api_op_CreateActivation.go index 5568f471ebf..232d9927c54 100644 --- a/service/ssm/api_op_CreateActivation.go +++ b/service/ssm/api_op_CreateActivation.go @@ -69,7 +69,7 @@ type CreateActivationInput struct { // Specify the maximum number of managed nodes you want to register. The default // value is 1. - RegistrationLimit int32 + RegistrationLimit *int32 // Reserved for internal use. RegistrationMetadata []types.RegistrationMetadataItem diff --git a/service/ssm/api_op_CreateAssociation.go b/service/ssm/api_op_CreateAssociation.go index fb01d675ecb..2a50832b116 100644 --- a/service/ssm/api_op_CreateAssociation.go +++ b/service/ssm/api_op_CreateAssociation.go @@ -142,7 +142,7 @@ type CreateAssociationInput struct { // in the Amazon Web Services Systems Manager User Guide. To use offsets, you must // specify the ApplyOnlyAtCronInterval parameter. This option tells the system not // to run an association immediately after you create it. - ScheduleOffset int32 + ScheduleOffset *int32 // The mode for generating association compliance. You can specify AUTO or MANUAL. // In AUTO mode, the system uses the status of the association execution to diff --git a/service/ssm/api_op_CreateMaintenanceWindow.go b/service/ssm/api_op_CreateMaintenanceWindow.go index 289b7a8d3b2..89a31980161 100644 --- a/service/ssm/api_op_CreateMaintenanceWindow.go +++ b/service/ssm/api_op_CreateMaintenanceWindow.go @@ -84,7 +84,7 @@ type CreateMaintenanceWindowInput struct { // cron expression schedules a maintenance window to run on the third Tuesday of // every month at 11:30 PM. cron(30 23 ? * TUE#3 *) If the schedule offset is 2, // the maintenance window won't run until two days later. - ScheduleOffset int32 + ScheduleOffset *int32 // The time zone that the scheduled maintenance window executions are based on, in // Internet Assigned Numbers Authority (IANA) format. For example: diff --git a/service/ssm/api_op_CreatePatchBaseline.go b/service/ssm/api_op_CreatePatchBaseline.go index 8bbf9fe0a5d..6fa797aa1fa 100644 --- a/service/ssm/api_op_CreatePatchBaseline.go +++ b/service/ssm/api_op_CreatePatchBaseline.go @@ -54,7 +54,7 @@ type CreatePatchBaselineInput struct { // Indicates whether the list of approved patches includes non-security updates // that should be applied to the managed nodes. The default value is false. Applies // to Linux managed nodes only. - ApprovedPatchesEnableNonSecurity bool + ApprovedPatchesEnableNonSecurity *bool // User-provided idempotency token. ClientToken *string diff --git a/service/ssm/api_op_DeregisterTargetFromMaintenanceWindow.go b/service/ssm/api_op_DeregisterTargetFromMaintenanceWindow.go index 11927717d51..30d0ba37018 100644 --- a/service/ssm/api_op_DeregisterTargetFromMaintenanceWindow.go +++ b/service/ssm/api_op_DeregisterTargetFromMaintenanceWindow.go @@ -41,7 +41,7 @@ type DeregisterTargetFromMaintenanceWindowInput struct { // The system checks if the target is being referenced by a task. If the target is // being referenced, the system returns an error and doesn't deregister the target // from the maintenance window. - Safe bool + Safe *bool noSmithyDocumentSerde } diff --git a/service/ssm/api_op_DescribeActivations.go b/service/ssm/api_op_DescribeActivations.go index b59ac6a724f..d559161a37a 100644 --- a/service/ssm/api_op_DescribeActivations.go +++ b/service/ssm/api_op_DescribeActivations.go @@ -38,7 +38,7 @@ type DescribeActivationsInput struct { // The maximum number of items to return for this call. The call also returns a // token that you can specify in a subsequent call to get the next set of results. - MaxResults int32 + MaxResults *int32 // A token to start the list. Use this token to get the next set of results. NextToken *string @@ -157,8 +157,8 @@ func NewDescribeActivationsPaginator(client DescribeActivationsAPIClient, params } options := DescribeActivationsPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults + if params.MaxResults != nil { + options.Limit = *params.MaxResults } for _, fn := range optFns { @@ -188,7 +188,11 @@ func (p *DescribeActivationsPaginator) 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.DescribeActivations(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/ssm/api_op_DescribeAssociationExecutionTargets.go b/service/ssm/api_op_DescribeAssociationExecutionTargets.go index fe50d46f691..13ab5a410a2 100644 --- a/service/ssm/api_op_DescribeAssociationExecutionTargets.go +++ b/service/ssm/api_op_DescribeAssociationExecutionTargets.go @@ -47,7 +47,7 @@ type DescribeAssociationExecutionTargetsInput struct { // The maximum number of items to return for this call. The call also returns a // token that you can specify in a subsequent call to get the next set of results. - MaxResults int32 + MaxResults *int32 // A token to start the list. Use this token to get the next set of results. NextToken *string @@ -171,8 +171,8 @@ func NewDescribeAssociationExecutionTargetsPaginator(client DescribeAssociationE } options := DescribeAssociationExecutionTargetsPaginatorOptions{} - 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 *DescribeAssociationExecutionTargetsPaginator) NextPage(ctx context.Cont params := *p.params params.NextToken = p.nextToken - params.MaxResults = p.options.Limit + var limit *int32 + if p.options.Limit > 0 { + limit = &p.options.Limit + } + params.MaxResults = limit result, err := p.client.DescribeAssociationExecutionTargets(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/ssm/api_op_DescribeAssociationExecutions.go b/service/ssm/api_op_DescribeAssociationExecutions.go index a0088c8d24d..b0da55b8b9d 100644 --- a/service/ssm/api_op_DescribeAssociationExecutions.go +++ b/service/ssm/api_op_DescribeAssociationExecutions.go @@ -41,7 +41,7 @@ type DescribeAssociationExecutionsInput struct { // The maximum number of items to return for this call. The call also returns a // token that you can specify in a subsequent call to get the next set of results. - MaxResults int32 + MaxResults *int32 // A token to start the list. Use this token to get the next set of results. NextToken *string @@ -165,8 +165,8 @@ func NewDescribeAssociationExecutionsPaginator(client DescribeAssociationExecuti } options := DescribeAssociationExecutionsPaginatorOptions{} - 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 *DescribeAssociationExecutionsPaginator) 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.DescribeAssociationExecutions(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/ssm/api_op_DescribeAutomationExecutions.go b/service/ssm/api_op_DescribeAutomationExecutions.go index b6f5d0390d9..e9000e44b26 100644 --- a/service/ssm/api_op_DescribeAutomationExecutions.go +++ b/service/ssm/api_op_DescribeAutomationExecutions.go @@ -35,7 +35,7 @@ type DescribeAutomationExecutionsInput struct { // The maximum number of items to return for this call. The call also returns a // token that you can specify in a subsequent call to get the next set of results. - MaxResults int32 + MaxResults *int32 // The token for the next set of items to return. (You received this token from a // previous call.) @@ -161,8 +161,8 @@ func NewDescribeAutomationExecutionsPaginator(client DescribeAutomationExecution } options := DescribeAutomationExecutionsPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults + if params.MaxResults != nil { + options.Limit = *params.MaxResults } for _, fn := range optFns { @@ -192,7 +192,11 @@ func (p *DescribeAutomationExecutionsPaginator) NextPage(ctx context.Context, op params := *p.params params.NextToken = p.nextToken - params.MaxResults = p.options.Limit + var limit *int32 + if p.options.Limit > 0 { + limit = &p.options.Limit + } + params.MaxResults = limit result, err := p.client.DescribeAutomationExecutions(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/ssm/api_op_DescribeAutomationStepExecutions.go b/service/ssm/api_op_DescribeAutomationStepExecutions.go index 5bc9685d1d2..1565b9ae34d 100644 --- a/service/ssm/api_op_DescribeAutomationStepExecutions.go +++ b/service/ssm/api_op_DescribeAutomationStepExecutions.go @@ -42,7 +42,7 @@ type DescribeAutomationStepExecutionsInput struct { // The maximum number of items to return for this call. The call also returns a // token that you can specify in a subsequent call to get the next set of results. - MaxResults int32 + MaxResults *int32 // The token for the next set of items to return. (You received this token from a // previous call.) @@ -50,7 +50,7 @@ type DescribeAutomationStepExecutionsInput struct { // Indicates whether to list step executions in reverse order by start time. The // default value is 'false'. - ReverseOrder bool + ReverseOrder *bool noSmithyDocumentSerde } @@ -172,8 +172,8 @@ func NewDescribeAutomationStepExecutionsPaginator(client DescribeAutomationStepE } options := DescribeAutomationStepExecutionsPaginatorOptions{} - 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 *DescribeAutomationStepExecutionsPaginator) 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.DescribeAutomationStepExecutions(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/ssm/api_op_DescribeAvailablePatches.go b/service/ssm/api_op_DescribeAvailablePatches.go index f325a451168..7087a7c4f16 100644 --- a/service/ssm/api_op_DescribeAvailablePatches.go +++ b/service/ssm/api_op_DescribeAvailablePatches.go @@ -90,7 +90,7 @@ type DescribeAvailablePatchesInput struct { Filters []types.PatchOrchestratorFilter // The maximum number of patches to return (per page). - MaxResults int32 + MaxResults *int32 // The token for the next set of items to return. (You received this token from a // previous call.) @@ -210,8 +210,8 @@ func NewDescribeAvailablePatchesPaginator(client DescribeAvailablePatchesAPIClie } options := DescribeAvailablePatchesPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults + if params.MaxResults != nil { + options.Limit = *params.MaxResults } for _, fn := range optFns { @@ -241,7 +241,11 @@ func (p *DescribeAvailablePatchesPaginator) 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.DescribeAvailablePatches(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/ssm/api_op_DescribeDocumentPermission.go b/service/ssm/api_op_DescribeDocumentPermission.go index de2a31c90d7..0c98ccbc4b9 100644 --- a/service/ssm/api_op_DescribeDocumentPermission.go +++ b/service/ssm/api_op_DescribeDocumentPermission.go @@ -44,7 +44,7 @@ type DescribeDocumentPermissionInput struct { // The maximum number of items to return for this call. The call also returns a // token that you can specify in a subsequent call to get the next set of results. - MaxResults int32 + MaxResults *int32 // The token for the next set of items to return. (You received this token from a // previous call.) diff --git a/service/ssm/api_op_DescribeEffectiveInstanceAssociations.go b/service/ssm/api_op_DescribeEffectiveInstanceAssociations.go index e0dae360774..b58dbdc5b51 100644 --- a/service/ssm/api_op_DescribeEffectiveInstanceAssociations.go +++ b/service/ssm/api_op_DescribeEffectiveInstanceAssociations.go @@ -37,7 +37,7 @@ type DescribeEffectiveInstanceAssociationsInput struct { // The maximum number of items to return for this call. The call also returns a // token that you can specify in a subsequent call to get the next set of results. - MaxResults int32 + MaxResults *int32 // The token for the next set of items to return. (You received this token from a // previous call.) @@ -162,8 +162,8 @@ func NewDescribeEffectiveInstanceAssociationsPaginator(client DescribeEffectiveI } options := DescribeEffectiveInstanceAssociationsPaginatorOptions{} - 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 *DescribeEffectiveInstanceAssociationsPaginator) NextPage(ctx context.Co params := *p.params params.NextToken = p.nextToken - params.MaxResults = p.options.Limit + var limit *int32 + if p.options.Limit > 0 { + limit = &p.options.Limit + } + params.MaxResults = limit result, err := p.client.DescribeEffectiveInstanceAssociations(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/ssm/api_op_DescribeEffectivePatchesForPatchBaseline.go b/service/ssm/api_op_DescribeEffectivePatchesForPatchBaseline.go index 5b95cca709b..58f519b0146 100644 --- a/service/ssm/api_op_DescribeEffectivePatchesForPatchBaseline.go +++ b/service/ssm/api_op_DescribeEffectivePatchesForPatchBaseline.go @@ -37,7 +37,7 @@ type DescribeEffectivePatchesForPatchBaselineInput struct { BaselineId *string // The maximum number of patches to return (per page). - MaxResults int32 + MaxResults *int32 // The token for the next set of items to return. (You received this token from a // previous call.) @@ -161,8 +161,8 @@ func NewDescribeEffectivePatchesForPatchBaselinePaginator(client DescribeEffecti } options := DescribeEffectivePatchesForPatchBaselinePaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults + if params.MaxResults != nil { + options.Limit = *params.MaxResults } for _, fn := range optFns { @@ -192,7 +192,11 @@ func (p *DescribeEffectivePatchesForPatchBaselinePaginator) NextPage(ctx context params := *p.params params.NextToken = p.nextToken - params.MaxResults = p.options.Limit + var limit *int32 + if p.options.Limit > 0 { + limit = &p.options.Limit + } + params.MaxResults = limit result, err := p.client.DescribeEffectivePatchesForPatchBaseline(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/ssm/api_op_DescribeInstanceAssociationsStatus.go b/service/ssm/api_op_DescribeInstanceAssociationsStatus.go index b8ffb97d13b..51e1e5451d6 100644 --- a/service/ssm/api_op_DescribeInstanceAssociationsStatus.go +++ b/service/ssm/api_op_DescribeInstanceAssociationsStatus.go @@ -37,7 +37,7 @@ type DescribeInstanceAssociationsStatusInput struct { // The maximum number of items to return for this call. The call also returns a // token that you can specify in a subsequent call to get the next set of results. - MaxResults int32 + MaxResults *int32 // The token for the next set of items to return. (You received this token from a // previous call.) @@ -162,8 +162,8 @@ func NewDescribeInstanceAssociationsStatusPaginator(client DescribeInstanceAssoc } options := DescribeInstanceAssociationsStatusPaginatorOptions{} - 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 *DescribeInstanceAssociationsStatusPaginator) 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.DescribeInstanceAssociationsStatus(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/ssm/api_op_DescribeInstanceInformation.go b/service/ssm/api_op_DescribeInstanceInformation.go index 087450f208f..e201d6e4d51 100644 --- a/service/ssm/api_op_DescribeInstanceInformation.go +++ b/service/ssm/api_op_DescribeInstanceInformation.go @@ -51,7 +51,7 @@ type DescribeInstanceInformationInput struct { // The maximum number of items to return for this call. The call also returns a // token that you can specify in a subsequent call to get the next set of results. - MaxResults int32 + MaxResults *int32 // The token for the next set of items to return. (You received this token from a // previous call.) @@ -176,8 +176,8 @@ func NewDescribeInstanceInformationPaginator(client DescribeInstanceInformationA } options := DescribeInstanceInformationPaginatorOptions{} - 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 *DescribeInstanceInformationPaginator) 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.DescribeInstanceInformation(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/ssm/api_op_DescribeInstancePatchStates.go b/service/ssm/api_op_DescribeInstancePatchStates.go index a42e08aa045..8fb763d82b4 100644 --- a/service/ssm/api_op_DescribeInstancePatchStates.go +++ b/service/ssm/api_op_DescribeInstancePatchStates.go @@ -37,7 +37,7 @@ type DescribeInstancePatchStatesInput struct { InstanceIds []string // The maximum number of managed nodes to return (per page). - MaxResults int32 + MaxResults *int32 // The token for the next set of items to return. (You received this token from a // previous call.) @@ -161,8 +161,8 @@ func NewDescribeInstancePatchStatesPaginator(client DescribeInstancePatchStatesA } options := DescribeInstancePatchStatesPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults + if params.MaxResults != nil { + options.Limit = *params.MaxResults } for _, fn := range optFns { @@ -192,7 +192,11 @@ func (p *DescribeInstancePatchStatesPaginator) 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.DescribeInstancePatchStates(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/ssm/api_op_DescribeInstancePatchStatesForPatchGroup.go b/service/ssm/api_op_DescribeInstancePatchStatesForPatchGroup.go index cd36eb32ba4..e8125294419 100644 --- a/service/ssm/api_op_DescribeInstancePatchStatesForPatchGroup.go +++ b/service/ssm/api_op_DescribeInstancePatchStatesForPatchGroup.go @@ -49,7 +49,7 @@ type DescribeInstancePatchStatesForPatchGroupInput struct { Filters []types.InstancePatchStateFilter // The maximum number of patches to return (per page). - MaxResults int32 + MaxResults *int32 // The token for the next set of items to return. (You received this token from a // previous call.) @@ -173,8 +173,8 @@ func NewDescribeInstancePatchStatesForPatchGroupPaginator(client DescribeInstanc } options := DescribeInstancePatchStatesForPatchGroupPaginatorOptions{} - 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 *DescribeInstancePatchStatesForPatchGroupPaginator) NextPage(ctx context params := *p.params params.NextToken = p.nextToken - params.MaxResults = p.options.Limit + var limit *int32 + if p.options.Limit > 0 { + limit = &p.options.Limit + } + params.MaxResults = limit result, err := p.client.DescribeInstancePatchStatesForPatchGroup(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/ssm/api_op_DescribeInstancePatches.go b/service/ssm/api_op_DescribeInstancePatches.go index 09f0c5dfe53..45d91700294 100644 --- a/service/ssm/api_op_DescribeInstancePatches.go +++ b/service/ssm/api_op_DescribeInstancePatches.go @@ -52,7 +52,7 @@ type DescribeInstancePatchesInput struct { Filters []types.PatchOrchestratorFilter // The maximum number of patches to return (per page). - MaxResults int32 + MaxResults *int32 // The token for the next set of items to return. (You received this token from a // previous call.) @@ -191,8 +191,8 @@ func NewDescribeInstancePatchesPaginator(client DescribeInstancePatchesAPIClient } options := DescribeInstancePatchesPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults + if params.MaxResults != nil { + options.Limit = *params.MaxResults } for _, fn := range optFns { @@ -222,7 +222,11 @@ func (p *DescribeInstancePatchesPaginator) 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.DescribeInstancePatches(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/ssm/api_op_DescribeInventoryDeletions.go b/service/ssm/api_op_DescribeInventoryDeletions.go index 1dcff6ae668..7af8957cde0 100644 --- a/service/ssm/api_op_DescribeInventoryDeletions.go +++ b/service/ssm/api_op_DescribeInventoryDeletions.go @@ -36,7 +36,7 @@ type DescribeInventoryDeletionsInput struct { // The maximum number of items to return for this call. The call also returns a // token that you can specify in a subsequent call to get the next set of results. - MaxResults int32 + MaxResults *int32 // A token to start the list. Use this token to get the next set of results. NextToken *string @@ -157,8 +157,8 @@ func NewDescribeInventoryDeletionsPaginator(client DescribeInventoryDeletionsAPI } options := DescribeInventoryDeletionsPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults + if params.MaxResults != nil { + options.Limit = *params.MaxResults } for _, fn := range optFns { @@ -188,7 +188,11 @@ func (p *DescribeInventoryDeletionsPaginator) 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.DescribeInventoryDeletions(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/ssm/api_op_DescribeMaintenanceWindowExecutionTaskInvocations.go b/service/ssm/api_op_DescribeMaintenanceWindowExecutionTaskInvocations.go index a72f12d866e..ee0e0a746c2 100644 --- a/service/ssm/api_op_DescribeMaintenanceWindowExecutionTaskInvocations.go +++ b/service/ssm/api_op_DescribeMaintenanceWindowExecutionTaskInvocations.go @@ -49,7 +49,7 @@ type DescribeMaintenanceWindowExecutionTaskInvocationsInput struct { // The maximum number of items to return for this call. The call also returns a // token that you can specify in a subsequent call to get the next set of results. - MaxResults int32 + MaxResults *int32 // The token for the next set of items to return. (You received this token from a // previous call.) @@ -174,8 +174,8 @@ func NewDescribeMaintenanceWindowExecutionTaskInvocationsPaginator(client Descri } options := DescribeMaintenanceWindowExecutionTaskInvocationsPaginatorOptions{} - 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 *DescribeMaintenanceWindowExecutionTaskInvocationsPaginator) NextPage(ct 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.DescribeMaintenanceWindowExecutionTaskInvocations(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/ssm/api_op_DescribeMaintenanceWindowExecutionTasks.go b/service/ssm/api_op_DescribeMaintenanceWindowExecutionTasks.go index 3c2ee48007d..eee81eda6ad 100644 --- a/service/ssm/api_op_DescribeMaintenanceWindowExecutionTasks.go +++ b/service/ssm/api_op_DescribeMaintenanceWindowExecutionTasks.go @@ -43,7 +43,7 @@ type DescribeMaintenanceWindowExecutionTasksInput struct { // The maximum number of items to return for this call. The call also returns a // token that you can specify in a subsequent call to get the next set of results. - MaxResults int32 + MaxResults *int32 // The token for the next set of items to return. (You received this token from a // previous call.) @@ -168,8 +168,8 @@ func NewDescribeMaintenanceWindowExecutionTasksPaginator(client DescribeMaintena } options := DescribeMaintenanceWindowExecutionTasksPaginatorOptions{} - 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 *DescribeMaintenanceWindowExecutionTasksPaginator) NextPage(ctx context. params := *p.params params.NextToken = p.nextToken - params.MaxResults = p.options.Limit + var limit *int32 + if p.options.Limit > 0 { + limit = &p.options.Limit + } + params.MaxResults = limit result, err := p.client.DescribeMaintenanceWindowExecutionTasks(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/ssm/api_op_DescribeMaintenanceWindowExecutions.go b/service/ssm/api_op_DescribeMaintenanceWindowExecutions.go index 45a4e5dbed0..507b11ce0b3 100644 --- a/service/ssm/api_op_DescribeMaintenanceWindowExecutions.go +++ b/service/ssm/api_op_DescribeMaintenanceWindowExecutions.go @@ -50,7 +50,7 @@ type DescribeMaintenanceWindowExecutionsInput struct { // The maximum number of items to return for this call. The call also returns a // token that you can specify in a subsequent call to get the next set of results. - MaxResults int32 + MaxResults *int32 // The token for the next set of items to return. (You received this token from a // previous call.) @@ -175,8 +175,8 @@ func NewDescribeMaintenanceWindowExecutionsPaginator(client DescribeMaintenanceW } options := DescribeMaintenanceWindowExecutionsPaginatorOptions{} - 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 *DescribeMaintenanceWindowExecutionsPaginator) NextPage(ctx context.Cont params := *p.params params.NextToken = p.nextToken - params.MaxResults = p.options.Limit + var limit *int32 + if p.options.Limit > 0 { + limit = &p.options.Limit + } + params.MaxResults = limit result, err := p.client.DescribeMaintenanceWindowExecutions(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/ssm/api_op_DescribeMaintenanceWindowSchedule.go b/service/ssm/api_op_DescribeMaintenanceWindowSchedule.go index 63448e8978e..7a49e2e9c2c 100644 --- a/service/ssm/api_op_DescribeMaintenanceWindowSchedule.go +++ b/service/ssm/api_op_DescribeMaintenanceWindowSchedule.go @@ -37,7 +37,7 @@ type DescribeMaintenanceWindowScheduleInput struct { // The maximum number of items to return for this call. The call also returns a // token that you can specify in a subsequent call to get the next set of results. - MaxResults int32 + MaxResults *int32 // The token for the next set of items to return. (You received this token from a // previous call.) @@ -170,8 +170,8 @@ func NewDescribeMaintenanceWindowSchedulePaginator(client DescribeMaintenanceWin } options := DescribeMaintenanceWindowSchedulePaginatorOptions{} - 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 *DescribeMaintenanceWindowSchedulePaginator) 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.DescribeMaintenanceWindowSchedule(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/ssm/api_op_DescribeMaintenanceWindowTargets.go b/service/ssm/api_op_DescribeMaintenanceWindowTargets.go index 353f3b18fe3..f9492508628 100644 --- a/service/ssm/api_op_DescribeMaintenanceWindowTargets.go +++ b/service/ssm/api_op_DescribeMaintenanceWindowTargets.go @@ -42,7 +42,7 @@ type DescribeMaintenanceWindowTargetsInput struct { // The maximum number of items to return for this call. The call also returns a // token that you can specify in a subsequent call to get the next set of results. - MaxResults int32 + MaxResults *int32 // The token for the next set of items to return. (You received this token from a // previous call.) @@ -167,8 +167,8 @@ func NewDescribeMaintenanceWindowTargetsPaginator(client DescribeMaintenanceWind } options := DescribeMaintenanceWindowTargetsPaginatorOptions{} - 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 *DescribeMaintenanceWindowTargetsPaginator) 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.DescribeMaintenanceWindowTargets(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/ssm/api_op_DescribeMaintenanceWindowTasks.go b/service/ssm/api_op_DescribeMaintenanceWindowTasks.go index 56dd017c338..6c98fd8ec14 100644 --- a/service/ssm/api_op_DescribeMaintenanceWindowTasks.go +++ b/service/ssm/api_op_DescribeMaintenanceWindowTasks.go @@ -45,7 +45,7 @@ type DescribeMaintenanceWindowTasksInput struct { // The maximum number of items to return for this call. The call also returns a // token that you can specify in a subsequent call to get the next set of results. - MaxResults int32 + MaxResults *int32 // The token for the next set of items to return. (You received this token from a // previous call.) @@ -170,8 +170,8 @@ func NewDescribeMaintenanceWindowTasksPaginator(client DescribeMaintenanceWindow } options := DescribeMaintenanceWindowTasksPaginatorOptions{} - 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 *DescribeMaintenanceWindowTasksPaginator) 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.DescribeMaintenanceWindowTasks(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/ssm/api_op_DescribeMaintenanceWindows.go b/service/ssm/api_op_DescribeMaintenanceWindows.go index 395a96bd4bb..74339868e1d 100644 --- a/service/ssm/api_op_DescribeMaintenanceWindows.go +++ b/service/ssm/api_op_DescribeMaintenanceWindows.go @@ -37,7 +37,7 @@ type DescribeMaintenanceWindowsInput struct { // The maximum number of items to return for this call. The call also returns a // token that you can specify in a subsequent call to get the next set of results. - MaxResults int32 + MaxResults *int32 // The token for the next set of items to return. (You received this token from a // previous call.) @@ -159,8 +159,8 @@ func NewDescribeMaintenanceWindowsPaginator(client DescribeMaintenanceWindowsAPI } options := DescribeMaintenanceWindowsPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults + if params.MaxResults != nil { + options.Limit = *params.MaxResults } for _, fn := range optFns { @@ -190,7 +190,11 @@ func (p *DescribeMaintenanceWindowsPaginator) 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.DescribeMaintenanceWindows(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/ssm/api_op_DescribeMaintenanceWindowsForTarget.go b/service/ssm/api_op_DescribeMaintenanceWindowsForTarget.go index 32a385fca6c..3a74e0a9f96 100644 --- a/service/ssm/api_op_DescribeMaintenanceWindowsForTarget.go +++ b/service/ssm/api_op_DescribeMaintenanceWindowsForTarget.go @@ -44,7 +44,7 @@ type DescribeMaintenanceWindowsForTargetInput struct { // The maximum number of items to return for this call. The call also returns a // token that you can specify in a subsequent call to get the next set of results. - MaxResults int32 + MaxResults *int32 // The token for the next set of items to return. (You received this token from a // previous call.) @@ -170,8 +170,8 @@ func NewDescribeMaintenanceWindowsForTargetPaginator(client DescribeMaintenanceW } options := DescribeMaintenanceWindowsForTargetPaginatorOptions{} - 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 *DescribeMaintenanceWindowsForTargetPaginator) NextPage(ctx context.Cont params := *p.params params.NextToken = p.nextToken - params.MaxResults = p.options.Limit + var limit *int32 + if p.options.Limit > 0 { + limit = &p.options.Limit + } + params.MaxResults = limit result, err := p.client.DescribeMaintenanceWindowsForTarget(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/ssm/api_op_DescribeParameters.go b/service/ssm/api_op_DescribeParameters.go index 93d0ca2f86a..d014969f66c 100644 --- a/service/ssm/api_op_DescribeParameters.go +++ b/service/ssm/api_op_DescribeParameters.go @@ -44,7 +44,7 @@ type DescribeParametersInput struct { // The maximum number of items to return for this call. The call also returns a // token that you can specify in a subsequent call to get the next set of results. - MaxResults int32 + MaxResults *int32 // The token for the next set of items to return. (You received this token from a // previous call.) @@ -169,8 +169,8 @@ func NewDescribeParametersPaginator(client DescribeParametersAPIClient, params * } options := DescribeParametersPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults + if params.MaxResults != nil { + options.Limit = *params.MaxResults } for _, fn := range optFns { @@ -200,7 +200,11 @@ func (p *DescribeParametersPaginator) 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.DescribeParameters(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/ssm/api_op_DescribePatchBaselines.go b/service/ssm/api_op_DescribePatchBaselines.go index d90e287c4fb..017b169c55c 100644 --- a/service/ssm/api_op_DescribePatchBaselines.go +++ b/service/ssm/api_op_DescribePatchBaselines.go @@ -43,7 +43,7 @@ type DescribePatchBaselinesInput struct { Filters []types.PatchOrchestratorFilter // The maximum number of patch baselines to return (per page). - MaxResults int32 + MaxResults *int32 // The token for the next set of items to return. (You received this token from a // previous call.) @@ -162,8 +162,8 @@ func NewDescribePatchBaselinesPaginator(client DescribePatchBaselinesAPIClient, } options := DescribePatchBaselinesPaginatorOptions{} - 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 *DescribePatchBaselinesPaginator) 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.DescribePatchBaselines(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/ssm/api_op_DescribePatchGroupState.go b/service/ssm/api_op_DescribePatchGroupState.go index d011b21c66f..72cca493821 100644 --- a/service/ssm/api_op_DescribePatchGroupState.go +++ b/service/ssm/api_op_DescribePatchGroupState.go @@ -47,7 +47,7 @@ type DescribePatchGroupStateOutput struct { // be missing, have failed installation, were rejected, or were installed but // awaiting a required managed node reboot. The status of these managed nodes is // NON_COMPLIANT. - InstancesWithCriticalNonCompliantPatches int32 + InstancesWithCriticalNonCompliantPatches *int32 // The number of managed nodes with patches from the patch baseline that failed to // install. @@ -63,14 +63,14 @@ type DescribePatchGroupStateOutput struct { // The number of managed nodes with patches installed by Patch Manager that haven't // been rebooted after the patch installation. The status of these managed nodes is // NON_COMPLIANT. - InstancesWithInstalledPendingRebootPatches int32 + InstancesWithInstalledPendingRebootPatches *int32 // The number of managed nodes with patches installed that are specified in a // RejectedPatches list. Patches with a status of INSTALLED_REJECTED were typically // installed before they were added to a RejectedPatches list. If // ALLOW_AS_DEPENDENCY is the specified option for RejectedPatchesAction, the value // of InstancesWithInstalledRejectedPatches will always be 0 (zero). - InstancesWithInstalledRejectedPatches int32 + InstancesWithInstalledRejectedPatches *int32 // The number of managed nodes with missing patches from the patch baseline. InstancesWithMissingPatches int32 @@ -81,18 +81,18 @@ type DescribePatchGroupStateOutput struct { // The number of managed nodes with patches installed that are specified as other // than Critical or Security but aren't compliant with the patch baseline. The // status of these managed nodes is NON_COMPLIANT. - InstancesWithOtherNonCompliantPatches int32 + InstancesWithOtherNonCompliantPatches *int32 // The number of managed nodes where patches that are specified as Security in a // patch advisory aren't installed. These patches might be missing, have failed // installation, were rejected, or were installed but awaiting a required managed // node reboot. The status of these managed nodes is NON_COMPLIANT. - InstancesWithSecurityNonCompliantPatches int32 + InstancesWithSecurityNonCompliantPatches *int32 // The number of managed nodes with NotApplicable patches beyond the supported // limit, which aren't reported by name to Inventory. Inventory is a capability of // Amazon Web Services Systems Manager. - InstancesWithUnreportedNotApplicablePatches int32 + InstancesWithUnreportedNotApplicablePatches *int32 // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata diff --git a/service/ssm/api_op_DescribePatchGroups.go b/service/ssm/api_op_DescribePatchGroups.go index 5bad678dfb4..f960600f422 100644 --- a/service/ssm/api_op_DescribePatchGroups.go +++ b/service/ssm/api_op_DescribePatchGroups.go @@ -41,7 +41,7 @@ type DescribePatchGroupsInput struct { Filters []types.PatchOrchestratorFilter // The maximum number of patch groups to return (per page). - MaxResults int32 + MaxResults *int32 // The token for the next set of items to return. (You received this token from a // previous call.) @@ -166,8 +166,8 @@ func NewDescribePatchGroupsPaginator(client DescribePatchGroupsAPIClient, params } options := DescribePatchGroupsPaginatorOptions{} - 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 *DescribePatchGroupsPaginator) 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.DescribePatchGroups(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/ssm/api_op_DescribePatchProperties.go b/service/ssm/api_op_DescribePatchProperties.go index 4df80a497ae..9f41e715043 100644 --- a/service/ssm/api_op_DescribePatchProperties.go +++ b/service/ssm/api_op_DescribePatchProperties.go @@ -55,7 +55,7 @@ type DescribePatchPropertiesInput struct { // The maximum number of items to return for this call. The call also returns a // token that you can specify in a subsequent call to get the next set of results. - MaxResults int32 + MaxResults *int32 // The token for the next set of items to return. (You received this token from a // previous call.) @@ -184,8 +184,8 @@ func NewDescribePatchPropertiesPaginator(client DescribePatchPropertiesAPIClient } options := DescribePatchPropertiesPaginatorOptions{} - 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 *DescribePatchPropertiesPaginator) 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.DescribePatchProperties(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/ssm/api_op_DescribeSessions.go b/service/ssm/api_op_DescribeSessions.go index 45eefd62ce1..88ac96222f9 100644 --- a/service/ssm/api_op_DescribeSessions.go +++ b/service/ssm/api_op_DescribeSessions.go @@ -41,7 +41,7 @@ type DescribeSessionsInput struct { // The maximum number of items to return for this call. The call also returns a // token that you can specify in a subsequent call to get the next set of results. - MaxResults int32 + MaxResults *int32 // The token for the next set of items to return. (You received this token from a // previous call.) @@ -163,8 +163,8 @@ func NewDescribeSessionsPaginator(client DescribeSessionsAPIClient, params *Desc } options := DescribeSessionsPaginatorOptions{} - 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 *DescribeSessionsPaginator) 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.DescribeSessions(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/ssm/api_op_GetInventory.go b/service/ssm/api_op_GetInventory.go index d05865c2975..0f175a81d01 100644 --- a/service/ssm/api_op_GetInventory.go +++ b/service/ssm/api_op_GetInventory.go @@ -42,7 +42,7 @@ type GetInventoryInput struct { // The maximum number of items to return for this call. The call also returns a // token that you can specify in a subsequent call to get the next set of results. - MaxResults int32 + MaxResults *int32 // The token for the next set of items to return. (You received this token from a // previous call.) @@ -166,8 +166,8 @@ func NewGetInventoryPaginator(client GetInventoryAPIClient, params *GetInventory } options := GetInventoryPaginatorOptions{} - 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 *GetInventoryPaginator) 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.GetInventory(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/ssm/api_op_GetInventorySchema.go b/service/ssm/api_op_GetInventorySchema.go index f1c6e95bcbf..fb4e5b834be 100644 --- a/service/ssm/api_op_GetInventorySchema.go +++ b/service/ssm/api_op_GetInventorySchema.go @@ -38,14 +38,14 @@ type GetInventorySchemaInput struct { // The maximum number of items to return for this call. The call also returns a // token that you can specify in a subsequent call to get the next set of results. - MaxResults int32 + MaxResults *int32 // The token for the next set of items to return. (You received this token from a // previous call.) NextToken *string // Returns the sub-type schema for a specified inventory type. - SubType bool + SubType *bool // The type of inventory item to return. TypeName *string @@ -164,8 +164,8 @@ func NewGetInventorySchemaPaginator(client GetInventorySchemaAPIClient, params * } options := GetInventorySchemaPaginatorOptions{} - 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 *GetInventorySchemaPaginator) 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.GetInventorySchema(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/ssm/api_op_GetMaintenanceWindow.go b/service/ssm/api_op_GetMaintenanceWindow.go index f09468a969a..26ffa7dfed7 100644 --- a/service/ssm/api_op_GetMaintenanceWindow.go +++ b/service/ssm/api_op_GetMaintenanceWindow.go @@ -79,7 +79,7 @@ type GetMaintenanceWindowOutput struct { // The number of days to wait to run a maintenance window after the scheduled cron // expression date and time. - ScheduleOffset int32 + ScheduleOffset *int32 // The time zone that the scheduled maintenance window executions are based on, in // Internet Assigned Numbers Authority (IANA) format. For example: diff --git a/service/ssm/api_op_GetOpsMetadata.go b/service/ssm/api_op_GetOpsMetadata.go index 3357e4f0057..70ce359042d 100644 --- a/service/ssm/api_op_GetOpsMetadata.go +++ b/service/ssm/api_op_GetOpsMetadata.go @@ -36,7 +36,7 @@ type GetOpsMetadataInput struct { // The maximum number of items to return for this call. The call also returns a // token that you can specify in a subsequent call to get the next set of results. - MaxResults int32 + MaxResults *int32 // A token to start the list. Use this token to get the next set of results. NextToken *string diff --git a/service/ssm/api_op_GetOpsSummary.go b/service/ssm/api_op_GetOpsSummary.go index e28ffc08596..687b7d593e7 100644 --- a/service/ssm/api_op_GetOpsSummary.go +++ b/service/ssm/api_op_GetOpsSummary.go @@ -43,7 +43,7 @@ type GetOpsSummaryInput struct { // The maximum number of items to return for this call. The call also returns a // token that you can specify in a subsequent call to get the next set of results. - MaxResults int32 + MaxResults *int32 // A token to start the list. Use this token to get the next set of results. NextToken *string @@ -169,8 +169,8 @@ func NewGetOpsSummaryPaginator(client GetOpsSummaryAPIClient, params *GetOpsSumm } options := GetOpsSummaryPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults + if params.MaxResults != nil { + options.Limit = *params.MaxResults } for _, fn := range optFns { @@ -200,7 +200,11 @@ func (p *GetOpsSummaryPaginator) 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.GetOpsSummary(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/ssm/api_op_GetParameter.go b/service/ssm/api_op_GetParameter.go index c7617dcfd0e..f58354b6528 100644 --- a/service/ssm/api_op_GetParameter.go +++ b/service/ssm/api_op_GetParameter.go @@ -39,7 +39,7 @@ type GetParameterInput struct { // Return decrypted values for secure string parameters. This flag is ignored for // String and StringList parameter types. - WithDecryption bool + WithDecryption *bool noSmithyDocumentSerde } diff --git a/service/ssm/api_op_GetParameterHistory.go b/service/ssm/api_op_GetParameterHistory.go index 0598f2afefb..b380f8bc075 100644 --- a/service/ssm/api_op_GetParameterHistory.go +++ b/service/ssm/api_op_GetParameterHistory.go @@ -40,7 +40,7 @@ type GetParameterHistoryInput struct { // The maximum number of items to return for this call. The call also returns a // token that you can specify in a subsequent call to get the next set of results. - MaxResults int32 + MaxResults *int32 // The token for the next set of items to return. (You received this token from a // previous call.) @@ -48,7 +48,7 @@ type GetParameterHistoryInput struct { // Return decrypted values for secure string parameters. This flag is ignored for // String and StringList parameter types. - WithDecryption bool + WithDecryption *bool noSmithyDocumentSerde } @@ -167,8 +167,8 @@ func NewGetParameterHistoryPaginator(client GetParameterHistoryAPIClient, params } options := GetParameterHistoryPaginatorOptions{} - 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 *GetParameterHistoryPaginator) 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.GetParameterHistory(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/ssm/api_op_GetParameters.go b/service/ssm/api_op_GetParameters.go index 6a5a10c794b..bab227d2fce 100644 --- a/service/ssm/api_op_GetParameters.go +++ b/service/ssm/api_op_GetParameters.go @@ -40,7 +40,7 @@ type GetParametersInput struct { // Return decrypted secure string value. Return decrypted values for secure string // parameters. This flag is ignored for String and StringList parameter types. - WithDecryption bool + WithDecryption *bool noSmithyDocumentSerde } diff --git a/service/ssm/api_op_GetParametersByPath.go b/service/ssm/api_op_GetParametersByPath.go index cae99b7d9c3..aa0b5df87c4 100644 --- a/service/ssm/api_op_GetParametersByPath.go +++ b/service/ssm/api_op_GetParametersByPath.go @@ -48,7 +48,7 @@ type GetParametersByPathInput struct { // The maximum number of items to return for this call. The call also returns a // token that you can specify in a subsequent call to get the next set of results. - MaxResults int32 + MaxResults *int32 // A token to start the list. Use this token to get the next set of results. NextToken *string @@ -63,10 +63,10 @@ type GetParametersByPathInput struct { // permission to access path /a, then the user can also access /a/b. Even if a user // has explicitly been denied access in IAM for parameter /a/b, they can still call // the GetParametersByPath API operation recursively for /a and view /a/b. - Recursive bool + Recursive *bool // Retrieve all parameters in a hierarchy with their value decrypted. - WithDecryption bool + WithDecryption *bool noSmithyDocumentSerde } @@ -185,8 +185,8 @@ func NewGetParametersByPathPaginator(client GetParametersByPathAPIClient, params } options := GetParametersByPathPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults + if params.MaxResults != nil { + options.Limit = *params.MaxResults } for _, fn := range optFns { @@ -216,7 +216,11 @@ func (p *GetParametersByPathPaginator) 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.GetParametersByPath(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/ssm/api_op_GetPatchBaseline.go b/service/ssm/api_op_GetPatchBaseline.go index 7f9018ea582..45c290bd294 100644 --- a/service/ssm/api_op_GetPatchBaseline.go +++ b/service/ssm/api_op_GetPatchBaseline.go @@ -58,7 +58,7 @@ type GetPatchBaselineOutput struct { // Indicates whether the list of approved patches includes non-security updates // that should be applied to the managed nodes. The default value is false. Applies // to Linux managed nodes only. - ApprovedPatchesEnableNonSecurity bool + ApprovedPatchesEnableNonSecurity *bool // The ID of the retrieved patch baseline. BaselineId *string diff --git a/service/ssm/api_op_LabelParameterVersion.go b/service/ssm/api_op_LabelParameterVersion.go index 945ca2e57bf..1f64e216a22 100644 --- a/service/ssm/api_op_LabelParameterVersion.go +++ b/service/ssm/api_op_LabelParameterVersion.go @@ -74,7 +74,7 @@ type LabelParameterVersionInput struct { // The specific version of the parameter on which you want to attach one or more // labels. If no version is specified, the system attaches the label to the latest // version. - ParameterVersion int64 + ParameterVersion *int64 noSmithyDocumentSerde } diff --git a/service/ssm/api_op_ListAssociationVersions.go b/service/ssm/api_op_ListAssociationVersions.go index 16c0b7cdfac..047fd00a6ac 100644 --- a/service/ssm/api_op_ListAssociationVersions.go +++ b/service/ssm/api_op_ListAssociationVersions.go @@ -37,7 +37,7 @@ type ListAssociationVersionsInput struct { // The maximum number of items to return for this call. The call also returns a // token that you can specify in a subsequent call to get the next set of results. - MaxResults int32 + MaxResults *int32 // A token to start the list. Use this token to get the next set of results. NextToken *string @@ -161,8 +161,8 @@ func NewListAssociationVersionsPaginator(client ListAssociationVersionsAPIClient } options := ListAssociationVersionsPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults + if params.MaxResults != nil { + options.Limit = *params.MaxResults } for _, fn := range optFns { @@ -192,7 +192,11 @@ func (p *ListAssociationVersionsPaginator) 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.ListAssociationVersions(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/ssm/api_op_ListAssociations.go b/service/ssm/api_op_ListAssociations.go index 745ba6cf5d6..9850e70ba33 100644 --- a/service/ssm/api_op_ListAssociations.go +++ b/service/ssm/api_op_ListAssociations.go @@ -42,7 +42,7 @@ type ListAssociationsInput struct { // The maximum number of items to return for this call. The call also returns a // token that you can specify in a subsequent call to get the next set of results. - MaxResults int32 + MaxResults *int32 // The token for the next set of items to return. (You received this token from a // previous call.) @@ -164,8 +164,8 @@ func NewListAssociationsPaginator(client ListAssociationsAPIClient, params *List } options := ListAssociationsPaginatorOptions{} - 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 *ListAssociationsPaginator) 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.ListAssociations(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/ssm/api_op_ListCommandInvocations.go b/service/ssm/api_op_ListCommandInvocations.go index d94b3828a4a..7af019fe08c 100644 --- a/service/ssm/api_op_ListCommandInvocations.go +++ b/service/ssm/api_op_ListCommandInvocations.go @@ -51,7 +51,7 @@ type ListCommandInvocationsInput struct { // (Optional) The maximum number of items to return for this call. The call also // returns a token that you can specify in a subsequent call to get the next set of // results. - MaxResults int32 + MaxResults *int32 // (Optional) The token for the next set of items to return. (You received this // token from a previous call.) @@ -175,8 +175,8 @@ func NewListCommandInvocationsPaginator(client ListCommandInvocationsAPIClient, } options := ListCommandInvocationsPaginatorOptions{} - 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 *ListCommandInvocationsPaginator) 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.ListCommandInvocations(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/ssm/api_op_ListCommands.go b/service/ssm/api_op_ListCommands.go index 32b3b48bc2b..f08b453abba 100644 --- a/service/ssm/api_op_ListCommands.go +++ b/service/ssm/api_op_ListCommands.go @@ -45,7 +45,7 @@ type ListCommandsInput struct { // (Optional) The maximum number of items to return for this call. The call also // returns a token that you can specify in a subsequent call to get the next set of // results. - MaxResults int32 + MaxResults *int32 // (Optional) The token for the next set of items to return. (You received this // token from a previous call.) @@ -167,8 +167,8 @@ func NewListCommandsPaginator(client ListCommandsAPIClient, params *ListCommands } options := ListCommandsPaginatorOptions{} - 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 *ListCommandsPaginator) 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.ListCommands(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/ssm/api_op_ListComplianceItems.go b/service/ssm/api_op_ListComplianceItems.go index 525589902e9..52fcc76285e 100644 --- a/service/ssm/api_op_ListComplianceItems.go +++ b/service/ssm/api_op_ListComplianceItems.go @@ -39,7 +39,7 @@ type ListComplianceItemsInput struct { // The maximum number of items to return for this call. The call also returns a // token that you can specify in a subsequent call to get the next set of results. - MaxResults int32 + MaxResults *int32 // A token to start the list. Use this token to get the next set of results. NextToken *string @@ -166,8 +166,8 @@ func NewListComplianceItemsPaginator(client ListComplianceItemsAPIClient, params } options := ListComplianceItemsPaginatorOptions{} - 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 *ListComplianceItemsPaginator) 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.ListComplianceItems(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/ssm/api_op_ListComplianceSummaries.go b/service/ssm/api_op_ListComplianceSummaries.go index ce7b8a67de0..c5710e0a9f7 100644 --- a/service/ssm/api_op_ListComplianceSummaries.go +++ b/service/ssm/api_op_ListComplianceSummaries.go @@ -40,7 +40,7 @@ type ListComplianceSummariesInput struct { // The maximum number of items to return for this call. Currently, you can specify // null or 50. The call also returns a token that you can specify in a subsequent // call to get the next set of results. - MaxResults int32 + MaxResults *int32 // A token to start the list. Use this token to get the next set of results. NextToken *string @@ -163,8 +163,8 @@ func NewListComplianceSummariesPaginator(client ListComplianceSummariesAPIClient } options := ListComplianceSummariesPaginatorOptions{} - 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 *ListComplianceSummariesPaginator) 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.ListComplianceSummaries(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/ssm/api_op_ListDocumentMetadataHistory.go b/service/ssm/api_op_ListDocumentMetadataHistory.go index 612e348fd86..85ede1ee0ff 100644 --- a/service/ssm/api_op_ListDocumentMetadataHistory.go +++ b/service/ssm/api_op_ListDocumentMetadataHistory.go @@ -46,7 +46,7 @@ type ListDocumentMetadataHistoryInput struct { // The maximum number of items to return for this call. The call also returns a // token that you can specify in a subsequent call to get the next set of results. - MaxResults int32 + MaxResults *int32 // The token for the next set of items to return. (You received this token from a // previous call.) diff --git a/service/ssm/api_op_ListDocumentVersions.go b/service/ssm/api_op_ListDocumentVersions.go index 378240b849f..695613ce6c8 100644 --- a/service/ssm/api_op_ListDocumentVersions.go +++ b/service/ssm/api_op_ListDocumentVersions.go @@ -37,7 +37,7 @@ type ListDocumentVersionsInput struct { // The maximum number of items to return for this call. The call also returns a // token that you can specify in a subsequent call to get the next set of results. - MaxResults int32 + MaxResults *int32 // The token for the next set of items to return. (You received this token from a // previous call.) @@ -160,8 +160,8 @@ func NewListDocumentVersionsPaginator(client ListDocumentVersionsAPIClient, para } options := ListDocumentVersionsPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults + if params.MaxResults != nil { + options.Limit = *params.MaxResults } for _, fn := range optFns { @@ -191,7 +191,11 @@ func (p *ListDocumentVersionsPaginator) 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.ListDocumentVersions(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/ssm/api_op_ListDocuments.go b/service/ssm/api_op_ListDocuments.go index 806c15746d7..96cc3d08c4e 100644 --- a/service/ssm/api_op_ListDocuments.go +++ b/service/ssm/api_op_ListDocuments.go @@ -47,7 +47,7 @@ type ListDocumentsInput struct { // The maximum number of items to return for this call. The call also returns a // token that you can specify in a subsequent call to get the next set of results. - MaxResults int32 + MaxResults *int32 // The token for the next set of items to return. (You received this token from a // previous call.) @@ -168,8 +168,8 @@ func NewListDocumentsPaginator(client ListDocumentsAPIClient, params *ListDocume } options := ListDocumentsPaginatorOptions{} - 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 *ListDocumentsPaginator) 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.ListDocuments(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/ssm/api_op_ListInventoryEntries.go b/service/ssm/api_op_ListInventoryEntries.go index 8c9dce4bc5a..71731ac5f54 100644 --- a/service/ssm/api_op_ListInventoryEntries.go +++ b/service/ssm/api_op_ListInventoryEntries.go @@ -44,7 +44,7 @@ type ListInventoryEntriesInput struct { // The maximum number of items to return for this call. The call also returns a // token that you can specify in a subsequent call to get the next set of results. - MaxResults int32 + MaxResults *int32 // The token for the next set of items to return. (You received this token from a // previous call.) diff --git a/service/ssm/api_op_ListOpsMetadata.go b/service/ssm/api_op_ListOpsMetadata.go index 11283dd5ac3..83349c3076f 100644 --- a/service/ssm/api_op_ListOpsMetadata.go +++ b/service/ssm/api_op_ListOpsMetadata.go @@ -37,7 +37,7 @@ type ListOpsMetadataInput struct { // The maximum number of items to return for this call. The call also returns a // token that you can specify in a subsequent call to get the next set of results. - MaxResults int32 + MaxResults *int32 // A token to start the list. Use this token to get the next set of results. NextToken *string @@ -158,8 +158,8 @@ func NewListOpsMetadataPaginator(client ListOpsMetadataAPIClient, params *ListOp } options := ListOpsMetadataPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults + if params.MaxResults != nil { + options.Limit = *params.MaxResults } for _, fn := range optFns { @@ -189,7 +189,11 @@ func (p *ListOpsMetadataPaginator) 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.ListOpsMetadata(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/ssm/api_op_ListResourceComplianceSummaries.go b/service/ssm/api_op_ListResourceComplianceSummaries.go index 11e522dfaaf..512462e7704 100644 --- a/service/ssm/api_op_ListResourceComplianceSummaries.go +++ b/service/ssm/api_op_ListResourceComplianceSummaries.go @@ -37,7 +37,7 @@ type ListResourceComplianceSummariesInput struct { // The maximum number of items to return for this call. The call also returns a // token that you can specify in a subsequent call to get the next set of results. - MaxResults int32 + MaxResults *int32 // A token to start the list. Use this token to get the next set of results. NextToken *string @@ -160,8 +160,8 @@ func NewListResourceComplianceSummariesPaginator(client ListResourceComplianceSu } options := ListResourceComplianceSummariesPaginatorOptions{} - if params.MaxResults != 0 { - options.Limit = params.MaxResults + if params.MaxResults != nil { + options.Limit = *params.MaxResults } for _, fn := range optFns { @@ -191,7 +191,11 @@ func (p *ListResourceComplianceSummariesPaginator) 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.ListResourceComplianceSummaries(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/ssm/api_op_ListResourceDataSync.go b/service/ssm/api_op_ListResourceDataSync.go index 9999f270bde..93b4a0c0f00 100644 --- a/service/ssm/api_op_ListResourceDataSync.go +++ b/service/ssm/api_op_ListResourceDataSync.go @@ -40,7 +40,7 @@ type ListResourceDataSyncInput struct { // The maximum number of items to return for this call. The call also returns a // token that you can specify in a subsequent call to get the next set of results. - MaxResults int32 + MaxResults *int32 // A token to start the list. Use this token to get the next set of results. NextToken *string @@ -165,8 +165,8 @@ func NewListResourceDataSyncPaginator(client ListResourceDataSyncAPIClient, para } options := ListResourceDataSyncPaginatorOptions{} - 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 *ListResourceDataSyncPaginator) 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.ListResourceDataSync(ctx, ¶ms, optFns...) if err != nil { diff --git a/service/ssm/api_op_PutParameter.go b/service/ssm/api_op_PutParameter.go index 612ee5cb50a..c7fa36d860c 100644 --- a/service/ssm/api_op_PutParameter.go +++ b/service/ssm/api_op_PutParameter.go @@ -121,7 +121,7 @@ type PutParameterInput struct { KeyId *string // Overwrite an existing parameter. The default value is false. - Overwrite bool + Overwrite *bool // One or more policies to apply to a parameter. This operation takes a JSON array. // Parameter Store, a capability of Amazon Web Services Systems Manager supports diff --git a/service/ssm/api_op_RegisterTaskWithMaintenanceWindow.go b/service/ssm/api_op_RegisterTaskWithMaintenanceWindow.go index 0013dcca87c..b29f6474307 100644 --- a/service/ssm/api_op_RegisterTaskWithMaintenanceWindow.go +++ b/service/ssm/api_op_RegisterTaskWithMaintenanceWindow.go @@ -108,7 +108,7 @@ type RegisterTaskWithMaintenanceWindowInput struct { // The priority of the task in the maintenance window, the lower the number the // higher the priority. Tasks in a maintenance window are scheduled in priority // order with tasks that have the same priority scheduled in parallel. - Priority int32 + Priority *int32 // The Amazon Resource Name (ARN) of the IAM service role for Amazon Web Services // Systems Manager to assume when running a maintenance window task. If you do not diff --git a/service/ssm/api_op_SendCommand.go b/service/ssm/api_op_SendCommand.go index 8bb19426bed..c9c4c5b119b 100644 --- a/service/ssm/api_op_SendCommand.go +++ b/service/ssm/api_op_SendCommand.go @@ -131,7 +131,7 @@ type SendCommandInput struct { // If this time is reached and the command hasn't already started running, it won't // run. - TimeoutSeconds int32 + TimeoutSeconds *int32 noSmithyDocumentSerde } diff --git a/service/ssm/api_op_UnlabelParameterVersion.go b/service/ssm/api_op_UnlabelParameterVersion.go index a72958be849..29f02b6de14 100644 --- a/service/ssm/api_op_UnlabelParameterVersion.go +++ b/service/ssm/api_op_UnlabelParameterVersion.go @@ -42,7 +42,7 @@ type UnlabelParameterVersionInput struct { // labels from. If it isn't present, the call will fail. // // This member is required. - ParameterVersion int64 + ParameterVersion *int64 noSmithyDocumentSerde } diff --git a/service/ssm/api_op_UpdateAssociation.go b/service/ssm/api_op_UpdateAssociation.go index caf9aee934a..5fa4aae9351 100644 --- a/service/ssm/api_op_UpdateAssociation.go +++ b/service/ssm/api_op_UpdateAssociation.go @@ -159,7 +159,7 @@ type UpdateAssociationInput struct { // in the Amazon Web Services Systems Manager User Guide. To use offsets, you must // specify the ApplyOnlyAtCronInterval parameter. This option tells the system not // to run an association immediately after you create it. - ScheduleOffset int32 + ScheduleOffset *int32 // The mode for generating association compliance. You can specify AUTO or MANUAL. // In AUTO mode, the system uses the status of the association execution to diff --git a/service/ssm/api_op_UpdateMaintenanceWindow.go b/service/ssm/api_op_UpdateMaintenanceWindow.go index 3138cdabd06..b8e6a49a303 100644 --- a/service/ssm/api_op_UpdateMaintenanceWindow.go +++ b/service/ssm/api_op_UpdateMaintenanceWindow.go @@ -41,20 +41,20 @@ type UpdateMaintenanceWindowInput struct { // Whether targets must be registered with the maintenance window before tasks can // be defined for those targets. - AllowUnassociatedTargets bool + AllowUnassociatedTargets *bool // The number of hours before the end of the maintenance window that Amazon Web // Services Systems Manager stops scheduling new tasks for execution. - Cutoff int32 + Cutoff *int32 // An optional description for the update request. Description *string // The duration of the maintenance window in hours. - Duration int32 + Duration *int32 // Whether the maintenance window is enabled. - Enabled bool + Enabled *bool // The date and time, in ISO-8601 Extended format, for when you want the // maintenance window to become inactive. EndDate allows you to set a date and time @@ -67,7 +67,7 @@ type UpdateMaintenanceWindowInput struct { // If True, then all fields that are required by the CreateMaintenanceWindow // operation are also required for this API request. Optional fields that aren't // specified are set to null. - Replace bool + Replace *bool // The schedule of the maintenance window in the form of a cron or rate expression. Schedule *string @@ -77,7 +77,7 @@ type UpdateMaintenanceWindowInput struct { // cron expression schedules a maintenance window to run the third Tuesday of every // month at 11:30 PM. cron(30 23 ? * TUE#3 *) If the schedule offset is 2, the // maintenance window won't run until two days later. - ScheduleOffset int32 + ScheduleOffset *int32 // The time zone that the scheduled maintenance window executions are based on, in // Internet Assigned Numbers Authority (IANA) format. For example: @@ -125,7 +125,7 @@ type UpdateMaintenanceWindowOutput struct { // The number of days to wait to run a maintenance window after the scheduled cron // expression date and time. - ScheduleOffset int32 + ScheduleOffset *int32 // The time zone that the scheduled maintenance window executions are based on, in // Internet Assigned Numbers Authority (IANA) format. For example: diff --git a/service/ssm/api_op_UpdateMaintenanceWindowTarget.go b/service/ssm/api_op_UpdateMaintenanceWindowTarget.go index 3ff6a8dfa13..3a89be294d6 100644 --- a/service/ssm/api_op_UpdateMaintenanceWindowTarget.go +++ b/service/ssm/api_op_UpdateMaintenanceWindowTarget.go @@ -70,7 +70,7 @@ type UpdateMaintenanceWindowTargetInput struct { // If True, then all fields that are required by the // RegisterTargetWithMaintenanceWindow operation are also required for this API // request. Optional fields that aren't specified are set to null. - Replace bool + Replace *bool // The targets to add or replace. Targets []types.Target diff --git a/service/ssm/api_op_UpdateMaintenanceWindowTask.go b/service/ssm/api_op_UpdateMaintenanceWindowTask.go index 6f4d01ef46d..a02d447e747 100644 --- a/service/ssm/api_op_UpdateMaintenanceWindowTask.go +++ b/service/ssm/api_op_UpdateMaintenanceWindowTask.go @@ -135,12 +135,12 @@ type UpdateMaintenanceWindowTaskInput struct { // The new task priority to specify. The lower the number, the higher the priority. // Tasks that have the same priority are scheduled in parallel. - Priority int32 + Priority *int32 // If True, then all fields that are required by the // RegisterTaskWithMaintenanceWindow operation are also required for this API // request. Optional fields that aren't specified are set to null. - Replace bool + Replace *bool // The Amazon Resource Name (ARN) of the IAM service role for Amazon Web Services // Systems Manager to assume when running a maintenance window task. If you do not diff --git a/service/ssm/api_op_UpdatePatchBaseline.go b/service/ssm/api_op_UpdatePatchBaseline.go index 46b1517bf36..abf9f067b63 100644 --- a/service/ssm/api_op_UpdatePatchBaseline.go +++ b/service/ssm/api_op_UpdatePatchBaseline.go @@ -53,7 +53,7 @@ type UpdatePatchBaselineInput struct { // Indicates whether the list of approved patches includes non-security updates // that should be applied to the managed nodes. The default value is false. Applies // to Linux managed nodes only. - ApprovedPatchesEnableNonSecurity bool + ApprovedPatchesEnableNonSecurity *bool // A description of the patch baseline. Description *string @@ -89,7 +89,7 @@ type UpdatePatchBaselineInput struct { // If True, then all fields that are required by the CreatePatchBaseline operation // are also required for this API request. Optional fields that aren't specified // are set to null. - Replace bool + Replace *bool // Information about the patches to use to update the managed nodes, including // target operating systems and source repositories. Applies to Linux managed nodes @@ -114,7 +114,7 @@ type UpdatePatchBaselineOutput struct { // Indicates whether the list of approved patches includes non-security updates // that should be applied to the managed nodes. The default value is false. Applies // to Linux managed nodes only. - ApprovedPatchesEnableNonSecurity bool + ApprovedPatchesEnableNonSecurity *bool // The ID of the deleted patch baseline. BaselineId *string diff --git a/service/ssm/deserializers.go b/service/ssm/deserializers.go index 41e54b07249..3cccb6f726e 100644 --- a/service/ssm/deserializers.go +++ b/service/ssm/deserializers.go @@ -20920,7 +20920,7 @@ func awsAwsjson11_deserializeDocumentAssociation(v **types.Association, value in if err != nil { return err } - sv.ScheduleOffset = int32(i64) + sv.ScheduleOffset = ptr.Int32(int32(i64)) } case "TargetMaps": @@ -21197,7 +21197,7 @@ func awsAwsjson11_deserializeDocumentAssociationDescription(v **types.Associatio if err != nil { return err } - sv.ScheduleOffset = int32(i64) + sv.ScheduleOffset = ptr.Int32(int32(i64)) } case "Status": @@ -22038,7 +22038,7 @@ func awsAwsjson11_deserializeDocumentAssociationVersionInfo(v **types.Associatio if err != nil { return err } - sv.ScheduleOffset = int32(i64) + sv.ScheduleOffset = ptr.Int32(int32(i64)) } case "SyncCompliance": @@ -24655,7 +24655,7 @@ func awsAwsjson11_deserializeDocumentCreateAssociationBatchRequestEntry(v **type if err != nil { return err } - sv.ScheduleOffset = int32(i64) + sv.ScheduleOffset = ptr.Int32(int32(i64)) } case "SyncCompliance": @@ -27139,7 +27139,7 @@ func awsAwsjson11_deserializeDocumentInstanceInformation(v **types.InstanceInfor if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.IsLatestVersion = jtv + sv.IsLatestVersion = ptr.Bool(jtv) } case "LastAssociationExecutionDate": @@ -27362,7 +27362,7 @@ func awsAwsjson11_deserializeDocumentInstancePatchState(v **types.InstancePatchS if err != nil { return err } - sv.CriticalNonCompliantCount = int32(i64) + sv.CriticalNonCompliantCount = ptr.Int32(int32(i64)) } case "FailedCount": @@ -27414,7 +27414,7 @@ func awsAwsjson11_deserializeDocumentInstancePatchState(v **types.InstancePatchS if err != nil { return err } - sv.InstalledPendingRebootCount = int32(i64) + sv.InstalledPendingRebootCount = ptr.Int32(int32(i64)) } case "InstalledRejectedCount": @@ -27427,7 +27427,7 @@ func awsAwsjson11_deserializeDocumentInstancePatchState(v **types.InstancePatchS if err != nil { return err } - sv.InstalledRejectedCount = int32(i64) + sv.InstalledRejectedCount = ptr.Int32(int32(i64)) } case "InstallOverrideList": @@ -27541,7 +27541,7 @@ func awsAwsjson11_deserializeDocumentInstancePatchState(v **types.InstancePatchS if err != nil { return err } - sv.OtherNonCompliantCount = int32(i64) + sv.OtherNonCompliantCount = ptr.Int32(int32(i64)) } case "OwnerInformation": @@ -27581,7 +27581,7 @@ func awsAwsjson11_deserializeDocumentInstancePatchState(v **types.InstancePatchS if err != nil { return err } - sv.SecurityNonCompliantCount = int32(i64) + sv.SecurityNonCompliantCount = ptr.Int32(int32(i64)) } case "SnapshotId": @@ -27603,7 +27603,7 @@ func awsAwsjson11_deserializeDocumentInstancePatchState(v **types.InstancePatchS if err != nil { return err } - sv.UnreportedNotApplicableCount = int32(i64) + sv.UnreportedNotApplicableCount = ptr.Int32(int32(i64)) } default: @@ -31174,7 +31174,7 @@ func awsAwsjson11_deserializeDocumentMaintenanceWindowIdentity(v **types.Mainten if err != nil { return err } - sv.ScheduleOffset = int32(i64) + sv.ScheduleOffset = ptr.Int32(int32(i64)) } case "ScheduleTimezone": @@ -31468,7 +31468,7 @@ func awsAwsjson11_deserializeDocumentMaintenanceWindowRunCommandParameters(v **t if err != nil { return err } - sv.TimeoutSeconds = int32(i64) + sv.TimeoutSeconds = ptr.Int32(int32(i64)) } default: @@ -36373,7 +36373,7 @@ func awsAwsjson11_deserializeDocumentPatchRule(v **types.PatchRule, value interf if err != nil { return err } - sv.ApproveAfterDays = int32(i64) + sv.ApproveAfterDays = ptr.Int32(int32(i64)) } case "ApproveUntilDate": @@ -36400,7 +36400,7 @@ func awsAwsjson11_deserializeDocumentPatchRule(v **types.PatchRule, value interf if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.EnableNonSecurity = jtv + sv.EnableNonSecurity = ptr.Bool(jtv) } case "PatchFilterGroup": @@ -38956,7 +38956,7 @@ func awsAwsjson11_deserializeDocumentStepExecution(v **types.StepExecution, valu if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.IsCritical = jtv + sv.IsCritical = ptr.Bool(jtv) } case "IsEnd": @@ -38965,7 +38965,7 @@ func awsAwsjson11_deserializeDocumentStepExecution(v **types.StepExecution, valu if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.IsEnd = jtv + sv.IsEnd = ptr.Bool(jtv) } case "MaxAttempts": @@ -38978,7 +38978,7 @@ func awsAwsjson11_deserializeDocumentStepExecution(v **types.StepExecution, valu if err != nil { return err } - sv.MaxAttempts = int32(i64) + sv.MaxAttempts = ptr.Int32(int32(i64)) } case "NextStep": @@ -39074,7 +39074,7 @@ func awsAwsjson11_deserializeDocumentStepExecution(v **types.StepExecution, valu if err != nil { return err } - sv.TimeoutSeconds = i64 + sv.TimeoutSeconds = ptr.Int64(i64) } case "ValidNextSteps": @@ -42490,7 +42490,7 @@ func awsAwsjson11_deserializeOpDocumentDescribePatchGroupStateOutput(v **Describ if err != nil { return err } - sv.InstancesWithCriticalNonCompliantPatches = int32(i64) + sv.InstancesWithCriticalNonCompliantPatches = ptr.Int32(int32(i64)) } case "InstancesWithFailedPatches": @@ -42542,7 +42542,7 @@ func awsAwsjson11_deserializeOpDocumentDescribePatchGroupStateOutput(v **Describ if err != nil { return err } - sv.InstancesWithInstalledPendingRebootPatches = int32(i64) + sv.InstancesWithInstalledPendingRebootPatches = ptr.Int32(int32(i64)) } case "InstancesWithInstalledRejectedPatches": @@ -42555,7 +42555,7 @@ func awsAwsjson11_deserializeOpDocumentDescribePatchGroupStateOutput(v **Describ if err != nil { return err } - sv.InstancesWithInstalledRejectedPatches = int32(i64) + sv.InstancesWithInstalledRejectedPatches = ptr.Int32(int32(i64)) } case "InstancesWithMissingPatches": @@ -42594,7 +42594,7 @@ func awsAwsjson11_deserializeOpDocumentDescribePatchGroupStateOutput(v **Describ if err != nil { return err } - sv.InstancesWithOtherNonCompliantPatches = int32(i64) + sv.InstancesWithOtherNonCompliantPatches = ptr.Int32(int32(i64)) } case "InstancesWithSecurityNonCompliantPatches": @@ -42607,7 +42607,7 @@ func awsAwsjson11_deserializeOpDocumentDescribePatchGroupStateOutput(v **Describ if err != nil { return err } - sv.InstancesWithSecurityNonCompliantPatches = int32(i64) + sv.InstancesWithSecurityNonCompliantPatches = ptr.Int32(int32(i64)) } case "InstancesWithUnreportedNotApplicablePatches": @@ -42620,7 +42620,7 @@ func awsAwsjson11_deserializeOpDocumentDescribePatchGroupStateOutput(v **Describ if err != nil { return err } - sv.InstancesWithUnreportedNotApplicablePatches = int32(i64) + sv.InstancesWithUnreportedNotApplicablePatches = ptr.Int32(int32(i64)) } default: @@ -43996,7 +43996,7 @@ func awsAwsjson11_deserializeOpDocumentGetMaintenanceWindowOutput(v **GetMainten if err != nil { return err } - sv.ScheduleOffset = int32(i64) + sv.ScheduleOffset = ptr.Int32(int32(i64)) } case "ScheduleTimezone": @@ -44596,7 +44596,7 @@ func awsAwsjson11_deserializeOpDocumentGetPatchBaselineOutput(v **GetPatchBaseli if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.ApprovedPatchesEnableNonSecurity = jtv + sv.ApprovedPatchesEnableNonSecurity = ptr.Bool(jtv) } case "BaselineId": @@ -46648,7 +46648,7 @@ func awsAwsjson11_deserializeOpDocumentUpdateMaintenanceWindowOutput(v **UpdateM if err != nil { return err } - sv.ScheduleOffset = int32(i64) + sv.ScheduleOffset = ptr.Int32(int32(i64)) } case "ScheduleTimezone": @@ -47062,7 +47062,7 @@ func awsAwsjson11_deserializeOpDocumentUpdatePatchBaselineOutput(v **UpdatePatch if !ok { return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", value) } - sv.ApprovedPatchesEnableNonSecurity = jtv + sv.ApprovedPatchesEnableNonSecurity = ptr.Bool(jtv) } case "BaselineId": diff --git a/service/ssm/serializers.go b/service/ssm/serializers.go index cc0d2a2225a..e0013a6aaa1 100644 --- a/service/ssm/serializers.go +++ b/service/ssm/serializers.go @@ -8071,9 +8071,9 @@ func awsAwsjson11_serializeDocumentCreateAssociationBatchRequestEntry(v *types.C ok.String(*v.ScheduleExpression) } - if v.ScheduleOffset != 0 { + if v.ScheduleOffset != nil { ok := object.Key("ScheduleOffset") - ok.Integer(v.ScheduleOffset) + ok.Integer(*v.ScheduleOffset) } if len(v.SyncCompliance) > 0 { @@ -8825,9 +8825,9 @@ func awsAwsjson11_serializeDocumentMaintenanceWindowRunCommandParameters(v *type ok.String(*v.ServiceRoleArn) } - if v.TimeoutSeconds != 0 { + if v.TimeoutSeconds != nil { ok := object.Key("TimeoutSeconds") - ok.Integer(v.TimeoutSeconds) + ok.Integer(*v.TimeoutSeconds) } return nil @@ -9645,9 +9645,9 @@ func awsAwsjson11_serializeDocumentPatchRule(v *types.PatchRule, value smithyjso object := value.Object() defer object.Close() - if v.ApproveAfterDays != 0 { + if v.ApproveAfterDays != nil { ok := object.Key("ApproveAfterDays") - ok.Integer(v.ApproveAfterDays) + ok.Integer(*v.ApproveAfterDays) } if v.ApproveUntilDate != nil { @@ -9660,9 +9660,9 @@ func awsAwsjson11_serializeDocumentPatchRule(v *types.PatchRule, value smithyjso ok.String(string(v.ComplianceLevel)) } - if v.EnableNonSecurity { + if v.EnableNonSecurity != nil { ok := object.Key("EnableNonSecurity") - ok.Boolean(v.EnableNonSecurity) + ok.Boolean(*v.EnableNonSecurity) } if v.PatchFilterGroup != nil { @@ -10460,9 +10460,9 @@ func awsAwsjson11_serializeOpDocumentCreateActivationInput(v *CreateActivationIn ok.String(*v.IamRole) } - if v.RegistrationLimit != 0 { + if v.RegistrationLimit != nil { ok := object.Key("RegistrationLimit") - ok.Integer(v.RegistrationLimit) + ok.Integer(*v.RegistrationLimit) } if v.RegistrationMetadata != nil { @@ -10571,9 +10571,9 @@ func awsAwsjson11_serializeOpDocumentCreateAssociationInput(v *CreateAssociation ok.String(*v.ScheduleExpression) } - if v.ScheduleOffset != 0 { + if v.ScheduleOffset != nil { ok := object.Key("ScheduleOffset") - ok.Integer(v.ScheduleOffset) + ok.Integer(*v.ScheduleOffset) } if len(v.SyncCompliance) > 0 { @@ -10712,9 +10712,9 @@ func awsAwsjson11_serializeOpDocumentCreateMaintenanceWindowInput(v *CreateMaint ok.String(*v.Schedule) } - if v.ScheduleOffset != 0 { + if v.ScheduleOffset != nil { ok := object.Key("ScheduleOffset") - ok.Integer(v.ScheduleOffset) + ok.Integer(*v.ScheduleOffset) } if v.ScheduleTimezone != nil { @@ -10876,9 +10876,9 @@ func awsAwsjson11_serializeOpDocumentCreatePatchBaselineInput(v *CreatePatchBase ok.String(string(v.ApprovedPatchesComplianceLevel)) } - if v.ApprovedPatchesEnableNonSecurity { + if v.ApprovedPatchesEnableNonSecurity != nil { ok := object.Key("ApprovedPatchesEnableNonSecurity") - ok.Boolean(v.ApprovedPatchesEnableNonSecurity) + ok.Boolean(*v.ApprovedPatchesEnableNonSecurity) } if v.ClientToken != nil { @@ -11168,9 +11168,9 @@ func awsAwsjson11_serializeOpDocumentDeregisterTargetFromMaintenanceWindowInput( object := value.Object() defer object.Close() - if v.Safe { + if v.Safe != nil { ok := object.Key("Safe") - ok.Boolean(v.Safe) + ok.Boolean(*v.Safe) } if v.WindowId != nil { @@ -11214,9 +11214,9 @@ func awsAwsjson11_serializeOpDocumentDescribeActivationsInput(v *DescribeActivat } } - if v.MaxResults != 0 { + if v.MaxResults != nil { ok := object.Key("MaxResults") - ok.Integer(v.MaxResults) + ok.Integer(*v.MaxResults) } if v.NextToken != nil { @@ -11243,9 +11243,9 @@ func awsAwsjson11_serializeOpDocumentDescribeAssociationExecutionsInput(v *Descr } } - if v.MaxResults != 0 { + if v.MaxResults != nil { ok := object.Key("MaxResults") - ok.Integer(v.MaxResults) + ok.Integer(*v.MaxResults) } if v.NextToken != nil { @@ -11277,9 +11277,9 @@ func awsAwsjson11_serializeOpDocumentDescribeAssociationExecutionTargetsInput(v } } - if v.MaxResults != 0 { + if v.MaxResults != nil { ok := object.Key("MaxResults") - ok.Integer(v.MaxResults) + ok.Integer(*v.MaxResults) } if v.NextToken != nil { @@ -11328,9 +11328,9 @@ func awsAwsjson11_serializeOpDocumentDescribeAutomationExecutionsInput(v *Descri } } - if v.MaxResults != 0 { + if v.MaxResults != nil { ok := object.Key("MaxResults") - ok.Integer(v.MaxResults) + ok.Integer(*v.MaxResults) } if v.NextToken != nil { @@ -11357,9 +11357,9 @@ func awsAwsjson11_serializeOpDocumentDescribeAutomationStepExecutionsInput(v *De } } - if v.MaxResults != 0 { + if v.MaxResults != nil { ok := object.Key("MaxResults") - ok.Integer(v.MaxResults) + ok.Integer(*v.MaxResults) } if v.NextToken != nil { @@ -11367,9 +11367,9 @@ func awsAwsjson11_serializeOpDocumentDescribeAutomationStepExecutionsInput(v *De ok.String(*v.NextToken) } - if v.ReverseOrder { + if v.ReverseOrder != nil { ok := object.Key("ReverseOrder") - ok.Boolean(v.ReverseOrder) + ok.Boolean(*v.ReverseOrder) } return nil @@ -11386,9 +11386,9 @@ func awsAwsjson11_serializeOpDocumentDescribeAvailablePatchesInput(v *DescribeAv } } - if v.MaxResults != 0 { + if v.MaxResults != nil { ok := object.Key("MaxResults") - ok.Integer(v.MaxResults) + ok.Integer(*v.MaxResults) } if v.NextToken != nil { @@ -11425,9 +11425,9 @@ func awsAwsjson11_serializeOpDocumentDescribeDocumentPermissionInput(v *Describe 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.Name != nil { @@ -11457,9 +11457,9 @@ func awsAwsjson11_serializeOpDocumentDescribeEffectiveInstanceAssociationsInput( ok.String(*v.InstanceId) } - if v.MaxResults != 0 { + if v.MaxResults != nil { ok := object.Key("MaxResults") - ok.Integer(v.MaxResults) + ok.Integer(*v.MaxResults) } if v.NextToken != nil { @@ -11479,9 +11479,9 @@ func awsAwsjson11_serializeOpDocumentDescribeEffectivePatchesForPatchBaselineInp ok.String(*v.BaselineId) } - if v.MaxResults != 0 { + if v.MaxResults != nil { ok := object.Key("MaxResults") - ok.Integer(v.MaxResults) + ok.Integer(*v.MaxResults) } if v.NextToken != nil { @@ -11501,9 +11501,9 @@ func awsAwsjson11_serializeOpDocumentDescribeInstanceAssociationsStatusInput(v * ok.String(*v.InstanceId) } - if v.MaxResults != 0 { + if v.MaxResults != nil { ok := object.Key("MaxResults") - ok.Integer(v.MaxResults) + ok.Integer(*v.MaxResults) } if v.NextToken != nil { @@ -11532,9 +11532,9 @@ func awsAwsjson11_serializeOpDocumentDescribeInstanceInformationInput(v *Describ } } - if v.MaxResults != 0 { + if v.MaxResults != nil { ok := object.Key("MaxResults") - ok.Integer(v.MaxResults) + ok.Integer(*v.MaxResults) } if v.NextToken != nil { @@ -11561,9 +11561,9 @@ func awsAwsjson11_serializeOpDocumentDescribeInstancePatchesInput(v *DescribeIns ok.String(*v.InstanceId) } - if v.MaxResults != 0 { + if v.MaxResults != nil { ok := object.Key("MaxResults") - ok.Integer(v.MaxResults) + ok.Integer(*v.MaxResults) } if v.NextToken != nil { @@ -11585,9 +11585,9 @@ func awsAwsjson11_serializeOpDocumentDescribeInstancePatchStatesForPatchGroupInp } } - if v.MaxResults != 0 { + if v.MaxResults != nil { ok := object.Key("MaxResults") - ok.Integer(v.MaxResults) + ok.Integer(*v.MaxResults) } if v.NextToken != nil { @@ -11614,9 +11614,9 @@ func awsAwsjson11_serializeOpDocumentDescribeInstancePatchStatesInput(v *Describ } } - if v.MaxResults != 0 { + if v.MaxResults != nil { ok := object.Key("MaxResults") - ok.Integer(v.MaxResults) + ok.Integer(*v.MaxResults) } if v.NextToken != nil { @@ -11636,9 +11636,9 @@ func awsAwsjson11_serializeOpDocumentDescribeInventoryDeletionsInput(v *Describe ok.String(*v.DeletionId) } - if v.MaxResults != 0 { + if v.MaxResults != nil { ok := object.Key("MaxResults") - ok.Integer(v.MaxResults) + ok.Integer(*v.MaxResults) } if v.NextToken != nil { @@ -11660,9 +11660,9 @@ func awsAwsjson11_serializeOpDocumentDescribeMaintenanceWindowExecutionsInput(v } } - if v.MaxResults != 0 { + if v.MaxResults != nil { ok := object.Key("MaxResults") - ok.Integer(v.MaxResults) + ok.Integer(*v.MaxResults) } if v.NextToken != nil { @@ -11689,9 +11689,9 @@ func awsAwsjson11_serializeOpDocumentDescribeMaintenanceWindowExecutionTaskInvoc } } - if v.MaxResults != 0 { + if v.MaxResults != nil { ok := object.Key("MaxResults") - ok.Integer(v.MaxResults) + ok.Integer(*v.MaxResults) } if v.NextToken != nil { @@ -11723,9 +11723,9 @@ func awsAwsjson11_serializeOpDocumentDescribeMaintenanceWindowExecutionTasksInpu } } - if v.MaxResults != 0 { + if v.MaxResults != nil { ok := object.Key("MaxResults") - ok.Integer(v.MaxResults) + ok.Integer(*v.MaxResults) } if v.NextToken != nil { @@ -11752,9 +11752,9 @@ func awsAwsjson11_serializeOpDocumentDescribeMaintenanceWindowScheduleInput(v *D } } - if v.MaxResults != 0 { + if v.MaxResults != nil { ok := object.Key("MaxResults") - ok.Integer(v.MaxResults) + ok.Integer(*v.MaxResults) } if v.NextToken != nil { @@ -11786,9 +11786,9 @@ func awsAwsjson11_serializeOpDocumentDescribeMaintenanceWindowsForTargetInput(v 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 { @@ -11822,9 +11822,9 @@ func awsAwsjson11_serializeOpDocumentDescribeMaintenanceWindowsInput(v *Describe } } - if v.MaxResults != 0 { + if v.MaxResults != nil { ok := object.Key("MaxResults") - ok.Integer(v.MaxResults) + ok.Integer(*v.MaxResults) } if v.NextToken != nil { @@ -11846,9 +11846,9 @@ func awsAwsjson11_serializeOpDocumentDescribeMaintenanceWindowTargetsInput(v *De } } - if v.MaxResults != 0 { + if v.MaxResults != nil { ok := object.Key("MaxResults") - ok.Integer(v.MaxResults) + ok.Integer(*v.MaxResults) } if v.NextToken != nil { @@ -11875,9 +11875,9 @@ func awsAwsjson11_serializeOpDocumentDescribeMaintenanceWindowTasksInput(v *Desc } } - if v.MaxResults != 0 { + if v.MaxResults != nil { ok := object.Key("MaxResults") - ok.Integer(v.MaxResults) + ok.Integer(*v.MaxResults) } if v.NextToken != nil { @@ -11928,9 +11928,9 @@ func awsAwsjson11_serializeOpDocumentDescribeParametersInput(v *DescribeParamete } } - if v.MaxResults != 0 { + if v.MaxResults != nil { ok := object.Key("MaxResults") - ok.Integer(v.MaxResults) + ok.Integer(*v.MaxResults) } if v.NextToken != nil { @@ -11959,9 +11959,9 @@ func awsAwsjson11_serializeOpDocumentDescribePatchBaselinesInput(v *DescribePatc } } - if v.MaxResults != 0 { + if v.MaxResults != nil { ok := object.Key("MaxResults") - ok.Integer(v.MaxResults) + ok.Integer(*v.MaxResults) } if v.NextToken != nil { @@ -11983,9 +11983,9 @@ func awsAwsjson11_serializeOpDocumentDescribePatchGroupsInput(v *DescribePatchGr } } - if v.MaxResults != 0 { + if v.MaxResults != nil { ok := object.Key("MaxResults") - ok.Integer(v.MaxResults) + ok.Integer(*v.MaxResults) } if v.NextToken != nil { @@ -12012,9 +12012,9 @@ func awsAwsjson11_serializeOpDocumentDescribePatchPropertiesInput(v *DescribePat 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 { @@ -12051,9 +12051,9 @@ func awsAwsjson11_serializeOpDocumentDescribeSessionsInput(v *DescribeSessionsIn } } - if v.MaxResults != 0 { + if v.MaxResults != nil { ok := object.Key("MaxResults") - ok.Integer(v.MaxResults) + ok.Integer(*v.MaxResults) } if v.NextToken != nil { @@ -12232,9 +12232,9 @@ func awsAwsjson11_serializeOpDocumentGetInventoryInput(v *GetInventoryInput, 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 { @@ -12261,9 +12261,9 @@ func awsAwsjson11_serializeOpDocumentGetInventorySchemaInput(v *GetInventorySche ok.Boolean(v.Aggregator) } - if v.MaxResults != 0 { + if v.MaxResults != nil { ok := object.Key("MaxResults") - ok.Integer(v.MaxResults) + ok.Integer(*v.MaxResults) } if v.NextToken != nil { @@ -12271,9 +12271,9 @@ func awsAwsjson11_serializeOpDocumentGetInventorySchemaInput(v *GetInventorySche ok.String(*v.NextToken) } - if v.SubType { + if v.SubType != nil { ok := object.Key("SubType") - ok.Boolean(v.SubType) + ok.Boolean(*v.SubType) } if v.TypeName != nil { @@ -12380,9 +12380,9 @@ func awsAwsjson11_serializeOpDocumentGetOpsMetadataInput(v *GetOpsMetadataInput, 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 { @@ -12416,9 +12416,9 @@ func awsAwsjson11_serializeOpDocumentGetOpsSummaryInput(v *GetOpsSummaryInput, v } } - if v.MaxResults != 0 { + if v.MaxResults != nil { ok := object.Key("MaxResults") - ok.Integer(v.MaxResults) + ok.Integer(*v.MaxResults) } if v.NextToken != nil { @@ -12445,9 +12445,9 @@ func awsAwsjson11_serializeOpDocumentGetParameterHistoryInput(v *GetParameterHis 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.Name != nil { @@ -12460,9 +12460,9 @@ func awsAwsjson11_serializeOpDocumentGetParameterHistoryInput(v *GetParameterHis ok.String(*v.NextToken) } - if v.WithDecryption { + if v.WithDecryption != nil { ok := object.Key("WithDecryption") - ok.Boolean(v.WithDecryption) + ok.Boolean(*v.WithDecryption) } return nil @@ -12477,9 +12477,9 @@ func awsAwsjson11_serializeOpDocumentGetParameterInput(v *GetParameterInput, val ok.String(*v.Name) } - if v.WithDecryption { + if v.WithDecryption != nil { ok := object.Key("WithDecryption") - ok.Boolean(v.WithDecryption) + ok.Boolean(*v.WithDecryption) } return nil @@ -12489,9 +12489,9 @@ func awsAwsjson11_serializeOpDocumentGetParametersByPathInput(v *GetParametersBy 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 { @@ -12511,14 +12511,14 @@ func awsAwsjson11_serializeOpDocumentGetParametersByPathInput(v *GetParametersBy ok.String(*v.Path) } - if v.Recursive { + if v.Recursive != nil { ok := object.Key("Recursive") - ok.Boolean(v.Recursive) + ok.Boolean(*v.Recursive) } - if v.WithDecryption { + if v.WithDecryption != nil { ok := object.Key("WithDecryption") - ok.Boolean(v.WithDecryption) + ok.Boolean(*v.WithDecryption) } return nil @@ -12535,9 +12535,9 @@ func awsAwsjson11_serializeOpDocumentGetParametersInput(v *GetParametersInput, v } } - if v.WithDecryption { + if v.WithDecryption != nil { ok := object.Key("WithDecryption") - ok.Boolean(v.WithDecryption) + ok.Boolean(*v.WithDecryption) } return nil @@ -12600,9 +12600,9 @@ func awsAwsjson11_serializeOpDocumentLabelParameterVersionInput(v *LabelParamete ok.String(*v.Name) } - if v.ParameterVersion != 0 { + if v.ParameterVersion != nil { ok := object.Key("ParameterVersion") - ok.Long(v.ParameterVersion) + ok.Long(*v.ParameterVersion) } return nil @@ -12619,9 +12619,9 @@ func awsAwsjson11_serializeOpDocumentListAssociationsInput(v *ListAssociationsIn } } - if v.MaxResults != 0 { + if v.MaxResults != nil { ok := object.Key("MaxResults") - ok.Integer(v.MaxResults) + ok.Integer(*v.MaxResults) } if v.NextToken != nil { @@ -12641,9 +12641,9 @@ func awsAwsjson11_serializeOpDocumentListAssociationVersionsInput(v *ListAssocia ok.String(*v.AssociationId) } - if v.MaxResults != 0 { + if v.MaxResults != nil { ok := object.Key("MaxResults") - ok.Integer(v.MaxResults) + ok.Integer(*v.MaxResults) } if v.NextToken != nil { @@ -12680,9 +12680,9 @@ func awsAwsjson11_serializeOpDocumentListCommandInvocationsInput(v *ListCommandI ok.String(*v.InstanceId) } - if v.MaxResults != 0 { + if v.MaxResults != nil { ok := object.Key("MaxResults") - ok.Integer(v.MaxResults) + ok.Integer(*v.MaxResults) } if v.NextToken != nil { @@ -12714,9 +12714,9 @@ func awsAwsjson11_serializeOpDocumentListCommandsInput(v *ListCommandsInput, val ok.String(*v.InstanceId) } - if v.MaxResults != 0 { + if v.MaxResults != nil { ok := object.Key("MaxResults") - ok.Integer(v.MaxResults) + ok.Integer(*v.MaxResults) } if v.NextToken != nil { @@ -12738,9 +12738,9 @@ func awsAwsjson11_serializeOpDocumentListComplianceItemsInput(v *ListComplianceI } } - if v.MaxResults != 0 { + if v.MaxResults != nil { ok := object.Key("MaxResults") - ok.Integer(v.MaxResults) + ok.Integer(*v.MaxResults) } if v.NextToken != nil { @@ -12776,9 +12776,9 @@ func awsAwsjson11_serializeOpDocumentListComplianceSummariesInput(v *ListComplia } } - if v.MaxResults != 0 { + if v.MaxResults != nil { ok := object.Key("MaxResults") - ok.Integer(v.MaxResults) + ok.Integer(*v.MaxResults) } if v.NextToken != nil { @@ -12798,9 +12798,9 @@ func awsAwsjson11_serializeOpDocumentListDocumentMetadataHistoryInput(v *ListDoc ok.String(*v.DocumentVersion) } - if v.MaxResults != 0 { + if v.MaxResults != nil { ok := object.Key("MaxResults") - ok.Integer(v.MaxResults) + ok.Integer(*v.MaxResults) } if len(v.Metadata) > 0 { @@ -12839,9 +12839,9 @@ func awsAwsjson11_serializeOpDocumentListDocumentsInput(v *ListDocumentsInput, v } } - if v.MaxResults != 0 { + if v.MaxResults != nil { ok := object.Key("MaxResults") - ok.Integer(v.MaxResults) + ok.Integer(*v.MaxResults) } if v.NextToken != nil { @@ -12856,9 +12856,9 @@ func awsAwsjson11_serializeOpDocumentListDocumentVersionsInput(v *ListDocumentVe 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.Name != nil { @@ -12890,9 +12890,9 @@ func awsAwsjson11_serializeOpDocumentListInventoryEntriesInput(v *ListInventoryE ok.String(*v.InstanceId) } - if v.MaxResults != 0 { + if v.MaxResults != nil { ok := object.Key("MaxResults") - ok.Integer(v.MaxResults) + ok.Integer(*v.MaxResults) } if v.NextToken != nil { @@ -12972,9 +12972,9 @@ func awsAwsjson11_serializeOpDocumentListOpsMetadataInput(v *ListOpsMetadataInpu } } - if v.MaxResults != 0 { + if v.MaxResults != nil { ok := object.Key("MaxResults") - ok.Integer(v.MaxResults) + ok.Integer(*v.MaxResults) } if v.NextToken != nil { @@ -12996,9 +12996,9 @@ func awsAwsjson11_serializeOpDocumentListResourceComplianceSummariesInput(v *Lis } } - if v.MaxResults != 0 { + if v.MaxResults != nil { ok := object.Key("MaxResults") - ok.Integer(v.MaxResults) + ok.Integer(*v.MaxResults) } if v.NextToken != nil { @@ -13013,9 +13013,9 @@ func awsAwsjson11_serializeOpDocumentListResourceDataSyncInput(v *ListResourceDa 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 { @@ -13178,9 +13178,9 @@ func awsAwsjson11_serializeOpDocumentPutParameterInput(v *PutParameterInput, val ok.String(*v.Name) } - if v.Overwrite { + if v.Overwrite != nil { ok := object.Key("Overwrite") - ok.Boolean(v.Overwrite) + ok.Boolean(*v.Overwrite) } if v.Policies != nil { @@ -13327,9 +13327,9 @@ func awsAwsjson11_serializeOpDocumentRegisterTaskWithMaintenanceWindowInput(v *R 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.ServiceRoleArn != nil { @@ -13542,9 +13542,9 @@ func awsAwsjson11_serializeOpDocumentSendCommandInput(v *SendCommandInput, value } } - if v.TimeoutSeconds != 0 { + if v.TimeoutSeconds != nil { ok := object.Key("TimeoutSeconds") - ok.Integer(v.TimeoutSeconds) + ok.Integer(*v.TimeoutSeconds) } return nil @@ -13783,9 +13783,9 @@ func awsAwsjson11_serializeOpDocumentUnlabelParameterVersionInput(v *UnlabelPara ok.String(*v.Name) } - { + if v.ParameterVersion != nil { ok := object.Key("ParameterVersion") - ok.Long(v.ParameterVersion) + ok.Long(*v.ParameterVersion) } return nil @@ -13871,9 +13871,9 @@ func awsAwsjson11_serializeOpDocumentUpdateAssociationInput(v *UpdateAssociation ok.String(*v.ScheduleExpression) } - if v.ScheduleOffset != 0 { + if v.ScheduleOffset != nil { ok := object.Key("ScheduleOffset") - ok.Integer(v.ScheduleOffset) + ok.Integer(*v.ScheduleOffset) } if len(v.SyncCompliance) > 0 { @@ -14023,14 +14023,14 @@ func awsAwsjson11_serializeOpDocumentUpdateMaintenanceWindowInput(v *UpdateMaint object := value.Object() defer object.Close() - if v.AllowUnassociatedTargets { + if v.AllowUnassociatedTargets != nil { ok := object.Key("AllowUnassociatedTargets") - ok.Boolean(v.AllowUnassociatedTargets) + ok.Boolean(*v.AllowUnassociatedTargets) } - if v.Cutoff != 0 { + if v.Cutoff != nil { ok := object.Key("Cutoff") - ok.Integer(v.Cutoff) + ok.Integer(*v.Cutoff) } if v.Description != nil { @@ -14038,14 +14038,14 @@ func awsAwsjson11_serializeOpDocumentUpdateMaintenanceWindowInput(v *UpdateMaint ok.String(*v.Description) } - if v.Duration != 0 { + if v.Duration != nil { ok := object.Key("Duration") - ok.Integer(v.Duration) + ok.Integer(*v.Duration) } - if v.Enabled { + if v.Enabled != nil { ok := object.Key("Enabled") - ok.Boolean(v.Enabled) + ok.Boolean(*v.Enabled) } if v.EndDate != nil { @@ -14058,9 +14058,9 @@ func awsAwsjson11_serializeOpDocumentUpdateMaintenanceWindowInput(v *UpdateMaint ok.String(*v.Name) } - if v.Replace { + if v.Replace != nil { ok := object.Key("Replace") - ok.Boolean(v.Replace) + ok.Boolean(*v.Replace) } if v.Schedule != nil { @@ -14068,9 +14068,9 @@ func awsAwsjson11_serializeOpDocumentUpdateMaintenanceWindowInput(v *UpdateMaint ok.String(*v.Schedule) } - if v.ScheduleOffset != 0 { + if v.ScheduleOffset != nil { ok := object.Key("ScheduleOffset") - ok.Integer(v.ScheduleOffset) + ok.Integer(*v.ScheduleOffset) } if v.ScheduleTimezone != nil { @@ -14110,9 +14110,9 @@ func awsAwsjson11_serializeOpDocumentUpdateMaintenanceWindowTargetInput(v *Updat ok.String(*v.OwnerInformation) } - if v.Replace { + if v.Replace != nil { ok := object.Key("Replace") - ok.Boolean(v.Replace) + ok.Boolean(*v.Replace) } if v.Targets != nil { @@ -14171,14 +14171,14 @@ func awsAwsjson11_serializeOpDocumentUpdateMaintenanceWindowTaskInput(v *UpdateM 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.Replace { + if v.Replace != nil { ok := object.Key("Replace") - ok.Boolean(v.Replace) + ok.Boolean(*v.Replace) } if v.ServiceRoleArn != nil { @@ -14381,9 +14381,9 @@ func awsAwsjson11_serializeOpDocumentUpdatePatchBaselineInput(v *UpdatePatchBase ok.String(string(v.ApprovedPatchesComplianceLevel)) } - if v.ApprovedPatchesEnableNonSecurity { + if v.ApprovedPatchesEnableNonSecurity != nil { ok := object.Key("ApprovedPatchesEnableNonSecurity") - ok.Boolean(v.ApprovedPatchesEnableNonSecurity) + ok.Boolean(*v.ApprovedPatchesEnableNonSecurity) } if v.BaselineId != nil { @@ -14420,9 +14420,9 @@ func awsAwsjson11_serializeOpDocumentUpdatePatchBaselineInput(v *UpdatePatchBase ok.String(string(v.RejectedPatchesAction)) } - if v.Replace { + if v.Replace != nil { ok := object.Key("Replace") - ok.Boolean(v.Replace) + ok.Boolean(*v.Replace) } if v.Sources != nil { diff --git a/service/ssm/types/types.go b/service/ssm/types/types.go index 8f62b98b7aa..fca3a690ad2 100644 --- a/service/ssm/types/types.go +++ b/service/ssm/types/types.go @@ -102,7 +102,7 @@ type Association struct { ScheduleExpression *string // Number of days to wait after the scheduled day to run an association. - ScheduleOffset int32 + ScheduleOffset *int32 // A key-value mapping of document parameters to target resources. Both Targets and // TargetMaps can't be specified together. @@ -208,7 +208,7 @@ type AssociationDescription struct { ScheduleExpression *string // Number of days to wait after the scheduled day to run an association. - ScheduleOffset int32 + ScheduleOffset *int32 // The association status. Status *AssociationStatus @@ -470,7 +470,7 @@ type AssociationVersionInfo struct { ScheduleExpression *string // Number of days to wait after the scheduled day to run an association. - ScheduleOffset int32 + ScheduleOffset *int32 // The mode for generating association compliance. You can specify AUTO or MANUAL. // In AUTO mode, the system uses the status of the association execution to @@ -1573,7 +1573,7 @@ type CreateAssociationBatchRequestEntry struct { ScheduleExpression *string // Number of days to wait after the scheduled day to run an association. - ScheduleOffset int32 + ScheduleOffset *int32 // The mode for generating association compliance. You can specify AUTO or MANUAL. // In AUTO mode, the system uses the status of the association execution to @@ -2217,7 +2217,7 @@ type InstanceInformation struct { // managed node. This field doesn't indicate whether or not the latest version is // installed on Windows managed nodes, because some older versions of Windows // Server use the EC2Config service to process Systems Manager requests. - IsLatestVersion bool + IsLatestVersion *bool // The date the association was last run. LastAssociationExecutionDate *time.Time @@ -2365,7 +2365,7 @@ type InstancePatchState struct { // be missing, have failed installation, were rejected, or were installed but // awaiting a required managed node reboot. The status of these managed nodes is // NON_COMPLIANT. - CriticalNonCompliantCount int32 + CriticalNonCompliantCount *int32 // The number of patches from the patch baseline that were attempted to be // installed during the last patching operation, but failed to install. @@ -2391,14 +2391,14 @@ type InstancePatchState struct { // The number of patches installed by Patch Manager since the last time the managed // node was rebooted. - InstalledPendingRebootCount int32 + InstalledPendingRebootCount *int32 // The number of patches installed on a managed node that are specified in a // RejectedPatches list. Patches with a status of InstalledRejected were typically // installed before they were added to a RejectedPatches list. If // ALLOW_AS_DEPENDENCY is the specified option for RejectedPatchesAction, the value // of InstalledRejectedCount will always be 0 (zero). - InstalledRejectedCount int32 + InstalledRejectedCount *int32 // The time of the last attempt to patch the managed node with NoReboot specified // as the reboot option. @@ -2417,7 +2417,7 @@ type InstancePatchState struct { // The number of managed nodes with patches installed that are specified as other // than Critical or Security but aren't compliant with the patch baseline. The // status of these managed nodes is NON_COMPLIANT. - OtherNonCompliantCount int32 + OtherNonCompliantCount *int32 // Placeholder information. This field will always be empty in the current release // of the service. @@ -2441,7 +2441,7 @@ type InstancePatchState struct { // patch advisory aren't installed. These patches might be missing, have failed // installation, were rejected, or were installed but awaiting a required managed // node reboot. The status of these managed nodes is NON_COMPLIANT. - SecurityNonCompliantCount int32 + SecurityNonCompliantCount *int32 // The ID of the patch baseline snapshot used during the patching operation when // this compliance data was collected. @@ -2450,7 +2450,7 @@ type InstancePatchState struct { // The number of patches beyond the supported limit of NotApplicableCount that // aren't reported by name to Inventory. Inventory is a capability of Amazon Web // Services Systems Manager. - UnreportedNotApplicableCount int32 + UnreportedNotApplicableCount *int32 noSmithyDocumentSerde } @@ -2970,7 +2970,7 @@ type MaintenanceWindowIdentity struct { // The number of days to wait to run a maintenance window after the scheduled cron // expression date and time. - ScheduleOffset int32 + ScheduleOffset *int32 // The time zone that the scheduled maintenance window executions are based on, in // Internet Assigned Numbers Authority (IANA) format. @@ -3092,7 +3092,7 @@ type MaintenanceWindowRunCommandParameters struct { // If this time is reached and the command hasn't already started running, it // doesn't run. - TimeoutSeconds int32 + TimeoutSeconds *int32 noSmithyDocumentSerde } @@ -4233,7 +4233,7 @@ type PatchRule struct { // the patch is marked as approved in the patch baseline. For example, a value of 7 // means that patches are approved seven days after they are released. Not // supported on Debian Server or Ubuntu Server. - ApproveAfterDays int32 + ApproveAfterDays *int32 // The cutoff date for auto approval of released patches. Any patches released on // or before this date are installed automatically. Not supported on Debian Server @@ -4246,7 +4246,7 @@ type PatchRule struct { // For managed nodes identified by the approval rule filters, enables a patch // baseline to apply non-security updates available in the specified repository. // The default value is false. Applies to Linux managed nodes only. - EnableNonSecurity bool + EnableNonSecurity *bool noSmithyDocumentSerde } @@ -4934,15 +4934,15 @@ type StepExecution struct { // The flag which can be used to help decide whether the failure of current step // leads to the Automation failure. - IsCritical bool + IsCritical *bool // The flag which can be used to end automation no matter whether the step succeeds // or fails. - IsEnd bool + IsEnd *bool // The maximum number of tries to run the action of the step. The default value is // 1. - MaxAttempts int32 + MaxAttempts *int32 // The next step after the step succeeds. NextStep *string @@ -4979,7 +4979,7 @@ type StepExecution struct { Targets []Target // The timeout seconds of the step. - TimeoutSeconds int64 + TimeoutSeconds *int64 // Strategies used when step fails, we support Continue and Abort. Abort will fail // the automation when the step fails. Continue will ignore the failure of current diff --git a/service/ssm/validators.go b/service/ssm/validators.go index 3f7dd7a704e..b640ff51524 100644 --- a/service/ssm/validators.go +++ b/service/ssm/validators.go @@ -6246,6 +6246,9 @@ func validateOpUnlabelParameterVersionInput(v *UnlabelParameterVersionInput) err if v.Name == nil { invalidParams.Add(smithy.NewErrParamRequired("Name")) } + if v.ParameterVersion == nil { + invalidParams.Add(smithy.NewErrParamRequired("ParameterVersion")) + } if v.Labels == nil { invalidParams.Add(smithy.NewErrParamRequired("Labels")) } diff --git a/service/timestreamwrite/deserializers.go b/service/timestreamwrite/deserializers.go index 1f55353bad2..2bae5e07461 100644 --- a/service/timestreamwrite/deserializers.go +++ b/service/timestreamwrite/deserializers.go @@ -2739,7 +2739,7 @@ func awsAwsjson10_deserializeDocumentRejectedRecord(v **types.RejectedRecord, va if err != nil { return err } - sv.ExistingVersion = i64 + sv.ExistingVersion = ptr.Int64(i64) } case "Reason": diff --git a/service/timestreamwrite/serializers.go b/service/timestreamwrite/serializers.go index b47329f793f..fd44c02e4e6 100644 --- a/service/timestreamwrite/serializers.go +++ b/service/timestreamwrite/serializers.go @@ -985,9 +985,9 @@ func awsAwsjson10_serializeDocumentRecord(v *types.Record, value smithyjson.Valu ok.String(string(v.TimeUnit)) } - if v.Version != 0 { + if v.Version != nil { ok := object.Key("Version") - ok.Long(v.Version) + ok.Long(*v.Version) } return nil diff --git a/service/timestreamwrite/types/types.go b/service/timestreamwrite/types/types.go index 96d9d60444b..c2ed609ab46 100644 --- a/service/timestreamwrite/types/types.go +++ b/service/timestreamwrite/types/types.go @@ -180,7 +180,7 @@ type Record struct { // cases where the measure value is the same, Version will still be updated . // Default value is 1. Version must be 1 or greater, or you will receive a // ValidationException error. - Version int64 + Version *int64 noSmithyDocumentSerde } @@ -208,7 +208,7 @@ type RejectedRecord struct { // The existing version of the record. This value is populated in scenarios where // an identical record exists with a higher version than the version in the write // request. - ExistingVersion int64 + ExistingVersion *int64 // The reason why a record was not successfully inserted into Timestream. Possible // causes of failure include: